Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
Gigaparts Friend
Gigaparts
- Join date:
- February 2016
- Posts:
- 116
- Downloads:
- 309
- Uploads:
- 16
- Thanked:
- 2 times in 2 posts
July 2, 2016 at 8:51 am #946239Hello
I want to translate my site in 7 languages. I want to add a top bar like in JA megastore where i can place the language switcher, currency selector and Login.
Please advise.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 4, 2016 at 4:15 am #946476Hi
In JA Megastore, we implement a block called topbar which shows on the top of the page with elements you listed above, you can achieve that by following these steps:
-
Create a new PHP file called topbar.php in the path: ROOT/templates/ja_megastore/tpls/blocks/topbar.php
- This is snippet of code inside this new file:
<?php /** <ul> <li> <hr /> </li> <li>JA Megastore Template</li> <li> <hr /> </li> <li>Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.</li> <li>@license - Copyrighted Commercial Software</li> <li>Author: J.O.O.M Solutions Co., Ltd</li> <li>Websites: <a href="http://www.joomlart.com">http://www.joomlart.com</a> - <a href="http://www.joomlancers.com">http://www.joomlancers.com</a></li> <li>This file may not be redistributed in whole or significant part.</li> <li> <hr /> <p>*/</p> </li> </ul></li> </ul> <p>defined('_JEXEC') or die; ?></p> <!-- TOPBAR --> <p><div class="wrap t3-topbar <?php $this->_c('topbar') ?>"> <div class="container"> <div class="row"> <?php if ($this->countModules('topbar-left')) : ?> <div class="col-sm-4 hidden-xs"> <div class="topbar-left"> <jdoc:include type="modules" name="<?php $this->_p('topbar-left') ?>" /> </div> </div> <?php endif ?></p> <pre><code> <div class="col-sm-8"> <?php if ($this->countModules('topbar-right') || $this->countModules('languageswitcherload')) : ?> <div class="topbar-right text-right"> <jdoc:include type="modules" name="<?php $this->_p('topbar-right') ?>" /> <jdoc:include type="modules" name="<?php $this->_p('languageswitcherload') ?>" style="raw" /> </div> <?php endif ?> </div> </div> </div></code></pre> <p></div></p> <!-- //TOPBAR --> <p>
- And, of course, you will have to style for this block on current template you’re using. Try to use editor like Firebug to see how its styled in JA Megastore template.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
This topic contains 1 reply, has 2 voices, and was last updated by Saguaros 8 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum