WordPress.org

Making WordPress.org

Changeset 3204


Ignore:
Timestamp:
05/20/2016 10:10:58 PM (6 years ago)
Author:
obenland
Message:

Plugin Directory: Define widget args at top of file.

Also uses widget args now for widgets on plugin-single.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/front-page.php

    r3200 r3204  
    1414    'trending' => __( 'Trending Plugins', 'wporg-plugins' ),
    1515    'beta'     => __( 'Beta Plugins', 'wporg-plugins' ),
     16);
     17
     18$widget_args = array(
     19    'before_title' => '<h4 class="widget-title">',
     20    'after_title'  => '</h4>',
    1621);
    1722
     
    4449    <aside id="secondary" class="widget-area" role="complementary">
    4550        <?php
    46             $widget_args = array(
    47                 'before_title' => '<h4 class="widget-title">',
    48                 'after_title'  => '</h4>',
    49             );
    50 
    5151            the_widget( 'WP_Widget_Text', array(
    5252                'title' => __( 'Plugin Authors', 'wporg-plugins' ),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r3193 r3204  
    1313
    1414$content = call_user_func( array( Plugin_Directory::instance(), 'split_post_content_into_pages' ), get_the_content() );
     15
     16$widget_args = array(
     17    'before_title' => '<h4 class="widget-title">',
     18    'after_title'  => '</h4>',
     19);
    1520
    1621?><article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    4853
    4954    <div class="entry-meta">
    50         <link itemprop="applicationCategory" href="http://schema.org/OtherApplication" />
    51         <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    52             <meta itemprop="price" content="0.00" />
    53             <meta itemprop="priceCurrency" content="USD" />
    54             <span itemprop="seller" itemscope itemtype="http://schema.org/Organization">
    55                 <span itemprop="name" content="WordPress.org"></span>
    56             </span>
    57         </span>
    58 
    59         <?php the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings' ); ?>
    60         <?php the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support' ); ?>
    61         <?php the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta' ); ?>
     55        <?php
     56            the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
     57            the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support', array(), $widget_args );
     58            the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta',    array(), $widget_args );
     59        ?>
    6260
    6361    </div><!-- .entry-meta -->
Note: See TracChangeset for help on using the changeset viewer.