Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Let bootstrap and CE live happily (#448)
Browse files Browse the repository at this point in the history
* boom

* loop da loop

* better grouping

* patch it

* Inline
  • Loading branch information
dGrammatiko authored and wilsonge committed Jul 1, 2018
1 parent 1607a8c commit 0426c1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions administrator/components/com_content/tmpl/article/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$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 Down
1 change: 1 addition & 0 deletions administrator/components/com_media/tmpl/file/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

Factory::getDocument()->addScriptOptions('com_media', $config);

$this->useCoreUI = true;
?>
<div class="row">
<form action="#" method="post" name="adminForm" id="media-form" class="form-validate col-md-12">
Expand Down
6 changes: 4 additions & 2 deletions layouts/joomla/edit/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@
$label = Text::_($label);
}

$helper = $displayData->get('useCoreUI', false) ? 'uitab' : 'bootstrap';

// Start the tab
echo HTMLHelper::_('uitab.addTab', $tabName, 'attrib-' . $name, $label);
echo HTMLHelper::_($helper . '.addTab', $tabName, 'attrib-' . $name, $label);

// Include the description when available
if (isset($fieldSet->description) && trim($fieldSet->description))
Expand All @@ -128,5 +130,5 @@
echo LayoutHelper::render('joomla.edit.fieldset', $displayData);

// End the tab
echo HTMLHelper::_('uitab.endTab');
echo HTMLHelper::_($helper . '.endTab');
}

0 comments on commit 0426c1d

Please sign in to comment.