Skip to content

Commit

Permalink
Merge branch '4.0-dev' into 4.0-dev-chmst
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst committed Jul 10, 2018
2 parents d85aad3 + 3bdf188 commit a9eaf4e
Show file tree
Hide file tree
Showing 197 changed files with 5,645 additions and 5,124 deletions.
7 changes: 5 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# A list of files to ignore from linting
!*.es6.js
build/**/**/*.js
build/**/**/*.js ## Exclude webcomponents till we fix the CS!
*.vue
build/incompatible_page/*.js
build/incompatible_page/*.js
media/system/webcomponents/js/*.js ## The linted files are in build/webcomponents!
media/com_media/js/edit-images.js ## TODO: Fix this file
media/mod_menu/js/admin-menu.js ## TODO: Fix this file
2 changes: 1 addition & 1 deletion administrator/components/com_admin/Model/SysinfoModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function &getPHPInfo()
$phpInfo = ob_get_contents();
ob_end_clean();
preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpInfo, $output);
$output = preg_replace('#<table[^>]*>#', '<table class="table table-striped adminlist">', $output[1][0]);
$output = preg_replace('#<table[^>]*>#', '<table class="table adminlist">', $output[1][0]);
$output = preg_replace('#(\w),(\w)#', '\1, \2', $output);
$output = preg_replace('#<hr />#', '', $output);
$output = str_replace('<div class="text-center">', '', $output);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_CONFIGURATION_FILE'); ?></legend>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th style="width:300px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS'); ?></legend>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th style="width:650px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_RELEVANT_PHP_SETTINGS'); ?></legend>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th style="width:250px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_ADMIN_SYSTEM_INFORMATION'); ?></legend>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th style="width:25%">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped" id="associationsList">
<table class="table" id="associationsList">
<thead>
<tr>
<?php if (!empty($this->typeSupports['state'])) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped" id="associationsList">
<table class="table" id="associationsList">
<thead>
<tr>
<?php if (!empty($this->typeSupports['state'])) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped" id="articleList">
<table class="table" id="articleList">
<thead>
<tr>
<th style="width:1%" class="nowrap text-center d-none d-md-table-cell">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th style="width:1%" class="text-center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th class="title">
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_cache/tmpl/cache/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div id="j-main-container" class="j-main-container">
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<?php if (count($this->data) > 0) : ?>
<table class="table table-striped">
<table class="table">
<thead>
<tr>
<th style="width:1%" class="nowrap text-center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped" id="categoryList">
<table class="table" id="categoryList">
<thead>
<tr>
<th style="width:1%" class="nowrap text-center d-none d-md-table-cell">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped" id="categoryList">
<table class="table" id="categoryList">
<thead>
<tr>
<th style="width:1%" class="nowrap text-center">
Expand Down
21 changes: 10 additions & 11 deletions administrator/components/com_categories/tmpl/category/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
JHtml::_('behavior.formvalidator');
JHtml::_('behavior.keepalive');
JHtml::_('formbehavior.chosen', '.advancedSelect');
JHtml::_('behavior.tabstate');

$app = JFactory::getApplication();
$input = $app->input;
Expand All @@ -38,9 +37,9 @@
<?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?>

<div>
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'general')); ?>
<?php echo JHtml::_('uitab.startTabSet', 'myTab', array('active' => 'general')); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'general', JText::_('JCATEGORY')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'general', JText::_('JCATEGORY')); ?>
<div class="row">
<div class="col-md-9">
<?php echo $this->form->getLabel('description'); ?>
Expand All @@ -54,11 +53,11 @@
</div>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>

<?php echo JLayoutHelper::render('joomla.edit.params', $this); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'publishing', JText::_('COM_CATEGORIES_FIELDSET_PUBLISHING')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'publishing', JText::_('COM_CATEGORIES_FIELDSET_PUBLISHING')); ?>
<div class="row">
<div class="col-md-6">
<?php echo JLayoutHelper::render('joomla.edit.publishingdata', $this); ?>
Expand All @@ -67,23 +66,23 @@
<?php echo JLayoutHelper::render('joomla.edit.metadata', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>

<?php if ( ! $isModal && $assoc && $extensionassoc) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'associations', JText::_('JGLOBAL_FIELDSET_ASSOCIATIONS')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'associations', JText::_('JGLOBAL_FIELDSET_ASSOCIATIONS')); ?>
<?php echo $this->loadTemplate('associations'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php elseif ($isModal && $assoc && $extensionassoc) : ?>
<div class="hidden"><?php echo $this->loadTemplate('associations'); ?></div>
<?php endif; ?>

<?php if ($this->canDo->get('core.admin')) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'rules', JText::_('COM_CATEGORIES_FIELDSET_RULES')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'rules', JText::_('COM_CATEGORIES_FIELDSET_RULES')); ?>
<?php echo $this->form->getInput('rules'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php endif; ?>

<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<?php echo JHtml::_('uitab.endTabSet'); ?>

<?php echo $this->form->getInput('extension'); ?>
<input type="hidden" name="task" value="">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div id="j-main-container" class="j-main-container">
<?php echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<?php if ($this->total > 0) : ?>
<table id="global-checkin" class="table table-striped">
<table id="global-checkin" class="table">
<thead>
<tr>
<th style="width:1%"><?php echo JHtml::_('grid.checkall'); ?></th>
Expand Down
6 changes: 5 additions & 1 deletion administrator/components/com_config/Field/FiltersField.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function getInput()
$html = array();

// Open the table.
$html[] = '<table id="filter-config" class="table table-striped">';
$html[] = '<table id="filter-config" class="table">';

// The table heading.
$html[] = ' <thead>';
Expand Down Expand Up @@ -86,6 +86,7 @@ protected function getInput()
$html[] = ' ' . \JLayoutHelper::render('joomla.html.treeprefix', array('level' => $group->level + 1)) . $group->text;
$html[] = ' </td>';
$html[] = ' <td>';
$html[] = ' <label for="' . $this->id . $group->value . '_filter_type" class="sr-only">' . \JText::_('JGLOBAL_FILTER_TYPE_LABEL') . '</label>';
$html[] = ' <select'
. ' name="' . $this->name . '[' . $group->value . '][filter_type]"'
. ' id="' . $this->id . $group->value . '_filter_type"'
Expand All @@ -104,6 +105,7 @@ protected function getInput()
$html[] = ' </select>';
$html[] = ' </td>';
$html[] = ' <td>';
$html[] = ' <label for="' . $this->id . $group->value . '_filter_tags" class="sr-only">' . \JText::_('JGLOBAL_FILTER_TAGS_LABEL') . '</label>';
$html[] = ' <input'
. ' name="' . $this->name . '[' . $group->value . '][filter_tags]"'
. ' type="text"'
Expand All @@ -112,6 +114,8 @@ protected function getInput()
. '>';
$html[] = ' </td>';
$html[] = ' <td>';
$html[] = ' <label for="' . $this->id . $group->value . '_filter_attributes"'
. ' class="sr-only">' . \JText::_('JGLOBAL_FILTER_ATTRIBUTES_LABEL') . '</label>';
$html[] = ' <input'
. ' name="' . $this->name . '[' . $group->value . '][filter_attributes]"'
. ' type="text"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<div class="col-md-10" id="config">

<?php if ($this->fieldsets): ?>
<ul class="nav nav-tabs flex-wrap" id="configTabs">
<ul class="nav nav-tabs" id="configTabs">
<?php foreach ($this->fieldsets as $name => $fieldSet) : ?>
<?php $dataShowOn = ''; ?>
<?php if (!empty($fieldSet->showon)) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped" id="contactList">
<table class="table" id="contactList">
<thead>
<tr>
<th style="width:1%" class="nowrap text-center d-none d-md-table-cell">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<?php if (empty($this->items)) : ?>
<joomla-alert type="warning"><?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?></joomla-alert>
<?php else : ?>
<table class="table table-striped table-sm">
<table class="table table-sm">
<thead>
<tr>
<th style="width:1%" class="text-center nowrap">
Expand Down
30 changes: 15 additions & 15 deletions administrator/components/com_content/tmpl/article/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
JHtml::_('behavior.formvalidator');
JHtml::_('behavior.keepalive');
JHtml::_('formbehavior.chosen', '#jform_catid', null, array('disable_search_threshold' => 0 ));
JHtml::_('behavior.tabstate');

$this->configFieldsets = array('editorConfig');
$this->hiddenFieldsets = array('basic-limited');
$this->ignore_fieldsets = array('jmetadata', 'item_associations');
$this->useCoreUI = true;

// Create shortcut to parameters.
$params = clone $this->state->get('params');
Expand All @@ -40,9 +40,9 @@
<?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?>

<div>
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'general')); ?>
<?php echo JHtml::_('uitab.startTabSet', 'myTab', array('active' => 'general')); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'general', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'general', JText::_('COM_CONTENT_ARTICLE_CONTENT')); ?>
<div class="row">
<div class="col-md-9">
<fieldset class="adminform">
Expand All @@ -57,11 +57,11 @@
</div>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>

<?php // Do not show the images and links options if the edit form is configured not to. ?>
<?php if ($params->get('show_urls_images_backend') == 1) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'images', JText::_('COM_CONTENT_FIELDSET_URLS_AND_IMAGES')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'images', JText::_('COM_CONTENT_FIELDSET_URLS_AND_IMAGES')); ?>
<div class="row">
<div class="col-md-6">
<?php echo $this->form->renderField('images'); ?>
Expand All @@ -75,15 +75,15 @@
<?php endforeach; ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php endif; ?>

<?php $this->show_options = $params->get('show_article_options', 1); ?>
<?php echo JLayoutHelper::render('joomla.edit.params', $this); ?>

<?php // Do not show the publishing options if the edit form is configured not to. ?>
<?php if ($params->get('show_publishing_options', 1) == 1) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'publishing', JText::_('COM_CONTENT_FIELDSET_PUBLISHING')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'publishing', JText::_('COM_CONTENT_FIELDSET_PUBLISHING')); ?>
<div class="row">
<div class="col-md-6">
<?php echo JLayoutHelper::render('joomla.edit.publishingdata', $this); ?>
Expand All @@ -92,31 +92,31 @@
<?php echo JLayoutHelper::render('joomla.edit.metadata', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php endif; ?>


<?php if ( ! $isModal && $assoc) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'associations', JText::_('JGLOBAL_FIELDSET_ASSOCIATIONS')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'associations', JText::_('JGLOBAL_FIELDSET_ASSOCIATIONS')); ?>
<?php echo $this->loadTemplate('associations'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php elseif ($isModal && $assoc) : ?>
<div class="hidden"><?php echo $this->loadTemplate('associations'); ?></div>
<?php endif; ?>

<?php if ($this->canDo->get('core.admin')) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'editor', JText::_('COM_CONTENT_SLIDER_EDITOR_CONFIG')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'editor', JText::_('COM_CONTENT_SLIDER_EDITOR_CONFIG')); ?>
<?php echo $this->form->renderFieldset('editorConfig'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php endif; ?>

<?php if ($this->canDo->get('core.admin')) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'permissions', JText::_('COM_CONTENT_FIELDSET_RULES')); ?>
<?php echo JHtml::_('uitab.addTab', 'myTab', 'permissions', JText::_('COM_CONTENT_FIELDSET_RULES')); ?>
<?php echo $this->form->getInput('rules'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('uitab.endTab'); ?>
<?php endif; ?>

<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<?php echo JHtml::_('uitab.endTabSet'); ?>

<input type="hidden" name="task" value="">
<input type="hidden" name="return" value="<?php echo $input->getCmd('return'); ?>">
Expand Down

0 comments on commit a9eaf4e

Please sign in to comment.