Exemplo n.º 1
0
<?php

/**
 * @package     ZOOitem Pro
 * @version     3.3.2
 * @author      ZOOlanders - http://zoolanders.com
 * @license     GNU General Public License v2 or later
 */
defined('_JEXEC') or die;
if (!($wk = @(include JPATH_ADMINISTRATOR . '/components/com_widgetkit/widgetkit-app.php') and isset($wk['plugins']['content/zoopro']))) {
    echo JText::_('PLG_ZLFRAMEWORK_WK2_ZLPLUGIN_MISSING');
    return;
}
$items = mod_zooitemproHelper::getItems($params);
if (empty($items)) {
    echo JText::_('MOD_ZOOITEMPRO_NO_ITEMS_FOUND');
    return;
}
$data = $zoo->data->create(array('mapping_layout' => basename($params->find('layout._mapping', 'mapping'), '.php')));
$items = $wk['plugins']['content/zoopro']->renderZooItems($items, $data);
include JPATH_ROOT . '/plugins/system/zlframework/zlframework/elements/pro/tmpl/render/widgetkit2.php';
Exemplo n.º 2
0
/**
 * @package     ZOOitem Pro
 * @version     3.3.2
 * @author      ZOOlanders - http://zoolanders.com
 * @license     GNU General Public License v2 or later
 */
defined('_JEXEC') or die;
// set additional order
if ($params->find('layout._orderbyviewed')) {
    $items_params = $params->get('items');
    $items_params['itemorder']['_trackorder'] = '_viewdate';
    $params->set('items', $items_params);
}
// get items, using the item track model instead
$items = mod_zooitemproHelper::getItems($params, 'itemtrack');
?>

<?php 
if (!empty($items)) {
    ?>

<ul class="zoo-itempro-last-viewed zoo-default">
	<?php 
    $i = 0;
    foreach ($items as $id => $item) {
        ?>
	<li><?php 
        echo $renderer->render('item.' . $renderer_layout, compact('item', 'params'));
        ?>
</li>