Skip to content

Commit

Permalink
Correct show/hide configration in backend for Article page
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Jan 31, 2013
1 parent e0044e2 commit 7768631
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions source/plg_system_t3/base/html/com_content/article/default.php
Expand Up @@ -15,10 +15,16 @@

// Create shortcuts to some parameters.
$params = $this->item->params;
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);
$canEdit = $this->item->params->get('access-edit');
$user = JFactory::getUser();
$aInfo = (($params->get('show_author') && !empty($this->item->author )) ||
($params->get('show_category')) ||
($params->get('show_create_date')) ||
($params->get('show_parent_category')) ||
($params->get('show_publish_date')));
$exAction = ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon'));
?>

<?php if ($this->params->get('show_page_heading', 1)) : ?>
Expand Down Expand Up @@ -46,10 +52,11 @@
</header>
<?php endif; ?>

<?php if($aInfo || $exAction) :?>
<!-- Aside -->
<aside class="article-aside clearfix">

<?php if (($params->get('show_author') && !empty($this->item->author )) || ($params->get('show_category')) || ($params->get('show_create_date')) || ($params->get('show_parent_category')) || ($params->get('show_publish_date'))) : ?>
<?php if ($aInfo) : ?>
<dl class="article-info pull-left">
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>

Expand Down Expand Up @@ -112,7 +119,7 @@
</dl>
<?php endif; ?>

<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
<?php if ($exAction) : ?>
<div class="btn-group pull-right"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <i class="icon-cog"></i> <span class="caret"></span> </a>
<ul class="dropdown-menu">
<?php if (!$this->print) : ?>
Expand All @@ -133,6 +140,7 @@
<?php endif; ?>
</aside>
<!-- //Aside -->
<?php endif; ?>

<?php if (isset ($this->item->toc)) : ?>
<?php echo $this->item->toc; ?>
Expand Down

0 comments on commit 7768631

Please sign in to comment.