Last active
November 22, 2015 16:00
-
-
Save iamrobert/35f809b7187896d60cb7 to your computer and use it in GitHub Desktop.
Show only FIELD in FLEXICONTENT MODULE eg Huge Gallery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* $caching | |
* $ordering | |
* $count | |
* $featured | |
* | |
* // Display parameters | |
* $moduleclass_sfx | |
* $layout | |
* $width | |
* $height | |
* // standard | |
* $display_title | |
* $link_title | |
* $display_date | |
* $display_text | |
* $mod_readmore | |
* $mod_use_image | |
* $mod_link_image | |
* // featured | |
* $display_title_feat | |
* $link_title_feat | |
* $display_date_feat | |
* $display_text_feat | |
* $mod_readmore_feat | |
* $mod_use_image_feat | |
* $mod_link_image_feat | |
* | |
* // Fields parameters | |
* $use_fields | |
* $display_label | |
* $fields | |
* // featured | |
* $use_fields_feat | |
* $display_label_feat | |
* $fields_feat | |
* | |
* // Custom parameters | |
* $custom1 | |
* $custom2 | |
* $custom3 | |
* $custom4 | |
* $custom5 | |
*/ | |
// no direct access | |
defined('_JEXEC') or die('Restricted access'); | |
?> | |
<div class="is-home<?php echo $moduleclass_sfx; ?>"> | |
<?php if (isset($list[$ord]['standard'])) : ?> | |
<!-- BOF standard items --> | |
<?php $rowcount = 0; ?> | |
<?php $oe_class = $rowtoggler ? 'odd' : 'even'; $n=-1; ?> | |
<?php foreach ($list[$ord]['standard'] as $item) : ?> | |
<?php | |
if ($rowcount%$item_columns_std==0) { | |
$oe_class = $oe_class=='odd' ? 'even' : 'odd'; | |
$rowtoggler = !$rowtoggler; | |
} | |
$rowcount++; | |
$n++; | |
?> | |
<?php if ($use_fields && @$item->fields && $fields) : ?> | |
<?php foreach ($item->fields as $k => $field) : ?> | |
<?php if ( $hide_label_onempty && !strlen($field->display) ) continue; ?> | |
<?php echo $field->display; ?> | |
<?php endforeach; ?> | |
<?php endif; ?> | |
<?php endforeach;?> | |
<?php endif;?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment