Skip to content

Commit

Permalink
JLayoutFile
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Jun 29, 2018
1 parent adaff95 commit 1991fb7
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 16 deletions.
Expand Up @@ -14,6 +14,7 @@
use Joomla\Component\Banners\Administrator\Helper\BannersHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Layout\FileLayout;

/**
* View class for a list of banners.
Expand Down Expand Up @@ -147,8 +148,8 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
$layout = new \JLayoutFile('joomla.toolbar.batch');
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
\JToolbar::getInstance('toolbar')->appendButton('Custom', $dhtml, 'batch');
Expand Down
5 changes: 3 additions & 2 deletions administrator/components/com_banners/View/Tracks/HtmlView.php
Expand Up @@ -14,6 +14,7 @@
use Joomla\Component\Banners\Administrator\Helper\BannersHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Layout\FileLayout;

/**
* View class for a list of tracks.
Expand Down Expand Up @@ -88,8 +89,8 @@ protected function addToolbar()

$bar = \JToolbar::getInstance('toolbar');

// Instantiate a new \JLayoutFile instance and render the export button
$layout = new \JLayoutFile('joomla.toolbar.modal');
// Instantiate a new FileLayout instance and render the export button
$layout = new FileLayout('joomla.toolbar.modal');

$dhtml = $layout->render(
array(
Expand Down
Expand Up @@ -208,7 +208,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new \ileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down
Expand Up @@ -170,7 +170,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down
Expand Up @@ -172,7 +172,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(
Expand Down
Expand Up @@ -175,7 +175,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(
Expand Down
Expand Up @@ -112,7 +112,7 @@ protected function prepareToolbar()
// Add a delete button
if ($user->authorise('core.delete', 'com_media'))
{
// Instantiate a new JLayoutFile instance and render the layout
// Instantiate a new FileLayout instance and render the layout
$layout = new FileLayout('toolbar.delete');

$bar->appendButton('Custom', $layout->render(array()), 'delete');
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_menus/View/Items/HtmlView.php
Expand Up @@ -374,7 +374,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down
Expand Up @@ -160,7 +160,7 @@ protected function addToolbar()

if ($canDo->get('core.create'))
{
// Instantiate a new \JLayoutFile instance and render the layout
// Instantiate a new FileLayout instance and render the layout
$layout = new FileLayout('toolbar.newmodule');

$bar->appendButton('Custom', $layout->render(array()), 'new');
Expand All @@ -185,7 +185,7 @@ protected function addToolbar()
\JHtml::_('bootstrap.renderModal', 'collapseModal');
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new \FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down
Expand Up @@ -84,7 +84,7 @@ protected function addToolbar()
// Get the toolbar object instance
$bar = \JToolbar::getInstance('toolbar');

// Instantiate a new \JLayoutFile instance and render the layout
// Instantiate a new FileLayout instance and render the layout
$layout = new FileLayout('toolbar.cancelselect');

$bar->appendButton('Custom', $layout->render(array()), 'new');
Expand Down
Expand Up @@ -152,7 +152,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down
Expand Up @@ -179,7 +179,7 @@ protected function addToolbar()

\JHtml::_('bootstrap.renderModal', 'collapseModal');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_tags/View/Tags/HtmlView.php
Expand Up @@ -170,7 +170,7 @@ protected function addToolbar()
{
$title = Text::_('JTOOLBAR_BATCH');

// Instantiate a new \JLayoutFile instance and render the batch button
// Instantiate a new FileLayout instance and render the batch button
$layout = new FileLayout('joomla.toolbar.batch');

$dhtml = $layout->render(array('title' => $title));
Expand Down

0 comments on commit 1991fb7

Please sign in to comment.