Making WordPress.org


Ignore:
Timestamp:
09/15/2016 05:45:49 PM (10 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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.