File manager - Edit - /home/capoccitel/www/wp-admin/joomla.tar
Back
error/index.html 0000604 00000000037 15242077251 0007673 0 ustar 00 <!DOCTYPE html><title></title> error/backtrace.php 0000604 00000002647 15242077251 0010337 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** @var $displayData array */ $backtraceList = $displayData['backtrace']; if (!$backtraceList) { return; } $class = isset($displayData['class']) ? $displayData['class'] : 'table table-striped table-bordered'; ?> <table cellpadding="0" cellspacing="0" class="Table <?php echo $class ?>"> <tr> <td colspan="3" class="TD"> <strong>Call stack</strong> </td> </tr> <tr> <td class="TD"> <strong>#</strong> </td> <td class="TD"> <strong>Function</strong> </td> <td class="TD"> <strong>Location</strong> </td> </tr> <?php foreach ($backtraceList as $k => $backtrace): ?> <tr> <td class="TD"> <?php echo $k + 1; ?> </td> <?php if (isset($backtrace['class'])): ?> <td class="TD"> <?php echo $backtrace['class'] . $backtrace['type'] . $backtrace['function'] . '()'; ?> </td> <?php else: ?> <td class="TD"> <?php echo $backtrace['function'] . '()'; ?> </td> <?php endif; ?> <?php if (isset($backtrace['file'])): ?> <td class="TD"> <?php echo JHtml::_('debug.xdebuglink', $backtrace['file'], $backtrace['line']); ?> </td> <?php else: ?> <td class="TD">   </td> <?php endif; ?> </tr> <?php endforeach; ?> </table> edit/metadata.php 0000604 00000002027 15242077251 0007764 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $form = $displayData->getForm(); // JLayout for standard handling of metadata fields in the administrator content edit screens. $fieldSets = $form->getFieldsets('metadata'); ?> <?php foreach ($fieldSets as $name => $fieldSet) : ?> <?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?> <p class="alert alert-info"><?php echo $this->escape(JText::_($fieldSet->description)); ?></p> <?php endif; ?> <?php // Include the real fields in this panel. if ($name === 'jmetadata') { echo $form->renderField('metadesc'); echo $form->renderField('metakey'); echo $form->renderField('xreference'); } foreach ($form->getFieldset($name) as $field) { if ($field->name !== 'jform[metadata][tags][]') { echo $field->renderField(); } } ?> <?php endforeach; ?> edit/associations.php 0000604 00000001616 15242077251 0010706 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $form = $displayData->getForm(); $options = array( 'formControl' => $form->getFormControl(), 'hidden' => (int) ($form->getValue('language', null, '*') === '*'), ); JHtml::_('behavior.core'); JHtml::_('jquery.framework'); JText::script('JGLOBAL_ASSOC_NOT_POSSIBLE'); JText::script('JGLOBAL_ASSOCIATIONS_RESET_WARNING'); JFactory::getDocument()->addScriptOptions('system.associations.edit', $options); JHtml::_('script', 'system/associations-edit.js', array('version' => 'auto', 'relative' => true)); // JLayout for standard handling of associations fields in the administrator items edit screens. echo $form->renderFieldset('item_associations'); edit/frontediting_modules.php 0000604 00000005226 15242077251 0012434 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // JLayout for standard handling of the edit modules: $moduleHtml = &$displayData['moduleHtml']; $mod = $displayData['module']; $position = $displayData['position']; $menusEditing = $displayData['menusediting']; $parameters = JComponentHelper::getParams('com_modules'); $redirectUri = '&return=' . urlencode(base64_encode(JUri::getInstance()->toString())); $target = '_blank'; $itemid = JFactory::getApplication()->input->get('Itemid', '0', 'int'); if (preg_match('/<(?:div|span|nav|ul|ol|h\d) [^>]*class="[^"]* jmoddiv"/', $moduleHtml)) { // Module has already module edit button: return; } // Add css class jmoddiv and data attributes for module-editing URL and for the tooltip: $editUrl = JUri::base() . 'administrator/index.php?option=com_modules&task=module.edit&id=' . (int) $mod->id; if ($parameters->get('redirect_edit', 'site') === 'site') { $editUrl = JUri::base() . 'index.php?option=com_config&controller=config.display.modules&id=' . (int) $mod->id . '&Itemid=' . $itemid . $redirectUri; $target = '_self'; } // Add class, editing URL and tooltip, and if module of type menu, also the tooltip for editing the menu item: $count = 0; $moduleHtml = preg_replace( // Replace first tag of module with a class '/^(\s*<(?:div|span|nav|ul|ol|h\d|section|aside|nav|address|article) [^>]*class="[^"]*)"/', // By itself, adding class jmoddiv and data attributes for the URL and tooltip: '\\1 jmoddiv" data-jmodediturl="' . $editUrl . '" data-target="' . $target . '" data-jmodtip="' . JHtml::_('tooltipText', JText::_('JLIB_HTML_EDIT_MODULE'), htmlspecialchars($mod->title, ENT_COMPAT, 'UTF-8') . '<br />' . sprintf(JText::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position, ENT_COMPAT, 'UTF-8')), 0 ) . '"' // And if menu editing is enabled and allowed and it's a menu module, add data attributes for menu editing: . ($menusEditing && $mod->module === 'mod_menu' ? ' data-jmenuedittip="' . JHtml::_('tooltipText', 'JLIB_HTML_EDIT_MENU_ITEM', 'JLIB_HTML_EDIT_MENU_ITEM_ID') . '"' : '' ), $moduleHtml, 1, $count ); if ($count) { // Load once booststrap tooltip and add stylesheet and javascript to head: JHtml::_('bootstrap.tooltip'); JHtml::_('bootstrap.popover'); JHtml::_('stylesheet', 'system/frontediting.css', array('version' => 'auto', 'relative' => true)); JHtml::_('script', 'system/frontediting.js', array('version' => 'auto', 'relative' => true)); } edit/index.html 0000705 00000000037 15242077251 0007471 0 ustar 00 <!DOCTYPE html><title></title> edit/details.php 0000604 00000003636 15242077251 0007640 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt * * @deprecated 3.2 removed without replacement in 4.0 see global.php for an alternative */ defined('_JEXEC') or die; $app = JFactory::getApplication(); // JLayout for standard handling of the details sidebar in administrator edit screens. $title = $displayData->getForm()->getValue('title'); $published = $displayData->getForm()->getField('published'); $saveHistory = $displayData->get('state')->get('params')->get('save_history', 0); ?> <div class="span2"> <h4><?php echo JText::_('JDETAILS'); ?></h4> <hr /> <fieldset class="form-vertical"> <?php if (empty($title)) : ?> <div class="control-group"> <div class="controls"> <?php echo $displayData->getForm()->getValue('name'); ?> </div> </div> <?php else : ?> <div class="control-group"> <div class="controls"> <?php echo $displayData->getForm()->getValue('title'); ?> </div> </div> <?php endif; ?> <?php if ($published) : ?> <?php echo $displayData->getForm()->renderField('published'); ?> <?php else : ?> <?php echo $displayData->getForm()->renderField('state'); ?> <?php endif; ?> <?php echo $displayData->getForm()->renderField('access'); ?> <?php echo $displayData->getForm()->renderField('featured'); ?> <?php if (JLanguageMultilang::isEnabled()) : ?> <?php echo $displayData->getForm()->renderField('language'); ?> <?php else : ?> <input type="hidden" id="jform_language" name="jform[language]" value="<?php echo $displayData->getForm()->getValue('language'); ?>" /> <?php endif; ?> <?php echo $displayData->getForm()->renderField('tags'); ?> <?php if ($saveHistory) : ?> <?php echo $displayData->getForm()->renderField('version_note'); ?> <?php endif; ?> </fieldset> </div> edit/params.php 0000604 00000006506 15242077251 0007475 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $app = JFactory::getApplication(); $form = $displayData->getForm(); $fieldSets = $form->getFieldsets(); if (empty($fieldSets)) { return; } $ignoreFieldsets = $displayData->get('ignore_fieldsets') ?: array(); $ignoreFields = $displayData->get('ignore_fields') ?: array(); $extraFields = $displayData->get('extra_fields') ?: array(); $tabName = $displayData->get('tab_name') ?: 'myTab'; // These are required to preserve data on save when fields are not displayed. $hiddenFieldsets = $displayData->get('hiddenFieldsets') ?: array(); // These are required to configure showing and hiding fields in the editor. $configFieldsets = $displayData->get('configFieldsets') ?: array(); // Handle the hidden fieldsets when show_options is set false if (!$displayData->get('show_options', 1)) { // The HTML buffer $html = array(); // Hide the whole buffer $html[] = '<div style="display:none;">'; // Loop over the fieldsets foreach ($fieldSets as $name => $fieldSet) { // Check if the fieldset should be ignored if (in_array($name, $ignoreFieldsets, true)) { continue; } // If it is a hidden fieldset, render the inputs if (in_array($name, $hiddenFieldsets)) { // Loop over the fields foreach ($form->getFieldset($name) as $field) { // Add only the input on the buffer $html[] = $field->input; } // Make sure the fieldset is not rendered twice $ignoreFieldsets[] = $name; } // Check if it is the correct fieldset to ignore if (strpos($name, 'basic') === 0) { // Ignore only the fieldsets which are defined by the options not the custom fields ones $ignoreFieldsets[] = $name; } } // Close the container $html[] = '</div>'; // Echo the hidden fieldsets echo implode('', $html); } // Loop again over the fieldsets foreach ($fieldSets as $name => $fieldSet) { // Ensure any fieldsets we don't want to show are skipped (including repeating formfield fieldsets) if ((isset($fieldSet->repeat) && $fieldSet->repeat === true) || in_array($name, $ignoreFieldsets) || (!empty($configFieldsets) && in_array($name, $configFieldsets, true)) || (!empty($hiddenFieldsets) && in_array($name, $hiddenFieldsets, true)) ) { continue; } // Determine the label if (!empty($fieldSet->label)) { $label = JText::_($fieldSet->label); } else { $label = strtoupper('JGLOBAL_FIELDSET_' . $name); if (JText::_($label) === $label) { $label = strtoupper($app->input->get('option') . '_' . $name . '_FIELDSET_LABEL'); } $label = JText::_($label); } // Start the tab echo JHtml::_('bootstrap.addTab', $tabName, 'attrib-' . $name, $label); // Include the description when available if (isset($fieldSet->description) && trim($fieldSet->description)) { echo '<p class="alert alert-info">' . $this->escape(JText::_($fieldSet->description)) . '</p>'; } // The name of the fieldset to render $displayData->fieldset = $name; // Force to show the options $displayData->showOptions = true; // Render the fieldset echo JLayoutHelper::render('joomla.edit.fieldset', $displayData); // End the tab echo JHtml::_('bootstrap.endTab'); } edit/global.php 0000604 00000002612 15242077251 0007444 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $app = JFactory::getApplication(); $form = $displayData->getForm(); $input = $app->input; $component = $input->getCmd('option', 'com_content'); if ($component === 'com_categories') { $extension = $input->getCmd('extension', 'com_content'); $parts = explode('.', $extension); $component = $parts[0]; } $saveHistory = JComponentHelper::getParams($component)->get('save_history', 0); $fields = $displayData->get('fields') ?: array( array('parent', 'parent_id'), array('published', 'state', 'enabled'), array('category', 'catid'), 'featured', 'sticky', 'access', 'id', 'language', 'tags', 'note', 'version_note', ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); $hiddenFields[] = 'id'; if (!$saveHistory) { $hiddenFields[] = 'version_note'; } $html = array(); $html[] = '<fieldset class="form-vertical">'; foreach ($fields as $field) { foreach ((array) $field as $f) { if ($form->getField($f)) { if (in_array($f, $hiddenFields)) { $form->setFieldAttribute($f, 'type', 'hidden'); } $html[] = $form->renderField($f); break; } } } $html[] = '</fieldset>'; echo implode('', $html); edit/publishingdata.php 0000604 00000001626 15242077251 0011206 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $app = JFactory::getApplication(); $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( 'publish_up', 'publish_down', array('created', 'created_time'), array('created_by', 'created_user_id'), 'created_by_alias', array('modified', 'modified_time'), array('modified_by', 'modified_user_id'), 'version', 'hits', 'id' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); foreach ($fields as $field) { foreach ((array) $field as $f) { if ($form->getField($f)) { if (in_array($f, $hiddenFields)) { $form->setFieldAttribute($f, 'type', 'hidden'); } echo $form->renderField($f); break; } } } edit/title_alias.php 0000604 00000001012 15242077251 0010467 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $form = $displayData->getForm(); $title = $form->getField('title') ? 'title' : ($form->getField('name') ? 'name' : ''); ?> <div class="form-inline form-inline-header"> <?php echo $title ? $form->renderField($title) : ''; echo $form->renderField('alias'); ?> </div> edit/item_title.php 0000604 00000001127 15242077251 0010343 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt * * @deprecated 3.2 */ defined('_JEXEC') or die; $title = $displayData->getForm()->getValue('title'); $name = $displayData->getForm()->getValue('name'); ?> <?php if ($title) : ?> <h2><?php echo htmlspecialchars($title, ENT_QUOTES, 'UTF-8'); ?></h2> <?php endif; ?> <?php if ($name) : ?> <h2><?php echo htmlspecialchars($name, ENT_QUOTES, 'UTF-8'); ?></h2> <?php endif; edit/fieldset.php 0000604 00000002217 15242077251 0010004 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $app = JFactory::getApplication(); $form = $displayData->getForm(); $name = $displayData->get('fieldset'); $fieldSet = $form->getFieldset($name); if (empty($fieldSet)) { return; } $ignoreFields = $displayData->get('ignore_fields') ? : array(); $extraFields = $displayData->get('extra_fields') ? : array(); if (!empty($displayData->showOptions) || $displayData->get('show_options', 1)) { if (isset($extraFields[$name])) { foreach ($extraFields[$name] as $f) { if (in_array($f, $ignoreFields)) { continue; } if ($form->getField($f)) { $fieldSet[] = $form->getField($f); } } } $html = array(); foreach ($fieldSet as $field) { $html[] = $field->renderField(); } echo implode('', $html); } else { $html = array(); $html[] = '<div style="display:none;">'; foreach ($fieldSet as $field) { $html[] = $field->input; } $html[] = '</div>'; echo implode('', $html); } searchtools/default.php 0000604 00000007750 15242077251 0011241 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $data = $displayData; // Receive overridable options $data['options'] = !empty($data['options']) ? $data['options'] : array(); $noResultsText = ''; $hideActiveFilters = false; $showFilterButton = false; $showSelector = false; $selectorFieldName = isset($data['options']['selectorFieldName']) ? $data['options']['selectorFieldName'] : 'client_id'; // If a filter form exists. if (isset($data['view']->filterForm) && !empty($data['view']->filterForm)) { // Checks if a selector (e.g. client_id) exists. if ($selectorField = $data['view']->filterForm->getField($selectorFieldName)) { $showSelector = $selectorField->getAttribute('filtermode', '') == 'selector' ? true : $showSelector; // Checks if a selector should be shown in the current layout. if (isset($data['view']->layout)) { $showSelector = $selectorField->getAttribute('layout', 'default') != $data['view']->layout ? false : $showSelector; } // Unset the selector field from active filters group. unset($data['view']->activeFilters[$selectorFieldName]); } // Checks if the filters button should exist. $filters = $data['view']->filterForm->getGroup('filter'); $showFilterButton = isset($filters['filter_search']) && count($filters) === 1 ? false : true; // Checks if it should show the be hidden. $hideActiveFilters = empty($data['view']->activeFilters); // Check if the no results message should appear. if (isset($data['view']->total) && (int) $data['view']->total === 0) { $noResults = $data['view']->filterForm->getFieldAttribute('search', 'noresults', '', 'filter'); if (!empty($noResults)) { $noResultsText = JText::_($noResults); } } } // Set some basic options. $customOptions = array( 'filtersHidden' => isset($data['options']['filtersHidden']) && $data['options']['filtersHidden'] ? $data['options']['filtersHidden'] : $hideActiveFilters, 'filterButton' => isset($data['options']['filterButton']) && $data['options']['filterButton'] ? $data['options']['filterButton'] : $showFilterButton, 'defaultLimit' => isset($data['options']['defaultLimit']) ? $data['options']['defaultLimit'] : JFactory::getApplication()->get('list_limit', 20), 'searchFieldSelector' => '#filter_search', 'selectorFieldName' => $selectorFieldName, 'showSelector' => $showSelector, 'orderFieldSelector' => '#list_fullordering', 'showNoResults' => !empty($noResultsText) ? true : false, 'noResultsText' => !empty($noResultsText) ? $noResultsText : '', 'formSelector' => !empty($data['options']['formSelector']) ? $data['options']['formSelector'] : '#adminForm', ); // Merge custom options in the options array. $data['options'] = array_merge($customOptions, $data['options']); // Add class to hide the active filters if needed. $filtersActiveClass = $hideActiveFilters ? '' : ' js-stools-container-filters-visible'; // Load search tools JHtml::_('searchtools.form', $data['options']['formSelector'], $data['options']); ?> <div class="js-stools clearfix"> <div class="clearfix"> <?php if ($data['options']['showSelector']) : ?> <div class="js-stools-container-selector"> <?php echo $this->sublayout('selector', $data); ?> </div> <?php endif; ?> <div class="js-stools-container-bar"> <?php echo $this->sublayout('bar', $data); ?> </div> <div class="js-stools-container-list hidden-phone hidden-tablet"> <?php echo $this->sublayout('list', $data); ?> </div> </div> <!-- Filters div --> <?php if ($data['options']['filterButton']) : ?> <div class="js-stools-container-filters hidden-phone clearfix<?php echo $filtersActiveClass; ?>"> <?php echo $this->sublayout('filters', $data); ?> </div> <?php endif; ?> </div> <?php if ($data['options']['showNoResults']) : ?> <?php echo $this->sublayout('noitems', $data); ?> <?php endif; ?> searchtools/index.html 0000705 00000000037 15242077251 0011072 0 ustar 00 <!DOCTYPE html><title></title> searchtools/grid/index.html 0000705 00000000037 15242077251 0012017 0 ustar 00 <!DOCTYPE html><title></title> searchtools/grid/sort.php 0000604 00000002050 15242077251 0011515 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $data = $displayData; $title = htmlspecialchars(JText::_($data->tip ?: $data->title)); JHtml::_('bootstrap.popover'); ?> <a href="#" onclick="return false;" class="js-stools-column-order hasPopover" data-order="<?php echo $data->order; ?>" data-direction="<?php echo strtoupper($data->direction); ?>" data-name="<?php echo JText::_($data->title); ?>" title="<?php echo $title; ?>" data-content="<?php echo htmlspecialchars(JText::_('JGLOBAL_CLICK_TO_SORT_THIS_COLUMN')); ?>" data-placement="top"> <?php if (!empty($data->icon)) : ?><span class="<?php echo $data->icon; ?>"></span><?php endif; ?> <?php if (!empty($data->title)) : ?><?php echo JText::_($data->title); ?><?php endif; ?> <?php if ($data->order == $data->selected) : ?><span class="<?php echo $data->orderIcon; ?>"></span><?php endif; ?> </a> searchtools/default/list.php 0000604 00000001136 15242077251 0012204 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $data = $displayData; // Load the form list fields $list = $data['view']->filterForm->getGroup('list'); ?> <?php if ($list) : ?> <div class="ordering-select hidden-phone"> <?php foreach ($list as $fieldName => $field) : ?> <div class="js-stools-field-list"> <?php echo $field->input; ?> </div> <?php endforeach; ?> </div> <?php endif; ?> searchtools/default/filters.php 0000604 00000002004 15242077251 0012674 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $data = $displayData; // Load the form filters $filters = $data['view']->filterForm->getGroup('filter'); ?> <?php if ($filters) : ?> <?php foreach ($filters as $fieldName => $field) : ?> <?php if ($fieldName !== 'filter_search') : ?> <?php $dataShowOn = ''; ?> <?php if ($field->showon) : ?> <?php JHtml::_('jquery.framework'); ?> <?php JHtml::_('script', 'jui/cms.js', array('version' => 'auto', 'relative' => true)); ?> <?php $dataShowOn = " data-showon='" . json_encode(JFormHelper::parseShowOnConditions($field->showon, $field->formControl, $field->group)) . "'"; ?> <?php endif; ?> <div class="js-stools-field-filter"<?php echo $dataShowOn; ?>> <?php echo $field->input; ?> </div> <?php endif; ?> <?php endforeach; ?> <?php endif; ?> searchtools/default/noitems.php 0000604 00000000573 15242077251 0012713 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $data = $displayData; ?> <div class="alert alert-info alert-no-items"> <?php echo $data['options']['noResultsText']; ?> </div> searchtools/default/selector.php 0000604 00000000644 15242077251 0013054 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $data = $displayData; ?> <div class="js-stools-field-selector"> <?php echo $data['view']->filterForm->getField($data['options']['selectorFieldName'])->input; ?> </div> searchtools/default/index.html 0000705 00000000037 15242077251 0012516 0 ustar 00 <!DOCTYPE html><title></title> html/formbehavior/ajaxchosen.php 0000604 00000003111 15242077251 0013024 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var string $selector The id of the field * @var array $options The options array * @var boolean $debug Are we in debug mode? * @var string $type Get or Post * @var string $url The URL * @var string $dataType Data type returned * @var string $jsonTermKey Extra JSON terminator key * @var integer $afterTypeDelay Delay for the execution * @var integer $minTermLength The minimum characters required */ extract($displayData); JText::script('JGLOBAL_KEEP_TYPING'); JText::script('JGLOBAL_LOOKING_FOR'); // Include jQuery JHtml::_('jquery.framework'); JHtml::_('script', 'jui/ajax-chosen.min.js', array('version' => 'auto', 'relative' => true, 'detectDebug' => $debug)); JFactory::getDocument()->addScriptDeclaration( " jQuery(document).ready(function ($) { $('" . $selector . "').ajaxChosen({ type: '" . $type . "', url: '" . $url . "', dataType: '" . $dataType . "', jsonTermKey: '" . $jsonTermKey . "', afterTypeDelay: '" . $afterTypeDelay . "', minTermLength: '" . $minTermLength . "' }, function (data) { var results = []; $.each(data, function (i, val) { results.push({ value: val.value, text: val.text }); }); return results; }); }); " ); html/formbehavior/chosen.php 0000604 00000002304 15242077251 0012163 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var string $selector The id of the field * @var array $options The options array * @var boolean $debug Are we in debug mode? */ extract($displayData); // Include jQuery JHtml::_('jquery.framework'); JHtml::_('script', 'jui/chosen.jquery.min.js', array('version' => 'auto', 'relative' => true, 'detectDebug' => $debug)); JHtml::_('stylesheet', 'jui/chosen.css', array('version' => 'auto', 'relative' => true)); // Options array to json options string $options_str = json_encode($options, ($debug && defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : false)); JFactory::getDocument()->addScriptDeclaration( ' jQuery(function ($) { initChosen(); $("body").on("subform-row-add", initChosen); function initChosen(event, container) { container = container || document; $(container).find(' . json_encode($selector) . ').chosen(' . $options_str . '); } }); ' ); html/treeprefix.php 0000604 00000001066 15242077251 0010402 0 ustar 00 <?php /** * @package Joomla.Libraries * @subpackage HTML * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var integer $level The level of the item in the tree like structure. * * @since 3.6.0 */ extract($displayData); if ($level > 1) { echo '<span class="muted">' . str_repeat('┊ ', (int) $level - 2) . '</span>– '; } html/sortablelist.php 0000604 00000003622 15242077251 0010734 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var string $tableId The id of the table * @var string $formId The id of the form * @var string $saveOrderingUrl Save the ordering URL? * @var string $sortDir The direction of the order (asc/desc) * @var string $nestedList Is it nested list? * @var string $proceedSaveOrderButton Is there a button to initiate the ordering? */ extract($displayData); // Depends on jQuery UI JHtml::_('jquery.ui', array('core', 'sortable')); JHtml::_('script', 'jui/sortablelist.js', array('version' => 'auto', 'relative' => true)); JHtml::_('stylesheet', 'jui/sortablelist.css', array('version' => 'auto', 'relative' => true)); // Attach sortable to document JFactory::getDocument()->addScriptDeclaration( " jQuery(document).ready(function ($){ var sortableList = new $.JSortableList('#" . $tableId . " tbody','" . $formId . "','" . $sortDir . "' , '" . $saveOrderingUrl . "','','" . $nestedList . "'); }); " ); if ($proceedSaveOrderButton) { JFactory::getDocument()->addScriptDeclaration( " jQuery(document).ready(function ($){ var saveOrderButton = $('.saveorder'); saveOrderButton.css({'opacity':'0.2', 'cursor':'default'}).attr('onclick','return false;'); var oldOrderingValue = ''; $('.text-area-order').focus(function () { oldOrderingValue = $(this).attr('value'); }) .keyup(function (){ var newOrderingValue = $(this).attr('value'); if (oldOrderingValue != newOrderingValue) { saveOrderButton.css({'opacity':'1', 'cursor':'pointer'}).removeAttr('onclick') } }); }); " ); } html/tag.php 0000604 00000006416 15242077251 0007004 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\Registry\Registry; /** * Layout variables * --------------------- * * @var string $selector The id of the field * @var string $minTermLength The minimum number of characters for the tag * @var boolean $allowCustom Can we insert custom tags? */ extract($displayData); // Tags field ajax $chosenAjaxSettings = new Registry( array( 'selector' => $selector, 'type' => 'GET', 'url' => JUri::root() . 'index.php?option=com_tags&task=tags.searchAjax', 'dataType' => 'json', 'jsonTermKey' => 'like', 'minTermLength' => $minTermLength ) ); JHtml::_('formbehavior.ajaxchosen', $chosenAjaxSettings); // Allow custom values? if ($allowCustom) { JFactory::getDocument()->addScriptDeclaration( " jQuery(document).ready(function ($) { var customTagPrefix = '#new#'; function tagHandler(event,element) { // Search a highlighted result var highlighted = $('" . $selector . "_chzn').find('li.active-result.highlighted').first(); // Add the highlighted option if (event.which === 13 && highlighted.text() !== '') { // Extra check. If we have added a custom tag with element text remove it var customOptionValue = customTagPrefix + highlighted.text(); $('" . $selector . " option').filter(function () { return $(element).val() == customOptionValue; }).remove(); // Select the highlighted result var tagOption = $('" . $selector . " option').filter(function () { return $(element).html() == highlighted.text(); }); tagOption.attr('selected', 'selected'); } // Add the custom tag option else { var customTag = element.value; // Extra check. Search if the custom tag already exists (typed faster than AJAX ready) var tagOption = $('" . $selector . " option').filter(function () { return $(element).html() == customTag; }); if (tagOption.text() !== '') { tagOption.attr('selected', 'selected'); } else { var option = $('<option>'); option.text(element.value).val(customTagPrefix + element.value); option.attr('selected','selected'); // Append the option and repopulate the chosen field $('" . $selector . "').append(option); } } element.value = ''; $('" . $selector . "').trigger('liszt:updated'); } // Method to add tags pressing comma $('" . $selector . "_chzn input').keypress(function(event) { if (event.charCode === 44) { // Tag is greater than the minimum required chars if (this.value && this.value.length >= " . $minTermLength . ") { tagHandler(event, this); } // Do not add comma to tag at all event.preventDefault(); } }); // Method to add tags pressing enter $('" . $selector . "_chzn input').keyup(function(event) { // Tag is greater than the minimum required chars and enter pressed if (event.which === 13 && this.value && this.value.length >= " . $minTermLength . ") { tagHandler(event,this); event.preventDefault(); } }); }); " ); } html/batch/user.php 0000604 00000002011 15242077251 0010253 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var boolean $noUser Inject an option for no user? */ extract($displayData); $optionNo = ''; if ($noUser) { $optionNo = '<option value="0">' . JText::_('JLIB_HTML_BATCH_USER_NOUSER') . '</option>'; } ?> <label id="batch-user-lbl" for="batch-user" class="modalTooltip" title="<?php echo JHtml::_('tooltipText', 'JLIB_HTML_BATCH_USER_LABEL', 'JLIB_HTML_BATCH_USER_LABEL_DESC'); ?>"> <?php echo JText::_('JLIB_HTML_BATCH_USER_LABEL'); ?> </label> <select name="batch[user_id]" class="inputbox" id="batch-user-id"> <option value=""><?php echo JText::_('JLIB_HTML_BATCH_USER_NOCHANGE'); ?></option> <?php echo $optionNo; ?> <?php echo JHtml::_('select.options', JHtml::_('user.userlist'), 'value', 'text'); ?> </select> html/batch/adminlanguage.php 0000604 00000002754 15242077251 0012107 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * None */ JFactory::getDocument()->addScriptDeclaration( ' jQuery(document).ready(function($){ if ($("#batch-category-id").length){var batchSelector = $("#batch-category-id");} if ($("#batch-menu-id").length){var batchSelector = $("#batch-menu-id");} if ($("#batch-position-id").length){var batchSelector = $("#batch-position-id");} if ($("#batch-copy-move").length && batchSelector) { $("#batch-copy-move").hide(); batchSelector.on("change", function(){ if (batchSelector.val() != 0 || batchSelector.val() != "") { $("#batch-copy-move").show(); } else { $("#batch-copy-move").hide(); } }); } }); ' ); ?> <label id="batch-language-lbl" for="batch-language-id" class="modalTooltip" title="<?php echo JHtml::_('tooltipText', 'JLIB_HTML_BATCH_LANGUAGE_LABEL', 'JLIB_HTML_BATCH_LANGUAGE_LABEL_DESC'); ?>"> <?php echo JText::_('JLIB_HTML_BATCH_LANGUAGE_LABEL'); ?> </label> <select name="batch[language_id]" class="inputbox" id="batch-language-id"> <option value=""><?php echo JText::_('JLIB_HTML_BATCH_LANGUAGE_NOCHANGE'); ?></option> <?php echo JHtml::_('select.options', JHtml::_('adminlanguage.existing', true, true), 'value', 'text'); ?> </select> html/batch/tag.php 0000604 00000001477 15242077251 0010067 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * None */ ?> <label id="batch-tag-lbl" for="batch-tag-id" class="modalTooltip" title="<?php echo JHtml::_('tooltipText', 'JLIB_HTML_BATCH_TAG_LABEL', 'JLIB_HTML_BATCH_TAG_LABEL_DESC'); ?>"> <?php echo JText::_('JLIB_HTML_BATCH_TAG_LABEL'); ?> </label> <select name="batch[tag]" class="inputbox" id="batch-tag-id"> <option value=""><?php echo JText::_('JLIB_HTML_BATCH_TAG_NOCHANGE'); ?></option> <?php echo JHtml::_('select.options', JHtml::_('tag.tags', array('filter.published' => array(1))), 'value', 'text'); ?> </select> html/batch/item.php 0000604 00000002317 15242077251 0010244 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * * @var string $extension The extension name */ extract($displayData); // Create the copy/move options. $options = array( JHtml::_('select.option', 'c', JText::_('JLIB_HTML_BATCH_COPY')), JHtml::_('select.option', 'm', JText::_('JLIB_HTML_BATCH_MOVE')) ); ?> <label id="batch-choose-action-lbl" for="batch-choose-action"><?php echo JText::_('JLIB_HTML_BATCH_MENU_LABEL'); ?></label> <div id="batch-choose-action" class="control-group"> <select name="batch[category_id]" class="inputbox" id="batch-category-id"> <option value=""><?php echo JText::_('JLIB_HTML_BATCH_NO_CATEGORY'); ?></option> <?php echo JHtml::_('select.options', JHtml::_('category.options', $extension)); ?> </select> </div> <div id="batch-copy-move" class="control-group radio"> <?php echo JText::_('JLIB_HTML_BATCH_MOVE_QUESTION'); ?> <?php echo JHtml::_('select.radiolist', $options, 'batch[move_copy]', '', 'value', 'text', 'm'); ?> </div> html/batch/language.php 0000604 00000002756 15242077251 0011100 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * None */ JFactory::getDocument()->addScriptDeclaration( ' jQuery(document).ready(function($){ if ($("#batch-category-id").length){var batchSelector = $("#batch-category-id");} if ($("#batch-menu-id").length){var batchSelector = $("#batch-menu-id");} if ($("#batch-position-id").length){var batchSelector = $("#batch-position-id");} if ($("#batch-copy-move").length && batchSelector) { $("#batch-copy-move").hide(); batchSelector.on("change", function(){ if (batchSelector.val() != 0 || batchSelector.val() != "") { $("#batch-copy-move").show(); } else { $("#batch-copy-move").hide(); } }); } }); ' ); ?> <label id="batch-language-lbl" for="batch-language-id" class="modalTooltip" title="<?php echo JHtml::_('tooltipText', 'JLIB_HTML_BATCH_LANGUAGE_LABEL', 'JLIB_HTML_BATCH_LANGUAGE_LABEL_DESC'); ?>"> <?php echo JText::_('JLIB_HTML_BATCH_LANGUAGE_LABEL'); ?> </label> <select name="batch[language_id]" class="inputbox" id="batch-language-id"> <option value=""><?php echo JText::_('JLIB_HTML_BATCH_LANGUAGE_NOCHANGE'); ?></option> <?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text'); ?> </select> html/batch/access.php 0000604 00000001376 15242077251 0010553 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * --------------------- * None */ ?> <label id="batch-access-lbl" for="batch-access" class="modalTooltip" title="<?php echo JHtml::_('tooltipText', 'JLIB_HTML_BATCH_ACCESS_LABEL', 'JLIB_HTML_BATCH_ACCESS_LABEL_DESC'); ?>"> <?php echo JText::_('JLIB_HTML_BATCH_ACCESS_LABEL'); ?></label> <?php echo JHtml::_( 'access.assetgrouplist', 'batch[assetgroup_id]', '', 'class="inputbox"', array( 'title' => JText::_('JLIB_HTML_BATCH_NOCHANGE'), 'id' => 'batch-access' ) ); ?> html/image.php 0000604 00000001627 15242077251 0007312 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Layout variables * ----------------- * @var array $displayData Array with all the given attributes for the image element. * Eg: src, class, alt, width, height, loading, decoding, style, data-* * Note: only the alt and src attributes are escaped by default! */ if (isset($displayData['src'])) { $displayData['src'] = $this->escape($displayData['src']); } if (isset($displayData['alt'])) { if ($displayData['alt'] === false) { unset($displayData['alt']); } else { $displayData['alt'] = $this->escape($displayData['alt']); } } echo '<img ' . JArrayHelper::toString($displayData) . '>'; quickicons/icon.php 0000604 00000001762 15242077251 0010364 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> quickicons/index.html 0000705 00000000037 15242077251 0010714 0 ustar 00 <!DOCTYPE html><title></title> system/index.html 0000705 00000000037 15242077251 0010070 0 ustar 00 <!DOCTYPE html><title></title> system/message.php 0000604 00000001765 15242077251 0010237 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> sidebars/submenu.php 0000604 00000004530 15242077251 0010532 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('jquery.framework'); JHtml::_('behavior.core'); JFactory::getDocument()->addScriptDeclaration(' jQuery(document).ready(function($) { if (window.toggleSidebar) { toggleSidebar(true); } else { $("#j-toggle-sidebar-header").css("display", "none"); $("#j-toggle-button-wrapper").css("display", "none"); } }); '); ?> <div id="j-toggle-sidebar-wrapper"> <div id="j-toggle-button-wrapper" class="j-toggle-button-wrapper"> <?php echo JLayoutHelper::render('joomla.sidebars.toggle'); ?> </div> <div id="sidebar" class="sidebar"> <div class="sidebar-nav"> <?php if ($displayData->displayMenu) : ?> <ul id="submenu" class="nav nav-list"> <?php foreach ($displayData->list as $item) : if (isset ($item[2]) && $item[2] == 1) : ?> <li class="active"> <?php else : ?> <li> <?php endif; if ($displayData->hide) : ?> <a class="nolink"><?php echo $item[0]; ?></a> <?php else : if ($item[1] !== '') : ?> <a href="<?php echo JFilterOutput::ampReplace($item[1]); ?>"><?php echo $item[0]; ?></a> <?php else : ?> <?php echo $item[0]; ?> <?php endif; endif; ?> </li> <?php endforeach; ?> </ul> <?php endif; ?> <?php if ($displayData->displayMenu && $displayData->displayFilters) : ?> <hr /> <?php endif; ?> <?php if ($displayData->displayFilters) : ?> <div class="filter-select hidden-phone"> <h4 class="page-header"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></h4> <?php foreach ($displayData->filters as $filter) : ?> <label for="<?php echo $filter['name']; ?>" class="element-invisible"><?php echo $filter['label']; ?></label> <select name="<?php echo $filter['name']; ?>" id="<?php echo $filter['name']; ?>" class="span12 small" onchange="this.form.submit()"> <?php if (!$filter['noDefault']) : ?> <option value=""><?php echo $filter['label']; ?></option> <?php endif; ?> <?php echo $filter['options']; ?> </select> <hr class="hr-condensed" /> <?php endforeach; ?> </div> <?php endif; ?> </div> </div> <div id="j-toggle-sidebar"></div> </div> sidebars/toggle.php 0000604 00000001115 15242077251 0010331 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // Set the tooltips JText::script('JTOGGLE_HIDE_SIDEBAR'); JText::script('JTOGGLE_SHOW_SIDEBAR'); ?> <div id="j-toggle-sidebar-button" class="j-toggle-sidebar-button hidden-phone hasTooltip" onclick="toggleSidebar(false); return false;" > <span id="j-toggle-sidebar-icon" class="icon-arrow-left-2" aria-hidden="true"></span> </div> sidebars/index.html 0000705 00000000037 15242077251 0010340 0 ustar 00 <!DOCTYPE html><title></title> toolbar/containeropen.php 0000604 00000000577 15242077251 0011575 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <div class="btn-toolbar" role="toolbar" aria-label="<?php echo JText::_('JTOOLBAR'); ?>" id="<?php echo $displayData['id']; ?>"> toolbar/standard.php 0000604 00000001133 15242077251 0010516 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $doTask = $displayData['doTask']; $class = $displayData['class']; $text = $displayData['text']; $btnClass = $displayData['btnClass']; ?> <button onclick="<?php echo $doTask; ?>" class="<?php echo $btnClass; ?>"> <span class="<?php echo trim($class); ?>" aria-hidden="true"></span> <?php echo $text; ?> </button> toolbar/modal.php 0000604 00000002347 15242077251 0010022 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); /** * Generic toolbar button layout to open a modal * ----------------------------------------------- * @param array $displayData Button parameters. Default supported parameters: * - selector string Unique DOM identifier for the modal. CSS id without # * - class string Button class * - icon string Button icon * - text string Button text */ $selector = $displayData['selector']; $class = isset($displayData['class']) ? $displayData['class'] : 'btn btn-small'; $icon = isset($displayData['icon']) ? $displayData['icon'] : 'out-3'; $text = isset($displayData['text']) ? $displayData['text'] : ''; ?> <button class="<?php echo $class; ?>" data-toggle="modal" data-target="#<?php echo $selector; ?>"> <span class="icon-<?php echo $icon; ?>" aria-hidden="true"></span> <?php echo $text; ?> </button> toolbar/help.php 0000604 00000001005 15242077251 0007644 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $doTask = $displayData['doTask']; $text = $displayData['text']; ?> <button onclick="<?php echo $doTask; ?>" rel="help" class="btn btn-small"> <span class="icon-question-sign" aria-hidden="true"></span> <?php echo $text; ?> </button> toolbar/popup.php 0000604 00000001177 15242077251 0010071 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $doTask = $displayData['doTask']; $class = $displayData['class']; $text = $displayData['text']; $name = $displayData['name']; ?> <button value="<?php echo $doTask; ?>" class="btn btn-small modal" data-toggle="modal" data-target="#modal-<?php echo $name; ?>"> <span class="<?php echo $class; ?>" aria-hidden="true"></span> <?php echo $text; ?> </button> toolbar/containerclose.php 0000604 00000000405 15242077251 0011727 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> </div> toolbar/base.php 0000604 00000000550 15242077251 0007632 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <div class="btn-wrapper" <?php echo $displayData['id']; ?>> <?php echo $displayData['action']; ?> </div> toolbar/title.php 0000604 00000000757 15242077251 0010052 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $icon = empty($displayData['icon']) ? 'generic' : preg_replace('#\.[^ .]*$#', '', $displayData['icon']); ?> <h1 class="page-title"> <span class="icon-<?php echo $icon; ?>" aria-hidden="true"></span> <?php echo $displayData['title']; ?> </h1> toolbar/versions.php 0000604 00000001611 15242077251 0010567 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.framework'); ?> <a rel="{handler: 'iframe', size: {x: <?php echo $displayData['height']; ?>, y: <?php echo $displayData['width']; ?>}}" href="index.php?option=com_contenthistory&view=history&layout=modal&tmpl=component&item_id=<?php echo (int) $displayData['itemId']; ?>&type_id=<?php echo $displayData['typeId']; ?>&type_alias=<?php echo $displayData['typeAlias']; ?>&<?php echo JSession::getFormToken(); ?>=1" title="<?php echo $displayData['title']; ?>" class="btn btn-small modal_jform_contenthistory"> <span class="icon-archive" aria-hidden="true"></span> <?php echo $displayData['title']; ?> </a> toolbar/batch.php 0000604 00000001401 15242077251 0007775 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $title = $displayData['title']; JText::script('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'); $message = "alert(Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'));"; ?> <button type="button" data-toggle="modal" onclick="if (document.adminForm.boxchecked.value==0){<?php echo $message; ?>}else{jQuery( '#collapseModal' ).modal('show'); return true;}" class="btn btn-small"> <span class="icon-checkbox-partial" aria-hidden="true"></span> <?php echo $title; ?> </button> toolbar/separator.php 0000604 00000000372 15242077251 0010722 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; toolbar/iconclass.php 0000604 00000000447 15242077251 0010703 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> icon-<?php echo $displayData['icon']; ?> toolbar/index.html 0000705 00000000037 15242077251 0010206 0 ustar 00 <!DOCTYPE html><title></title> toolbar/confirm.php 0000604 00000001036 15242077251 0010355 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $doTask = $displayData['doTask']; $class = $displayData['class']; $text = $displayData['text']; ?> <button onclick="<?php echo $doTask; ?>" class="btn btn-small"> <span class="<?php echo $class; ?>" aria-hidden="true"></span> <?php echo $text; ?> </button> toolbar/slider.php 0000604 00000001263 15242077251 0010204 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::_('behavior.core'); $doTask = $displayData['doTask']; $class = $displayData['class']; $text = $displayData['text']; $name = $displayData['name']; $onClose = $displayData['onClose']; ?> <button onclick="<?php echo $doTask; ?>" class="btn btn-small" data-toggle="collapse" data-target="#collapse-<?php echo $name; ?>"<?php echo $onClose; ?>> <span class="icon-cog" aria-hidden="true"></span> <?php echo $text; ?> </button> toolbar/link.php 0000604 00000001023 15242077251 0007651 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $doTask = $displayData['doTask']; $class = $displayData['class']; $text = $displayData['text']; ?> <button onclick="location.href='<?php echo $doTask; ?>';" class="btn btn-small"> <span class="<?php echo $class; ?>" aria-hidden="true"></span> <?php echo $text; ?> </button> editors/buttons/button.php 0000604 00000002065 15242077251 0011743 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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; editors/buttons/index.html 0000705 00000000037 15242077251 0011713 0 ustar 00 <!DOCTYPE html><title></title> editors/index.html 0000705 00000000037 15242077251 0010215 0 ustar 00 <!DOCTYPE html><title></title> editors/buttons.php 0000604 00000001076 15242077251 0010431 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> pagination/index.html 0000705 00000000037 15242077251 0010675 0 ustar 00 <!DOCTYPE html><title></title> pagination/list.php 0000604 00000001275 15242077251 0010367 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $list = $displayData['list']; ?> <ul> <li class="pagination-start"><?php echo $list['start']['data']; ?></li> <li class="pagination-prev"><?php echo $list['previous']['data']; ?></li> <?php foreach ($list['pages'] as $page) : ?> <?php echo '<li>' . $page['data'] . '</li>'; ?> <?php endforeach; ?> <li class="pagination-next"><?php echo $list['next']['data']; ?></li> <li class="pagination-end"><?php echo $list['end']['data']; ?></li> </ul> pagination/links.php 0000604 00000004437 15242077251 0010537 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\Registry\Registry; $list = $displayData['list']; $pages = $list['pages']; $options = new Registry($displayData['options']); $showLimitBox = $options->get('showLimitBox', true); $showPagesLinks = $options->get('showPagesLinks', true); $showLimitStart = $options->get('showLimitStart', true); // Calculate to display range of pages $currentPage = 1; $range = 1; $step = 5; if (!empty($pages['pages'])) { foreach ($pages['pages'] as $k => $page) { if (!$page['active']) { $currentPage = $k; } } } if ($currentPage >= $step) { if ($currentPage % $step === 0) { $range = ceil($currentPage / $step) + 1; } else { $range = ceil($currentPage / $step); } } ?> <div class="pagination pagination-toolbar clearfix" style="text-align: center;"> <?php if ($showLimitBox) : ?> <div class="limit pull-right"> <?php echo JText::_('JGLOBAL_DISPLAY_NUM') . $list['limitfield']; ?> </div> <?php endif; ?> <?php if ($showPagesLinks && (!empty($pages))) : ?> <ul class="pagination-list"> <?php echo JLayoutHelper::render('joomla.pagination.link', $pages['start']); echo JLayoutHelper::render('joomla.pagination.link', $pages['previous']); ?> <?php foreach ($pages['pages'] as $k => $page) : ?> <?php $output = JLayoutHelper::render('joomla.pagination.link', $page); ?> <?php if (in_array($k, range($range * $step - ($step + 1), $range * $step), true)) : ?> <?php if (($k % $step === 0 || $k === $range * $step - ($step + 1)) && $k !== $currentPage && $k !== $range * $step - $step) : ?> <?php $output = preg_replace('#(<a.*?>).*?(</a>)#', '$1...$2', $output); ?> <?php endif; ?> <?php endif; ?> <?php echo $output; ?> <?php endforeach; ?> <?php echo JLayoutHelper::render('joomla.pagination.link', $pages['next']); echo JLayoutHelper::render('joomla.pagination.link', $pages['end']); ?> </ul> <?php endif; ?> <?php if ($showLimitStart) : ?> <input type="hidden" name="<?php echo $list['prefix']; ?>limitstart" value="<?php echo $list['limitstart']; ?>" /> <?php endif; ?> </div> pagination/link.php 0000604 00000003564 15242077251 0010354 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** @var JPaginationObject $item */ $item = $displayData['data']; $display = $item->text; switch ((string) $item->text) { // Check for "Start" item case JText::_('JLIB_HTML_START') : $icon = 'icon-backward icon-first'; break; // Check for "Prev" item case $item->text === JText::_('JPREV') : $item->text = JText::_('JPREVIOUS'); $icon = 'icon-step-backward icon-previous'; break; // Check for "Next" item case JText::_('JNEXT') : $icon = 'icon-step-forward icon-next'; break; // Check for "End" item case JText::_('JLIB_HTML_END') : $icon = 'icon-forward icon-last'; break; default: $icon = null; break; } if ($icon !== null) { $display = '<span class="' . $icon . '"></span>'; } if ($displayData['active']) { if ($item->base > 0) { $limit = 'limitstart.value=' . $item->base; } else { $limit = 'limitstart.value=0'; } $cssClasses = array(); $title = ''; if (!is_numeric($item->text)) { JHtml::_('bootstrap.tooltip'); $cssClasses[] = 'hasTooltip'; $title = ' title="' . $item->text . '" '; } $onClick = 'document.adminForm.' . $item->prefix . 'limitstart.value=' . ($item->base > 0 ? $item->base : '0') . '; Joomla.submitform();return false;'; } else { $class = (property_exists($item, 'active') && $item->active) ? 'active' : 'disabled'; } ?> <?php if ($displayData['active']) : ?> <li> <a <?php echo $cssClasses ? 'class="' . implode(' ', $cssClasses) . '"' : ''; ?> <?php echo $title; ?> href="#" onclick="<?php echo $onClick; ?>"> <?php echo $display; ?> </a> </li> <?php else : ?> <li class="<?php echo $class; ?>"> <span><?php echo $display; ?></span> </li> <?php endif; modal/body.php 0000604 00000004255 15242077251 0007315 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> modal/header.php 0000604 00000004461 15242077251 0007607 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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" aria-label="<?php echo JText::_('JLIB_HTML_BEHAVIOR_CLOSE'); ?>" > <span aria-hidden="true">×</span> </button> <?php endif; ?> <?php if (isset($params['title'])) : ?> <h3><?php echo $params['title']; ?></h3> <?php endif; ?> </div> modal/main.php 0000604 00000016670 15242077251 0007310 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> modal/iframe.php 0000604 00000005055 15242077251 0007622 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> modal/footer.php 0000604 00000003704 15242077251 0007654 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> links/index.html 0000705 00000000037 15242077251 0007664 0 ustar 00 <!DOCTYPE html><title></title> links/groupopen.php 0000604 00000000603 15242077251 0010413 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <h2 class="nav-header"><?php echo JFilterOutput::ampReplace(JText::_($displayData)); ?></h2> <ul class="j-links-group nav nav-list"> links/groupsclose.php 0000604 00000000405 15242077251 0010742 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> </div> links/groupclose.php 0000604 00000000405 15242077251 0010557 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> </ul> links/groupsopen.php 0000604 00000000433 15242077251 0010577 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <div class="j-links-groups"> links/link.php 0000604 00000002111 15242077251 0007326 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $id = empty($displayData['id']) ? '' : (' id="' . $displayData['id'] . '"'); $target = empty($displayData['target']) ? '' : (' target="' . $displayData['target'] . '"'); $rel = empty($displayData['rel']) ? '' : (' rel="' . $displayData['rel'] . '"'); $onclick = empty($displayData['onclick']) ? '' : (' onclick="' . $displayData['onclick'] . '"'); $title = empty($displayData['title']) ? '' : (' title="' . $this->escape($displayData['title']) . '"'); $text = empty($displayData['text']) ? '' : ('<span class="j-links-link">' . $displayData['text'] . '</span>') ?> <li<?php echo $id; ?>> <a href="<?php echo JFilterOutput::ampReplace($displayData['link']); ?>"<?php echo $target . $rel . $onclick . $title; ?>> <span class="icon-<?php echo $displayData['image']; ?>" aria-hidden="true"></span> <?php echo $text; ?> </a> </li> links/groupseparator.php 0000604 00000000444 15242077251 0011455 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <div class="j-links-separator"></div> form/renderlabel.php 0000604 00000003152 15242077251 0010501 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> form/field/file.php 0000604 00000006205 15242077251 0010226 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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); ?> form/field/media.php 0000604 00000014010 15242077251 0010357 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * 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 string $preview The preview image relative path * @var integer $previewHeight The image preview height * @var integer $previewWidth The image preview width * @var string $asset The asset text * @var string $authorField The label text * @var string $folder The folder text * @var string $link The link text */ extract($displayData); // Load the modal behavior script. JHtml::_('behavior.modal'); // Include jQuery JHtml::_('jquery.framework'); JHtml::_('script', 'media/mediafield-mootools.min.js', array('version' => 'auto', 'relative' => true, 'framework' => true)); // Tooltip for INPUT showing whole image path $options = array( 'onShow' => 'jMediaRefreshImgpathTip', ); JHtml::_('behavior.tooltip', '.hasTipImgpath', $options); if (!empty($class)) { $class .= ' hasTipImgpath'; } else { $class = 'hasTipImgpath'; } $attr = ''; $attr .= ' title="' . htmlspecialchars('<span id="TipImgpath"></span>', ENT_COMPAT, 'UTF-8') . '"'; // Initialize some field attributes. $attr .= !empty($class) ? ' class="input-small field-media-input ' . $class . '"' : ' class="input-small"'; $attr .= !empty($size) ? ' size="' . $size . '"' : ''; // Initialize JavaScript field attributes. $attr .= !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; // The text field. echo '<div class="input-prepend input-append">'; // The Preview. $showPreview = true; $showAsTooltip = false; switch ($preview) { case 'no': // Deprecated parameter value case 'false': case 'none': $showPreview = false; break; case 'yes': // Deprecated parameter value case 'true': case 'show': break; case 'tooltip': default: $showAsTooltip = true; $options = array( 'onShow' => 'jMediaRefreshPreviewTip', ); JHtml::_('behavior.tooltip', '.hasTipPreview', $options); break; } // Pre fill the contents of the popover if ($showPreview) { if ($value && file_exists(JPATH_ROOT . '/' . $value)) { $src = JUri::root() . $value; } else { $src = ''; } $width = $previewWidth; $height = $previewHeight; $style = ''; $style .= ($width > 0) ? 'max-width:' . $width . 'px;' : ''; $style .= ($height > 0) ? 'max-height:' . $height . 'px;' : ''; $imgattr = array( 'id' => $id . '_preview', 'class' => 'media-preview', 'style' => $style, ); $img = JHtml::_('image', $src, JText::_('JLIB_FORM_MEDIA_PREVIEW_ALT'), $imgattr); $previewImg = '<div id="' . $id . '_preview_img"' . ($src ? '' : ' style="display:none"') . '>' . $img . '</div>'; $previewImgEmpty = '<div id="' . $id . '_preview_empty"' . ($src ? ' style="display:none"' : '') . '>' . JText::_('JLIB_FORM_MEDIA_PREVIEW_EMPTY') . '</div>'; if ($showAsTooltip) { echo '<div class="media-preview add-on">'; $tooltip = $previewImgEmpty . $previewImg; $options = array( 'title' => JText::_('JLIB_FORM_MEDIA_PREVIEW_SELECTED_IMAGE'), 'text' => '<span class="icon-eye" aria-hidden="true"></span>', 'class' => 'hasTipPreview' ); echo JHtml::_('tooltip', $tooltip, $options); echo '</div>'; } else { echo '<div class="media-preview add-on" style="height:auto">'; echo ' ' . $previewImgEmpty; echo ' ' . $previewImg; echo '</div>'; } } echo ' <input type="text" name="' . $name . '" id="' . $id . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '" readonly="readonly"' . $attr . ' data-basepath="' . JUri::root() . '"/>'; ?> <a class="modal btn" title="<?php echo JText::_('JLIB_FORM_BUTTON_SELECT'); ?>" href=" <?php echo ($readonly ? '' : ($link ?: 'index.php?option=com_media&view=images&tmpl=component&asset=' . $asset . '&author=' . $authorField) . '&fieldid=' . $id . '&folder=' . $folder) . '"' . ' rel="{handler: \'iframe\', size: {x: 800, y: 500}}"'; ?>> <?php echo JText::_('JLIB_FORM_BUTTON_SELECT'); ?></a><a class="btn hasTooltip" title="<?php echo JText::_('JLIB_FORM_BUTTON_CLEAR'); ?>" href="#" onclick="jInsertFieldValue('', '<?php echo $id; ?>'); return false;"> <span class="icon-remove" aria-hidden="true"></span></a> </div> form/field/range.php 0000604 00000005762 15242077251 0010412 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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')); // Initialize some field attributes. $attributes = array( $class ? 'class="' . $class . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', !empty($onchange) ? 'onchange="' . $onchange . '"' : '', !empty($max) ? 'max="' . $max . '"' : '', !empty($step) ? 'step="' . $step . '"' : '', !empty($min) ? 'min="' . $min . '"' : '', $autofocus ? 'autofocus' : '', ); $value = is_numeric($value) ? (float) $value : $min; ?> <input type="range" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> form/field/url.php 0000604 00000006437 15242077251 0010120 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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); ?> /> form/field/text.php 0000604 00000007357 15242077251 0010304 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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 : '', !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; ?> form/field/combo.php 0000604 00000006074 15242077251 0010412 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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')); JHtml::_('behavior.combobox'); $attr = !empty($class) ? ' class="combobox ' . $class . '"' : ' class="combobox"'; $attr .= !empty($size) ? ' size="' . $size . '"' : ''; $attr .= !empty($readonly) ? ' readonly' : ''; $attr .= !empty($disabled) ? ' disabled' : ''; $attr .= !empty($required) ? ' required aria-required="true"' : ''; // Initialize JavaScript field attributes. $attr .= !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; ?> <div class="combobox input-append"> <input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" <?php echo $attr; ?> autocomplete="off" /> <div class="btn-group"> <button type="button" class="btn dropdown-toggle"> <span class="caret"></span> </button> <ul class="dropdown-menu"> <?php foreach ($options as $option) : ?> <li><a href="#"><?php echo $option->text; ?></a></li> <?php endforeach; ?> </ul> </div> </div> form/field/calendar.php 0000604 00000013710 15242077251 0011057 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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 isset($minYear) && strlen($minYear) ? 'data-min-year="' . $minYear . '"' : ''; ?> <?php echo isset($maxYear) && strlen($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> form/field/contenthistory.php 0000604 00000001356 15242077251 0012405 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> form/field/hidden.php 0000604 00000004757 15242077251 0010554 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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; ?> /> form/field/textarea.php 0000604 00000006420 15242077251 0011123 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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')); // Initialize some field attributes. $autocomplete = !$autocomplete ? 'autocomplete="off"' : 'autocomplete="' . $autocomplete . '"'; $autocomplete = $autocomplete == 'autocomplete="on"' ? '' : $autocomplete; $attributes = array( $columns ?: '', $rows ?: '', !empty($class) ? 'class="' . $class . '"' : '', strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', $onchange ? 'onchange="' . $onchange . '"' : '', $onclick ? 'onclick="' . $onclick . '"' : '', $required ? 'required aria-required="true"' : '', $autocomplete, $autofocus ? 'autofocus' : '', $spellcheck ? '' : 'spellcheck="false"', $maxlength ? $maxlength: '' ); ?> <textarea name="<?php echo $name; ?>" id="<?php echo $id; ?>" <?php echo implode(' ', $attributes); ?> ><?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?></textarea> form/field/password.php 0000604 00000010751 15242077251 0011152 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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 boolean $lock Is this field locked. */ if ($meter) { JHtml::_('script', 'system/passwordstrength.js', array('version' => 'auto', 'relative' => true, 'framework' => true)); // Load script on document load. JFactory::getDocument()->addScriptDeclaration( " jQuery(document).ready(function() { new Form.PasswordStrength('" . $id . "', { threshold: " . $threshold . ", onUpdate: function(element, strength, threshold) { element.set('data-passwordstrength', strength); } }); });" ); } // 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')); if ($lock) { // Load script on document load. JFactory::getDocument()->addScriptDeclaration( " jQuery(document).ready(function() { jQuery('#" . $id ."_lock').on('click', function() { var lockButton = jQuery(this); var passwordInput = jQuery('#" . $id . "'); var lock = lockButton.hasClass('active'); if (lock === true) { lockButton.html('" . JText::_('JMODIFY', true) . "'); passwordInput.attr('disabled', true); passwordInput.val(''); } else { lockButton.html('" . JText::_('JCANCEL', true) . "'); passwordInput.attr('disabled', false); } }); });" ); $disabled = true; $hint = str_repeat('*', strlen($value)); $value = ''; } $attributes = array( strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', !$autocomplete ? 'autocomplete="off"' : '', !empty($class) ? 'class="' . $class . '"' : '', $readonly ? 'readonly' : '', $disabled ? 'disabled' : '', !empty($size) ? 'size="' . $size . '"' : '', !empty($maxLength) ? 'maxlength="' . $maxLength . '"' : '', $required ? 'required aria-required="true"' : '', $autofocus ? 'autofocus' : '', ); ?> <?php if ($lock): ?> <span class="input-append"> <?php endif; ?> <input type="password" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" <?php echo implode(' ', $attributes); ?> /> <?php if ($lock): ?> <button type="button" id="<?php echo $id; ?>_lock" class="btn btn-info" data-toggle="button"><?php echo JText::_('JMODIFY'); ?></button> </span> <?php endif; ?> form/field/number.php 0000604 00000006743 15242077251 0010606 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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); ?> /> form/field/email.php 0000604 00000006650 15242077251 0010402 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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); ?> /> form/field/radio/switcher.php 0000604 00000001277 15242077251 0012241 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Layout\FileLayout; // The layout is needed for transition from "btn-group" in Joomla! 3.10 to the "switcher" field in Joomla! 4 if (!$displayData['class'] || strpos($displayData['class'], 'btn-group') === false) { $displayData['class'] .= ' btn-group'; } $renderer = new FileLayout('joomla.form.field.radio', null, $this->options); $renderer->setIncludePaths($this->includePaths); echo $renderer->render($displayData); form/field/moduleorder.php 0000604 00000006442 15242077251 0011633 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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::_('formbehavior.chosen', 'select', null, array('disable_search_threshold' => 0)); 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-module-id="<?php echo $moduleId; ?>" data-name="<?php echo $name; ?>"></div> form/field/subform/repeatable/section-byfieldsets.php 0000604 00000004217 15242077251 0017050 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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 subform-repeatable-group-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-danger group-remove group-remove-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-primary group-move group-move-<?php echo $unique_subform_id; ?>" 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> form/field/subform/repeatable/section.php 0000604 00000003474 15242077251 0014541 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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 subform-repeatable-group-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-danger group-remove group-remove-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-primary group-move group-move-<?php echo $unique_subform_id; ?>" 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> form/field/subform/default.php 0000604 00000002276 15242077251 0012414 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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> form/field/subform/repeatable-table/section-byfieldsets.php 0000604 00000003777 15242077251 0020147 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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 subform-repeatable-group-<?php echo $unique_subform_id; ?>" 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; } ?>" data-column="<?php echo $fieldset->name; ?>"> <?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="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-danger group-remove group-remove-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-primary group-move group-move-<?php echo $unique_subform_id; ?>" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"> <span class="icon-move" aria-hidden="true"></span> </a> <?php endif; ?> </div> </td> <?php endif; ?> </tr> form/field/subform/repeatable-table/section.php 0000604 00000003573 15242077251 0015626 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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 subform-repeatable-group-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-danger group-remove group-remove-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-primary group-move group-move-<?php echo $unique_subform_id; ?>" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"> <span class="icon-move" aria-hidden="true"></span> </a> <?php endif; ?> </div> </td> <?php endif; ?> </tr> form/field/subform/repeatable-table.php 0000604 00000010617 15242077251 0014157 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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 ($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); if ($field->description) { $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; ?> form-vertical"> <div class="subform-repeatable" data-bt-add="a.group-add-<?php echo $unique_subform_id; ?>" data-bt-remove="a.group-remove-<?php echo $unique_subform_id; ?>" data-bt-move="a.group-move-<?php echo $unique_subform_id; ?>" data-repeatable-element="tr.subform-repeatable-group-<?php echo $unique_subform_id; ?>" data-rows-container="tbody.rows-container-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" 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 class="rows-container-<?php echo $unique_subform_id; ?>"> <?php foreach ($forms as $k => $form): echo $this->sublayout( $sublayout, array( 'form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, ) ); endforeach; ?> </tbody> </table> <?php if ($multiple) : ?> <template class="subform-repeatable-template-section" style="display: none;"><?php // Use str_replace to escape HTML in a simple way, it need for IE compatibility, and should be removed later echo str_replace( array('<', '>'), array('SUBFORMLT', 'SUBFORMGT'), trim( $this->sublayout( $sublayout, array( 'form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, ) ) ) ); ?></template> <?php endif; ?> </div> </div> </div> form/field/subform/repeatable.php 0000604 00000006045 15242077251 0013072 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @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-<?php echo $unique_subform_id; ?>" data-bt-remove="a.group-remove-<?php echo $unique_subform_id; ?>" data-bt-move="a.group-move-<?php echo $unique_subform_id; ?>" data-repeatable-element="div.subform-repeatable-group-<?php echo $unique_subform_id; ?>" 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="btn btn-mini button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" 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, 'unique_subform_id' => $unique_subform_id, ) ); endforeach; ?> <?php if ($multiple) : ?> <template class="subform-repeatable-template-section" style="display: none;"><?php // Use str_replace to escape HTML in a simple way, it need for IE compatibility, and should be removed later echo str_replace( array('<', '>'), array('SUBFORMLT', 'SUBFORMGT'), trim( $this->sublayout( $sublayout, array( 'form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, ) ) ) ); ?></template> <?php endif; ?> </div> </div> </div> form/field/color/advanced.php 0000604 00000010201 15242077251 0012161 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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 $spellchec 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 $checked Is this field checked? * @var array $position Is this field checked? * @var array $control Is this field checked? */ if ($validate !== 'color' && in_array($format, array('rgb', 'rgba'), true)) { $alpha = ($format === 'rgba'); $placeholder = $alpha ? 'rgba(0, 0, 0, 0.5)' : 'rgb(0, 0, 0)'; } else { $placeholder = '#rrggbb'; } $inputclass = ($keywords && ! in_array($format, array('rgb', 'rgba'), true)) ? ' keywords' : ' ' . $format; $class = ' class="' . trim('minicolors ' . $class) . ($validate === 'color' ? '' : $inputclass) . '"'; $control = $control ? ' data-control="' . $control . '"' : ''; $format = $format ? ' data-format="' . $format . '"' : ''; $keywords = $keywords ? ' data-keywords="' . $keywords . '"' : ''; $validate = $validate ? ' data-validate="' . $validate . '"' : ''; $disabled = $disabled ? ' disabled' : ''; $readonly = $readonly ? ' readonly' : ''; $hint = strlen($hint) ? ' placeholder="' . $this->escape($hint) . '"' : ' placeholder="' . $placeholder . '"'; $autocomplete = ! $autocomplete ? ' autocomplete="off"' : ''; // Force LTR input value in RTL, due to display issues with rgba/hex colors $direction = $lang->isRtl() ? ' dir="ltr" style="text-align:right"' : ''; // 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')); JHtml::_('script', 'jui/jquery.minicolors.min.js', array('version' => 'auto', 'relative' => true)); JHtml::_('stylesheet', 'jui/jquery.minicolors.css', array('version' => 'auto', 'relative' => true)); JHtml::_('script', 'system/color-field-adv-init.min.js', array('version' => 'auto', 'relative' => true)); ?> <input type="text" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo $this->escape($color); ?>"<?php echo $hint, $class, $position, $control, $readonly, $disabled, $required, $onchange, $autocomplete, $autofocus, $format, $keywords, $direction, $validate; ?>/> form/field/color/simple.php 0000604 00000006561 15242077251 0011723 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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 $spellchec 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 $checked Is this field checked? * @var array $position Is this field checked? * @var array $control Is this field checked? */ $class = ' class="' . trim('simplecolors chzn-done ' . $class) . '"'; $disabled = $disabled ? ' disabled' : ''; $readonly = $readonly ? ' readonly' : ''; // Include jQuery JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); JHtml::_('script', 'jui/jquery.simplecolors.min.js', array('version' => 'auto', 'relative' => true)); JHtml::_('stylesheet', 'jui/jquery.simplecolors.css', array('version' => 'auto', 'relative' => true)); JHtml::_('script', 'system/color-field-init.min.js', array('version' => 'auto', 'relative' => true)); ?> <select data-chosen="true" name="<?php echo $name; ?>" id="<?php echo $id; ?>"<?php echo $disabled; ?><?php echo $readonly; ?><?php echo $required; ?><?php echo $class; ?><?php echo $position; ?><?php echo $onchange; ?><?php echo $autofocus; ?> style="visibility:hidden;width:22px;height:1px"> <?php foreach ($colors as $i => $c) : ?> <option<?php echo ($c == $color ? ' selected="selected"' : ''); ?>><?php echo $c; ?></option> <?php if (($i + 1) % $split == 0) : ?> <option>-</option> <?php endif; ?> <?php endforeach; ?> </select> form/field/checkboxes.php 0000604 00000007567 15242077251 0011441 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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> form/field/user.php 0000604 00000007254 15242077251 0010272 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') 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; ?>