Lodder wrote: Yes, you can move the code outside the foreach loop.
Please Log in or Create an account to join the conversation.
<?php /** * @package JJ_Social_Slider * @author JoomJunk <admin@joomjunk.co.uk> * @copyright Copyright (C) 2011 - 2013 JoomJunk. All Rights Reserved * @license GPL v3 http://www.gnu.org/licenses/gpl-3.0.html */ // No direct access defined('_JEXEC') or die('Restricted access'); $document = JFactory::getDocument(); $document->addStyleSheet(JURI::root() . "media/mod_social_slider/css/style.css"); ?> <ul id="jj_sl_navigation"> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=125" target="_self"><span class="jj_social_text">Acoustic</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=140" target="_self"><span class="jj_social_text">Aerospace</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=132" target="_self"><span class="jj_social_text">Bio-Medical</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=129" target="_self"><span class="jj_social_text">Chemical</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=142" target="_self"><span class="jj_social_text">Computer</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=127" target="_self"><span class="jj_social_text">Electrical</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=123" target="_self"><span class="jj_social_text">Flow</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=143" target="_self"><span class="jj_social_text">Industrial</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=124" target="_self"><span class="jj_social_text">Mechanical</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=126" target="_self"><span class="jj_social_text">Optical</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php/structural" target="_self"><span class="jj_social_text">Structural</span></a></li> <li class="youtube"><a href="http://apps.atoa.com/test/index.php?Itemid=122" target="_self"><span class="jj_social_text">Thermal</span></a></li> </ul>