Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Jul 15, 2016
2 parents 18b3c4f + 4099128 commit 2ce5fdf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,16 @@
</form>
<?php
else:
if(!empty( $this->sidebar)): ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;
echo FText::_('COM_FABRIK_PACKAGES_REMOVED');
endif; ?>
?>
</div>
<?php endif; ?>

Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ public function display($tpl = null)
protected function addToolbar()
{
require_once JPATH_COMPONENT . '/helpers/fabrik.php';

$canDo = FabrikAdminHelper::getActions($this->state->get('filter.category_id'));
JToolBarHelper::title(FText::_('COM_FABRIK_MANAGER_PACKAGES'), 'box-add');

/*
if ($canDo->get('core.create'))
{
JToolBarHelper::addNew('package.add', 'JTOOLBAR_NEW');
Expand Down Expand Up @@ -131,6 +133,8 @@ protected function addToolbar()
JToolBarHelper::trash('packages.trash', 'JTOOLBAR_TRASH');
}
*/

if ($canDo->get('core.admin'))
{
JToolBarHelper::divider();
Expand All @@ -140,6 +144,7 @@ protected function addToolbar()
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_COMPONENTS_FABRIK_PACKAGES', false, FText::_('JHELP_COMPONENTS_FABRIK_PACKAGES'));

/*
if (FabrikWorker::j3())
{
JHtmlSidebar::setAction('index.php?option=com_fabrik&view=packages');
Expand All @@ -151,5 +156,6 @@ protected function addToolbar()
JHtml::_('select.options', $publishOpts, 'value', 'text', $this->state->get('filter.published'), true)
);
}
*/
}
}

0 comments on commit 2ce5fdf

Please sign in to comment.