Source for file templates.php
Documentation is available at templates.php
* @package Joomla.Administrator
* @subpackage com_templates
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Administrator
* @subpackage com_templates
* Display the thumb for the template.
* @param string The name of the active view.
public static function thumb($template, $clientId =
0)
$basePath =
$client->path .
'/templates/' .
$template;
$baseUrl =
($clientId ==
0) ?
JUri::root(true) :
JUri::root(true) .
'/administrator';
$thumb =
$basePath .
'/template_thumbnail.png';
$preview =
$basePath .
'/template_preview.png';
JHtml::_('bootstrap.tooltip');
$clientPath =
($clientId ==
0) ?
'' :
'administrator/';
$thumb =
$clientPath .
'templates/' .
$template .
'/template_thumbnail.png';
$html =
JHtml::_('image', $thumb, JText::_('COM_TEMPLATES_PREVIEW'));
$preview =
$baseUrl .
'/templates/' .
$template .
'/template_preview.png';
$html =
'<a href="' .
$preview .
'" class="thumbnail pull-left modal hasTooltip" title="' .
JHtml::tooltipText('COM_TEMPLATES_CLICK_TO_ENLARGE') .
'">' .
$html .
'</a>';
Documentation generated on Tue, 19 Nov 2013 15:15:37 +0100 by phpDocumentor 1.4.3