/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. */
  12. defined( '_JEXEC' ) or die( 'Unauthorized Access' );
  13. ?>
  14. <?php if( $forms ){ ?>
  15. <?php foreach( $forms as $form ){ ?>
  16. <div class="widget">
  17. <?php if( isset( $form->title ) ){ ?>
  18. <h3><?php echo JText::_( $form->title );?></h3>
  19. <?php } ?>
  20. <?php if( isset( $form->desc ) ){ ?>
  21. <p class="fd-small"><?php echo JText::_( $form->desc );?></p>
  22. <?php } ?>
  23. <div class="wbody wbody-padding">
  24. <?php if( isset( $form->fields ) && $form->fields ){ ?>
  25. <?php foreach( $form->fields as $field ){ ?>
  26. <div class="form-group">
  27. <label for="<?php echo $field->name;?>" class="col-md-5 control-label">
  28. <?php if( isset( $field->label ) ){ ?>
  29. <?php echo JText::_( $field->label ); ?>
  30. <?php } ?>
  31. <?php if( isset( $field->tooltip) ){ ?>
  32. <i data-placement="bottom" data-title="<?php echo JText::_( $field->label , true );?>"
  33. data-content="<?php echo JText::_( $field->tooltip , true );?>"
  34. data-es-provide="popover" class="icon-es-help pull-right ml-5"></i>
  35. <?php } ?>
  36. </label>
  37. <div class="col-md-7">
  38. <?php if( stristr( $field->type , ':/' ) !== false ){ ?>
  39. <?php echo $this->loadTemplate( $field->type , array( 'params' => $params , 'field' => $field ) ); ?>
  40. <?php } else { ?>
  41. <?php echo $this->loadTemplate( 'admin/forms/types/' . $field->type , array( 'params' => $params , 'field' => $field ) ); ?>
  42. <?php } ?>
  43. </div>
  44. </div>
  45. <?php } ?>
  46. <?php } ?>
  47. </div>
  48. </div>
  49. <?php } ?>
  50. <?php } ?>