Exemplo n.º 1
0
 function _display($layout)
 {
     $tmplTools = JATemplateHelper::getInstance();
     $tmplTools->display($layout);
 }
Exemplo n.º 2
0
        if ($params->get('itemHits')) {
            ?>
  			<span class="moduleItemHits">
  				<i class="fa fa-eye"></i>  <?php 
            echo $item->hits;
            ?>
  			</span>
  			<?php 
        }
        ?>

        <?php 
        if ($params->get('itemDateCreated')) {
            ?>
        <span class="moduleItemDateCreated"><i class="fa fa-calendar-o"></i> <?php 
            echo JATemplateHelper::relTime($item->created);
            ?>
</span>
        <?php 
        }
        ?>

  			<?php 
        if ($params->get('itemReadMore') && $item->fulltext) {
            ?>
  			<a class="moduleItemReadMore" href="<?php 
            echo $item->link;
            ?>
">
  				<?php 
            echo JText::_('K2_READ_MORE');
Exemplo n.º 3
0
    } else {
        if ($jaordering == 'popular') {
            $jaorder = 'a.hits DESC';
        } else {
            if ($jaordering == 'alpha') {
                $jaorder = 'a.title DESC';
            } else {
                if ($jaordering == 'category') {
                    $jaorder = 'a.catid ASC';
                }
            }
        }
    }
}
$this->results = JATemplateHelper::getArticleContent('', array('c.id!=24'), array($jaorder));
$numresult = JATemplateHelper::getArticleContentNumber('', array('c.id!=24'));
$limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
$limitstart = $jinput->get('limitstart', 0);
// In case limit has been changed, adjust it
$limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
$this->pagination = new JPagination($numresult, $limitstart, $limit);
?>

<div class="searchintro<?php 
echo $this->params->get('pageclass_sfx');
?>
">
	<p><?php 
echo JText::plural('COM_SEARCH_SEARCH_KEYWORD_N_RESULTS', '<span class="badge badge-info">' . $numresult . '</span>');
?>
</p>
Exemplo n.º 4
0
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
require_once T3_TEMPLATE_PATH . '/helper.php';
// get featured items
$app = JFactory::getApplication();
$params = $this->params;
$parentid = $app->input->getInt('id');
$featured_count = $params->get('featured_leading', 1) + $params->get('featured_intro', 3) + $params->get('featured_links', 5);
$featured_items = JATemplateHelper::getArticles($params, $parentid, $featured_count, 'only');
// get child categories
$categories = JATemplateHelper::getCategories($parentid);
// get list articles for each sub cat
$list_items = array();
foreach ($categories as $cat) {
    $list_items[$cat->id] = JATemplateHelper::getArticles($params, $cat->id, $params->get('highlight_count', 4));
}
?>

<?php 
$this->items = $featured_items;
echo $this->loadTemplate('featured');
?>

<?php 
$this->list = $list_items;
$this->categories = $categories;
echo $this->loadTemplate('list');
Exemplo n.º 5
0
        } else {
            echo JText::_('COM_CONTENT_READ_MORE');
            echo JHtml::_('string.truncate', $this->item->title, $params->get('readmore_limit'));
        }
        ?>
						</span>
			</a>
		</section>
	<?php 
    }
}
?>
</article>
<!-- //Article -->

<?php 
if (!empty($this->item->pagination) && $this->item->pagination && $this->item->paginationposition && $this->item->paginationrelative) {
    ?>
	<?php 
    echo $this->item->pagination;
}
?>

<?php 
echo $this->item->event->afterDisplayContent;
?>
</div>

<?php 
JATemplateHelper::loadModules('after-content', 't3xhtml');
Exemplo n.º 6
0
<?php

/*
#------------------------------------------------------------------------
  JA Purity II for Joomla 1.5
#------------------------------------------------------------------------
#Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
#@license - GNU/GPL, http://www.gnu.org/copyleft/gpl.html
#Author: J.O.O.M Solutions Co., Ltd
#Websites: http://www.joomlart.com - http://www.joomlancers.com
#------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
include_once dirname(__FILE__) . DS . 'libs' . DS . 'ja.template.helper.php';
$tmplTools = JATemplateHelper::getInstance($this, array('ui', JA_TOOL_SCREEN, JA_TOOL_MENU, 'main_layout', 'direction'));
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo $this->language;
?>
" lang="<?php 
echo $this->language;
?>
" dir="<?php 
echo $this->direction;
?>
">

<head>
Exemplo n.º 7
0
<?php

/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
require_once T3_TEMPLATE_PATH . '/helper.php';
// get featured items
$app = JFactory::getApplication();
$params = $this->params;
$catid = $app->input->getInt('id');
$items = JATemplateHelper::getArticles($params, $catid, 0);
$groups = array();
$other = 'others';
for ($group = 'a'; $group < 'z'; $group++) {
    $groups[$group] = array();
}
$groups[$other] = array();
foreach ($items as $item) {
    $title = clean_special_chars($item->title);
    $firstChar = strtolower($title[0]);
    if ($firstChar < 'a' || $firstChar > 'z') {
        $groups[$other][] = $item;
    } else {
        $groups[$firstChar][] = $item;
    }
}