Skip to content

Commit

Permalink
Add title option in widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mageprince committed May 24, 2021
1 parent e887938 commit 4ead2f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

?>
<div class="faq-info-block">
<div class="attachment-note"><?= __('Use below code to show FAQ on CMS or Static Blocks') ?></div>
<div class="attachment-note"><?= __('Use widget "Mageprince FAQ" or use below code to show FAQ on CMS or Static Blocks') ?></div>
<div class="userguide-container">
<div id="messages">
<ul class="messages">
Expand Down
3 changes: 3 additions & 0 deletions view/frontend/templates/faq_main.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
<img src="<?= $block->getViewFileUrl('images/loader-1.gif'); ?>" alt="loader"/>
</div>
<div class="mageprince-faq-collection" style="display: none">
<?php if ($this->getTitle()): ?>
<h1 class="faq-page-title"><?= $block->escapeHtml($this->getTitle()) ?></h1>
<?php endif; ?>
<?php if ($block->isShowGroup() || $pageType == 'ajax'): ?>
<div class="faq-groups">
<?php foreach ($faqGroupCollection as $group): ?>
Expand Down

0 comments on commit 4ead2f4

Please sign in to comment.