- Posts: 129
[Closed] Customizing Category Listing layout
- Lisa Norman
- Topic Author
- Offline
- Premium Member
-
<?php defined('_JEXEC') or die('Restricted access'); ?>
<?php
$index_url = JURI::base()."index.php";
$itemid = JoomdleHelperContent::getMenuItem();
if (is_array($this->categories)) :
?>
<div width="90%" class="contentpane<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php
$modules = &JModuleHelper::getModules('joomdlecat');
foreach($modules AS $module) {
echo JModuleHelper::renderModule($module, array('style' => 'module_style'));
}
?>
<h2 style="padding-top:20px;padding-bottom:0px;font-size:2em;text-decoration:underline;">Courses Available:</h2>
<?php endif; // sub cats ?>
<?php if ((!is_array($this->categories)) || (is_array ($this->cursos))) : ?>
<?php
if (is_array ($this->cursos))
foreach ($this->cursos as $curso) : ?>
<div class="courselistentry" style="text-align:left;max-width:700px;line-height:1.6em;">
<ul>
<li class="courselist"><?php $url = JRoute::_("index.php?option=com_joomdle&view=detail&cat_id=".$curso.":".JFilterOutput::stringURLSafe($curso)."&course_id=".$curso.':'.JFilterOutput::stringURLSafe($curso)."&Itemid=$itemid"); ?>
<?php echo nl2br($curso); ?>
<br /></li>
</ul>
</div>
<?php endforeach; ?>
<?php endif; // there are courses ?>
</div>
Please Log in or Create an account to join the conversation.
- Lisa Norman
- Topic Author
- Offline
- Premium Member
-
- Posts: 129
Thank you for your wonderful component!
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
Please Log in or Create an account to join the conversation.