Changeset 3900 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
- Timestamp:
- 09/01/2016 02:18:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
r3892 r3900 111 111 } 112 112 113 /** 114 * Return a custom view header string so that get_breadcrumbs will display it. 115 */ 116 public function get_view_header() { 113 public function do_view_header() { 117 114 $slug = esc_attr( $this->slug ); 118 115 $description = esc_html__( 'Description', 'wporg-forums' ); 119 116 $support = esc_html__( 'Support', 'wporg-forums' ); 120 117 $reviews = esc_html__( 'Reviews', 'wporg-forums' ); 121 122 $header = <<<EOT 118 ?> 123 119 <ul id="sections"> 124 120 <li class="section-description"> 125 <a href="//wordpress.org/plugins/ {$slug}/">{$description}</a>121 <a href="//wordpress.org/plugins/<?php echo $slug; ?>/"><?php echo $description; ?></a> 126 122 </li> 127 123 <li class="section-support"> 128 <a href="//wordpress.org/support/plugin/ {$slug}/">{$support}</a>124 <a href="//wordpress.org/support/plugin/<?php echo $slug; ?>/"><?php echo $support; ?></a> 129 125 <li> 130 126 <li class="section-reviews"> 131 <a href="//wordpress.org/support/plugin/ {$slug}/reviews/">{$reviews}</a>127 <a href="//wordpress.org/support/plugin/<?php echo $slug; ?>/reviews/"><?php echo $reviews; ?></a> 132 128 </li> 133 </ul> 134 EOT; 135 return $header; 129 </ul> 130 <?php 136 131 } 137 132 }
Note: See TracChangeset
for help on using the changeset viewer.