Skip to content

Commit

Permalink
Templates modal converted to bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Dec 28, 2014
1 parent 2b8b6f4 commit 222b633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -38,7 +38,7 @@ public static function thumb($template, $clientId = 0)
if (file_exists($thumb))
{
JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.modal');
JHtml::_('bootstrap.modal');

$clientPath = ($clientId == 0) ? '' : 'administrator/';
$thumb = $clientPath . 'templates/' . $template . '/template_thumbnail.png';
Expand All @@ -47,8 +47,12 @@ public static function thumb($template, $clientId = 0)
if (file_exists($preview))
{
$preview = $baseUrl . '/templates/' . $template . '/template_preview.png';
$html = '<a href="' . $preview . '" class="thumbnail pull-left modal hasTooltip" title="' .
$html = '<a href="#' . $template . '-Modal" role="button" class="thumbnail pull-left hasTooltip" data-toggle="modal" title="' .
JHtml::tooltipText('COM_TEMPLATES_CLICK_TO_ENLARGE') . '">' . $html . '</a>';
$html .= JHtmlBootstrap::renderModal($template . '-Modal', array( 'url' => $preview,
'title' => JText::_('COM_TEMPLATES_BUTTON_PREVIEW'),
'height' => '800px',
'width' => '800px'));
}
}

Expand Down
Expand Up @@ -13,7 +13,7 @@
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');

JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.modal');
JHtml::_('bootstrap.modal');
JHtml::_('behavior.multiselect');
JHtml::_('formbehavior.chosen', 'select');

Expand Down

0 comments on commit 222b633

Please sign in to comment.