PageRenderTime 10ms CodeModel.GetById 6ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/administrator/components/com_easysocial/themes/default/forms/default.php

https://gitlab.com/vnsoftdev/swc
PHP | 57 lines | 40 code | 7 blank | 10 comment | 9 complexity | d18d818b4a22ddd0b09235ff6d452398 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<?php if( $forms ){ ?>
15	<?php foreach( $forms as $form ){ ?>
16		<div class="widget">
17
18			<?php if( isset( $form->title ) ){ ?>
19			<h3><?php echo JText::_( $form->title );?></h3>
20			<?php } ?>
21
22			<?php if( isset( $form->desc ) ){ ?>
23			<p class="fd-small"><?php echo JText::_( $form->desc );?></p>
24			<?php } ?>
25
26			<div class="wbody wbody-padding">
27				<?php if( isset( $form->fields ) && $form->fields ){ ?>
28					<?php foreach( $form->fields as $field ){ ?>
29					<div class="form-group">
30
31						<label for="<?php echo $field->name;?>" class="col-md-5 control-label">
32							<?php if( isset( $field->label ) ){ ?>
33							<?php echo JText::_( $field->label ); ?>
34							<?php } ?>
35
36							<?php if( isset( $field->tooltip) ){ ?>
37							<i data-placement="bottom" data-title="<?php echo JText::_( $field->label , true );?>"
38								data-content="<?php echo JText::_( $field->tooltip , true );?>"
39								data-es-provide="popover" class="icon-es-help pull-right ml-5"></i>
40							<?php } ?>
41						</label>
42
43						<div class="col-md-7">
44							<?php if( stristr( $field->type , ':/' ) !== false ){ ?>
45								<?php echo $this->loadTemplate( $field->type , array( 'params' => $params , 'field' => $field ) ); ?>
46							<?php } else { ?>
47								<?php echo $this->loadTemplate( 'admin/forms/types/' . $field->type , array( 'params' => $params , 'field' => $field ) ); ?>
48							<?php } ?>
49						</div>
50					</div>
51					<?php } ?>
52				<?php } ?>
53
54			</div>
55		</div>
56	<?php } ?>
57<?php } ?>