52 lines
1.8 KiB
PHP
52 lines
1.8 KiB
PHP
|
<?php
|
||
|
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
||
|
Vast Development Method
|
||
|
/-------------------------------------------------------------------------------------------------------/
|
||
|
|
||
|
@version 1.2.9
|
||
|
@build 30th November, 2015
|
||
|
@created 22nd October, 2015
|
||
|
@package Sermon Distributor
|
||
|
@subpackage default_preachers-list.php
|
||
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||
|
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
||
|
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
||
|
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
||
|
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
||
|
|
||
|
/------------------------------------------------------------------------------------------------------*/
|
||
|
|
||
|
// No direct access to this file
|
||
|
defined('_JEXEC') or die('Restricted access');
|
||
|
|
||
|
// build the list class
|
||
|
$style = $this->params->get('preachers_list_style');
|
||
|
switch ($style)
|
||
|
{
|
||
|
case 1:
|
||
|
// Lines
|
||
|
$listClass = ' uk-list-line';
|
||
|
break;
|
||
|
case 2:
|
||
|
// Striped
|
||
|
$listClass = ' uk-list-striped';
|
||
|
break;
|
||
|
case 3:
|
||
|
// Spaced
|
||
|
$listClass = ' uk-list-space';
|
||
|
break;
|
||
|
default:
|
||
|
// Plain
|
||
|
$listClass = '';
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
<ul class="uk-list<?php echo $listClass; ?>">
|
||
|
<?php foreach ($this->items as $item): ?>
|
||
|
<li><?php $item->params = $this->params; $item->desc = $this->escape($item->description, true, 90); echo JLayoutHelper::render('preacherslistitem', $item); ?></li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|