Bug in the mainbody_top position

Well-designed restaurant Joomla template with parallax effect.
GK User
Tue Nov 25, 2014 9:01 am
If I publish something in mainbody_top position I get ">" symbol that I don't insert there....

like on this picture. I think that there is a bug in template

2014-11-25 10-57-52 Скриншот экрана.png
User avatar
Fresh Boarder

GK User
Wed Nov 26, 2014 5:04 pm
Hello,

Please open file layouts/default.php and please replace the following fragment:

Code: Select all
<?php if($this->API->modules('mainbody_top')) : ?>
                     <section id="gkMainbodyTop">
                        <?php if(isset($this->module_ids['mainbody_top'])) echo ' id="'.$this->module_ids['mainbody_top'].'"'; ?>>
                           <jdoc:include type="modules" name="mainbody_top" style="gk_style" />
                        
                     </section>
                     <?php endif; ?>   


to:

Code: Select all
<?php if($this->API->modules('mainbody_top')) : ?>
                     <section id="gkMainbodyTop">
                        <div><?php if(isset($this->module_ids['mainbody_top'])) echo ' id="'.$this->module_ids['mainbody_top'].'"'; ?>>
                           <jdoc:include type="modules" name="mainbody_top" style="gk_style" />
                        </div>
                     </section>
                     <?php endif; ?>   


We will fix it in the nearest update.
User avatar
Administrator

GK User
Wed Nov 26, 2014 8:58 pm
still have this bug....

2014-11-26 22-55-26 Скриншот экрана.png


I think that problem in this line:
Code: Select all
 <?php if(isset($this->module_ids['mainbody_top'])) echo ' id="'.$this->module_ids['mainbody_top'].'"'; ?>>

please see to the second ">" at the end of the line.
I think there is a problem
User avatar
Fresh Boarder

GK User
Wed Nov 26, 2014 9:03 pm
here is the output code from the sample above
Code: Select all
 <section id="gkMainbodyTop">
                                                                              <div>>
                                                                                 <div class="box "><div class="box-wrap"><h3 class="header"><span>wwwwwwwwwwwwww</span></h3><div class="content">

<div class="custom ">

   w   
</div>
</div></div></div>
                                                                              </div>
                                                                           </section>
User avatar
Fresh Boarder

GK User
Wed Nov 26, 2014 10:00 pm
Sorry I made a small mistake, please use the below code:

Code: Select all
<?php if($this->API->modules('mainbody_top')) : ?>
                     <section id="gkMainbodyTop">
                        <div<?php if(isset($this->module_ids['mainbody_top'])) echo ' id="'.$this->module_ids['mainbody_top'].'"'; ?>>
                           <jdoc:include type="modules" name="mainbody_top" style="gk_style" />
                        </div>
                     </section>
                     <?php endif; ?>
User avatar
Administrator


cron