Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
blog.php000064400000010041151165371100006174 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$templateparams = $app->getTemplate(true)->params;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::_('behavior.caption');
$cparams = JComponentHelper::getParams('com_media');
// If the page class is defined, add to class as suffix.
// It will be a separate class if the user starts it with a space
?>
<section class="blog<?php echo
$this->pageclass_sfx;?>">
<?php if ($this->params->get('show_page_heading') != 0)
: ?>
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('show_category_title')) :
?>
<h2 class="subheading-category">
<?php echo JHtml::_('content.prepare',
$this->category->title, '',
'com_content.category.title'); ?>
</h2>
<?php endif; ?>
<?php if ($this->params->get('show_description', 1) ||
$this->params->def('show_description_image', 1)) : ?>
<div class="category-desc">
<?php if ($this->params->get('show_description_image')
&& $this->category->getParams()->get('image')) :
?>
<img src="<?php echo
$this->category->getParams()->get('image');
?>"/>
<?php endif; ?>
<?php if ($this->category->description &&
$this->params->get('show_description')) : ?>
<?php echo JHtml::_('content.prepare',
$this->category->description, '',
'com_content.category'); ?>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php if (empty($this->lead_items) &&
empty($this->link_items) && empty($this->intro_items)) :
?>
<?php if ($this->params->get('show_no_articles', 1)) :
?>
<p><?php echo JText::_('COM_CONTENT_NO_ARTICLES');
?></p>
<?php endif; ?>
<?php endif; ?>
<?php $leadingcount = 0; ?>
<?php if (!empty($this->lead_items)) : ?>
<div class="items-leading">
<?php foreach ($this->lead_items as &$item) : ?>
<article class="leading-<?php echo $leadingcount;
?><?php echo $item->state == 0 ? 'system-unpublished' :
null; ?>">
<?php
$this->item = &$item;
echo $this->loadTemplate('item');
?>
</article>
<?php $leadingcount++; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if (!empty($this->intro_items)) : ?>
<?php $introcount = count($this->intro_items); ?>
<?php $counter = 0; ?>
<?php foreach ($this->intro_items as $key => &$item) : ?>
<?php $rowcount = ((int) $key % (int) $this->columns) + 1; ?>
<?php if ($rowcount === 1) : ?>
<?php $row = $counter / $this->columns; ?>
<div class="items-row cols-<?php echo (int)
$this->columns;?> <?php echo 'row-'.$row;
?>">
<?php endif; ?>
<article class="item column-<?php echo $rowcount;?><?php
echo $item->state == 0 ? ' system-unpublished' : null;
?>">
<?php
$this->item = &$item;
echo $this->loadTemplate('item');
?>
</article>
<?php $counter++; ?>
<?php if ($rowcount === (int) $this->columns or $counter ===
$introcount) : ?>
<span class="row-separator"></span>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if (!empty($this->link_items)) : ?>
<?php echo $this->loadTemplate('links'); ?>
<?php endif; ?>
<?php if ($this->params->get('maxLevel') != 0 &&
is_array($this->children[$this->category->id]) &&
count($this->children[$this->category->id]) > 0) : ?>
<div class="cat-children">
<?php if
($this->params->get('show_category_heading_title_text', 1)
== 1) : ?>
<h3>
<?php echo JText::_('JGLOBAL_SUBCATEGORIES'); ?>
</h3>
<?php endif; ?>
<?php echo $this->loadTemplate('children'); ?>
</div>
<?php endif; ?>
<?php if ($this->pagination->pagesTotal > 1 &&
($this->params->def('show_pagination', 1) == 1 ||
$this->params->get('show_pagination') == 2)) : ?>
<div class="pagination">
<?php if ($this->params->def('show_pagination_results',
1)) : ?>
<p class="counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
</section>
blog_children.php000064400000004255151165371120010060 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$templateparams = $app->getTemplate(true)->params;
$class = ' class="first"';
$user = JFactory::getUser();
$groups = $user->getAuthorisedViewLevels();
?>
<?php if (count($this->children[$this->category->id]) > 0) :
?>
<ul>
<?php foreach ($this->children[$this->category->id] as $id
=> $child) : ?>
<?php // Check whether category access level allows access to
subcategories. ?>
<?php if (in_array($child->access, $groups)) : ?>
<?php
if ($child->numitems ||
$this->params->get('show_empty_categories') ||
count($child->getChildren())) :
if (!isset($this->children[$this->category->id][$id + 1])) :
$class = ' class="last"';
endif;
?>
<li<?php echo $class; ?>>
<?php $class = ''; ?>
<span class="item-title"><a href="<?php
echo
JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
<?php echo $this->escape($child->title); ?></a>
</span>
<?php if ($this->params->get('show_subcat_desc') ==
1) :?>
<?php if ($child->description) : ?>
<div class="category-desc">
<?php echo JHtml::_('content.prepare',
$child->description, '', 'com_content.category');
?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if (
$this->params->get('show_cat_num_articles', 1)) : ?>
<dl>
<dt>
<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>
</dt>
<dd>
<?php echo $child->getNumItems(true); ?>
</dd>
</dl>
<?php endif; ?>
<?php if (count($child->getChildren()) > 0):
$this->children[$child->id] = $child->getChildren();
$this->category = $child;
$this->maxLevel--;
if ($this->maxLevel !== 0) :
echo $this->loadTemplate('children');
endif;
$this->category = $child->getParent();
$this->maxLevel++;
endif; ?>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
blog_item.php000064400000016356151165371120007233 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
$params = &$this->item->params;
$images = json_decode($this->item->images);
$app = JFactory::getApplication();
$canEdit = $this->item->params->get('access-edit');
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
$currentDate = JFactory::getDate()->format('Y-m-d H:i:s');
$isUnpublished = ($this->item->state == 0 ||
$this->item->publish_up > $currentDate)
|| ($this->item->publish_down < $currentDate &&
$this->item->publish_down !== JFactory::getDbo()->getNullDate());
?>
<?php if ($isUnpublished) : ?>
<div class="system-unpublished">
<?php endif; ?>
<?php if ($params->get('show_title')) : ?>
<h2>
<?php if ($params->get('link_titles') &&
$params->get('access-view')) : ?>
<a href="<?php echo
JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug,
$this->item->catid, $this->item->language)); ?>">
<?php echo $this->escape($this->item->title);
?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>
<?php endif; ?>
<?php // Content is generated by content plugin event
"onContentAfterTitle" ?>
<div class="pull-left"><?php echo
$this->item->event->afterDisplayTitle; ?></div>
<?php if ($canEdit || $params->get('show_print_icon') ||
$params->get('show_email_icon')) : ?>
<ul class="actions">
<?php if ($params->get('show_print_icon')) : ?>
<li class="print-icon">
<?php echo JHtml::_('icon.print_popup', $this->item,
$params, array(), true); ?>
</li>
<?php endif; ?>
<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon">
<?php echo JHtml::_('icon.email', $this->item, $params,
array(), true); ?>
</li>
<?php endif; ?>
<?php if ($canEdit) : ?>
<li class="edit-icon">
<?php echo JHtml::_('icon.edit', $this->item, $params,
array(), true); ?>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php // to do not that elegant would be nice to group the params ?>
<?php if ($params->get('show_author') ||
$params->get('show_category') ||
$params->get('show_create_date') ||
$params->get('show_modify_date') ||
$params->get('show_publish_date') ||
$params->get('show_parent_category') ||
$params->get('show_hits')) : ?>
<dl class="article-info">
<dt class="article-info-term"><?php echo
JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
<?php endif; ?>
<?php if ($params->get('show_parent_category') &&
$this->item->parent_id != 1) : ?>
<dd class="parent-category-name">
<?php $title = $this->escape($this->item->parent_title);
$url = '<a href="' .
JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_id))
. '">' . $title . '</a>'; ?>
<?php if ($params->get('link_parent_category')) : ?>
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url);
?>
<?php else : ?>
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title);
?>
<?php endif; ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_category')) : ?>
<dd class="category-name">
<?php $title = $this->escape($this->item->category_title);
$url = '<a href="' .
JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catid)) .
'">' . $title . '</a>'; ?>
<?php if ($params->get('link_category')) : ?>
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url);
?>
<?php else : ?>
<?php echo JText::sprintf('COM_CONTENT_CATEGORY', $title);
?>
<?php endif; ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_create_date')) : ?>
<dd class="create">
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON',
JHtml::_('date', $this->item->created,
JText::_('DATE_FORMAT_LC2'))); ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_modify_date')) : ?>
<dd class="modified">
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED',
JHtml::_('date', $this->item->modified,
JText::_('DATE_FORMAT_LC2'))); ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_publish_date')) : ?>
<dd class="published">
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON',
JHtml::_('date', $this->item->publish_up,
JText::_('DATE_FORMAT_LC2'))); ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_author') &&
!empty($this->item->author )) : ?>
<dd class="createdby">
<?php $author = $this->item->created_by_alias ?:
$this->item->author; ?>
<?php if (!empty($this->item->contact_link) &&
$params->get('link_author') == true) : ?>
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
JHtml::_('link', $this->item->contact_link, $author));
?>
<?php else :?>
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
$author); ?>
<?php endif; ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_hits')) : ?>
<dd class="hits">
<?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS',
$this->item->hits); ?>
</dd>
<?php endif; ?>
<?php if ($params->get('show_author') ||
$params->get('show_category') ||
$params->get('show_create_date') ||
$params->get('show_modify_date') ||
$params->get('show_publish_date') ||
$params->get('show_parent_category') ||
$params->get('show_hits')) :?>
</dl>
<?php endif; ?>
<?php if (isset($images->image_intro) &&
!empty($images->image_intro)) : ?>
<?php $imgfloat = empty($images->float_intro) ?
$params->get('float_intro') : $images->float_intro; ?>
<div class="img-intro-<?php echo htmlspecialchars($imgfloat);
?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .
htmlspecialchars($images->image_intro_caption, ENT_COMPAT,
'UTF-8') . '"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro,
ENT_COMPAT, 'UTF-8'); ?>" alt="<?php echo
htmlspecialchars($images->image_intro_alt, ENT_COMPAT,
'UTF-8'); ?>"/>
</div>
<?php endif; ?>
<?php echo $this->item->introtext; ?>
<?php if ($params->get('show_readmore') &&
$this->item->readmore) :
if ($params->get('access-view')) :
$link =
JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug,
$this->item->catid, $this->item->language));
else :
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link = new
JUri(JRoute::_('index.php?option=com_users&view=login&Itemid='
. $itemId, false));
$link->setVar('return',
base64_encode(ContentHelperRoute::getArticleRoute($this->item->slug,
$this->item->catid, $this->item->language)));
endif;
?>
<p class="readmore">
<a href="<?php echo $link; ?>">
<?php if (!$params->get('access-view')) :
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($readmore = $this->item->alternative_readmore) :
echo $readmore;
if ($params->get('show_readmore_title', 0) != 0) :
echo JHtml::_('string.truncate', $this->item->title,
$params->get('readmore_limit'));
endif;
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else :
echo JText::_('COM_CONTENT_READ_MORE');
echo JHtml::_('string.truncate', $this->item->title,
$params->get('readmore_limit'));
endif; ?></a>
</p>
<?php endif; ?>
<?php if ($isUnpublished) : ?>
</div>
<?php endif; ?>
<div class="item-separator"></div>
<?php echo $this->item->event->afterDisplayContent; ?>
blog_links.php000064400000001251151165371120007401 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
?>
<div class="items-more">
<h3><?php echo JText::_('COM_CONTENT_MORE_ARTICLES');
?></h3>
<ol>
<?php foreach ($this->link_items as &$item) : ?>
<li>
<a href="<?php echo
JRoute::_(ContentHelperRoute::getArticleRoute($item->slug,
$item->catid, $item->language)); ?>">
<?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
</ol>
</div>
default.php000064400000005533151165371130006712 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$templateparams = $app->getTemplate(true)->params;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::_('behavior.caption');
$showCategoryTitle =
$this->params->get('show_category_title') == 1;
$showCategoryHeadingTitleText =
$this->params->get('show_category_heading_title_text', 1)
== 1;
$pageSubHeading =
$this->params->get('page_subheading');
?>
<section class="category-list<?php echo
$this->pageclass_sfx;?>">
<?php
if ($showPageHeading =
$this->params->get('show_page_heading')) : ?>
<?php if ($showPageHeading and ($showCategoryTitle === true or
$pageSubHeading)) : ?>
<hgroup>
<?php endif; ?>
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php if ($showCategoryTitle === true or $pageSubHeading) : ?>
<h2>
<?php echo $this->escape($pageSubHeading); ?>
<?php if ($showCategoryTitle === true)
{
echo '<span
class="subheading-category">'.JHtml::_('content.prepare',
$this->category->title, '',
'com_content.category.title').'</span>';
}
?>
</h2>
<?php if ($this->params->get('show_page_heading') and
($this->params->get('show_category_title', 1) or
$pageSubHeading)) : ?>
</hgroup>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->params->get('show_description', 1) ||
$this->params->def('show_description_image', 1)) : ?>
<div class="category-desc">
<?php if ($this->params->get('show_description_image')
&& $this->category->getParams()->get('image')) :
?>
<img src="<?php echo
$this->category->getParams()->get('image');
?>"/>
<?php endif; ?>
<?php if ($this->category->description &&
$this->params->get('show_description')) : ?>
<?php echo JHtml::_('content.prepare',
$this->category->description, '',
'com_content.category'); ?>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php endif; ?>
<?php if ($this->params->get('maxLevel') != 0 &&
is_array($this->children[$this->category->id]) &&
count($this->children[$this->category->id]) > 0) : ?>
<div class="cat-children">
<?php if ($showCategoryTitle === true or $pageSubHeading)
{
echo '<h3>';
}
elseif ($showCategoryHeadingTitleText === true)
{
echo '<h2>';
} ?>
<?php if ($showCategoryHeadingTitleText === true) : ?>
<?php echo JText::_('JGLOBAL_SUBCATEGORIES'); ?>
<?php endif; ?>
<?php if ($showCategoryTitle === true or $pageSubHeading)
{
echo '</h3>';
}
elseif ($showCategoryHeadingTitleText === true)
{
echo '</h2>';
} ?>
</div>
<?php endif; ?>
<?php echo $this->loadTemplate('children'); ?>
<div class="cat-items">
<?php echo $this->loadTemplate('articles'); ?>
</div>
</section>
default_articles.php000064400000021343151165371130010575 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.framework');
$n = count($this->items);
$listOrder =
$this->escape($this->state->get('list.ordering'));
$listDirn =
$this->escape($this->state->get('list.direction'));
// Check for at least one editable article
$isEditable = false;
if (!empty($this->items))
{
foreach ($this->items as $article)
{
if ($article->params->get('access-edit'))
{
$isEditable = true;
break;
}
}
}
?>
<?php if (empty($this->items)) : ?>
<?php if ($this->params->get('show_no_articles', 1)) :
?>
<p><?php echo JText::_('COM_CONTENT_NO_ARTICLES');
?></p>
<?php endif; ?>
<?php else : ?>
<form action="<?php echo
htmlspecialchars(JUri::getInstance()->toString()); ?>"
method="post" name="adminForm"
id="adminForm">
<?php if ($this->params->get('filter_field') !==
'hide') : ?>
<fieldset class="filters">
<legend class="hidelabeltxt">
<?php echo JText::_('JGLOBAL_FILTER_LABEL'); ?>
</legend>
<div class="filter-search">
<?php if ($this->params->get('filter_field') ===
'tag') :?>
<select name="filter_tag" id="filter_tag"
onchange="document.adminForm.submit();">
<option value=""><?php echo
JText::_('JOPTION_SELECT_TAG'); ?></option>
<?php echo JHtml::_('select.options',
JHtml::_('tag.options', true, true), 'value',
'text', $this->state->get('filter.tag')); ?>
</select>
<?php elseif ($this->params->get('filter_field') ===
'month') : ?>
<select name="filter-search" id="filter-search"
onchange="document.adminForm.submit();">
<option value=""><?php echo
JText::_('JOPTION_SELECT_MONTH'); ?></option>
<?php echo JHtml::_('select.options',
JHtml::_('content.months', $this->state), 'value',
'text', $this->state->get('list.filter')); ?>
</select>
<?php else : ?>
<label class="filter-search-lbl element-invisible"
for="filter-search">
<?php echo
JText::_('COM_CONTENT_'.$this->params->get('filter_field').'_FILTER_LABEL').' ';
?>
</label>
<input type="text" name="filter-search"
id="filter-search" value="<?php echo
$this->escape($this->state->get('list.filter'));
?>" class="inputbox"
onchange="document.adminForm.submit();" title="<?php echo
JText::_('COM_CONTENT_FILTER_SEARCH_DESC'); ?>"
placeholder="<?php echo
JText::_('COM_CONTENT_'.$this->params->get('filter_field').'_FILTER_LABEL');
?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_pagination_limit'))
: ?>
<div class="display-limit">
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?> 
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<?php endif; ?>
<?php if ($this->params->get('filter_field') !==
'hide') :?>
</fieldset>
<?php endif; ?>
<div class="clr"></div>
<table class="category">
<?php if ($this->params->get('show_headings')) : ?>
<thead>
<tr>
<th class="list-title" id="tableOrdering">
<?php echo JHtml::_('grid.sort',
'COM_CONTENT_HEADING_TITLE', 'a.title', $listDirn,
$listOrder); ?>
</th>
<?php if ($date =
$this->params->get('list_show_date')) : ?>
<th class="list-date" id="tableOrdering2">
<?php if ($date === 'created') : ?>
<?php echo JHtml::_('grid.sort',
'COM_CONTENT_'.$date.'_DATE', 'a.created',
$listDirn, $listOrder); ?>
<?php elseif ($date === 'modified') : ?>
<?php echo JHtml::_('grid.sort',
'COM_CONTENT_'.$date.'_DATE', 'a.modified',
$listDirn, $listOrder); ?>
<?php elseif ($date === 'published') : ?>
<?php echo JHtml::_('grid.sort',
'COM_CONTENT_'.$date.'_DATE', 'a.publish_up',
$listDirn, $listOrder); ?>
<?php endif; ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('list_show_author', 1))
: ?>
<th class="list-author" id="tableOrdering3">
<?php echo JHtml::_('grid.sort', 'JAUTHOR',
'author', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('list_show_hits', 1)) :
?>
<th class="list-hits" id="tableOrdering4">
<?php echo JHtml::_('grid.sort',
'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('list_show_votes', 0)
&& $this->vote) : ?>
<th id="categorylist_header_votes">
<?php echo JHtml::_('grid.sort',
'COM_CONTENT_VOTES', 'rating_count', $listDirn,
$listOrder); ?>
</th>
<?php endif; ?>
<?php if ($this->params->get('list_show_ratings', 0)
&& $this->vote) : ?>
<th id="categorylist_header_ratings">
<?php echo JHtml::_('grid.sort',
'COM_CONTENT_RATINGS', 'rating', $listDirn,
$listOrder); ?>
</th>
<?php endif; ?>
<?php if ($isEditable) : ?>
<th id="categorylist_header_edit"><?php echo
JText::_('COM_CONTENT_EDIT_ITEM'); ?></th>
<?php endif; ?>
</tr>
</thead>
<?php endif; ?>
<tbody>
<?php foreach ($this->items as $i => &$article) : ?>
<tr class="cat-list-row<?php echo $i % 2; ?>">
<?php if (in_array($article->access,
$this->user->getAuthorisedViewLevels())) : ?>
<td class="list-title">
<a href="<?php echo
JRoute::_(ContentHelperRoute::getArticleRoute($article->slug,
$article->catid, $article->language)); ?>">
<?php echo $this->escape($article->title); ?></a>
</td>
<?php if ($this->params->get('list_show_date')) :
?>
<td class="list-date">
<?php
echo JHtml::_(
'date', $article->displayDate, $this->escape(
$this->params->get('date_format',
JText::_('DATE_FORMAT_LC3'))
)
);
?>
</td>
<?php endif; ?>
<?php if ($this->params->get('list_show_author',
1)) : ?>
<td class="list-author">
<?php if (!empty($article->author) ||
!empty($article->created_by_alias)) : ?>
<?php $author = $article->created_by_alias ?:
$article->author; ?>
<?php if (!empty($article->contact_link) &&
$this->params->get('link_author') == true):?>
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
JHtml::_('link', $article->contact_link, $author)); ?>
<?php else :?>
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY',
$author); ?>
<?php endif; ?>
<?php endif; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('list_show_hits', 1))
: ?>
<td class="list-hits">
<?php echo $article->hits; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('list_show_votes', 0)
&& $this->vote) : ?>
<td class="list-votes">
<?php echo $article->rating_count; ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('list_show_ratings',
0) && $this->vote) : ?>
<td class="list-ratings">
<?php echo $article->rating; ?>
</td>
<?php endif; ?>
<?php if ($isEditable) : ?>
<td class="list-edit">
<?php if ($article->params->get('access-edit')) :
?>
<?php echo JHtml::_('icon.edit', $article,
$article->params, array(), true); ?>
<?php endif; ?>
</td>
<?php endif; ?>
<?php else : ?>
<td>
<?php
echo $this->escape($article->title).' : ';
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link = new
JUri(JRoute::_('index.php?option=com_users&view=login&Itemid='
. $itemId, false));
$link->setVar('return',
base64_encode(ContentHelperRoute::getArticleRoute($article->slug,
$article->catid, $article->language)));
?>
<a href="<?php echo $link; ?>"
class="register">
<?php echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
?></a>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<?php // Code to add a link to submit an article. ?>
<?php if
($this->category->getParams()->get('access-create')) :
?>
<?php echo JHtml::_('icon.create', $this->category,
$this->category->params, array(), true); ?>
<?php endif; ?>
<?php // Add pagination links ?>
<?php if (!empty($this->items)) : ?>
<?php if (($this->params->def('show_pagination', 2) ==
1 || ($this->params->get('show_pagination') == 2))
&& ($this->pagination->pagesTotal > 1)) : ?>
<div class="pagination">
<?php if
($this->params->def('show_pagination_results', 1)) : ?>
<p class="counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
<div>
<input type="hidden" name="task"
value="" />
<input type="hidden" name="filter_order"
value="" />
<input type="hidden" name="filter_order_Dir"
value="" />
<input type="hidden" name="limitstart"
value="" />
</div>
</form>
<?php endif; ?>
default_children.php000064400000004454151165371130010563 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$templateparams = $app->getTemplate(true)->params;
$class = ' class="first"';
$user = JFactory::getUser();
$groups = $user->getAuthorisedViewLevels();
?>
<?php if (count($this->children[$this->category->id]) > 0)
:?>
<ul>
<?php foreach ($this->children[$this->category->id] as $id
=> $child) : ?>
<?php // Check whether category access level allows access to
subcategories. ?>
<?php if (in_array($child->access, $groups)) : ?>
<?php
if ($this->params->get('show_empty_categories') ||
$child->getNumItems(true) || count($child->getChildren())) :
if (!isset($this->children[$this->category->id][$id + 1])) :
$class = ' class="last"';
endif;
?>
<li<?php echo $class; ?>>
<?php $class = ''; ?>
<h3 class="item-title"><a href="<?php echo
JRoute::_(ContentHelperRoute::getCategoryRoute($child->id));?>">
<?php echo $this->escape($child->title); ?></a>
</h3>
<?php if ($this->params->get('show_subcat_desc') ==
1) :?>
<?php if ($child->description and
$this->params->get('show_description') != 0 ) : ?>
<div class="category-desc">
<?php echo JHtml::_('content.prepare',
$child->description, '', 'com_content.category');
?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if
($this->params->get('show_cat_num_articles', 1)) : ?>
<?php if ($child->getNumItems() == true) : ?>
<dl>
<dt>
<?php echo JText::_('COM_CONTENT_NUM_ITEMS'); ?>
</dt>
<dd>
<?php echo $child->getNumItems(true); ?>
</dd>
</dl>
<?php endif; ?>
<?php endif; ?>
<?php if (count($child->getChildren()) > 0 ) :
$this->children[$child->id] = $child->getChildren();
$this->category = $child;
$this->maxLevel--;
if ($this->maxLevel !== 0) :
echo $this->loadTemplate('children');
endif;
$this->category = $child->getParent();
$this->maxLevel++;
endif; ?>
</li>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>