diff --git a/html/com_content/article/default.php b/html/com_content/article/default.php index 388fae2..ce1952e 100644 --- a/html/com_content/article/default.php +++ b/html/com_content/article/default.php @@ -19,6 +19,8 @@ use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; +HTMLHelper::addIncludePath(JPATH_COMPONENT . '/helpers'); + if (ASTROID_JOOMLA_VERSION > 3) { \JLoader::registerAlias('ContentHelperRoute', 'Joomla\Component\Content\Site\Helper\RouteHelper'); } else { @@ -67,12 +69,6 @@ get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam || $template->params->get('astroid_readtime', 1)); ?> - print) : ?> -
- item, $params); ?> -
-
- render('above-title'); ?> get('show_title') || $params->get('show_author'))) : ?>
@@ -95,16 +91,9 @@
- print) : ?> - get('show_print_icon') || $params->get('show_email_icon')) : ?> - $params, 'item' => $this->item, 'print' => false)); ?> - - - -
- item, $params); ?> -
- + + + $params, 'item' => $this->item)); ?> 0)); -$this->tab_name = 'com-content-form'; -$this->ignore_fieldsets = array('image-intro', 'image-full', 'jmetadata', 'item_associations'); - -// Create shortcut to parameters. -$params = $this->state->get('params'); - -//Blog Options -$attribs = json_decode($this->item->attribs, false); -// Article type option - -$this->form->setValue('astroid_article_type', 'attribs' , (isset($attribs->astroid_article_type) && $attribs->astroid_article_type) ? $attribs->astroid_article_type : ''); -$this->form->setValue('astroid_article_video_type', 'attribs' , (isset($attribs->astroid_article_video_type) && $attribs->astroid_article_video_type) ? $attribs->astroid_article_video_type : 'standard'); - -$this->form->setValue('astroid_article_video_url', 'attribs' , (isset($attribs->astroid_article_video_url) && $attribs->astroid_article_video_url) ? $attribs->astroid_article_video_url : ''); - -$this->form->setValue('astroid_article_gallery_width', 'attribs' , (isset($attribs->astroid_article_gallery_width) && $attribs->astroid_article_gallery_width) ? $attribs->astroid_article_gallery_width : ''); - -$this->form->setValue('astroid_article_gallery_bullets', 'attribs' , (isset($attribs->astroid_article_gallery_bullets) && $attribs->astroid_article_gallery_bullets) ? $attribs->astroid_article_gallery_bullets : @$attribs->astroid_article_gallery_bullets); - -$this->form->setValue('astroid_article_gallery_navigation', 'attribs' , (isset($attribs->astroid_article_gallery_navigation) && $attribs->astroid_article_gallery_navigation) ? $attribs->astroid_article_gallery_navigation : @$attribs->astroid_article_gallery_navigation); - -$this->form->setValue('astroid_article_thumbnail', 'attribs' , (isset($attribs->astroid_article_thumbnail) && $attribs->astroid_article_thumbnail) ? $attribs->astroid_article_thumbnail : @$attribs->astroid_article_thumbnail); - -$this->form->setValue('astroid_article_gallery_items', 'attribs' , (isset($attribs->astroid_article_gallery_items) && $attribs->astroid_article_gallery_items) ? $attribs->astroid_article_gallery_items : ''); - -$this->form->setValue('astroid_article_audio_source', 'attribs' , (isset($attribs->astroid_article_audio_source) && $attribs->astroid_article_audio_source) ? $attribs->astroid_article_audio_source : ''); - - -$this->form->setValue('astroid_article_audio_soundcloud', 'attribs' , (isset($attribs->astroid_article_audio_soundcloud) && $attribs->astroid_article_audio_soundcloud) ? $attribs->astroid_article_audio_soundcloud : ''); - -$this->form->setValue('astroid_article_audio_spotify', 'attribs' , (isset($attribs->astroid_article_audio_spotify) && $attribs->astroid_article_audio_spotify) ? $attribs->astroid_article_audio_spotify : ''); - -$this->form->setValue('astroid_article_review_heading', 'attribs' , (isset($attribs->astroid_article_review_heading) && $attribs->astroid_article_review_heading) ? $attribs->astroid_article_review_heading : ''); - -$this->form->setValue('astroid_article_review_summery', 'attribs' , (isset($attribs->astroid_article_review_summery) && $attribs->astroid_article_review_summery) ? $attribs->astroid_article_review_summery : ''); - -$this->form->setValue('astroid_article_review_good', 'attribs' , (isset($attribs->astroid_article_review_good) && $attribs->astroid_article_review_good) ? $attribs->astroid_article_review_good : ''); - -$this->form->setValue('astroid_article_review_bad', 'attribs' , (isset($attribs->astroid_article_review_bad) && $attribs->astroid_article_review_bad) ? $attribs->astroid_article_review_bad : ''); - -$this->form->setValue('astroid_article_review_rating', 'attribs' , (isset($attribs->astroid_article_review_rating) && $attribs->astroid_article_review_rating) ? $attribs->astroid_article_review_rating : ''); - -$this->form->setValue('astroid_article_button_action', 'attribs' , (isset($attribs->astroid_article_button_action) && $attribs->astroid_article_button_action) ? $attribs->astroid_article_button_action : ''); - -$this->form->setValue('astroid_article_button_link', 'attribs' , (isset($attribs->astroid_article_button_link) && $attribs->astroid_article_button_link) ? $attribs->astroid_article_button_link : ''); - -$this->form->setValue('astroid_article_review_criterias', 'attribs' , (isset($attribs->astroid_article_review_criterias) && $attribs->astroid_article_review_criterias) ? $attribs->astroid_article_review_criterias : ''); - -$this->form->setValue('astroid_article_quote_text', 'attribs' , (isset($attribs->astroid_article_quote_text) && $attribs->astroid_article_quote_text) ? $attribs->astroid_article_quote_text : ''); - -$this->form->setValue('astroid_article_quote_author', 'attribs' , (isset($attribs->astroid_article_quote_author) && $attribs->astroid_article_quote_author) ? $attribs->astroid_article_quote_author : ''); - -$this->form->setValue('astroid_article_badge', 'attribs' , (isset($attribs->astroid_article_badge) && $attribs->astroid_article_badge) ? $attribs->astroid_article_badge : ''); - -$this->form->setValue('astroid_article_badge_type', 'attribs' , (isset($attribs->astroid_article_badge_type) && $attribs->astroid_article_badge_type) ? $attribs->astroid_article_badge_type : ''); - -$this->form->setValue('astroid_article_badge_text', 'attribs' , (isset($attribs->astroid_article_badge_text) && $attribs->astroid_article_badge_text) ? $attribs->astroid_article_badge_text : ''); - -$this->form->setValue('astroid_article_badge_color', 'attribs' , (isset($attribs->astroid_article_badge_color) && $attribs->astroid_article_badge_color) ? $attribs->astroid_article_badge_color : ''); - -$this->form->setValue('astroid_article_badge_text_color', 'attribs' , (isset($attribs->astroid_article_badge_text_color) && $attribs->astroid_article_badge_text_color) ? $attribs->astroid_article_badge_text_color : ''); - -$this->form->setValue('astroid_readtime', 'attribs' , (isset($attribs->astroid_readtime) && $attribs->astroid_readtime) ? $attribs->astroid_readtime : @$attribs->astroid_readtime); -$this->form->setValue('astroid_posttype', 'attribs' , (isset($attribs->astroid_posttype) && $attribs->astroid_posttype) ? $attribs->astroid_posttype : @$attribs->astroid_posttype); - -$this->form->setValue('astroid_relatedposts', 'attribs' , (isset($attribs->astroid_relatedposts) && $attribs->astroid_relatedposts) ? $attribs->astroid_relatedposts : ''); -$this->form->setValue('astroid_socialshare', 'attribs' , (isset($attribs->astroid_socialshare) && $attribs->astroid_socialshare) ? $attribs->astroid_socialshare : ''); - -$this->form->setValue('astroid_comments', 'attribs' , (isset($attribs->astroid_comments) && $attribs->astroid_comments) ? $attribs->astroid_comments : ''); -$this->form->setValue('astroid_og_title', 'attribs' , (isset($attribs->astroid_og_title) && $attribs->astroid_og_title) ? $attribs->astroid_og_title : ''); -$this->form->setValue('astroid_og_desc', 'attribs' , (isset($attribs->astroid_og_desc) && $attribs->astroid_og_desc) ? $attribs->astroid_og_desc : ''); -$this->form->setValue('astroid_og_image', 'attribs' , (isset($attribs->astroid_og_image) && $attribs->astroid_og_image) ? $attribs->astroid_og_image : ''); -$this->form->setValue('astroid_authorinfo', 'attribs' , (isset($attribs->astroid_authorinfo) && $attribs->astroid_authorinfo) ? $attribs->astroid_authorinfo : @$attribs->astroid_authorinfo); -// End Articles Type - -// This checks if the editor config options have ever been saved. If they haven't they will fall back to the original settings. -$editoroptions = isset($params->show_publishing_options); - -if (!$editoroptions) -{ - $params->show_urls_images_frontend = '0'; -} - -JFactory::getDocument()->addScriptDeclaration(" - Joomla.submitbutton = function(task) - { - if (task == 'article.cancel' || document.formvalidator.isValid(document.getElementById('adminForm'))) - { - " . $this->form->getField('articletext')->save() . " - Joomla.submitform(task); - } - } -"); -?> -
- get('show_page_heading')) : ?> - - - -
-
- tab_name, array('active' => 'editor')); ?> - - tab_name, 'editor', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?> - form->renderField('title'); ?> - - item->id)) : ?> - form->renderField('alias'); ?> - - - form->getInput('articletext'); ?> - - captchaEnabled) : ?> - form->renderField('captcha'); ?> - - - - get('show_urls_images_frontend')) : ?> - tab_name, 'images', JText::_('COM_CONTENT_IMAGES_AND_URLS')); ?> - -
-
- form->renderField('image_intro', 'images'); ?> - form->renderField('image_intro_alt', 'images'); ?> - form->renderField('image_intro_caption', 'images'); ?> - form->renderField('float_intro', 'images'); ?> -
- -
- form->renderField('image_fulltext', 'images'); ?> - form->renderField('image_fulltext_alt', 'images'); ?> - form->renderField('image_fulltext_caption', 'images'); ?> - form->renderField('float_fulltext', 'images'); ?> -
-
- -
- -
-
- form->renderField('urla', 'urls'); ?> - form->renderField('urlatext', 'urls'); ?> -
-
- form->getInput('targeta', 'urls'); ?> -
-
-
- -
- form->renderField('urlb', 'urls'); ?> - form->renderField('urlbtext', 'urls'); ?> -
-
- form->getInput('targetb', 'urls'); ?> -
-
-
- -
- form->renderField('urlc', 'urls'); ?> - form->renderField('urlctext', 'urls'); ?> -
-
- form->getInput('targetc', 'urls'); ?> -
-
-
-
- - - - - - - tab_name, 'publishing', JText::_('COM_CONTENT_PUBLISHING')); ?> - form->renderField('catid'); ?> - form->renderField('tags'); ?> - get('save_history', 0)) : ?> - form->renderField('version_note'); ?> - - get('show_publishing_options', 1) == 1) : ?> - form->renderField('created_by_alias'); ?> - - item->params->get('access-change')) : ?> - form->renderField('state'); ?> - form->renderField('featured'); ?> - get('show_publishing_options', 1) == 1) : ?> - form->renderField('publish_up'); ?> - form->renderField('publish_down'); ?> - - - form->renderField('access'); ?> - item->id)) : ?> -
-
-
-
- -
-
- - - - tab_name, 'language', JText::_('JFIELD_LANGUAGE_LABEL')); ?> - form->renderField('language'); ?> - - - get('show_publishing_options', 1) == 1) : ?> - tab_name, 'metadata', JText::_('COM_CONTENT_METADATA')); ?> - form->renderField('metadesc'); ?> - form->renderField('metakey'); ?> - - - - - - - - -
-
- - - get('save_history', 0) && $this->item->id) : ?> - form->getInput('contenthistory'); ?> - -
-
-
diff --git a/html/layouts/joomla/content/icons.php b/html/layouts/joomla/content/icons.php index d83b365..29b1fc2 100644 --- a/html/layouts/joomla/content/icons.php +++ b/html/layouts/joomla/content/icons.php @@ -1,54 +1,27 @@ + * @license GNU General Public License version 2 or later; see LICENSE.txt */ -defined('JPATH_BASE') or die; +defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; -use Joomla\CMS\Language\Text; -HTMLHelper::_('bootstrap.framework'); - -$canEdit = $displayData['params']->get('access-edit'); +$canEdit = $displayData['params']->get('access-edit'); $articleId = $displayData['item']->id; - ?> -
- - - get('show_print_icon') || $displayData['params']->get('show_email_icon')) : ?> -
- - - -
- - - - + +
- +
+ +
- - -
\ No newline at end of file +
+ \ No newline at end of file diff --git a/html/layouts/joomla/content/icons/create.php b/html/layouts/joomla/content/icons/create.php index b0e9559..6c92c45 100644 --- a/html/layouts/joomla/content/icons/create.php +++ b/html/layouts/joomla/content/icons/create.php @@ -4,28 +4,20 @@ * @package Joomla.Site * @subpackage Layout * - * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. + * @copyright (C) 2016 Open Source Matters, Inc. * @license GNU General Public License version 2 or later; see LICENSE.txt */ -defined('JPATH_BASE') or die; +defined('_JEXEC') or die; -use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -HTMLHelper::_('bootstrap.tooltip'); - $params = $displayData['params']; -$legacy = $displayData['legacy']; ?> get('show_icons')) : ?> - - - - - - + + \ No newline at end of file diff --git a/html/layouts/joomla/content/icons/edit.php b/html/layouts/joomla/content/icons/edit.php index dfcc3f4..ac7abe0 100644 --- a/html/layouts/joomla/content/icons/edit.php +++ b/html/layouts/joomla/content/icons/edit.php @@ -4,46 +4,23 @@ * @package Joomla.Site * @subpackage Layout * - * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. + * @copyright (C) 2016 Open Source Matters, Inc. * @license GNU General Public License version 2 or later; see LICENSE.txt */ -defined('JPATH_BASE') or die; +defined('_JEXEC') or die; use Joomla\CMS\Factory; -use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -HTMLHelper::_('bootstrap.tooltip'); - $article = $displayData['article']; -$overlib = $displayData['overlib']; -$legacy = $displayData['legacy']; - -if ($legacy) { - $icon = $article->state ? 'edit.png' : 'edit_unpublished.png'; - - if ( - strtotime($article->publish_up) > strtotime(Factory::getDate()) - || ((strtotime($article->publish_down) < strtotime(Factory::getDate())) && $article->publish_down != Factory::getDbo()->getNullDate()) - ) { - $icon = 'edit_unpublished.png'; - } -} else { - $icon = $article->state ? 'edit' : 'eye-close'; +$nowDate = strtotime(Factory::getDate()); - if ( - strtotime($article->publish_up) > strtotime(Factory::getDate()) - || ((strtotime($article->publish_down) < strtotime(Factory::getDate())) && $article->publish_down != Factory::getDbo()->getNullDate()) - ) { - $icon = 'eye-close'; - } -} +$currentDate = Factory::getDate()->format('Y-m-d H:i:s'); +$isUnpublished = ($article->publish_up > $currentDate) + || !is_null($article->publish_down) && ($article->publish_down < $currentDate); +$aria_described = 'editarticle-' . (int) $article->id; ?> - - - - - - \ No newline at end of file + + \ No newline at end of file diff --git a/html/layouts/joomla/content/icons/edit_lock.php b/html/layouts/joomla/content/icons/edit_lock.php index f8da142..14c14b4 100644 --- a/html/layouts/joomla/content/icons/edit_lock.php +++ b/html/layouts/joomla/content/icons/edit_lock.php @@ -4,27 +4,23 @@ * @package Joomla.Site * @subpackage Layout * - * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. + * @copyright (C) 2016 Open Source Matters, Inc. * @license GNU General Public License version 2 or later; see LICENSE.txt */ -defined('JPATH_BASE') or die; +defined('_JEXEC') or die; -use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -HTMLHelper::_('bootstrap.tooltip'); - -$tooltip = $displayData['tooltip']; -$legacy = $displayData['legacy']; +if (isset($displayData['article'])) { + $article = $displayData['article']; + $aria_described = 'editarticle-' . (int) $article->id; +} +if (isset($displayData['contact'])) { + $contact = $displayData['contact']; + $aria_described = 'editcontact-' . (int) $contact->id; +} ?> - - - - - - - - - \ No newline at end of file + + \ No newline at end of file diff --git a/html/layouts/joomla/content/icons/email.php b/html/layouts/joomla/content/icons/email.php deleted file mode 100644 index 583d390..0000000 --- a/html/layouts/joomla/content/icons/email.php +++ /dev/null @@ -1,29 +0,0 @@ - -get('show_icons')) : ?> - - - - - - - - - \ No newline at end of file diff --git a/html/layouts/joomla/content/icons/print_popup.php b/html/layouts/joomla/content/icons/print_popup.php deleted file mode 100644 index 8526c5f..0000000 --- a/html/layouts/joomla/content/icons/print_popup.php +++ /dev/null @@ -1,31 +0,0 @@ - -get('show_icons')) : ?> - - - - - - - - - - \ No newline at end of file diff --git a/html/layouts/joomla/content/icons/print_screen.php b/html/layouts/joomla/content/icons/print_screen.php deleted file mode 100644 index 31faf51..0000000 --- a/html/layouts/joomla/content/icons/print_screen.php +++ /dev/null @@ -1,31 +0,0 @@ - -get('show_icons')) : ?> - - - - - - - - - - \ No newline at end of file diff --git a/html/layouts/joomla/form/field/calendar.php b/html/layouts/joomla/form/field/calendar.php deleted file mode 100644 index 8d3c4c1..0000000 --- a/html/layouts/joomla/form/field/calendar.php +++ /dev/null @@ -1,132 +0,0 @@ - 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); -?> -
- -
- - - data-alt-value="" autocomplete="off"/> -
- -
- -
- -
\ No newline at end of file diff --git a/html/layouts/joomla/form/field/checkboxes.php b/html/layouts/joomla/form/field/checkboxes.php deleted file mode 100644 index dfeee8e..0000000 --- a/html/layouts/joomla/form/field/checkboxes.php +++ /dev/null @@ -1,89 +0,0 @@ - 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 = ''; - -// The alt option for JText::alt -$alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name); -?> - -
- > - - $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)); - ?> - - - -
diff --git a/html/layouts/joomla/form/field/color/advanced.php b/html/layouts/joomla/form/field/color/advanced.php deleted file mode 100644 index 86214e4..0000000 --- a/html/layouts/joomla/form/field/color/advanced.php +++ /dev/null @@ -1,94 +0,0 @@ - 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)); -?> -/> diff --git a/html/layouts/joomla/form/field/color/simple.php b/html/layouts/joomla/form/field/color/simple.php deleted file mode 100644 index a124c51..0000000 --- a/html/layouts/joomla/form/field/color/simple.php +++ /dev/null @@ -1,68 +0,0 @@ - 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)); -?> - diff --git a/html/layouts/joomla/form/field/combo.php b/html/layouts/joomla/form/field/combo.php deleted file mode 100644 index 637ad4e..0000000 --- a/html/layouts/joomla/form/field/combo.php +++ /dev/null @@ -1,77 +0,0 @@ - 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 . '"' : ''; - -?> -
- - autocomplete="off" - /> -
- - -
-
diff --git a/html/layouts/joomla/form/field/contenthistory.php b/html/layouts/joomla/form/field/contenthistory.php deleted file mode 100644 index 2e2f73e..0000000 --- a/html/layouts/joomla/form/field/contenthistory.php +++ /dev/null @@ -1,26 +0,0 @@ - - diff --git a/html/layouts/joomla/form/field/email.php b/html/layouts/joomla/form/field/email.php deleted file mode 100644 index 5fb16cf..0000000 --- a/html/layouts/joomla/form/field/email.php +++ /dev/null @@ -1,75 +0,0 @@ - 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')); - -?> - id="" value="" - /> diff --git a/html/layouts/joomla/form/field/file.php b/html/layouts/joomla/form/field/file.php deleted file mode 100644 index 3251440..0000000 --- a/html/layouts/joomla/form/field/file.php +++ /dev/null @@ -1,63 +0,0 @@ - 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()); -?> - - - - - - - - />
- diff --git a/html/layouts/joomla/form/field/hidden.php b/html/layouts/joomla/form/field/hidden.php deleted file mode 100644 index 12c1901..0000000 --- a/html/layouts/joomla/form/field/hidden.php +++ /dev/null @@ -1,54 +0,0 @@ - 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 . '"' : ''; -?> - /> diff --git a/html/layouts/joomla/form/field/media.php b/html/layouts/joomla/form/field/media.php deleted file mode 100644 index 0b7be4c..0000000 --- a/html/layouts/joomla/form/field/media.php +++ /dev/null @@ -1,146 +0,0 @@ - -
- JText::_('JLIB_FORM_CHANGE_IMAGE'), - 'closeButton' => true, - 'footer' => '' - ) - ); - - JHtml::_('script', 'media/mediafield.min.js', array('version' => 'auto', 'relative' => true)); - ?> - -
- - - - -
- - /> - - - - -
- -
- -
diff --git a/html/layouts/joomla/form/field/meter.php b/html/layouts/joomla/form/field/meter.php deleted file mode 100644 index 0c396de..0000000 --- a/html/layouts/joomla/form/field/meter.php +++ /dev/null @@ -1,80 +0,0 @@ - section in form XML. - * @var boolean $hidden Is this field hidden in the form? - * @var string $hint Placeholder for the field. - * @var string $id DOM id of the field. - * @var string $label Label of the field. - * @var string $labelclass Classes to apply to the label. - * @var boolean $multiple Does this field support multiple values? - * @var string $name Name of the input field. - * @var string $onchange Onchange attribute for the field. - * @var string $onclick Onclick attribute for the field. - * @var string $pattern Pattern (Reg Ex) of value of the form field. - * @var boolean $readonly Is this field read only? - * @var boolean $repeat Allows extensions to duplicate elements. - * @var boolean $required Is this field required? - * @var integer $size Size attribute of the input. - * @var boolean $spellcheck Spellcheck state for the form field. - * @var string $validate Validation rules to apply. - * @var string $value Value attribute of the field. - * @var array $checkedOptions Options that will be set as checked. - * @var boolean $hasValue Has this field a value assigned? - * @var array $options Options available for this field. - * @var array $inputType Options available for this field. - * @var string $accept File types that are accepted. - * @var string $animated Is it animated. - * @var string $active Is it active. - * @var string $min The minimum value. - * @var string $max The maximum value. - * @var string $step The step value. - */ - -// Initialize some field attributes. -$class = 'progress ' . $class; -$class .= $animated ? ' progress-striped' : ''; -$class .= $active ? ' active' : ''; -$class = 'class="' . $class . '"'; - -$value = (float) $value; -$value = $value < $min ? $min : $value; -$value = $value > $max ? $max : $value; - -$data = ''; -$data .= 'data-max="' . $max . '"'; -$data .= ' data-min="' . $min . '"'; -$data .= ' data-step="' . $step . '"'; -$data .= ' data-value="' . $value . '"'; - -$attributes = array( - $class, - !empty($width) ? ' style="width:' . $width . ';"' : '', - $data -); - -$value = ((float) ($value - $min) * 100) / ($max - $min); -?> -
> -
-
diff --git a/html/layouts/joomla/form/field/moduleorder.php b/html/layouts/joomla/form/field/moduleorder.php deleted file mode 100644 index 9ee2b91..0000000 --- a/html/layouts/joomla/form/field/moduleorder.php +++ /dev/null @@ -1,66 +0,0 @@ - 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)); -?> -
data-url="" data-element="" data-ordering="" data-position-element="" data-client-id="" data-name="">
diff --git a/html/layouts/joomla/form/field/number.php b/html/layouts/joomla/form/field/number.php deleted file mode 100644 index fa05d09..0000000 --- a/html/layouts/joomla/form/field/number.php +++ /dev/null @@ -1,77 +0,0 @@ - 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="form-control ' . $class . '"' : 'class="form-control"', - !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')); -?> - /> diff --git a/html/layouts/joomla/form/field/password.php b/html/layouts/joomla/form/field/password.php deleted file mode 100644 index 15b5222..0000000 --- a/html/layouts/joomla/form/field/password.php +++ /dev/null @@ -1,79 +0,0 @@ - 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. - */ -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')); - -$attributes = array( - strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', - !$autocomplete ? 'autocomplete="off"' : '', - !empty($class) ? 'class="form-control ' . $class . '"' : 'class="form-control"', - $readonly ? 'readonly' : '', - $disabled ? 'disabled' : '', - !empty($size) ? 'size="' . $size . '"' : '', - !empty($maxLength) ? 'maxlength="' . $maxLength . '"' : '', - $required ? 'required aria-required="true"' : '', - $autofocus ? 'autofocus' : '', -); -?> - /> diff --git a/html/layouts/joomla/form/field/radio.php b/html/layouts/joomla/form/field/radio.php deleted file mode 100644 index 5903cf9..0000000 --- a/html/layouts/joomla/form/field/radio.php +++ /dev/null @@ -1,96 +0,0 @@ - section in form XML. - * @var boolean $hidden Is this field hidden in the form? - * @var string $hint Placeholder for the field. - * @var string $id DOM id of the field. - * @var string $label Label of the field. - * @var string $labelclass Classes to apply to the label. - * @var boolean $multiple Does this field support multiple values? - * @var string $name Name of the input field. - * @var string $onchange Onchange attribute for the field. - * @var string $onclick Onclick attribute for the field. - * @var string $pattern Pattern (Reg Ex) of value of the form field. - * @var boolean $readonly Is this field read only? - * @var boolean $repeat Allows extensions to duplicate elements. - * @var boolean $required Is this field required? - * @var integer $size Size attribute of the input. - * @var boolean $spellcheck Spellcheck state for the form field. - * @var string $validate Validation rules to apply. - * @var string $value Value attribute of the field. - * @var array $options Options available for this field. - */ - -// Including fallback code for HTML5 non supported browsers. -JHtml::_('jquery.framework'); -JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); - -/** - * The format of the input tag to be filled in using sprintf. - * %1 - id - * %2 - name - * %3 - value - * %4 = any other attributes - */ -$format = ''; -$alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name); -?> -
- - - > - - - $option) : ?> - value === $value) ? 'checked="checked"' : ''; - $disabled = !empty($option->disable) ? 'disabled' : ''; - $style = $disabled ? 'style="pointer-events: none"' : ''; - $option->class = !empty($option->class) ? $option->class : ''; - $option->class = trim($option->class . ' ' . $disabled); - $optionClass = !empty($option->class) ? 'class="' . $option->class . '"' : ''; - - // Initialize some JavaScript option attributes. - $onclick = !empty($option->onclick) ? 'onclick="' . $option->onclick . '"' : ''; - $onchange = !empty($option->onchange) ? 'onchange="' . $option->onchange . '"' : ''; - $oid = $id . $i; - $ovalue = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8'); - $attributes = array_filter(array($checked, $optionClass, $disabled, $style, $onchange, $onclick, 'class="form-check-input"')); - ?> - - - - - - -
- - -
- - - -
diff --git a/html/layouts/joomla/form/field/range.php b/html/layouts/joomla/form/field/range.php deleted file mode 100644 index 488ddd7..0000000 --- a/html/layouts/joomla/form/field/range.php +++ /dev/null @@ -1,64 +0,0 @@ - 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="custom-range ' . $class . '"' : 'class="custom-range"', - $disabled ? 'disabled' : '', - $readonly ? 'readonly' : '', - !empty($onchange) ? 'onchange="' . $onchange . '"' : '', - !empty($max) ? 'max="' . $max . '"' : '', - !empty($step) ? 'step="' . $step . '"' : '', - !empty($min) ? 'min="' . $min . '"' : '', - $autofocus ? 'autofocus' : '', -); - -$value = (float) $value; -$value = empty($value) ? $min : $value; -?> - /> diff --git a/html/layouts/joomla/form/field/subform/default.php b/html/layouts/joomla/form/field/subform/default.php deleted file mode 100644 index 65e9687..0000000 --- a/html/layouts/joomla/form/field/subform/default.php +++ /dev/null @@ -1,37 +0,0 @@ - - -
-getGroup('') as $field) : ?> - renderField(); ?> - -
- diff --git a/html/layouts/joomla/form/field/subform/repeatable-table.php b/html/layouts/joomla/form/field/subform/repeatable-table.php deleted file mode 100644 index 21f911f..0000000 --- a/html/layouts/joomla/form/field/subform/repeatable-table.php +++ /dev/null @@ -1,133 +0,0 @@ - 'auto', 'relative' => true)); -} - -// Build heading -$table_head = ''; - -if (!empty($groupByFieldset)) -{ - foreach ($tmpl->getFieldsets() as $fieldset) { - $table_head .= '' . JText::_($fieldset->label); - - if (!empty($fieldset->description)) - { - $table_head .= '
' . JText::_($fieldset->description) . ''; - } - - $table_head .= ''; - } - - $sublayout = 'section-byfieldsets'; -} -else -{ - foreach ($tmpl->getGroup('') as $field) { - $table_head .= '' . strip_tags($field->label); - $table_head .= '
' . JText::_($field->description) . ''; - $table_head .= ''; - } - - $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: 0; }' - ); -} -?> -
-
-
- - - - - - - - - - - $form): - echo $this->sublayout( - $sublayout, - array( - 'form' => $form, - 'basegroup' => $fieldname, - 'group' => $fieldname . $k, - 'buttons' => $buttons, - 'unique_subform_id' => $unique_subform_id, - ) - ); - endforeach; ?> - -
- -
- - - -
- -
- - - - -
-
-
diff --git a/html/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php b/html/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php deleted file mode 100644 index 63cefa6..0000000 --- a/html/layouts/joomla/form/field/subform/repeatable-table/section-byfieldsets.php +++ /dev/null @@ -1,56 +0,0 @@ - - - - getFieldsets() as $fieldset) : ?> - - getFieldset($fieldset->name) as $field) : ?> - renderField(); ?> - - - - - -
- - - - - - - - - - - - - - - -
- - - diff --git a/html/layouts/joomla/form/field/subform/repeatable-table/section.php b/html/layouts/joomla/form/field/subform/repeatable-table/section.php deleted file mode 100644 index 9b1583e..0000000 --- a/html/layouts/joomla/form/field/subform/repeatable-table/section.php +++ /dev/null @@ -1,55 +0,0 @@ - - - - getGroup('') as $field) : ?> - - renderField(array('hiddenLabel' => true)); ?> - - - - -
- - - - - - - - - - - - - - - -
- - - diff --git a/html/layouts/joomla/form/field/subform/repeatable.php b/html/layouts/joomla/form/field/subform/repeatable.php deleted file mode 100644 index 7e44f5f..0000000 --- a/html/layouts/joomla/form/field/subform/repeatable.php +++ /dev/null @@ -1,88 +0,0 @@ - 'auto', 'relative' => true)); -} - -$sublayout = empty($groupByFieldset) ? 'section' : 'section-byfieldsets'; -?> - -
-
-
- - -
-
- - - -
-
- - $form) : - echo $this->sublayout( - $sublayout, - array( - 'form' => $form, - 'basegroup' => $fieldname, - 'group' => $fieldname . $k, - 'buttons' => $buttons, - 'unique_subform_id' => $unique_subform_id, - ) - ); - endforeach; - ?> - - - -
-
-
diff --git a/html/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php b/html/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php deleted file mode 100644 index ea40e99..0000000 --- a/html/layouts/joomla/form/field/subform/repeatable/section-byfieldsets.php +++ /dev/null @@ -1,61 +0,0 @@ - - -
- -
-
- - - - - - - - - - - - - - - -
-
- -
-getFieldsets() as $fieldset) : ?> -
- label)) : ?> - label); ?> - -getFieldset($fieldset->name) as $field) : ?> - renderField(); ?> - -
- -
-
\ No newline at end of file diff --git a/html/layouts/joomla/form/field/subform/repeatable/section.php b/html/layouts/joomla/form/field/subform/repeatable/section.php deleted file mode 100644 index 70b2a74..0000000 --- a/html/layouts/joomla/form/field/subform/repeatable/section.php +++ /dev/null @@ -1,54 +0,0 @@ - - -
- -
-
- - - - - - - - - - - - - - - -
-
- - -getGroup('') as $field) : ?> - renderField(); ?> - -
\ No newline at end of file diff --git a/html/layouts/joomla/form/field/tel.php b/html/layouts/joomla/form/field/tel.php deleted file mode 100644 index 2c526b8..0000000 --- a/html/layouts/joomla/form/field/tel.php +++ /dev/null @@ -1,66 +0,0 @@ - section in form XML. - * @var boolean $hidden Is this field hidden in the form? - * @var string $hint Placeholder for the field. - * @var string $id DOM id of the field. - * @var string $label Label of the field. - * @var string $labelclass Classes to apply to the label. - * @var boolean $multiple Does this field support multiple values? - * @var string $name Name of the input field. - * @var string $onchange Onchange attribute for the field. - * @var string $onclick Onclick attribute for the field. - * @var string $pattern Pattern (Reg Ex) of value of the form field. - * @var boolean $readonly Is this field read only? - * @var boolean $repeat Allows extensions to duplicate elements. - * @var boolean $required Is this field required? - * @var integer $size Size attribute of the input. - * @var boolean $spellcheck Spellcheck state for the form field. - * @var string $validate Validation rules to apply. - * @var string $value Value attribute of the field. - * @var array $checkedOptions Options that will be set as checked. - * @var boolean $hasValue Has this field a value assigned? - * @var array $options Options available for this field. - * @var array $inputType Options available for this field. - * @var string $accept File types that are accepted. - * @var integer $maxLength The maximum length that the field shall accept. - */ -// Including fallback code for HTML5 non supported browsers. -JHtml::_('jquery.framework'); -JHtml::_('script', 'system/html5fallback.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9')); - -$autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'; -$autocomplete = $autocomplete == ' autocomplete="on"' ? '' : $autocomplete; - -$attributes = array( - !empty($size) ? 'size="' . $size . '"' : '', - $disabled ? 'disabled' : '', - $readonly ? 'readonly' : '', - strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', - $autocomplete, - $autofocus ? ' autofocus' : '', - $spellcheck ? '' : 'spellcheck="false"', - $onchange ? ' onchange="' . $onchange . '"' : '', - !empty($maxLength) ? $maxLength : '', - $required ? 'required aria-required="true"' : '', -); -?> - id="" value="" /> diff --git a/html/layouts/joomla/form/field/text.php b/html/layouts/joomla/form/field/text.php deleted file mode 100644 index d2ea6a9..0000000 --- a/html/layouts/joomla/form/field/text.php +++ /dev/null @@ -1,92 +0,0 @@ - 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="form-control ' . $class . '"' : 'class="form-control"', - !empty($size) ? 'size="' . $size . '"' : '', - $disabled ? 'disabled' : '', - $readonly ? 'readonly' : '', - $list, - strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', - $onchange ? ' onchange="' . $onchange . '"' : '', - !empty($maxLength) ? $maxLength : '', - $required ? 'required aria-required="true"' : '', - $autocomplete, - $autofocus ? ' autofocus' : '', - $spellcheck ? '' : 'spellcheck="false"', - !empty($inputmode) ? 'inputmode="' . $inputmode . '"' : '', - !empty($pattern) ? 'pattern="' . $pattern . '"' : '', -); -?> - value="" /> - - - - value) : ?> - - - - - - diff --git a/html/layouts/joomla/form/field/textarea.php b/html/layouts/joomla/form/field/textarea.php deleted file mode 100644 index d66ff28..0000000 --- a/html/layouts/joomla/form/field/textarea.php +++ /dev/null @@ -1,70 +0,0 @@ - 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="form-control ' . $class . '"' : 'class="form-control"', - 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 : '' -); -?> - - diff --git a/html/layouts/joomla/form/field/url.php b/html/layouts/joomla/form/field/url.php deleted file mode 100644 index a0d125a..0000000 --- a/html/layouts/joomla/form/field/url.php +++ /dev/null @@ -1,65 +0,0 @@ - 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"' : '', -); -?> - name="" id="" value="" /> diff --git a/html/layouts/joomla/form/field/user.php b/html/layouts/joomla/form/field/user.php deleted file mode 100644 index 95e6e7c..0000000 --- a/html/layouts/joomla/form/field/user.php +++ /dev/null @@ -1,111 +0,0 @@ - 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}}' -); - -?> -
- readonly /> - - ', $anchorAttributes); ?> - -
- - - \ No newline at end of file diff --git a/html/layouts/joomla/form/renderfield.php b/html/layouts/joomla/form/renderfield.php deleted file mode 100644 index 7c7baaf..0000000 --- a/html/layouts/joomla/form/renderfield.php +++ /dev/null @@ -1,36 +0,0 @@ - 'auto', 'relative' => true)); -} - -$class = empty($options['class']) ? '' : ' ' . $options['class']; -$rel = empty($options['rel']) ? '' : ' ' . $options['rel']; -?> -
> - - - - -
\ No newline at end of file diff --git a/html/layouts/joomla/form/renderlabel.php b/html/layouts/joomla/form/renderlabel.php deleted file mode 100644 index 98a9067..0000000 --- a/html/layouts/joomla/form/renderlabel.php +++ /dev/null @@ -1,51 +0,0 @@ -getLanguage()->isRtl()) { - $position = ' data-placement="left" '; - } - } else { - $title = ' title="' . HTMLHelper::_('tooltipText', trim($text, ':'), $description, 0) . '"'; - } -} - -if ($required) { - $classes[] = 'required'; -} -?> - \ No newline at end of file diff --git a/html/mod_menu/AstroidMenu.php b/html/mod_menu/AstroidMenu.php index 7c2f7b0..8e0bfc8 100644 --- a/html/mod_menu/AstroidMenu.php +++ b/html/mod_menu/AstroidMenu.php @@ -27,7 +27,7 @@ $class .= ' default'; } - if ($item->id == $active_id || ($item->type === 'alias' && $item->params->get('aliasoptions') == $active_id)) + if ($item->id == $active_id || ($item->type === 'alias' && $item->getParams()->get('aliasoptions') == $active_id)) { $class .= ' current'; } @@ -38,7 +38,7 @@ } elseif ($item->type === 'alias') { - $aliasToId = $item->params->get('aliasoptions'); + $aliasToId = $item->getParams()->get('aliasoptions'); if (count($path) > 0 && $aliasToId == $path[count($path) - 1]) { diff --git a/html/mod_menu/default_separator.php b/html/mod_menu/default_separator.php index 615d190..dfda4c5 100644 --- a/html/mod_menu/default_separator.php +++ b/html/mod_menu/default_separator.php @@ -15,7 +15,7 @@ $linktype = $item->title; -$astroid_menu_options = $item->params->get('astroid_menu_options', []); +$astroid_menu_options = $item->getParams()->get('astroid_menu_options', []); $astroid_menu_options = (array) $astroid_menu_options; if ($item->menu_image) { @@ -26,7 +26,7 @@ $linktype = JHtml::_('image', $item->menu_image, $item->title); } - if ($item->params->get('menu_text', 1)) { + if ($item->getParams()->get('menu_text', 1)) { $linktype .= '' . $item->title . ''; } } diff --git a/scss/one/_frontend-edit.scss b/scss/one/_frontend-edit.scss index a7702c1..d6660d6 100644 --- a/scss/one/_frontend-edit.scss +++ b/scss/one/_frontend-edit.scss @@ -1,946 +1,102 @@ -body.com-config, -.layout-edit { - - textarea { +#adminForm { + [class^="icon-"], + [class*=" icon-"] { height: auto; - } - - textarea, - input[type="text"], - input[type="password"], - input[type="datetime"], - input[type="datetime-local"], - input[type="date"], - input[type="month"], - input[type="time"], - input[type="week"], - input[type="number"], - input[type="email"], - input[type="url"], - input[type="search"], - input[type="tel"], - input[type="color"], - .uneditable-input { - background-color: #fff; - border: 1px solid #ccc; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -webkit-transition: border linear .2s, box-shadow linear .2s; - -moz-transition: border linear .2s, box-shadow linear .2s; - transition: border linear .2s, box-shadow linear .2s; - } - - textarea:focus, - input[type="text"]:focus, - input[type="password"]:focus, - input[type="datetime"]:focus, - input[type="datetime-local"]:focus, - input[type="date"]:focus, - input[type="month"]:focus, - input[type="time"]:focus, - input[type="week"]:focus, - input[type="number"]:focus, - input[type="email"]:focus, - input[type="url"]:focus, - input[type="search"]:focus, - input[type="tel"]:focus, - input[type="color"]:focus, - .uneditable-input:focus { - border-color: rgba(82, 168, 236, .8); - outline: 0; - outline: thin dotted \9; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6); - } - - input[type="radio"], - input[type="checkbox"] { - margin: 4px 0 0; - *margin-top: 0; - margin-top: 1px \9; - line-height: normal; - } - - input[type="file"], - input[type="image"], - input[type="submit"], - input[type="reset"], - input[type="button"], - input[type="radio"], - input[type="checkbox"] { - width: auto; - } - - select, - input[type="file"] { - height: 30px; - *margin-top: 4px; - line-height: 30px; - } - - select { - width: 220px; - border: 1px solid #ccc; - background-color: #fff; - } - - select[multiple], - select[size] { - height: auto; - } - - select:focus, - input[type="file"]:focus, - input[type="radio"]:focus, - input[type="checkbox"]:focus { - outline: thin dotted #333; - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; - } - - .uneditable-input, - .uneditable-textarea { - color: #999; - background-color: #fcfcfc; - border-color: #ccc; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .025); - -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .025); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, .025); - cursor: not-allowed; - } - - .uneditable-input { - overflow: hidden; - white-space: nowrap; - } - - .uneditable-textarea { - width: auto; - height: auto; - } - - .controls>.radio:first-child, - .controls>.checkbox:first-child { - padding-top: 5px; - } - - .radio.inline, - .checkbox.inline { - display: inline-block; - padding-top: 5px; - margin-bottom: 0; - vertical-align: middle; - } - - .radio.inline+.radio.inline, - .checkbox.inline+.checkbox.inline { - margin-left: 10px; - } - - .input-mini { - width: 60px; - } - - .input-small { - width: 90px; - } - - .input-medium { - width: 150px; - } - - .input-large { - width: 210px; - } - - .input-xlarge { - width: 270px; - } - - .input-xxlarge { - width: 530px; - } - - input[class*="span"], - select[class*="span"], - textarea[class*="span"], - .uneditable-input[class*="span"], - .row-fluid input[class*="span"], - .row-fluid select[class*="span"], - .row-fluid textarea[class*="span"], - .row-fluid .uneditable-input[class*="span"] { - float: none; - margin-left: 0; - } - - .input-append input[class*="span"], - .input-append .uneditable-input[class*="span"], - .input-prepend input[class*="span"], - .input-prepend .uneditable-input[class*="span"], - .row-fluid input[class*="span"], - .row-fluid select[class*="span"], - .row-fluid textarea[class*="span"], - .row-fluid .uneditable-input[class*="span"], - .row-fluid .input-prepend [class*="span"], - .row-fluid .input-append [class*="span"] { - display: inline-block; - } - - input, - textarea, - .uneditable-input { - margin-left: 0; - } - - - .controls-row { - *zoom: 1; - } - - .controls-row:before, - .controls-row:after { - display: table; - content: ""; - line-height: 0; - } - - .controls-row:after { - clear: both; - } - - .controls-row [class*="span"], - .row-fluid .controls-row [class*="span"] { - float: left; - } - - .controls-row .checkbox[class*="span"], - .controls-row .radio[class*="span"] { - padding-top: 5px; - } - - input[disabled], - select[disabled], - textarea[disabled], - input[readonly], - select[readonly], - textarea[readonly] { - cursor: not-allowed; - background-color: #eee; - } - - input[type="radio"][disabled], - input[type="checkbox"][disabled], - input[type="radio"][readonly], - input[type="checkbox"][readonly] { - background-color: transparent; - } - - .control-group.warning .control-label, - .control-group.warning .help-block, - .control-group.warning .help-inline { - color: #c09853; - } - - .control-group.warning .checkbox, - .control-group.warning .radio, - .control-group.warning input, - .control-group.warning select, - .control-group.warning textarea { - color: #c09853; - } - - .control-group.warning input, - .control-group.warning select, - .control-group.warning textarea { - border-color: #c09853; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - } - - .control-group.warning input:focus, - .control-group.warning select:focus, - .control-group.warning textarea:focus { - border-color: #a47e3c; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dbc59e; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dbc59e; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dbc59e; - } - - .control-group.warning .input-prepend .add-on, - .control-group.warning .input-append .add-on { - color: #c09853; - background-color: #fcf8e3; - border-color: #c09853; - } - - .control-group.error .control-label, - .control-group.error .help-block, - .control-group.error .help-inline { - color: #b94a48; - } - - .control-group.error .checkbox, - .control-group.error .radio, - .control-group.error input, - .control-group.error select, - .control-group.error textarea { - color: #b94a48; - } - - .control-group.error input, - .control-group.error select, - .control-group.error textarea { - border-color: #b94a48; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - } - - .control-group.error input:focus, - .control-group.error select:focus, - .control-group.error textarea:focus { - border-color: #953b39; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #d59392; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #d59392; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #d59392; - } - - .control-group.error .input-prepend .add-on, - .control-group.error .input-append .add-on { - color: #b94a48; - background-color: #f2dede; - border-color: #b94a48; - } - - .control-group.success .control-label, - .control-group.success .help-block, - .control-group.success .help-inline { - color: #468847; - } - - .control-group.success .checkbox, - .control-group.success .radio, - .control-group.success input, - .control-group.success select, - .control-group.success textarea { - color: #468847; - } - - .control-group.success input, - .control-group.success select, - .control-group.success textarea { - border-color: #468847; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - } - - .control-group.success input:focus, - .control-group.success select:focus, - .control-group.success textarea:focus { - border-color: #356635; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7aba7b; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7aba7b; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7aba7b; - } - - .control-group.success .input-prepend .add-on, - .control-group.success .input-append .add-on { - color: #468847; - background-color: #dff0d8; - border-color: #468847; - } - - .control-group.info .control-label, - .control-group.info .help-block, - .control-group.info .help-inline { - color: #3a87ad; - } - - .control-group.info .checkbox, - .control-group.info .radio, - .control-group.info input, - .control-group.info select, - .control-group.info textarea { - color: #3a87ad; - } - - .control-group.info input, - .control-group.info select, - .control-group.info textarea { - border-color: #3a87ad; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); - } - - .control-group.info input:focus, - .control-group.info select:focus, - .control-group.info textarea:focus { - border-color: #2d6987; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7ab5d3; - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7ab5d3; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #7ab5d3; - } - - .control-group.info .input-prepend .add-on, - .control-group.info .input-append .add-on { - color: #3a87ad; - background-color: #d9edf7; - border-color: #3a87ad; - } - - input:focus:invalid, - textarea:focus:invalid, - select:focus:invalid { - color: #b94a48; - border-color: #ee5f5b; - } - - input:focus:invalid:focus, - textarea:focus:invalid:focus, - select:focus:invalid:focus { - border-color: #e9322d; - -webkit-box-shadow: 0 0 6px #f8b9b7; - -moz-box-shadow: 0 0 6px #f8b9b7; - box-shadow: 0 0 6px #f8b9b7; - } - - .form-actions { - padding: 19px 20px 20px; - margin-top: 20px; - margin-bottom: 20px; - background-color: #f5f5f5; - border-top: 1px solid #e5e5e5; - *zoom: 1; - } - - .form-actions:before, - .form-actions:after { - display: table; - content: ""; - line-height: 0; - } - - .form-actions:after { - clear: both; - } - - .help-block, - .help-inline { - color: #595959; - } - - .help-block { - display: block; - margin-bottom: 10px; - } - - .help-inline { - display: inline-block; - *display: inline; - *zoom: 1; - vertical-align: middle; - padding-left: 5px; - } - - .input-append, - .input-prepend { - display: inline-block; - margin-bottom: 10px; - vertical-align: middle; - font-size: 0; - white-space: nowrap; - } - - .input-append input, - .input-append select, - .input-append .uneditable-input, - .input-append .dropdown-menu, - .input-append .popover, - .input-prepend input, - .input-prepend select, - .input-prepend .uneditable-input, - .input-prepend .dropdown-menu, - .input-prepend .popover { - font-size: 14px; - } - - .input-append input[type="text"], - .input-append input[type="password"], - .input-append input[type="datetime"], - .input-append input[type="datetime-local"], - .input-append input[type="date"], - .input-append input[type="month"], - .input-append input[type="time"], - .input-append input[type="week"], - .input-append input[type="number"], - .input-append input[type="email"], - .input-append input[type="url"], - .input-append input[type="search"], - .input-append input[type="tel"], - .input-append input[type="color"], - .input-append .uneditable-input, - .input-prepend input[type="text"], - .input-prepend input[type="password"], - .input-prepend input[type="datetime"], - .input-prepend input[type="datetime-local"], - .input-prepend input[type="date"], - .input-prepend input[type="month"], - .input-prepend input[type="time"], - .input-prepend input[type="week"], - .input-prepend input[type="number"], - .input-prepend input[type="email"], - .input-prepend input[type="url"], - .input-prepend input[type="search"], - .input-prepend input[type="tel"], - .input-prepend input[type="color"], - .input-prepend .uneditable-input { - width: auto; - display: inline-block; - position: relative; - margin-bottom: 0; - *margin-left: 0; - vertical-align: top; - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; - } - - .input-append input[type="text"]:focus, - .input-append input[type="password"]:focus, - .input-append input[type="datetime"]:focus, - .input-append input[type="datetime-local"]:focus, - .input-append input[type="date"]:focus, - .input-append input[type="month"]:focus, - .input-append input[type="time"]:focus, - .input-append input[type="week"]:focus, - .input-append input[type="number"]:focus, - .input-append input[type="email"]:focus, - .input-append input[type="url"]:focus, - .input-append input[type="search"]:focus, - .input-append input[type="tel"]:focus, - .input-append input[type="color"]:focus, - .input-append .uneditable-input:focus, - .input-prepend input[type="text"]:focus, - .input-prepend input[type="password"]:focus, - .input-prepend input[type="datetime"]:focus, - .input-prepend input[type="datetime-local"]:focus, - .input-prepend input[type="date"]:focus, - .input-prepend input[type="month"]:focus, - .input-prepend input[type="time"]:focus, - .input-prepend input[type="week"]:focus, - .input-prepend input[type="number"]:focus, - .input-prepend input[type="email"]:focus, - .input-prepend input[type="url"]:focus, - .input-prepend input[type="search"]:focus, - .input-prepend input[type="tel"]:focus, - .input-prepend input[type="color"]:focus, - .input-prepend .uneditable-input:focus { - z-index: 2; - } - - .input-append .add-on, - .input-prepend .add-on { - display: inline-block; width: auto; - height: 20px; - min-height: 20px; - min-width: 16px; - padding: 4px 5px; - font-size: 14px; - font-weight: normal; - line-height: 20px; - text-align: center; - text-shadow: 0 1px 0 #fff; - background-color: #eee; - border: 1px solid #ccc; - } - - .input-append .add-on, - .input-append .btn, - .input-append .btn-group>.dropdown-toggle, - .input-prepend .add-on, - .input-prepend .btn, - .input-prepend .btn-group>.dropdown-toggle { - display: inline-block; - vertical-align: top; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; - } - - .input-append .active, - .input-prepend .active { - background-color: #a9dba9; - border-color: #46a546; - } - - .input-prepend .add-on, - .input-prepend .btn { - margin-right: -1px; - } - - .input-prepend .add-on:first-child, - .input-prepend .btn:first-child { - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; - } - - .input-append input[type="text"], - .input-append input[type="password"], - .input-append input[type="datetime"], - .input-append input[type="datetime-local"], - .input-append input[type="date"], - .input-append input[type="month"], - .input-append input[type="time"], - .input-append input[type="week"], - .input-append input[type="number"], - .input-append input[type="email"], - .input-append input[type="url"], - .input-append input[type="search"], - .input-append input[type="tel"], - .input-append input[type="color"], - .input-append .uneditable-input { - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; - } - - .input-append input[type="text"]+.btn-group .btn:last-child, - .input-append input[type="password"]+.btn-group .btn:last-child, - .input-append input[type="datetime"]+.btn-group .btn:last-child, - .input-append input[type="datetime-local"]+.btn-group .btn:last-child, - .input-append input[type="date"]+.btn-group .btn:last-child, - .input-append input[type="month"]+.btn-group .btn:last-child, - .input-append input[type="time"]+.btn-group .btn:last-child, - .input-append input[type="week"]+.btn-group .btn:last-child, - .input-append input[type="number"]+.btn-group .btn:last-child, - .input-append input[type="email"]+.btn-group .btn:last-child, - .input-append input[type="url"]+.btn-group .btn:last-child, - .input-append input[type="search"]+.btn-group .btn:last-child, - .input-append input[type="tel"]+.btn-group .btn:last-child, - .input-append input[type="color"]+.btn-group .btn:last-child, - .input-append .uneditable-input+.btn-group .btn:last-child { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; - } - - .input-append .add-on, - .input-append .btn, - .input-append .btn-group { - margin-left: -1px; - } - - .input-append .add-on:last-child, - .input-append .btn:last-child, - .input-append .btn-group:last-child>.dropdown-toggle { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; - } - - .input-prepend.input-append input, - .input-prepend.input-append select, - .input-prepend.input-append .uneditable-input { - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; - } - - .input-prepend.input-append input+.btn-group .btn, - .input-prepend.input-append select+.btn-group .btn, - .input-prepend.input-append .uneditable-input+.btn-group .btn { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; - } - - .input-prepend.input-append .add-on:first-child, - .input-prepend.input-append .btn:first-child { - margin-right: -1px; - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; - } - - .input-prepend.input-append .add-on:last-child, - .input-prepend.input-append .btn:last-child { - margin-left: -1px; - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; - } - - .input-prepend.input-append .btn-group:first-child { - margin-left: 0; - } - - input.search-query { - padding-right: 14px; - padding-right: 4px \9; - padding-left: 14px; - padding-left: 4px \9; - margin-bottom: 0; - -webkit-border-radius: 15px; - -moz-border-radius: 15px; - border-radius: 15px; - } - - .form-search .input-append .search-query, - .form-search .input-prepend .search-query { - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; - } - - .form-search .input-append .search-query { - -webkit-border-radius: 14px 0 0 14px; - -moz-border-radius: 14px 0 0 14px; - border-radius: 14px 0 0 14px; - } - - .form-search .input-append .btn { - -webkit-border-radius: 0 14px 14px 0; - -moz-border-radius: 0 14px 14px 0; - border-radius: 0 14px 14px 0; - } - - .form-search .input-prepend .search-query { - -webkit-border-radius: 0 14px 14px 0; - -moz-border-radius: 0 14px 14px 0; - border-radius: 0 14px 14px 0; - } - - .form-search .input-prepend .btn { - -webkit-border-radius: 14px 0 0 14px; - -moz-border-radius: 14px 0 0 14px; - border-radius: 14px 0 0 14px; - } - - .form-search input, - .form-search textarea, - .form-search select, - .form-search .help-inline, - .form-search .uneditable-input, - .form-search .input-prepend, - .form-search .input-append, - .form-inline input, - .form-inline textarea, - .form-inline select, - .form-inline .help-inline, - .form-inline .uneditable-input, - .form-inline .input-prepend, - .form-inline .input-append, - .form-horizontal input, - .form-horizontal textarea, - .form-horizontal select, - .form-horizontal .help-inline, - .form-horizontal .uneditable-input, - .form-horizontal .input-prepend, - .form-horizontal .input-append { - display: inline-block; - *display: inline; - *zoom: 1; - margin-bottom: 0; - vertical-align: middle; - } - - .form-search .hide, - .form-inline .hide, - .form-horizontal .hide { - display: none; - } - - .form-search label, - .form-inline label, - .form-search .btn-group, - .form-inline .btn-group { - display: inline-block; - } - - .form-search .input-append, - .form-inline .input-append, - .form-search .input-prepend, - .form-inline .input-prepend { - margin-bottom: 0; - } - - .form-search .radio, - .form-search .checkbox, - .form-inline .radio, - .form-inline .checkbox { - padding-left: 0; - margin-bottom: 0; - vertical-align: middle; - } - - .form-search .radio input[type="radio"], - .form-search .checkbox input[type="checkbox"], - .form-inline .radio input[type="radio"], - .form-inline .checkbox input[type="checkbox"] { - float: left; - margin-right: 3px; - margin-left: 0; - } - - .control-group { - margin-bottom: 10px; - } - - legend+.control-group { - margin-top: 20px; - -webkit-margin-top-collapse: separate; - } - - .form-horizontal .control-group { - margin-bottom: 20px; - *zoom: 1; - } - - .form-horizontal .control-group:before, - .form-horizontal .control-group:after { - display: table; - content: ""; - line-height: 0; - } - - .form-horizontal .control-group:after { - clear: both; - } - - .form-horizontal .control-label { - float: left; - width: 160px; - padding-top: 5px; - text-align: right; - } - - .form-horizontal .controls { - *display: inline-block; - *padding-left: 20px; - margin-left: 180px; - *margin-left: 0; - } - - .form-horizontal .controls:first-child { - *padding-left: 180px; - } - - .form-horizontal .help-block { - margin-bottom: 0; - } + line-height: 1; + } + + .controls { + + >textarea, + >select, + >input[type="text"], + >input[type="password"], + >input[type="datetime"], + >input[type="datetime-local"], + >input[type="date"], + >input[type="month"], + >input[type="time"], + >input[type="week"], + >input[type="number"], + >input[type="email"], + >input[type="url"], + >input[type="search"], + >input[type="tel"], + >input[type="color"], + >.uneditable-input { + @extend .form-control; + } - .form-horizontal input+.help-block, - .form-horizontal select+.help-block, - .form-horizontal textarea+.help-block, - .form-horizontal .uneditable-input+.help-block, - .form-horizontal .input-prepend+.help-block, - .form-horizontal .input-append+.help-block { - margin-top: 10px; - } + .field-calendar { + input[type="text"] { + @extend .form-control; + } + } - .form-horizontal .form-actions { - padding-left: 180px; + .field-media-input { + @extend .form-control; + } } - .control-label .hasTooltip { + input[type="checkbox"], + input[type="radio"] { + @extend .form-check; + margin-right: 5px; display: inline-block; - } - - .well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); - -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); - } - .well blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, .15); + +label { + @extend .form-check-label; + margin-right: 10px; + } } - .well-large { - padding: 24px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - border-radius: 6px; + input[type="date"], + input[type="time"], + input[type="datetime-local"], + input[type="month"] { + appearance: none; } - .well-small { - padding: 9px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; + .controls { + @extend .form-group } - .accordion { - margin-bottom: 20px; - } + .btn { - .accordion-group { - margin-bottom: 2px; - border: 1px solid #e5e5e5; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; + [class^="icon-"], + [class*=" icon-"] { + margin-right: 10px; + } } - .accordion-heading { - border-bottom: 0; + .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger) { + @extend .btn-outline-secondary; } - .accordion-heading .accordion-toggle { - display: block; - padding: 8px 15px; + .btn-toolbar { + .btn-group:not(:last-child) { + margin-right: 10px; + } } +} - .accordion-toggle { - cursor: pointer; +.layout-edit { + .tip-wrap { + box-shadow: 2px 2px 9px rgb(0 0 0 / 6%); + border: 1px solid #fdfdfd; + padding: 10px; + background-color: #fff; } - .accordion-inner { - padding: 9px 15px; - border-top: 1px solid #e5e5e5; - } + .input-prepend.input-append { + display: flex; + justify-content: center; + align-items: center; + gap: 10px; - @media (max-width: 767px) { - div.modal { - position: fixed; - top: 20px; - left: 20px; - right: 20px; + .btn { width: auto; - margin: 0; - } - - div.modal.fade { - top: -100px; - } - - div.modal.fade.in { - top: 20px; } } - - @media (max-width: 480px) { - div.modal { - top: 10px; - left: 10px; - right: 10px; - } - } - } \ No newline at end of file diff --git a/scss/one/frontend-edit.scss b/scss/one/frontend-edit.scss new file mode 100644 index 0000000..d6660d6 --- /dev/null +++ b/scss/one/frontend-edit.scss @@ -0,0 +1,102 @@ +#adminForm { + [class^="icon-"], + [class*=" icon-"] { + height: auto; + width: auto; + line-height: 1; + } + + .controls { + + >textarea, + >select, + >input[type="text"], + >input[type="password"], + >input[type="datetime"], + >input[type="datetime-local"], + >input[type="date"], + >input[type="month"], + >input[type="time"], + >input[type="week"], + >input[type="number"], + >input[type="email"], + >input[type="url"], + >input[type="search"], + >input[type="tel"], + >input[type="color"], + >.uneditable-input { + @extend .form-control; + } + + .field-calendar { + input[type="text"] { + @extend .form-control; + } + } + + .field-media-input { + @extend .form-control; + } + } + + input[type="checkbox"], + input[type="radio"] { + @extend .form-check; + margin-right: 5px; + display: inline-block; + + +label { + @extend .form-check-label; + margin-right: 10px; + } + } + + input[type="date"], + input[type="time"], + input[type="datetime-local"], + input[type="month"] { + appearance: none; + } + + .controls { + @extend .form-group + } + + .btn { + + [class^="icon-"], + [class*=" icon-"] { + margin-right: 10px; + } + } + + .btn:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger) { + @extend .btn-outline-secondary; + } + + .btn-toolbar { + .btn-group:not(:last-child) { + margin-right: 10px; + } + } +} + +.layout-edit { + .tip-wrap { + box-shadow: 2px 2px 9px rgb(0 0 0 / 6%); + border: 1px solid #fdfdfd; + padding: 10px; + background-color: #fff; + } + + .input-prepend.input-append { + display: flex; + justify-content: center; + align-items: center; + gap: 10px; + + .btn { + width: auto; + } + } +} \ No newline at end of file diff --git a/templateDetails.xml b/templateDetails.xml index 5ecc2cd..2489d38 100644 --- a/templateDetails.xml +++ b/templateDetails.xml @@ -7,7 +7,7 @@ https://www.joomdev.com Copyright (C) 2019 Joomdev, Inc. All rights reserved. GNU General Public License bn 2 or later; see LICENSE.txt - 1.3.0 + 1.3.1 TPL_ASTROID_XML_DESCRIPTION https://cdn.joomdev.com/updates/astroid_template_one.xml