Making WordPress.org


Ignore:
Timestamp:
05/20/2016 09:01:31 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Tighten up Widget setup and styles.

  • Removes the use of dynamic sidebars and makes information strings translatable.
  • Unifies widget styles across front page and single plugin pages.

See #1719.

File:
1 edited

Legend:

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

    r3193 r3200  
    3636                    endwhile;
    3737                ?>
    38 
    3938            </section>
    4039
     
    4342    </main><!-- #main -->
    4443
     44    <aside id="secondary" class="widget-area" role="complementary">
     45        <?php
     46            $widget_args = array(
     47                'before_title' => '<h4 class="widget-title">',
     48                'after_title'  => '</h4>',
     49            );
     50
     51            the_widget( 'WP_Widget_Text', array(
     52                'title' => __( 'Plugin Authors', 'wporg-plugins' ),
     53                'text'  => __( 'Now what are the possibilities of warp drive? Cmdr Riker\'s nervous system has been invaded by an unknown microorganism. The organisms fuse to the nerve, intertwining at the molecular level. That\'s why the transporter\'s biofilters couldn\'t extract it.', 'wporg-plugins' ),
     54            ), $widget_args );
     55
     56            the_widget( 'WP_Widget_Text', array(
     57                'title' => __( 'Plugin Reviewers', 'wporg-plugins' ),
     58                'text'  => __( 'Shields up. I recommend we transfer power to phasers and arm the photon torpedoes. Something strange on the detector circuit. The weapons must have disrupted our communicators.', 'wporg-plugins' ),
     59            ), $widget_args );
     60
     61            the_widget( 'WP_Widget_Text', array(
     62                'title' => __( 'Plugin Handbook', 'wporg-plugins' ),
     63                'text'  => __( 'Communication is not possible. The shuttle has no power. Using the gravitational pull of a star to slingshot back in time? We are going to Starbase Montgomery for Engineering consultations prompted by minor read-out anomalies.', 'wporg-plugins' ),
     64            ), $widget_args );
     65        ?>
     66    </aside><!-- #secondary -->
    4567<?php
    46 get_sidebar( 'front-page' );
    4768get_footer();
Note: See TracChangeset for help on using the changeset viewer.