Skip to content

Commit

Permalink
Merge branch 'hotfix/j32'
Browse files Browse the repository at this point in the history
  • Loading branch information
ercanozkaya committed Nov 21, 2013
2 parents 5c5ce4b + fbd70c2 commit 1cb153e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ public function _afterGet(KCommandContext $context)
}
else $title = false;

$document->setBuffer($title, 'modules', 'title');
// We directly push it to Joomla in template helpers in 3.0+
if (version_compare(JVERSION, '3.0', 'lt')) {
$document->setBuffer($title, 'modules', 'title');
}

//Render the menubar
if(in_array('menubar', $this->_render))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,30 @@ public function title($config = array())
));

$title = $this->translate($config->toolbar->getTitle());

if (version_compare(JVERSION, '3.0', 'ge'))
{
// Strip the extension.
$icons = explode(' ', $config->toolbar->getIcon());
foreach ($icons as &$icon)
if (version_compare(JVERSION, '3.2', 'ge'))
{
$icon = 'icon-48-' . preg_replace('#\.[^.]*$#', '', $icon);
// Strip the extension.
$icons = explode(' ', $config->toolbar->getIcon());
foreach ($icons as &$icon) {
$icon = preg_replace('#\.[^.]*$#', '', $icon);
}

$layout = new JLayoutFile('joomla.toolbar.title');
$html = $layout->render(array('title' => $title, 'icon' => $icon));
}
else
{
// Strip the extension.
$icons = explode(' ', $config->toolbar->getIcon());
foreach ($icons as &$icon) {
$icon = 'icon-48-' . preg_replace('#\.[^.]*$#', '', $icon);
}

$html = '<div class="pagetitle ' . htmlspecialchars(implode(' ', $icons)) . '"><h2>' . $title . '</h2></div>';
$html = '<div class="pagetitle ' . htmlspecialchars(implode(' ', $icons)) . '"><h2>' . $title . '</h2></div>';
}

$app = JFactory::getApplication();
$app->JComponentTitle = $html;
Expand Down
2 changes: 1 addition & 1 deletion code/plugins/system/koowa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlatools.com</authorUrl>
<version>1.0.5</version>
<version>1.0.6</version>
<description></description>

<!-- Files -->
Expand Down
2 changes: 1 addition & 1 deletion code/plugins/system/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlatools.com</authorUrl>
<version>1.0.5</version>
<version>1.0.6</version>
<description></description>

<!-- Files -->
Expand Down

0 comments on commit 1cb153e

Please sign in to comment.