1. acrowe
  2. Commercial Templates
  3. Saturday, 25 July 2020
  4.  Subscribe via email
Found an issue in the Jasmine Template. If you do not have anything in header-1 (or 2 module) the social icons will not show
index.php segment:

<div class="wrapper960">
<?php if ($this->countModules( 'header-1' ) || $this->countModules( 'header-2' )) : ?>
<div class="header_top">
<?php if ($this->countModules( 'header-1' )) : ?>
<div class="header-1">
<jdoc:include type="modules" name="header-1" style="mod_simple" />
</div>
<?php endif; ?>
<?php if ($this->countModules( 'header-2' )) : ?>
<div class="header-2">
<jdoc:include type="modules" name="header-2" style="mod_simple" />
</div>
<?php endif; ?>
<?php require("inc/layouts/social_icons.php"); ?>
</div>
<?php endif; ?>


Since I didn't want anything in those modules (presently) but wanted the social icons to load I updated the segment to always load the header_top and social segment:

<div class="wrapper960">
<div class="header_top">
<?php if ($this->countModules( 'header-1' ) || $this->countModules( 'header-2' )) : ?>
<?php if ($this->countModules( 'header-1' )) : ?>
<div class="header-1">
<jdoc:include type="modules" name="header-1" style="mod_simple" />
</div>
<?php endif; ?>
<?php if ($this->countModules( 'header-2' )) : ?>
<div class="header-2">
<jdoc:include type="modules" name="header-2" style="mod_simple" />
</div>
<?php endif; ?>
<?php endif; ?>
<?php require("inc/layouts/social_icons.php"); ?>
</div>


Maybe a display yes/no on the social icons settings page and then include like the modules would work instead (and be cleaner).

Just passing this along.

Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Thank you for your post and for bringing this to our attention! We have just updated the Jasmine template, resolving this issue. For details on updating your template may I suggest the following article.. https://joomla51.com/tutorials/joomla-basics/updating-your-joomla-template

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!