PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/administrator/components/com_easysocial/themes/default/events/form.fields.php

https://gitlab.com/vnsoftdev/swc
PHP | 52 lines | 41 code | 1 blank | 10 comment | 3 complexity | 1e1d96ab9b466bd4a1a7e59196ccb1be MD5 | raw file
 1<?php
 2/**
 3* @package      EasySocial
 4* @copyright    Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
 5* @license      GNU/GPL, see LICENSE.php
 6* EasySocial is free software. This version may have been modified pursuant
 7* to the GNU General Public License, and as distributed it includes or
 8* is derivative of works licensed under the GNU General Public License or
 9* other free or open source software licenses.
10* See COPYRIGHT.php for copyright notices and details.
11*/
12defined( '_JEXEC' ) or die( 'Unauthorized Access' );
13?>
14<div class="tab-box tab-box-alt">
15    <div class="tabbable">
16        <ul class="nav nav-tabs nav-tabs-icons">
17            <?php $i = 0; ?>
18            <?php foreach( $steps as $step ){ ?>
19                <li class="tab-item<?php echo $i == 0 ? ' active' : '';?>" data-stepnav data-for="<?php echo $step->id; ?>">
20                    <a href="#step-<?php echo $step->id;?>" data-bs-toggle="tab">
21                        <span class="help-block">
22                            <?php echo $step->get( 'title' );?>
23                        </span>
24                    </a>
25                </li>
26                <?php $i++; ?>
27            <?php } ?>
28        </ul>
29    </div>
30
31    <div class="es-user-profile-content tab-content">
32        <div class="tab-pane active">
33        <?php $x = 0;?>
34        <?php foreach( $steps as $step ){ ?>
35            <div id="step-<?php echo $step->id;?>" class="tab-pane<?php echo $x == 0 ? ' active' : '';?>" data-profile-adminedit-fields-content data-stepcontent data-for="<?php echo $step->id; ?>">
36            <?php foreach( $step->fields as $field ) { ?>
37                <?php if( !empty( $field->output ) ) { ?>
38                <div class="row">
39                    <div class="col-md-6">
40                        <div data-profile-adminedit-fields-item data-element="<?php echo $field->element; ?>" data-fieldname="<?php echo SOCIAL_FIELDS_PREFIX . $field->id; ?>" data-id="<?php echo $field->id; ?>" data-required="<?php echo $field->required; ?>">
41                            <?php echo $field->output; ?>
42                        </div>
43                    </div>
44                </div>
45                <?php } ?>
46            <?php } ?>
47            </div>
48            <?php $x++; ?>
49        <?php } ?>
50        </div>
51    </div>
52</div>