<?php
/*--------------------------------------
# Copyright(C) 2004-2009 Jooforge
#
[مهمان/کاربر گرامی برای دیدن لینک ها ابتدا باید عضو سایت شوید و لاگین کنید برای ثبت نام اینجا کلیک کنید]
-----------------------------------------*/
defined('_JEXEC') or die('Restricted Access');
JPluginHelper::importPlugin('cube', 'cube');
function cubeimport(){
$a = 'true'
return $a;
}
cubeimport('template');
?>
<?php if ($this->params->get('show_page_title', 1)) : ?>
<div class="componentheading">
<?php echo $this->escape($this->params->get('page_title')); ?>
</div>
<?php endif; ?>
<div class="frontpage">
<?php if ($this->params->def('num_leading_articles', 1)) : ?>
<div class="leadingarticles">
<?php for ($i = $this->pagination->limitstart; $i < ($this->pagination->limitstart + $this->params->get('num_leading_articles')); $i++) : ?>
<?php if ($i >= $this->total) : break; endif; ?>
<?php
$this->item =& $this->getItem($i, $this->params);
echo $this->loadTemplate('item');
?>
<?php endfor; ?>
</div>
<?php else : $i = $this->pagination->limitstart; endif; ?>
<?php
if ($i < $this->total) {
// init vars
$count = min($this->params->get('num_intro_articles', 4), ($this->total - $i));
$rows = ceil($count / $this->params->get('num_columns', 2));
$columns = array();
// create intro columns
for ($j = 0; $j < $count; $j++, $i++) {
if ($this->params->get('multi_column_order', 1) == 0) {
// order down
$column = intval($j / $rows);
} else {
// order across
$column = $j % $this->params->get('num_columns', 2);
}
if (!isset($columns[$column])) {
$columns[$column] = '';
}
$this->item =& $this->getItem($i, $this->params);
$columns[$column] .= $this->loadTemplate('item2');
}
// render intro columns
$count = count($columns);
if ($count) {
if ($count != 1) {
echo '<div class="teaserarticles clearfix">';
} else {
echo '<div class="teaserarticles">';
}
for ($j = 0; $j < $count; $j++) {
$firstlast = "";
if ($count != 1) {
$firstlast = "center";
if($j == 0) $firstlast = "first";
if($j == $count - 1) $firstlast = "last";
}
echo '<div class="'.$firstlast.' float-left width'.intval(100 / $count).'">'.$columns[$j].'</div>';
}
echo '</div>';
echo '<div class="article_separator"></div>';
}
}
?>
<?php if ($this->params->def('num_links', 4) && ($i < $this->total)) : ?>
<div class="blog_more">
<?php
$this->links = array_splice($this->items, $i - $this->pagination->limitstart);
echo $this->loadTemplate('links');
?>
</div>
<?php endif; ?>
<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
<div class="pagination clearfix">
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
<div class="results">
<?php echo $this->pagination->getPagesCounter(); ?>
</div>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
</div>
علاقه مندی ها (Bookmarks)