PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 All 201 releases
betterdocs / views / template-parts / explore-more-btn.php

explore-more-btn.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.3, at views/template-parts/explore-more-btn.php

28 lines 932 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7 if ( ! $show_button ) {
8 return;
9 }
10
11 $show_button_icon = isset( $show_button_icon ) ? $show_button_icon : false;
12 $button_icon_position = isset( $button_icon_position ) ? $button_icon_position : '';
13 ?>
14
15 <a class="docs-cat-link-btn betterdocs-category-link-btn" href="<?php echo esc_attr( esc_url( $permalink ) ); ?>">
16 <?php
17 if ( $show_button_icon && ( $button_icon_position === 'before' || $button_icon_position === 'left' ) ) {
18 betterdocs()->template_helper->icon( $button_icon, true );
19 }
20
21 echo wp_kses_post( $button_text );
22
23 if ( $show_button_icon && ( $button_icon_position === 'after' || $button_icon_position === 'right' ) ) {
24 betterdocs()->template_helper->icon( $button_icon, true );
25 }
26 ?>
27 </a>
28