Current File : /home/pacjaorg/public_html/kmm/components/com_djclassifieds/layouts/customfields.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */
 
defined('_JEXEC') or die;

$fields = $displayData['fields'];
$class = $displayData['class'];

$group_opened = false;

?>

<?php foreach($fields as $f){ ?>

    <?php if(!empty($f->group_id) && !$group_opened){ ?>
        <?php $group_ids = explode(',', $f->group_id); ?>
        <?php $group_names = array(); ?>
        <?php foreach($group_ids as $group_id){ ?>
            <?php $fieldgroup = DJClassifiedsField::getFieldGroup($group_id); ?>
            <?php if($fieldgroup && $fieldgroup->show_title){ ?>
                <?php $group_names[] = JText::_($fieldgroup->name); ?>
            <?php } ?>
        <?php } ?>
        <?php if($group_names){ ?>
            <div class="group_wrapper<?php echo ' group_'.implode(' group_', $group_ids); ?>">
            <h3 class="group_name"><?php echo implode(', ', $group_names); ?></h3>
            <?php $group_opened = true; ?>
        <?php } ?>
    <?php } ?>

    <div class="<?php echo $class; ?> row_<?php echo $f->name; ?><?php echo $f->group_id ? ' group_'.implode(' group_', $group_ids) : ''; ?><?php echo $f->class ? ' '.$f->class : ''; ?>" data-id="<?php echo $f->id; ?>">
        <?php if($f->icon){ ?>
			<span class="icon"><img src="<?php echo JUri::root().$f->icon; ?>"></span>
		<?php } ?>
        <span class="<?php echo $class == 'profile_row' ? 'profile_' : '' ?>row_label"><?php echo JText::_($f->label); ?></span>
        <span class="<?php echo $class == 'profile_row' ? 'profile_' : '' ?>row_value">
            <?php echo $f->value_conv; ?>
        </span>
    </div>

    <?php $next_field = next($fields); ?>
    <?php if($group_opened && (!$next_field || $next_field->group_id != $f->group_id)){ ?>
        </div>
        <?php $group_opened = false; ?>
    <?php } ?>

<?php } ?>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!