| 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 |
|