|
| 1 | +<?php |
| 2 | +// @codingStandardsIgnoreFile |
| 3 | +/** |
| 4 | + * @see \Mageprince\Faq\Block\Adminhtml\System\Config\Field\FaqBlockInfo |
| 5 | + * @var \Mageprince\Faq\Block\Adminhtml\System\Config\Field\FaqBlockInfo $block |
| 6 | + */ |
| 7 | + |
| 8 | +?> |
| 9 | +<div class="faq-info-block"> |
| 10 | + <div class="attachment-note"><?= __('Use below code to show FAQ on CMS or Static Blocks') ?></div> |
| 11 | + <div class="userguide-container"> |
| 12 | + <div id="messages"> |
| 13 | + <ul class="messages"> |
| 14 | + <li class="message message-notice notice" style="list-style: none;"> |
| 15 | + <ul> |
| 16 | + <li style="list-style: none;"> |
| 17 | + Use this code to show all FAQ |
| 18 | + </li> |
| 19 | + </ul> |
| 20 | + </li> |
| 21 | + </ul> |
| 22 | + </div> |
| 23 | + <code> |
| 24 | + {{block class="Mageprince\Faq\Block\Index\Index" template="Mageprince_Faq::faq_main.phtml" show_group_title=1 show_group=1 page_type="scroll"}} |
| 25 | + </code> |
| 26 | + </div> |
| 27 | + <div class="userguide-container"> |
| 28 | + <div id="messages"> |
| 29 | + <ul class="messages"> |
| 30 | + <li class="message message-notice notice" style="list-style: none;"> |
| 31 | + <ul> |
| 32 | + <li style="list-style: none;"> |
| 33 | + Use <b>group_id</b> to show FAQ by group |
| 34 | + </li> |
| 35 | + </ul> |
| 36 | + </li> |
| 37 | + </ul> |
| 38 | + </div> |
| 39 | + <code> |
| 40 | + {{block class="Mageprince\Faq\Block\Index\Index" template="Mageprince_Faq::faq_main.phtml" group_id=1 show_group_title=1}} |
| 41 | + </code> |
| 42 | + </div> |
| 43 | + <div class="userguide-container"> |
| 44 | + <div id="messages"> |
| 45 | + <ul class="messages"> |
| 46 | + <li class="message message-notice notice" style="list-style: none;"> |
| 47 | + <ul> |
| 48 | + <li style="list-style: none;"> |
| 49 | + Parameters |
| 50 | + </li> |
| 51 | + </ul> |
| 52 | + </li> |
| 53 | + </ul> |
| 54 | + </div> |
| 55 | + <ul class="faq-parameters"> |
| 56 | + <li><b>1.show_group_title:</b> Show/Hide group title. Value must be 0 or 1</li> |
| 57 | + <li><b>2.show_group:</b> Show/Hide group icon. Value must be 0 or 1</li> |
| 58 | + <li><b>3.page_type:</b> Page type to show. Value must be “scroll” or “ajax”</li> |
| 59 | + <li><b>4.group_id:</b> You can find group if from FAQ->Manage FAQGroups</li> |
| 60 | + </ul> |
| 61 | + </div> |
| 62 | +</div> |
| 63 | +<style type="text/css"> |
| 64 | + .faq-info-block .userguide-container { |
| 65 | + border: dotted 1px #ccc; |
| 66 | + padding: 20px; |
| 67 | + margin-top: 25px; |
| 68 | + } |
| 69 | + |
| 70 | + .faq-info-block .attachment-note { |
| 71 | + font-weight: bold; |
| 72 | + margin-top: 30px; |
| 73 | + text-align: center; |
| 74 | + font-size: 16px; |
| 75 | + } |
| 76 | + ul.faq-parameters { |
| 77 | + list-style: none; |
| 78 | + } |
| 79 | + ul.faq-parameters li { |
| 80 | + padding: 5px; |
| 81 | + } |
| 82 | +</style> |
| 83 | + |
0 commit comments