Improved the style features in he advanced tap area of the module

This commit is contained in:
Llewellyn van der Merwe 2014-06-27 18:18:22 +01:00
parent 18f50efa61
commit d34279eecb
3 changed files with 30 additions and 12 deletions

View File

@ -17,6 +17,7 @@ MOD_PERGROUP_NOT_IN_GROUP="Not In Group"
MOD_PERGROUP_EXECUTION_DIRECTION="Execution Direction" MOD_PERGROUP_EXECUTION_DIRECTION="Execution Direction"
MOD_PERGROUP_UP="Up" MOD_PERGROUP_UP="Up"
MOD_PERGROUP_DOWN="Down" MOD_PERGROUP_DOWN="Down"
MOD_PERGROUP_NONE="None"
MOD_PERGROUP_BREAK="New Line" MOD_PERGROUP_BREAK="New Line"
MOD_PERGROUP_CLASS="Class [<div class="separator">]" MOD_PERGROUP_CLASS="Class [<div class="separator">]"
MOD_PERGROUP_BOOTSTRAP="Bootstrap" MOD_PERGROUP_BOOTSTRAP="Bootstrap"

View File

@ -306,10 +306,11 @@
<option value="0">MOD_PERGROUP_DOWN</option> <option value="0">MOD_PERGROUP_DOWN</option>
</field> </field>
<field name="separator" type="radio" default="0" label="MOD_PERGROUP_SEPERATOR" description=""> <field name="separator" type="radio" default="0" label="MOD_PERGROUP_SEPERATOR" description="">
<option value="0">MOD_PERGROUP_BREAK</option> <option value="0">MOD_PERGROUP_NONE</option>
<option value="1">MOD_PERGROUP_CLASS</option> <option value="1">MOD_PERGROUP_BREAK</option>
<option value="2">MOD_PERGROUP_BOOTSTRAP</option> <option value="2">MOD_PERGROUP_CLASS</option>
<option value="3">MOD_PERGROUP_DIV</option> <option value="3">MOD_PERGROUP_BOOTSTRAP</option>
<option value="4">MOD_PERGROUP_DIV</option>
</field> </field>
<field <field
name="layout" name="layout"

View File

@ -15,17 +15,33 @@ $separator_value = $params->get('separator');
?> ?>
<?php if(is_array($module->results)): ?> <?php if(is_array($module->results)): ?>
<div>
<?php $i = 0; ?> <?php $i = 0; ?>
<?php foreach($module->results as $group_id => &$group): ?> <?php foreach($module->results as $group_id => &$group): ?>
<?php if(is_array($group)): ?> <?php if(is_array($group)): ?>
<?php foreach($group as $text): ?> <?php foreach($group as $text): ?>
<?php if($counter): ?> <?php if($text): ?>
<?php echo '<br/>'; ?>
<?php if($separator_value): ?>
<?php if($separator_value == 1): ?>
<?php echo ($i) ? '<br/>' : ''; ?>
<?php else: ?>
<div<?php echo ($separator_value == 2) ? ' class="separator"' : ''; echo ($separator_value == 3) ? ' class="jumbotron"' : ''; ?>>
<?php endif; ?> <?php endif; ?>
<?php echo ($prepare_content) ? JHtml::_('content.prepare', $text) : $text; $i++; ?>
<?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?>
<!-- the main text -->
<?php echo ($prepare_content) ? JHtml::_('content.prepare', $text) : $text; ?>
<?php if($separator_value): ?>
<?php if($separator_value != 1): ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php endif ?>
<?php $i++; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>