Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Added the classes "toggle_desktop" and "toggle_mobile" to the desktop…
Browse files Browse the repository at this point in the history
…/mobile switch link (see #4975)
  • Loading branch information
leofeyer committed Nov 2, 2012
1 parent ecb1271 commit d4ee280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contao/library/Contao/Controller.php
Expand Up @@ -1562,11 +1562,11 @@ protected function replaceInsertTags($strBuffer, $blnCache=true)

if ($objPage->isMobile)
{
$arrCache[$strTag] = '<a href="' . $strUrl . $strGlue . 'toggle_view=desktop" title="' . specialchars($GLOBALS['TL_LANG']['MSC']['toggleDesktop'][1]) . '">' . $GLOBALS['TL_LANG']['MSC']['toggleDesktop'][0] . '</a>';
$arrCache[$strTag] = '<a href="' . $strUrl . $strGlue . 'toggle_view=desktop" class="toggle_desktop" title="' . specialchars($GLOBALS['TL_LANG']['MSC']['toggleDesktop'][1]) . '">' . $GLOBALS['TL_LANG']['MSC']['toggleDesktop'][0] . '</a>';
}
else
{
$arrCache[$strTag] = '<a href="' . $strUrl . $strGlue . 'toggle_view=mobile" title="' . specialchars($GLOBALS['TL_LANG']['MSC']['toggleMobile'][1]) . '">' . $GLOBALS['TL_LANG']['MSC']['toggleMobile'][0] . '</a>';
$arrCache[$strTag] = '<a href="' . $strUrl . $strGlue . 'toggle_view=mobile" class="toggle_mobile" title="' . specialchars($GLOBALS['TL_LANG']['MSC']['toggleMobile'][1]) . '">' . $GLOBALS['TL_LANG']['MSC']['toggleMobile'][0] . '</a>';
}
break;

Expand Down

0 comments on commit d4ee280

Please sign in to comment.