AAAAcomponentlayouts.php 0000666 00000005366 15137262015 0010720 0 ustar 00 setQuery($query);
$template = $db->loadResult();
if ($view = $node->attributes('view') && $extn = $node->attributes('extension'))
{
$view = preg_replace('#\W#', '', $view);
$extn = preg_replace('#\W#', '', $extn);
$path1 = JPATH_SITE . '/components/' . $extn . '/views/' . $view . '/tmpl';
$path2 = JPATH_SITE . '/templates/' . $template . '/html/' . $extn . '/' . $view;
$options[] = JHtml::_('select.option', '', JText::_('JOPTION_USE_MENU_REQUEST_SETTING'));
}
if ($path1 && $path2)
{
jimport('joomla.filesystem.file');
$path1 = JPath::clean($path1);
$path2 = JPath::clean($path2);
$files = JFolder::files($path1, '^[^_]*\.php$');
foreach ($files as $file)
{
$options[] = JHtml::_('select.option', JFile::stripExt($file));
}
if (is_dir($path2) && $files = JFolder::files($path2, '^[^_]*\.php$'))
{
$options[] = JHtml::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT_TEMPLATE'));
foreach ($files as $file)
{
$options[] = JHtml::_('select.option', JFile::stripExt($file));
}
$options[] = JHtml::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT_TEMPLATE'));
}
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::_getOptions($node), $options);
return $options;
}
}
usergroup.php 0000666 00000003366 15137262015 0007326 0 ustar 00 attributes('size'))
{
$attribs .= 'size="' . $v . '"';
}
if ($v = $node->attributes('class'))
{
$attribs .= 'class="' . $v . '"';
}
else
{
$attribs .= 'class="inputbox"';
}
if ($m = $node->attributes('multiple'))
{
$attribs .= 'multiple="multiple"';
$ctrl .= '[]';
//$value = implode('|',)
}
//array_unshift($editors, JHtml::_('select.option', '', '- '. JText::_('SELECT_EDITOR') .' -'));
return JHtml::_('access.usergroup', $ctrl, $value, $attribs, false);
}
}
spacer.php 0000666 00000003452 15137262015 0006544 0 ustar 00 getQuery(true);
$query->select('a.lang_code AS value, a.title AS text, a.title_native');
$query->from('#__languages AS a');
$query->where('a.published >= 0');
$query->order('a.title');
// Get the options.
$db->setQuery($query);
$options = $db->loadObjectList();
// Check for a database error.
if ($db->getErrorNum())
{
JError::raiseWarning(500, $db->getErrorMsg());
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::_getOptions($node), $options);
return $options;
}
}
category.php 0000666 00000003366 15137262015 0007110 0 ustar 00 attributes('extension');
$class = $node->attributes('class');
$filter = explode(',', $node->attributes('filter'));
if (!isset($extension))
{
// Alias for extension
$extension = $node->attributes('scope');
if (!isset($extension))
{
$extension = 'com_content';
}
}
if (!$class)
{
$class = "inputbox";
}
if (count($filter) < 1)
{
$filter = null;
}
return JHtml::_(
'list.category',
$control_name . '[' . $name . ']',
$extension,
$extension . '.view',
$filter,
(int) $value,
$class,
null,
1,
$control_name . $name
);
}
}
languages.php 0000666 00000003364 15137262015 0007237 0 ustar 00 attributes('client');
$languages = JLanguageHelper::createLanguageList($value, constant('JPATH_' . strtoupper($client)), true);
array_unshift($languages, JHtml::_('select.option', '', JText::_('JOPTION_SELECT_LANGUAGE')));
return JHtml::_(
'select.genericlist',
$languages,
$control_name . '[' . $name . ']',
array('id' => $control_name . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value)
);
}
}
list.php 0000666 00000004325 15137262015 0006242 0 ustar 00 children() as $option)
{
$val = $option->attributes('value');
$text = $option->data();
$options[] = JHtml::_('select.option', $val, JText::_($text));
}
return $options;
}
/**
* Fetch the HTML code for the parameter element.
*
* @param string $name The field name.
* @param mixed $value The value of the field.
* @param JSimpleXMLElement &$node The current JSimpleXMLElement node.
* @param string $control_name The name of the HTML control.
*
* @return string
*
* @deprecated 12.1
* @since 11.1
*/
public function fetchElement($name, $value, &$node, $control_name)
{
$ctrl = $control_name . '[' . $name . ']';
$attribs = ' ';
if ($v = $node->attributes('size'))
{
$attribs .= 'size="' . $v . '"';
}
if ($v = $node->attributes('class'))
{
$attribs .= 'class="' . $v . '"';
}
else
{
$attribs .= 'class="inputbox"';
}
if ($m = $node->attributes('multiple'))
{
$attribs .= 'multiple="multiple"';
$ctrl .= '[]';
}
return JHtml::_(
'select.genericlist',
$this->_getOptions($node),
$ctrl,
array('id' => $control_name . $name, 'list.attr' => $attribs, 'list.select' => $value)
);
}
}
helpsites.php 0000666 00000003363 15137262015 0007270 0 ustar 00 getShortVersion());
$helpsites = JHelp::createSiteList(JPATH_ADMINISTRATOR . '/help/helpsites.xml', $value);
array_unshift($helpsites, JHtml::_('select.option', '', JText::_('local')));
return JHtml::_(
'select.genericlist',
$helpsites,
$control_name . '[' . $name . ']',
array('id' => $control_name . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value)
);
}
}
index.html 0000666 00000000037 15137262015 0006547 0 ustar 00
imagelist.php 0000666 00000002577 15137262015 0007254 0 ustar 00 addAttribute('filter', $filter);
$parameter = $this->_parent->loadElement('filelist');
return $parameter->fetchElement($name, $value, $node, $control_name);
}
}
modulelayouts.php 0000666 00000005275 15137262015 0010202 0 ustar 00 attributes('client_id')) ? $v : 0;
$options = array();
$path1 = null;
$path2 = null;
// Load template entries for each menuid
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('template');
$query->from('#__template_styles');
$query->where('client_id = ' . (int) $clientId);
$query->where('home = 1');
$db->setQuery($query);
$template = $db->loadResult();
if ($module = $node->attributes('module'))
{
$base = ($clientId == 1) ? JPATH_ADMINISTRATOR : JPATH_SITE;
$module = preg_replace('#\W#', '', $module);
$path1 = $base . '/modules/' . $module . '/tmpl';
$path2 = $base . '/templates/' . $template . '/html/' . $module;
$options[] = JHTML::_('select.option', '', '');
}
if ($path1 && $path2)
{
jimport('joomla.filesystem.file');
$path1 = JPath::clean($path1);
$path2 = JPath::clean($path2);
$files = JFolder::files($path1, '^[^_]*\.php$');
foreach ($files as $file)
{
$options[] = JHTML::_('select.option', JFile::stripExt($file));
}
if (is_dir($path2) && $files = JFolder::files($path2, '^[^_]*\.php$'))
{
$options[] = JHTML::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT'));
foreach ($files as $file)
{
$options[] = JHTML::_('select.option', JFile::stripExt($file));
}
$options[] = JHTML::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT'));
}
}
// Merge any additional options in the XML definition.
$options = array_merge(parent::_getOptions($node), $options);
return $options;
}
}
folderlist.php 0000666 00000004177 15137262015 0007443 0 ustar 00 attributes('directory');
$filter = $node->attributes('filter');
$exclude = $node->attributes('exclude');
$folders = JFolder::folders($path, $filter);
$options = array();
foreach ($folders as $folder)
{
if ($exclude)
{
if (preg_match(chr(1) . $exclude . chr(1), $folder))
{
continue;
}
}
$options[] = JHtml::_('select.option', $folder, $folder);
}
if (!$node->attributes('hide_none'))
{
array_unshift($options, JHtml::_('select.option', '-1', JText::_('JOPTION_DO_NOT_USE')));
}
if (!$node->attributes('hide_default'))
{
array_unshift($options, JHtml::_('select.option', '', JText::_('JOPTION_USE_DEFAULT')));
}
return JHtml::_(
'select.genericlist',
$options,
$control_name . '[' . $name . ']',
array('id' => 'param' . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value)
);
}
}
radio.php 0000666 00000003022 15137262015 0006356 0 ustar 00 children() as $option)
{
$val = $option->attributes('value');
$text = $option->data();
$options[] = JHtml::_('select.option', $val, $text);
}
return JHtml::_('select.radiolist', $options, '' . $control_name . '[' . $name . ']', '', 'value', 'text', $value, $control_name . $name, true);
}
}
password.php 0000666 00000003045 15137262015 0007127 0 ustar 00 attributes('size') ? 'size="' . $node->attributes('size') . '"' : '');
$class = ($node->attributes('class') ? 'class="' . $node->attributes('class') . '"' : 'class="text_area"');
return '';
}
}
filelist.php 0000666 00000004414 15137262015 0007101 0 ustar 00 attributes('directory');
$filter = $node->attributes('filter');
$exclude = $node->attributes('exclude');
$stripExt = $node->attributes('stripext');
$files = JFolder::files($path, $filter);
$options = array();
if (!$node->attributes('hide_none'))
{
$options[] = JHtml::_('select.option', '-1', JText::_('JOPTION_DO_NOT_USE'));
}
if (!$node->attributes('hide_default'))
{
$options[] = JHtml::_('select.option', '', JText::_('JOPTION_USE_DEFAULT'));
}
if (is_array($files))
{
foreach ($files as $file)
{
if ($exclude)
{
if (preg_match(chr(1) . $exclude . chr(1), $file))
{
continue;
}
}
if ($stripExt)
{
$file = JFile::stripExt($file);
}
$options[] = JHtml::_('select.option', $file, $file);
}
}
return JHtml::_(
'select.genericlist',
$options,
$control_name . '[' . $name . ']',
array('id' => 'param' . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value)
);
}
}
calendar.php 0000666 00000003141 15137262015 0007033 0 ustar 00 attributes('format') ? $node->attributes('format') : '%Y-%m-%d');
$class = $node->attributes('class') ? $node->attributes('class') : 'inputbox';
$id = $control_name . $name;
$name = $control_name . '[' . $name . ']';
return JHtml::_('calendar', $value, $name, $id, $format, array('class' => $class));
}
}
sql.php 0000666 00000003465 15137262015 0006072 0 ustar 00 setQuery($node->attributes('query'));
$key = ($node->attributes('key_field') ? $node->attributes('key_field') : 'value');
$val = ($node->attributes('value_field') ? $node->attributes('value_field') : $name);
$options = $db->loadObjectlist();
// Check for an error.
if ($db->getErrorNum())
{
JError::raiseWarning(500, $db->getErrorMsg());
return false;
}
if (!$options)
{
$options = array();
}
return JHtml::_(
'select.genericlist',
$options,
$control_name . '[' . $name . ']',
array(
'id' => $control_name . $name,
'list.attr' => 'class="inputbox"',
'list.select' => $value,
'option.key' => $key,
'option.text' => $val
)
);
}
}
hidden.php 0000666 00000004056 15137262015 0006523 0 ustar 00 attributes('class') ? 'class="' . $node->attributes('class') . '"' : 'class="text_area"');
return '';
}
/**
* Fetch tooltip for a hidden element
*
* @param string $label Element label
* @param string $description Element description (which renders as a tool tip)
* @param JXMLElement &$xmlElement Element object
* @param string $control_name Control name
* @param string $name Element name
*
* @return string
*
* @deprecated 12.1
* @since 11.1
*/
public function fetchTooltip($label, $description, &$xmlElement, $control_name = '', $name = '')
{
// Deprecation warning.
JLog::add('JElementHidden::fetchTooltip() is deprecated.', JLog::WARNING, 'deprecated');
return false;
}
}
.htaccess 0000666 00000000177 15137262015 0006355 0 ustar 00
Order allow,deny
Deny from all