Making WordPress.org

Changeset 4072


Ignore:
Timestamp:
09/15/2016 05:45:49 PM (9 years ago)
Author:
coffee2code
Message:

Support Forums: Remove view headers from plugin and theme forums.

After [4051], plugin/theme links appear in the sidebar making the view header links duplicates. The view header links were a bit out of place looking anyhow.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php

    r4051 r4072  
    115115
    116116    public function do_view_header() {
    117         $slug        = esc_attr( $this->slug );
    118         $description = esc_html__( 'Description', 'wporg-forums' );
    119         $support     = esc_html__( 'Support', 'wporg-forums' );
    120         $reviews     = esc_html__( 'Reviews', 'wporg-forums' );
    121         ?>
    122         <ul id="sections">
    123             <li class="section-description">
    124                 <a href="//wordpress.org/plugins/<?php echo $slug; ?>/"><?php echo $description; ?></a>
    125             </li>
    126             <li class="section-support">
    127                 <a href="//wordpress.org/support/plugin/<?php echo $slug; ?>/"><?php echo $support; ?></a>
    128             <li>
    129             <li class="section-reviews">
    130                 <a href="//wordpress.org/support/plugin/<?php echo $slug; ?>/reviews/"><?php echo $reviews; ?></a>
    131             </li>
    132         </ul>
    133         <?php
    134117    }
    135118}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php

    r4051 r4072  
    109109
    110110    public function do_view_header() {
    111         $slug        = esc_attr( $this->slug );
    112         $description = esc_html__( 'Description', 'wporg-forums' );
    113         $support     = esc_html__( 'Support', 'wporg-forums' );
    114         $reviews     = esc_html__( 'Reviews', 'wporg-forums' );
    115         ?>
    116         <ul id="sections">
    117             <li class="section-description">
    118                 <a href="//wordpress.org/themes/<?php echo $slug; ?>/"><?php echo $description; ?></a>
    119             </li>
    120             <li class="section-support">
    121                 <a href="//wordpress.org/support/theme/<?php echo $slug; ?>/"><?php echo $support; ?></a>
    122             <li>
    123             <li class="section-reviews">
    124                 <a href="//wordpress.org/support/theme/<?php echo $slug; ?>/reviews/"><?php echo $reviews; ?></a>
    125             </li>
    126         </ul>
    127         <?php
    128111    }
    129112}
Note: See TracChangeset for help on using the changeset viewer.