128 | | <?php if ( isset( $content[ 'installation' ] ) ) { ?> |
129 | | <li id="tablink-installation"><a href='#installation'><?php _e( 'Installation', 'wporg-plugins' ); ?></a></li> |
130 | | <?php } ?> |
131 | | <li id="tablink-support"><a href='https://wordpress.org/support/plugin/<?php echo $post->post_name; ?>'><?php _e( 'Support', 'wporg-plugins' ); ?></a></li> |
| 128 | <?php if ( isset( $content[ 'installation' ] ) ) { ?> |
| 129 | <li id="tablink-installation"><a href='#installation'><?php _e( 'Installation', 'wporg-plugins' ); ?></a></li> |
| 130 | <?php } ?> |
| 131 | <li id="tablink-support"><?php |
| 132 | /* |
| 133 | * bbPress and BuddyPress get special treatment here. |
| 134 | * In the future we could open this up to all plugins that define a custom support URL. |
| 135 | */ |
| 136 | if ( 'buddypress' === $post->post_name ) { |
| 137 | $support_url = 'https://buddypress.org/support/'; |
| 138 | } elseif ( 'bbpress' === $post->post_name ) { |
| 139 | $support_url = 'https://bbpress.org/forums/'; |
| 140 | } else { |
| 141 | $support_url = 'https://wordpress.org/support/plugin/' . $post->post_name; |
| 142 | } |
| 143 | ?><a href='<?php echo esc_url( $support_url ); ?>'><?php _e( 'Support', 'wporg-plugins' ); ?></a></li> |