| Current Path : /home/cbequiperp/www/administrator/components/com_flexicontent/helpers/html/ |
| Current File : /home/cbequiperp/www/administrator/components/com_flexicontent/helpers/html/fctagelement.php |
<?php
/**
* @package FLEXIcontent
* @version 3.3
*
* @author Emmanuel Danan, Georgios Papadakis, Yannick Berges, others, see contributor page
* @link https://flexicontent.org
* @copyright Copyright © 2018, FLEXIcontent team, All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
require_once('fcbase.php');
/**
* Fctagelement HTML helper
*
* @since 3.3
*/
abstract class JHtmlFctagelement extends JHtmlFcbase
{
static $tooltip_class = FLEXI_J40GE ? 'hasTooltip' : 'hasTooltip';
static $btn_sm_class = FLEXI_J40GE ? 'btn btn-sm' : 'btn btn-small';
static $btn_iv_class = FLEXI_J40GE ? 'btn-dark' : 'btn-inverse';
static $btn_mbar_class = FLEXI_J40GE ? 'btn-outline-info' : '';
static $ctrl = 'tags';
static $name = 'tag';
static $title_propname = 'name';
static $state_propname = 'published';
static $layout_type = 'category';
/**
* Get the preview url
*
* @param object $row The row
*
* @return string The preview URL
*/
protected static function _getPreviewUrl($row)
{
return JComponentHelper::getParams('com_flexicontent')->get('tags_using_catview', 0)
? FlexicontentHelperRoute::getCategoryRoute(0, 0, array('layout'=>'tags','tagid'=>$row->slug), $row)
: FlexicontentHelperRoute::getTagRoute($row->slug);
}
}