Viewing File: /usr/local/cpanel/base/frontend/jupiter/solutions/help_panel/help_panel.component.tt
[%
USE JSON;
SET help_links_file_path = theme_magic_path('solutions/help_panel/help_panel_links.json');
SET link_hash = JSON.loadfile(help_links_file_path, null, 1);
%]
[% MACRO clean_locale_text
BLOCK;
# Strip maketext syntax from strings; it's used in our json to ensure strings are harvested for translation.
locale.makevar( text.remove('^maketext\(\'|\'\)$') );
END
-%]
<section id="help-section" class="cp-page-section">
<h2>
[% locale.maketext('Looking for something else?') %]
</h2>
<div class="cp-card">
<div class="cp-card__body">
<div class="row g-4">
[% FOREACH section IN link_hash %]
<div class="col-lg-4 col-md-6 col-sm-12">
<header class="help-panel__header">
[% clean_locale_text(text=section.header) %]
</header>
<ul class="help-panel__list">
[% FOREACH link IN section.links %]
<li class="help-panel__list-item">
<a id="[% link.id %]" class="help-panel__link" href=[% link.url %] target=[% link.id %] title="[% clean_locale_text(text=link.text) %]">
[% clean_locale_text(text=link.text) %]
</a>
</li>
[% END %]
</ul>
</div>
[% END %]
</div>
</div>
</div>
</section>
Back to Directory
File Manager