path . '/templates/' . $template; $baseUrl = ($clientId == 0) ? JUri::root(true) : JUri::root(true) . '/administrator'; $thumb = $basePath . '/template_thumbnail.png'; $preview = $basePath . '/template_preview.png'; $html = ''; if (file_exists($thumb)) { JHtml::_('bootstrap.tooltip'); JHtml::_('behavior.modal'); $clientPath = ($clientId == 0) ? '' : 'administrator/'; $thumb = $clientPath . 'templates/' . $template . '/template_thumbnail.png'; $html = JHtml::_('image', $thumb, JText::_('COM_TEMPLATES_PREVIEW')); if (file_exists($preview)) { $preview = $baseUrl . '/templates/' . $template . '/template_preview.png'; $html = '' . $html . ''; } } return $html; } }