Файловый менеджер - Редактировать - /var/www/rustam/data/www/xn--116-5cdks9aiyd3akc.xn--p1ai/1fc41/layouts.tar
Назад
joomla/modal/footer.php 0000666 00000003725 15166307365 0011157 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ------------------ * @param string $selector Unique DOM identifier for the modal. CSS id without # * @param array $params Modal parameters. Default supported parameters: * - title string The modal title * - backdrop mixed A boolean select if a modal-backdrop element should be included (default = true) * The string 'static' includes a backdrop which doesn't close the modal on click. * - keyboard boolean Closes the modal when escape key is pressed (default = true) * - closeButton boolean Display modal close button (default = true) * - animation boolean Fade in from the top of the page (default = true) * - footer string Optional markup for the modal footer * - url string URL of a resource to be inserted as an <iframe> inside the modal body * - height string height of the <iframe> containing the remote resource * - width string width of the <iframe> containing the remote resource * - bodyHeight int Optional height of the modal body in viewport units (vh) * - modalWidth int Optional width of the modal in viewport units (vh) * @param string $body Markup for the modal body. Appended after the <iframe> if the URL option is set * */ ?> <div class="modal-footer"> <?php echo $params['footer']; ?> </div> joomla/modal/body.php 0000666 00000004276 15166307365 0010620 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ------------------ * @param string $selector Unique DOM identifier for the modal. CSS id without # * @param array $params Modal parameters. Default supported parameters: * - title string The modal title * - backdrop mixed A boolean select if a modal-backdrop element should be included (default = true) * The string 'static' includes a backdrop which doesn't close the modal on click. * - keyboard boolean Closes the modal when escape key is pressed (default = true) * - closeButton boolean Display modal close button (default = true) * - animation boolean Fade in from the top of the page (default = true) * - footer string Optional markup for the modal footer * - url string URL of a resource to be inserted as an <iframe> inside the modal body * - height string height of the <iframe> containing the remote resource * - width string width of the <iframe> containing the remote resource * - bodyHeight int Optional height of the modal body in viewport units (vh) * - modalWidth int Optional width of the modal in viewport units (vh) * @param string $body Markup for the modal body. Appended after the <iframe> if the URL option is set * */ $bodyClass = 'modal-body'; $bodyHeight = isset($params['bodyHeight']) ? round((int) $params['bodyHeight'], -1) : ''; if ($bodyHeight && $bodyHeight >= 20 && $bodyHeight < 90) { $bodyClass .= ' jviewport-height' . $bodyHeight; } ?> <div class="<?php echo $bodyClass; ?>"> <?php echo $body; ?> </div> joomla/modal/iframe.php 0000666 00000005076 15166307365 0011125 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; use Joomla\Utilities\ArrayHelper; extract($displayData); /** * Layout variables * ------------------ * @param string $selector Unique DOM identifier for the modal. CSS id without # * @param array $params Modal parameters. Default supported parameters: * - title string The modal title * - backdrop mixed A boolean select if a modal-backdrop element should be included (default = true) * The string 'static' includes a backdrop which doesn't close the modal on click. * - keyboard boolean Closes the modal when escape key is pressed (default = true) * - closeButton boolean Display modal close button (default = true) * - animation boolean Fade in from the top of the page (default = true) * - footer string Optional markup for the modal footer * - url string URL of a resource to be inserted as an <iframe> inside the modal body * - height string height of the <iframe> containing the remote resource * - width string width of the <iframe> containing the remote resource * - bodyHeight int Optional height of the modal body in viewport units (vh) * - modalWidth int Optional width of the modal in viewport units (vh) * @param string $body Markup for the modal body. Appended after the <iframe> if the URL option is set * */ $iframeClass = 'iframe'; $bodyHeight = isset($params['bodyHeight']) ? round((int) $params['bodyHeight'], -1) : ''; if ($bodyHeight && $bodyHeight >= 20 && $bodyHeight < 90) { $iframeClass .= ' jviewport-height' . $bodyHeight; } $iframeAttributes = array( 'class' => $iframeClass, 'src' => $params['url'] ); if (isset($params['title'])) { $iframeAttributes['name'] = addslashes($params['title']); } if (isset($params['height'])) { $iframeAttributes['height'] = $params['height']; } if (isset($params['width'])) { $iframeAttributes['width'] = $params['width']; } ?> <iframe <?php echo ArrayHelper::toString($iframeAttributes); ?>></iframe> joomla/modal/main.php 0000666 00000016711 15166307365 0010604 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; use Joomla\Utilities\ArrayHelper; // Load bootstrap-tooltip-extended plugin for additional tooltip positions in modal JHtml::_('bootstrap.tooltipExtended'); extract($displayData); /** * Layout variables * ------------------ * @param string $selector Unique DOM identifier for the modal. CSS id without # * @param array $params Modal parameters. Default supported parameters: * - title string The modal title * - backdrop mixed A boolean select if a modal-backdrop element should be included (default = true) * The string 'static' includes a backdrop which doesn't close the modal on click. * - keyboard boolean Closes the modal when escape key is pressed (default = true) * - closeButton boolean Display modal close button (default = true) * - animation boolean Fade in from the top of the page (default = true) * - url string URL of a resource to be inserted as an <iframe> inside the modal body * - height string height of the <iframe> containing the remote resource * - width string width of the <iframe> containing the remote resource * - bodyHeight int Optional height of the modal body in viewport units (vh) * - modalWidth int Optional width of the modal in viewport units (vh) * - footer string Optional markup for the modal footer * @param string $body Markup for the modal body. Appended after the <iframe> if the URL option is set * */ $modalClasses = array('modal', 'hide'); if (!isset($params['animation']) || $params['animation']) { $modalClasses[] = 'fade'; } $modalWidth = isset($params['modalWidth']) ? round((int) $params['modalWidth'], -1) : ''; if ($modalWidth && $modalWidth > 0 && $modalWidth <= 100) { $modalClasses[] = 'jviewport-width' . $modalWidth; } $modalAttributes = array( 'tabindex' => '-1', 'class' => implode(' ', $modalClasses) ); if (isset($params['backdrop'])) { $modalAttributes['data-backdrop'] = (is_bool($params['backdrop']) ? ($params['backdrop'] ? 'true' : 'false') : $params['backdrop']); } if (isset($params['keyboard'])) { $modalAttributes['data-keyboard'] = (is_bool($params['keyboard']) ? ($params['keyboard'] ? 'true' : 'false') : 'true'); } /** * These lines below are for disabling scrolling of parent window. * $('body').addClass('modal-open'); * $('body').removeClass('modal-open') * * Scrolling inside bootstrap modals on small screens (adapt to window viewport and avoid modal off screen). * - max-height .modal-body Max-height for the modal body * When height of the modal is too high for the window viewport height. * - max-height .iframe Max-height for the iframe (Deducting the padding of the modal-body) * When URL option is set and height of the iframe is higher than max-height of the modal body. * * Fix iOS scrolling inside bootstrap modals * - overflow-y .modal-body When max-height is set for modal-body * * Specific hack for Bootstrap 2.3.x */ $script[] = "jQuery(document).ready(function($) {"; $script[] = " $('#" . $selector . "').on('show.bs.modal', function() {"; $script[] = " $('body').addClass('modal-open');"; if (isset($params['url'])) { $iframeHtml = JLayoutHelper::render('joomla.modal.iframe', $displayData); // Script for destroying and reloading the iframe $script[] = " var modalBody = $(this).find('.modal-body');"; $script[] = " modalBody.find('iframe').remove();"; $script[] = " modalBody.prepend('" . trim($iframeHtml) . "');"; } else { // Set modalTooltip container to modal ID (selector), and placement to top-left if no data attribute (bootstrap-tooltip-extended.js) $script[] = " $('.modalTooltip').each(function(){;"; $script[] = " var attr = $(this).attr('data-placement');"; $script[] = " if ( attr === undefined || attr === false ) $(this).attr('data-placement', 'auto-dir top-left')"; $script[] = " });"; $script[] = " $('.modalTooltip').tooltip({'html': true, 'container': '#" . $selector . "'});"; } // Adapt modal body max-height to window viewport if needed, when the modal has been made visible to the user. $script[] = " }).on('shown.bs.modal', function() {"; // Get height of the modal elements. $script[] = " var modalHeight = $('div.modal:visible').outerHeight(true),"; $script[] = " modalHeaderHeight = $('div.modal-header:visible').outerHeight(true),"; $script[] = " modalBodyHeightOuter = $('div.modal-body:visible').outerHeight(true),"; $script[] = " modalBodyHeight = $('div.modal-body:visible').height(),"; $script[] = " modalFooterHeight = $('div.modal-footer:visible').outerHeight(true),"; // Get padding top (jQuery position().top not working on iOS devices and webkit browsers, so use of Javascript instead) $script[] = " padding = document.getElementById('" . $selector . "').offsetTop,"; // Calculate max-height of the modal, adapted to window viewport height. $script[] = " maxModalHeight = ($(window).height()-(padding*2)),"; // Calculate max-height for modal-body. $script[] = " modalBodyPadding = (modalBodyHeightOuter-modalBodyHeight),"; $script[] = " maxModalBodyHeight = maxModalHeight-(modalHeaderHeight+modalFooterHeight+modalBodyPadding);"; if (isset($params['url'])) { // Set max-height for iframe if needed, to adapt to viewport height. $script[] = " var iframeHeight = $('.iframe').height();"; $script[] = " if (iframeHeight > maxModalBodyHeight){;"; $script[] = " $('.modal-body').css({'max-height': maxModalBodyHeight, 'overflow-y': 'auto'});"; $script[] = " $('.iframe').css('max-height', maxModalBodyHeight-modalBodyPadding);"; $script[] = " }"; } else { // Set max-height for modal-body if needed, to adapt to viewport height. $script[] = " if (modalHeight > maxModalHeight){;"; $script[] = " $('.modal-body').css({'max-height': maxModalBodyHeight, 'overflow-y': 'auto'});"; $script[] = " }"; } $script[] = " }).on('hide.bs.modal', function () {"; $script[] = " $('body').removeClass('modal-open');"; $script[] = " $('.modal-body').css({'max-height': 'initial', 'overflow-y': 'initial'});"; $script[] = " $('.modalTooltip').tooltip('destroy');"; $script[] = " });"; $script[] = "});"; JFactory::getDocument()->addScriptDeclaration(implode("\n", $script)); ?> <div id="<?php echo $selector; ?>" <?php echo ArrayHelper::toString($modalAttributes); ?>> <?php // Header if (!isset($params['closeButton']) || isset($params['title']) || $params['closeButton']) { echo JLayoutHelper::render('joomla.modal.header', $displayData); } // Body echo JLayoutHelper::render('joomla.modal.body', $displayData); // Footer if (isset($params['footer'])) { echo JLayoutHelper::render('joomla.modal.footer', $displayData); } ?> </div> joomla/modal/header.php 0000666 00000004305 15166307365 0011104 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ------------------ * @param string $selector Unique DOM identifier for the modal. CSS id without # * @param array $params Modal parameters. Default supported parameters: * - title string The modal title * - backdrop mixed A boolean select if a modal-backdrop element should be included (default = true) * The string 'static' includes a backdrop which doesn't close the modal on click. * - keyboard boolean Closes the modal when escape key is pressed (default = true) * - closeButton boolean Display modal close button (default = true) * - animation boolean Fade in from the top of the page (default = true) * - footer string Optional markup for the modal footer * - url string URL of a resource to be inserted as an <iframe> inside the modal body * - height string height of the <iframe> containing the remote resource * - width string width of the <iframe> containing the remote resource * - bodyHeight int Optional height of the modal body in viewport units (vh) * - modalWidth int Optional width of the modal in viewport units (vh) * @param string $body Markup for the modal body. Appended after the <iframe> if the URL option is set * */ ?> <div class="modal-header"> <?php if (!isset($params['closeButton']) || $params['closeButton']) : ?> <button type="button" class="close novalidate" data-dismiss="modal">×</button> <?php endif; ?> <?php if (isset($params['title'])) : ?> <h3><?php echo $params['title']; ?></h3> <?php endif; ?> </div> joomla/quickicons/icon.php 0000666 00000002003 15166307365 0011651 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; $id = empty($displayData['id']) ? '' : (' id="' . $displayData['id'] . '"'); $target = empty($displayData['target']) ? '' : (' target="' . $displayData['target'] . '"'); $onclick = empty($displayData['onclick']) ? '' : (' onclick="' . $displayData['onclick'] . '"'); $title = empty($displayData['title']) ? '' : (' title="' . $this->escape($displayData['title']) . '"'); $text = empty($displayData['text']) ? '' : ('<span>' . $displayData['text'] . '</span>') ?> <div class="row-fluid"<?php echo $id; ?>> <div class="span12"> <a href="<?php echo $displayData['link']; ?>"<?php echo $target . $onclick . $title; ?>> <span class="icon-<?php echo $displayData['image']; ?>" aria-hidden="true"></span> <?php echo $text; ?> </a> </div> </div> joomla/editors/buttons.php 0000666 00000001117 15166307365 0011725 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; $buttons = $displayData; ?> <div id="editor-xtd-buttons" class="btn-toolbar pull-left" role="toolbar" aria-label="<?php echo JText::_('JTOOLBAR'); ?>"> <?php if ($buttons) : ?> <?php foreach ($buttons as $button) : ?> <?php echo $this->sublayout('button', $button); ?> <?php endforeach; ?> <?php endif; ?> </div> joomla/editors/buttons/button.php 0000666 00000002106 15166307365 0013237 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; $button = $displayData; ?> <?php if ($button->get('name')) : ?> <?php $class = $button->get('class') ?: null; $class .= $button->get('modal') ? ' modal-button' : null; $href = $button->get('link') ? ' href="' . JUri::base() . $button->get('link') . '"' : null; $onclick = $button->get('onclick') ? ' onclick="' . $button->get('onclick') . '"' : ''; $title = $button->get('title') ?: $button->get('text'); // Load modal popup behavior if ($button->get('modal')) { JHtml::_('behavior.modal', 'a.modal-button'); } ?> <a class="<?php echo $class; ?>" title="<?php echo $title; ?>" <?php echo $href, $onclick; ?> rel="<?php echo $button->get('options'); ?>"> <span class="icon-<?php echo $button->get('name'); ?>" aria-hidden="true"></span> <?php echo $button->get('text'); ?> </a> <?php endif; joomla/system/message.php 0000666 00000002006 15166307365 0011524 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; $msgList = $displayData['msgList']; ?> <div id="system-message-container"> <?php if (is_array($msgList) && !empty($msgList)) : ?> <div id="system-message"> <?php foreach ($msgList as $type => $msgs) : ?> <div class="alert alert-<?php echo $type; ?>"> <?php // This requires JS so we should add it through JS. Progressive enhancement and stuff. ?> <a class="close" data-dismiss="alert">×</a> <?php if (!empty($msgs)) : ?> <h4 class="alert-heading"><?php echo JText::_($type); ?></h4> <div> <?php foreach ($msgs as $msg) : ?> <div class="alert-message"><?php echo $msg; ?></div> <?php endforeach; ?> </div> <?php endif; ?> </div> <?php endforeach; ?> </div> <?php endif; ?> </div> joomla/form/renderlabel.php 0000666 00000003173 15166307365 0012004 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * --------------------- * $text : (string) The label text * $description : (string) An optional description to use in a tooltip * $for : (string) The id of the input this label is for * $required : (boolean) True if a required field * $classes : (array) A list of classes * $position : (string) The tooltip position. Bottom for alias */ $classes = array_filter((array) $classes); $id = $for . '-lbl'; $title = ''; if (!empty($description)) { if ($text && $text !== $description) { JHtml::_('bootstrap.popover'); $classes[] = 'hasPopover'; $title = ' title="' . htmlspecialchars(trim($text, ':')) . '"' . ' data-content="'. htmlspecialchars($description) . '"'; if (!$position && JFactory::getLanguage()->isRtl()) { $position = ' data-placement="left" '; } } else { JHtml::_('bootstrap.tooltip'); $classes[] = 'hasTooltip'; $title = ' title="' . JHtml::_('tooltipText', trim($text, ':'), $description, 0) . '"'; } } if ($required) { $classes[] = 'required'; } ?> <label id="<?php echo $id; ?>" for="<?php echo $for; ?>"<?php if (!empty($classes)) echo ' class="' . implode(' ', $classes) . '"'; ?><?php echo $title; ?><?php echo $position; ?>> <?php echo $text; ?><?php if ($required) : ?><span class="star"> *</span><?php endif; ?> </label> joomla/form/field/number.php 0000666 00000006764 15166307365 0012111 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var array $spellcheck Options available for this field. * @var string $accept File types that are accepted. */ $autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'; $autocomplete = $autocomplete == ' autocomplete="on"' ? '' : $autocomplete; $attributes = array( !empty($class) ? 'class="' . $class . '"' : '', !empty($size) ? 'size="' . $size . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', !empty($onchange) ? 'onchange="' . $onchange . '"' : '', isset($max) ? 'max="' . $max . '"' : '', !empty($step) ? 'step="' . $step . '"' : '', isset($min) ? 'min="' . $min . '"' : '', $required ? 'required aria-required="true"' : '', $autocomplete, $autofocus ? 'autofocus' : '' ); if (is_numeric($value)) { $value = (float) $value; } else { $value = ''; $value = ($required && isset($min)) ? $min : $value; } // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); ?> <input type="number" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> joomla/form/field/hidden.php 0000666 00000005000 15166307365 0012032 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. */ // Initialize some field attributes. $class = !empty($class) ? ' class="' . $class . '"' : ''; $disabled = $disabled ? ' disabled' : ''; $onchange = $onchange ? ' onchange="' . $onchange . '"' : ''; ?> <input type="hidden" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>"<?php echo $class, $disabled, $onchange; ?> /> joomla/form/field/text.php 0000666 00000007426 15166307365 0011601 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. */ // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); $list = ''; if ($options) { $list = 'list="' . $id . '_datalist"'; } $autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'; $autocomplete = $autocomplete === ' autocomplete="on"' ? '' : $autocomplete; $attributes = array( !empty($class) ? 'class="' . $class . '"' : '', !empty($size) ? 'size="' . $size . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', $list, strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', $onchange ? ' onchange="' . $onchange . '"' : '', !empty($maxLength) ? $maxLength : '', $required ? 'required aria-required="true"' : '', $autocomplete, $autofocus ? ' autofocus' : '', $spellcheck ? '' : 'spellcheck="false"', !empty($inputmode) ? 'inputmode="' . $inputmode . '"' : '', !empty($pattern) ? 'pattern="' . $pattern . '"' : '', ); ?> <input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" <?php echo $dirname; ?> value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> <?php if ($options) : ?> <datalist id="<?php echo $id; ?>_datalist"> <?php foreach ($options as $option) : ?> <?php if (!$option->value) : ?> <?php continue; ?> <?php endif; ?> <option value="<?php echo $option->value; ?>"><?php echo $option->text; ?></option> <?php endforeach; ?> </datalist> <?php endif; ?> joomla/form/field/moduleorder.php 0000666 00000006260 15166307365 0013131 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var array $spellcheck Options available for this field. * @var string $accept File types that are accepted. */ $attr = ''; // Initialize some field attributes. $attr .= !empty($class) ? ' class="module-ajax-ordering ' . $class . '"' : 'class="module-ajax-ordering"'; $attr .= $disabled ? ' disabled' : ''; $attr .= !empty($size) ? ' size="' . $size . '"' : ''; // Initialize JavaScript field attributes. $attr .= !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; // Including fallback code for HTML5 non supported browsers. JHtml::_('behavior.core'); JHtml::_('jquery.framework'); JHtml::_('script', 'system/moduleorder.js', array('version' => 'auto', 'relative' => true)); ?> <div id="parent_<?php echo $id; ?>" <?php echo $attr; ?> data-url="<?php echo 'index.php?option=com_modules&task=module.orderPosition&' . $token; ?>" data-element="<?php echo 'parent_' . $id; ?>" data-ordering="<?php echo $ordering; ?>" data-position-element="<?php echo $element; ?>" data-client-id="<?php echo $clientId; ?>" data-name="<?php echo $name; ?>"></div> joomla/form/field/calendar.php 0000666 00000013663 15166307365 0012366 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; use Joomla\Utilities\ArrayHelper; extract($displayData); // Get some system objects. $document = JFactory::getDocument(); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * * Calendar Specific * @var string $localesPath The relative path for the locale file * @var string $helperPath The relative path for the helper file * @var string $minYear The minimum year, that will be subtracted/added to current year * @var string $maxYear The maximum year, that will be subtracted/added to current year * @var integer $todaybutton The today button * @var integer $weeknumbers The week numbers display * @var integer $showtime The time selector display * @var integer $filltable The previous/next month filling * @var integer $timeformat The time format * @var integer $singleheader Display different header row for month/year * @var integer $direction The document direction */ $inputvalue = ''; // Build the attributes array. $attributes = array(); empty($size) ? null : $attributes['size'] = $size; empty($maxlength) ? null : $attributes['maxlength'] = ' maxlength="' . $maxLength . '"'; empty($class) ? null : $attributes['class'] = $class; !$readonly ? null : $attributes['readonly'] = 'readonly'; !$disabled ? null : $attributes['disabled'] = 'disabled'; empty($onchange) ? null : $attributes['onchange'] = $onchange; if ($required) { $attributes['required'] = ''; $attributes['aria-required'] = 'true'; } // Handle the special case for "now". if (strtoupper($value) == 'NOW') { $value = JFactory::getDate()->format('Y-m-d H:i:s'); } $readonly = isset($attributes['readonly']) && $attributes['readonly'] == 'readonly'; $disabled = isset($attributes['disabled']) && $attributes['disabled'] == 'disabled'; if (is_array($attributes)) { $attributes = ArrayHelper::toString($attributes); } $cssFileExt = ($direction === 'rtl') ? '-rtl.css' : '.css'; // Load polyfills for older IE JHtml::_('behavior.polyfill', array('event', 'classlist', 'map'), 'lte IE 11'); // The static assets for the calendar JHtml::_('script', $localesPath, false, true, false, false, true); JHtml::_('script', $helperPath, false, true, false, false, true); JHtml::_('script', 'system/fields/calendar.min.js', false, true, false, false, true); JHtml::_('stylesheet', 'system/fields/calendar' . $cssFileExt, array(), true); ?> <div class="field-calendar"> <?php if (!$readonly && !$disabled) : ?> <div class="input-append"> <?php endif; ?> <input type="text" id="<?php echo $id; ?>" name="<?php echo $name; ?>" value="<?php echo htmlspecialchars(($value !== '0000-00-00 00:00:00') ? $value : '', ENT_COMPAT, 'UTF-8'); ?>" <?php echo $attributes; ?> <?php echo !empty($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : ''; ?> data-alt-value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" autocomplete="off"/> <button type="button" class="<?php echo ($readonly || $disabled) ? 'hidden ' : ''; ?>btn btn-secondary" id="<?php echo $id; ?>_btn" data-inputfield="<?php echo $id; ?>" data-dayformat="<?php echo $format; ?>" data-button="<?php echo $id; ?>_btn" data-firstday="<?php echo JFactory::getLanguage()->getFirstDay(); ?>" data-weekend="<?php echo JFactory::getLanguage()->getWeekEnd(); ?>" data-today-btn="<?php echo $todaybutton; ?>" data-week-numbers="<?php echo $weeknumbers; ?>" data-show-time="<?php echo $showtime; ?>" data-show-others="<?php echo $filltable; ?>" data-time-24="<?php echo $timeformat; ?>" data-only-months-nav="<?php echo $singleheader; ?>" <?php echo !empty($minYear) ? 'data-min-year="' . $minYear . '"' : ''; ?> <?php echo !empty($maxYear) ? 'data-max-year="' . $maxYear . '"' : ''; ?> title="<?php echo JText::_('JLIB_HTML_BEHAVIOR_OPEN_CALENDAR'); ?>" ><span class="icon-calendar" aria-hidden="true"></span></button> <?php if (!$readonly && !$disabled) : ?> </div> <?php endif; ?> </div> joomla/form/field/subform/default.php 0000666 00000002313 15166307365 0013704 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $tmpl The Empty form for template * @var array $forms Array of JForm instances for render the rows * @var bool $multiple The multiple state for the form field * @var int $min Count of minimum repeating in multiple mode * @var int $max Count of maximum repeating in multiple mode * @var string $fieldname The field name * @var string $control The forms control * @var string $label The field label * @var string $description The field description * @var array $buttons Array of the buttons that will be rendered * @var bool $groupByFieldset Whether group the subform fields by it`s fieldset */ extract($displayData); $form = $forms[0]; ?> <div class="subform-wrapper"> <?php foreach ($form->getGroup('') as $field) : ?> <?php echo $field->renderField(); ?> <?php endforeach; ?> </div> joomla/form/field/subform/repeatable.php 0000666 00000004706 15166307365 0014374 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $tmpl The Empty form for template * @var array $forms Array of JForm instances for render the rows * @var bool $multiple The multiple state for the form field * @var int $min Count of minimum repeating in multiple mode * @var int $max Count of maximum repeating in multiple mode * @var string $fieldname The field name * @var string $control The forms control * @var string $label The field label * @var string $description The field description * @var array $buttons Array of the buttons that will be rendered * @var bool $groupByFieldset Whether group the subform fields by it`s fieldset */ extract($displayData); // Add script if ($multiple) { JHtml::_('jquery.ui', array('core', 'sortable')); JHtml::_('script', 'system/subform-repeatable.js', array('version' => 'auto', 'relative' => true)); } $sublayout = empty($groupByFieldset) ? 'section' : 'section-byfieldsets'; ?> <div class="row-fluid"> <div class="subform-repeatable-wrapper subform-layout"> <div class="subform-repeatable" data-bt-add="a.group-add" data-bt-remove="a.group-remove" data-bt-move="a.group-move" data-repeatable-element="div.subform-repeatable-group" data-minimum="<?php echo $min; ?>" data-maximum="<?php echo $max; ?>"> <?php if (!empty($buttons['add'])) : ?> <div class="btn-toolbar"> <div class="btn-group"> <a class="group-add btn btn-mini button btn-success" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>"><span class="icon-plus" aria-hidden="true"></span> </a> </div> </div> <?php endif; ?> <?php foreach ($forms as $k => $form) : echo $this->sublayout($sublayout, array('form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons)); endforeach; ?> <?php if ($multiple) : ?> <script type="text/subform-repeatable-template-section" class="subform-repeatable-template-section"> <?php echo $this->sublayout($sublayout, array('form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons)); ?> </script> <?php endif; ?> </div> </div> </div> joomla/form/field/subform/repeatable-table/section.php 0000666 00000003210 15166307365 0017112 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $form The form instance for render the section * @var string $basegroup The base group name * @var string $group Current group name * @var array $buttons Array of the buttons that will be rendered */ extract($displayData); ?> <tr class="subform-repeatable-group" data-base-name="<?php echo $basegroup; ?>" data-group="<?php echo $group; ?>"> <?php foreach ($form->getGroup('') as $field) : ?> <td data-column="<?php echo strip_tags($field->label); ?>"> <?php echo $field->renderField(array('hiddenLabel' => true)); ?> </td> <?php endforeach; ?> <?php if (!empty($buttons)) : ?> <td> <div class="btn-group"> <?php if (!empty($buttons['add'])) : ?><a class="group-add btn btn-mini button btn-success" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>"><span class="icon-plus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['remove'])) : ?><a class="group-remove btn btn-mini button btn-danger" aria-label="<?php echo JText::_('JGLOBAL_FIELD_REMOVE'); ?>"><span class="icon-minus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['move'])) : ?><a class="group-move btn btn-mini button btn-primary" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"><span class="icon-move" aria-hidden="true"></span> </a><?php endif; ?> </div> </td> <?php endif; ?> </tr> joomla/form/field/subform/repeatable-table/section-byfieldsets.php 0000666 00000003340 15166307365 0021431 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $form The form instance for render the section * @var string $basegroup The base group name * @var string $group Current group name * @var array $buttons Array of the buttons that will be rendered */ extract($displayData); ?> <tr class="subform-repeatable-group" data-base-name="<?php echo $basegroup; ?>" data-group="<?php echo $group; ?>"> <?php foreach ($form->getFieldsets() as $fieldset) : ?> <td class="<?php if (!empty($fieldset->class)){ echo $fieldset->class; } ?>"> <?php foreach ($form->getFieldset($fieldset->name) as $field) : ?> <?php echo $field->renderField(); ?> <?php endforeach; ?> </td> <?php endforeach; ?> <?php if (!empty($buttons)) : ?> <td> <div class="btn-group"> <?php if (!empty($buttons['add'])) : ?><a class="group-add btn btn-mini button btn-success" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>"><span class="icon-plus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['remove'])) : ?><a class="group-remove btn btn-mini button btn-danger" aria-label="<?php echo JText::_('JGLOBAL_FIELD_REMOVE'); ?>"><span class="icon-minus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['move'])) : ?><a class="group-move btn btn-mini button btn-primary" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"><span class="icon-move" aria-hidden="true"></span> </a><?php endif; ?> </div> </td> <?php endif; ?> </tr> joomla/form/field/subform/repeatable/section.php 0000666 00000003111 15166307365 0016025 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $form The form instance for render the section * @var string $basegroup The base group name * @var string $group Current group name * @var array $buttons Array of the buttons that will be rendered */ extract($displayData); ?> <div class="subform-repeatable-group" data-base-name="<?php echo $basegroup; ?>" data-group="<?php echo $group; ?>"> <?php if (!empty($buttons)) : ?> <div class="btn-toolbar text-right"> <div class="btn-group"> <?php if (!empty($buttons['add'])) : ?><a class="group-add btn btn-mini button btn-success" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>"><span class="icon-plus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['remove'])) : ?><a class="group-remove btn btn-mini button btn-danger" aria-label="<?php echo JText::_('JGLOBAL_FIELD_REMOVE'); ?>"><span class="icon-minus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['move'])) : ?><a class="group-move btn btn-mini button btn-primary" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"><span class="icon-move" aria-hidden="true"></span> </a><?php endif; ?> </div> </div> <?php endif; ?> <?php foreach ($form->getGroup('') as $field) : ?> <?php echo $field->renderField(); ?> <?php endforeach; ?> </div> joomla/form/field/subform/repeatable/section-byfieldsets.php 0000666 00000003634 15166307365 0020352 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $form The form instance for render the section * @var string $basegroup The base group name * @var string $group Current group name * @var array $buttons Array of the buttons that will be rendered */ extract($displayData); ?> <div class="subform-repeatable-group" data-base-name="<?php echo $basegroup; ?>" data-group="<?php echo $group; ?>"> <?php if (!empty($buttons)) : ?> <div class="btn-toolbar text-right"> <div class="btn-group"> <?php if (!empty($buttons['add'])) : ?><a class="group-add btn btn-mini button btn-success" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>"><span class="icon-plus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['remove'])) : ?><a class="group-remove btn btn-mini button btn-danger" aria-label="<?php echo JText::_('JGLOBAL_FIELD_REMOVE'); ?>"><span class="icon-minus" aria-hidden="true"></span> </a><?php endif; ?> <?php if (!empty($buttons['move'])) : ?><a class="group-move btn btn-mini button btn-primary" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"><span class="icon-move" aria-hidden="true"></span> </a><?php endif; ?> </div> </div> <?php endif; ?> <div class="row-fluid"> <?php foreach ($form->getFieldsets() as $fieldset) : ?> <fieldset class="<?php if (!empty($fieldset->class)){ echo $fieldset->class; } ?>"> <?php if (!empty($fieldset->label)) : ?> <legend><?php echo JText::_($fieldset->label); ?></legend> <?php endif; ?> <?php foreach ($form->getFieldset($fieldset->name) as $field) : ?> <?php echo $field->renderField(); ?> <?php endforeach; ?> </fieldset> <?php endforeach; ?> </div> </div> joomla/form/field/subform/repeatable-table.php 0000666 00000007041 15166307365 0015454 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Make thing clear * * @var JForm $tmpl The Empty form for template * @var array $forms Array of JForm instances for render the rows * @var bool $multiple The multiple state for the form field * @var int $min Count of minimum repeating in multiple mode * @var int $max Count of maximum repeating in multiple mode * @var string $fieldname The field name * @var string $control The forms control * @var string $label The field label * @var string $description The field description * @var array $buttons Array of the buttons that will be rendered * @var bool $groupByFieldset Whether group the subform fields by it`s fieldset */ extract($displayData); // Add script if ($multiple) { JHtml::_('jquery.ui', array('core', 'sortable')); JHtml::_('script', 'system/subform-repeatable.js', array('version' => 'auto', 'relative' => true)); } // Build heading $table_head = ''; if (!empty($groupByFieldset)) { foreach ($tmpl->getFieldsets() as $fieldset) { $table_head .= '<th>' . JText::_($fieldset->label); if (!empty($fieldset->description)) { $table_head .= '<br /><small style="font-weight:normal">' . JText::_($fieldset->description) . '</small>'; } $table_head .= '</th>'; } $sublayout = 'section-byfieldsets'; } else { foreach ($tmpl->getGroup('') as $field) { $table_head .= '<th>' . strip_tags($field->label); $table_head .= '<br /><small style="font-weight:normal">' . JText::_($field->description) . '</small>'; $table_head .= '</th>'; } $sublayout = 'section'; // Label will not be shown for sections layout, so reset the margin left JFactory::getDocument()->addStyleDeclaration( '.subform-table-sublayout-section .controls { margin-left: 0px }' ); } ?> <div class="row-fluid"> <div class="subform-repeatable-wrapper subform-table-layout subform-table-sublayout-<?php echo $sublayout; ?>"> <div class="subform-repeatable" data-bt-add="a.group-add" data-bt-remove="a.group-remove" data-bt-move="a.group-move" data-repeatable-element="tr.subform-repeatable-group" data-rows-container="tbody" data-minimum="<?php echo $min; ?>" data-maximum="<?php echo $max; ?>"> <table class="adminlist table table-striped table-bordered"> <thead> <tr> <?php echo $table_head; ?> <?php if (!empty($buttons)) : ?> <th style="width:8%;"> <?php if (!empty($buttons['add'])) : ?> <div class="btn-group"> <a class="group-add btn btn-mini button btn-success" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>"><span class="icon-plus" aria-hidden="true"></span> </a> </div> <?php endif; ?> </th> <?php endif; ?> </tr> </thead> <tbody> <?php foreach ($forms as $k => $form) : echo $this->sublayout($sublayout, array('form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons)); endforeach; ?> </tbody> </table> <?php if ($multiple) : ?> <script type="text/subform-repeatable-template-section" class="subform-repeatable-template-section"> <?php echo $this->sublayout($sublayout, array('form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons)); ?> </script> <?php endif; ?> </div> </div> </div> joomla/form/field/meter.php 0000666 00000006366 15166307365 0011733 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. * @var string $animated Is it animated. * @var string $active Is it active. * @var string $min The minimum value. * @var string $max The maximum value. * @var string $step The step value. */ // Initialize some field attributes. $class = 'progress ' . $class; $class .= $animated ? ' progress-striped' : ''; $class .= $active ? ' active' : ''; $class = 'class="' . $class . '"'; $value = (float) $value; $value = $value < $min ? $min : $value; $value = $value > $max ? $max : $value; $data = ''; $data .= 'data-max="' . $max . '"'; $data .= ' data-min="' . $min . '"'; $data .= ' data-step="' . $step . '"'; $data .= ' data-value="' . $value . '"'; $attributes = array( $class, !empty($width) ? ' style="width:' . $width . ';"' : '', $data ); $value = ((float) ($value - $min) * 100) / ($max - $min); ?> <div <?php echo implode(' ', $attributes); ?> > <div class="bar" style="width: <?php echo (string) $value; ?>%;<?php echo !empty($color) ? ' background-color:' . $color . ';' : ''; ?>"></div> </div> joomla/form/field/contenthistory.php 0000666 00000001377 15166307365 0013710 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; /** * Layout variables * --------------------- * * @var string $item The item id number * @var string $link The link text * @var string $label The label text */ extract($displayData); JHtml::_('behavior.modal', 'button.modal_' . $item); ?> <button class="btn modal_<?php echo $item; ?>" title="<?php echo $label; ?>" href="<?php echo $link; ?>" rel="{handler: 'iframe', size: {x: 800, y: 500}}"> <span class="icon-archive" aria-hidden="true"></span><?php echo $label; ?> </button> joomla/form/field/email.php 0000666 00000006671 15166307365 0011705 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var array $spellcheck Options available for this field. * @var string $accept File types that are accepted. */ $autocomplete = !$autocomplete ? 'autocomplete="off"' : 'autocomplete="' . $autocomplete . '"'; $autocomplete = $autocomplete == 'autocomplete="on"' ? '' : $autocomplete; $attributes = array( $spellcheck ? '' : 'spellcheck="false"', !empty($size) ? 'size="' . $size . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', $onchange ? 'onchange="' . $onchange . '"' : '', $autocomplete, $multiple ? 'multiple' : '', !empty($maxLength) ? 'maxlength="' . $maxLength . '"' : '', strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', $required ? 'required aria-required="true"' : '', $autofocus ? 'autofocus' : '', ); // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); ?> <input type="email" name="<?php echo $name; ?>"<?php echo !empty($class) ? ' class="validate-email ' . $class . '"' : ' class="validate-email"'; ?> id="<?php echo $id; ?>" value="<?php echo htmlspecialchars(JStringPunycode::emailToUTF8($value), ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> joomla/form/field/radio.php 0000666 00000010227 15166307365 0011704 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $options Options available for this field. */ // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); /** * The format of the input tag to be filled in using sprintf. * %1 - id * %2 - name * %3 - value * %4 = any other attributes */ $format = '<input type="radio" id="%1$s" name="%2$s" value="%3$s" %4$s />'; $alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name); ?> <fieldset id="<?php echo $id; ?>" class="<?php echo trim($class . ' radio' . ($readonly || $disabled ? ' disabled' : '') . ($readonly ? ' readonly' : '')); ?>" <?php echo $disabled ? 'disabled' : ''; ?> <?php echo $readonly || $disabled ? 'style="pointer-events: none"' : '' ?> <?php echo $required ? 'required aria-required="true"' : ''; ?> <?php echo $autofocus ? 'autofocus' : ''; ?>> <?php if (!empty($options)) : ?> <?php foreach ($options as $i => $option) : ?> <?php // Initialize some option attributes. $checked = ((string) $option->value === $value) ? 'checked="checked"' : ''; $disabled = !empty($option->disable) ? 'disabled' : ''; $style = $disabled ? 'style="pointer-events: none"' : ''; $option->class = !empty($option->class) ? $option->class : ''; $option->class = trim($option->class . ' ' . $disabled); $optionClass = !empty($option->class) ? 'class="' . $option->class . '"' : ''; // Initialize some JavaScript option attributes. $onclick = !empty($option->onclick) ? 'onclick="' . $option->onclick . '"' : ''; $onchange = !empty($option->onchange) ? 'onchange="' . $option->onchange . '"' : ''; $oid = $id . $i; $ovalue = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8'); $attributes = array_filter(array($checked, $optionClass, $disabled, $style, $onchange, $onclick)); ?> <?php if ($required) : ?> <?php $attributes[] = 'required aria-required="true"'; ?> <?php endif; ?> <?php echo sprintf($format, $oid, $name, $ovalue, implode(' ', $attributes)); ?> <label for="<?php echo $oid; ?>" <?php echo trim($optionClass . ' ' . $style); ?>> <?php echo $option->text; ?> </label> <?php endforeach; ?> <?php endif; ?> </fieldset> joomla/form/field/checkboxes.php 0000666 00000007610 15166307365 0012726 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. */ // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); /** * The format of the input tag to be filled in using sprintf. * %1 - id * %2 - name * %3 - value * %4 = any other attributes */ $format = '<input type="checkbox" id="%1$s" name="%2$s" value="%3$s" %4$s />'; // The alt option for JText::alt $alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name); ?> <fieldset id="<?php echo $id; ?>" class="<?php echo trim($class . ' checkboxes'); ?>" <?php echo $required ? 'required aria-required="true"' : ''; ?> <?php echo $autofocus ? 'autofocus' : ''; ?>> <?php foreach ($options as $i => $option) : ?> <?php // Initialize some option attributes. $checked = in_array((string) $option->value, $checkedOptions, true) ? 'checked' : ''; // In case there is no stored value, use the option's default state. $checked = (!$hasValue && $option->checked) ? 'checked' : $checked; $optionClass = !empty($option->class) ? 'class="' . $option->class . '"' : ''; $optionDisabled = !empty($option->disable) || $disabled ? 'disabled' : ''; // Initialize some JavaScript option attributes. $onclick = !empty($option->onclick) ? 'onclick="' . $option->onclick . '"' : ''; $onchange = !empty($option->onchange) ? 'onchange="' . $option->onchange . '"' : ''; $oid = $id . $i; $value = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8'); $attributes = array_filter(array($checked, $optionClass, $optionDisabled, $onchange, $onclick)); ?> <label for="<?php echo $oid; ?>" class="checkbox"> <?php echo sprintf($format, $oid, $name, $value, implode(' ', $attributes)); ?> <?php echo $option->text; ?></label> <?php endforeach; ?> </fieldset> joomla/form/field/file.php 0000666 00000006226 15166307365 0011531 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var array $spellcheck Options available for this field. * @var string $accept File types that are accepted. */ // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); $maxSize = JHtml::_('number.bytes', JUtility::getMaxUploadSize()); ?> <input type="file" name="<?php echo $name; ?>" id="<?php echo $id; ?>" <?php echo !empty($size) ? ' size="' . $size . '"' : ''; ?> <?php echo !empty($accept) ? ' accept="' . $accept . '"' : ''; ?> <?php echo !empty($class) ? ' class="' . $class . '"' : ''; ?> <?php echo !empty($multiple) ? ' multiple' : ''; ?> <?php echo $disabled ? ' disabled' : ''; ?> <?php echo $autofocus ? ' autofocus' : ''; ?> <?php echo !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; ?> <?php echo $required ? ' required aria-required="true"' : ''; ?> /><br> <?php echo JText::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?> joomla/form/field/tel.php 0000666 00000006522 15166307365 0011375 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. * @var integer $maxLength The maximum length that the field shall accept. */ // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); $autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'; $autocomplete = $autocomplete == ' autocomplete="on"' ? '' : $autocomplete; $attributes = array( !empty($size) ? 'size="' . $size . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', $autocomplete, $autofocus ? ' autofocus' : '', $spellcheck ? '' : 'spellcheck="false"', $onchange ? ' onchange="' . $onchange . '"' : '', !empty($maxLength) ? $maxLength : '', $required ? 'required aria-required="true"' : '', ); ?> <input type="tel" name="<?php echo $name; ?>" <?php echo !empty($class) ? ' class="' . $class . '"' : ''; ?> id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> joomla/form/field/url.php 0000666 00000006460 15166307365 0011414 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. */ // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); $autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'; $autocomplete = $autocomplete === ' autocomplete="on"' ? '' : $autocomplete; $attributes = array( !empty($size) ? ' size="' . $size . '"' : '', $disabled ? ' disabled' : '', $readonly ? ' readonly' : '', strlen($hint) ? ' placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', $autocomplete, $autofocus ? ' autofocus' : '', $spellcheck ? '' : ' spellcheck="false"', $onchange ? ' onchange="' . $onchange . '"' : '', !empty($maxLength) ? $maxLength : '', $required ? ' required aria-required="true"' : '', ); ?> <input <?php echo $inputType; ?> name="<?php echo $name; ?>" <?php echo !empty($class) ? ' class="' . $class . '"' : ''; ?> id="<?php echo $id; ?>" value="<?php echo htmlspecialchars(JStringPunycode::urlToUTF8($value), ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> joomla/form/field/user.php 0000666 00000007275 15166307365 0011575 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; use Joomla\Utilities\ArrayHelper; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * * @var string $userName The user name * @var mixed $groups The filtering groups (null means no filtering) * @var mixed $excluded The users to exclude from the list of users */ if (!$readonly) { JHtml::_('behavior.modal', 'a.modal_' . $id); JHtml::_('script', 'jui/fielduser.min.js', array('version' => 'auto', 'relative' => true)); } $uri = new JUri('index.php?option=com_users&view=users&layout=modal&tmpl=component&required=0'); $uri->setVar('field', $this->escape($id)); if ($required) { $uri->setVar('required', 1); } if (!empty($groups)) { $uri->setVar('groups', base64_encode(json_encode($groups))); } if (!empty($excluded)) { $uri->setVar('excluded', base64_encode(json_encode($excluded))); } // Invalidate the input value if no user selected if ($this->escape($userName) === JText::_('JLIB_FORM_SELECT_USER')) { $userName = ''; } $inputAttributes = array( 'type' => 'text', 'id' => $id, 'value' => $this->escape($userName) ); if ($size) { $inputAttributes['size'] = (int) $size; } if ($required) { $inputAttributes['required'] = 'required'; } if (!$readonly) { $inputAttributes['placeholder'] = JText::_('JLIB_FORM_SELECT_USER'); } $anchorAttributes = array( 'class' => 'btn btn-primary modal_' . $id, 'title' => JText::_('JLIB_FORM_CHANGE_USER'), 'rel' => '{handler: \'iframe\', size: {x: 800, y: 500}}' ); ?> <div class="input-append"> <input <?php echo ArrayHelper::toString($inputAttributes); ?> readonly /> <?php if (!$readonly) : ?> <?php echo JHtml::_('link', (string) $uri, '<span class="icon-user"></span>', $anchorAttributes); ?> <?php endif; ?> </div> <?php if (!$readonly) : ?> <input type="hidden" id="<?php echo $id; ?>_id" name="<?php echo $name; ?>" value="<?php echo (int) $value; ?>" data-onchange="<?php echo $this->escape($onchange); ?>" /> <?php endif; ?>