Making WordPress.org


Ignore:
Timestamp:
10/19/2016 06:23:13 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: Add no-js handling for JS-only sections and add the start of the admin sidebars.

See #2111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r4260 r4263  
    1515
    1616$content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_content() );
    17 
    18 $widget_args = array(
    19     'before_title' => '<h4 class="widget-title">',
    20     'after_title'  => '</h4>',
    21 );
    2217
    2318?><article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    144139    <div class="entry-meta">
    145140        <?php
    146         the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta',    array(), $widget_args );
    147         the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
    148         the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support', array(), $widget_args );
    149         the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Donate',  array(), $widget_args );
     141        get_template_part( 'template-parts/plugin-sidebar', ( get_query_var( 'plugin_admin' ) ? 'admin' : '' ) );
    150142        ?>
    151143    </div><!-- .entry-meta -->
Note: See TracChangeset for help on using the changeset viewer.