Skip to content

Commit 4ead2f4

Browse files
committed
Add title option in widget
1 parent e887938 commit 4ead2f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

view/adminhtml/templates/system/config/Field/FaqBlockInfo.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
?>
99
<div class="faq-info-block">
10-
<div class="attachment-note"><?= __('Use below code to show FAQ on CMS or Static Blocks') ?></div>
10+
<div class="attachment-note"><?= __('Use widget "Mageprince FAQ" or use below code to show FAQ on CMS or Static Blocks') ?></div>
1111
<div class="userguide-container">
1212
<div id="messages">
1313
<ul class="messages">

view/frontend/templates/faq_main.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
<img src="<?= $block->getViewFileUrl('images/loader-1.gif'); ?>" alt="loader"/>
1919
</div>
2020
<div class="mageprince-faq-collection" style="display: none">
21+
<?php if ($this->getTitle()): ?>
22+
<h1 class="faq-page-title"><?= $block->escapeHtml($this->getTitle()) ?></h1>
23+
<?php endif; ?>
2124
<?php if ($block->isShowGroup() || $pageType == 'ajax'): ?>
2225
<div class="faq-groups">
2326
<?php foreach ($faqGroupCollection as $group): ?>

0 commit comments

Comments
 (0)