PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.1.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.1.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 3.5.1 3.5.2 All 199 releases
betterdocs / includes / Shortcodes / FaqLayoutThree.php

FaqLayoutThree.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.1.2, at includes/Shortcodes/FaqLayoutThree.php

31 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Shortcodes;
4
5 class FaqLayoutThree extends FaqList {
6 protected $layout = 'layout-3';
7 protected $icon_hook = 'betterdocs_faq_post_after';
8
9 public function get_name() {
10 return 'betterdocs_faq_list_layout_3';
11 }
12
13 public function icons( $faq_toggle ) {
14 $faq_markup = '<svg class="betterdocs-faq-iconplus" width="21" height="20" viewBox="0 0 21 20"'.($faq_toggle ? " style='display:none;'" : "").' fill="none" xmlns="http://www.w3.org/2000/svg">
15 <g clip-path="url(#clip0_8028_2975)">
16 <path d="M5.5 7.5L10.5 12.5L15.5 7.5" stroke="#707E95" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
17 </g>
18 <defs>
19 <clipPath id="clip0_8028_2975">
20 <rect width="20" height="20" fill="white" transform="translate(0.5)"/>
21 </clipPath>
22 </defs>
23 </svg>';
24 $faq_markup .= '<svg class="betterdocs-faq-iconminus" width="21" height="20" viewBox="0 0 21 20"'.($faq_toggle ? " style='display:inline;'" : "").' fill="none" xmlns="http://www.w3.org/2000/svg">
25 <path d="M15.5 12.5L10.5 7.5L5.5 12.5" stroke="#707E95" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
26 </svg>';
27
28 echo $faq_markup; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
29 }
30 }
31