Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CSS class to the "toggle_view" insert tag #4975

xchs opened this issue Oct 31, 2012 · 1 comment


None yet
2 participants
Copy link

commented Oct 31, 2012

In order to style the toggle view link differently for the desktop and mobile view, it would be helpful if the respective anchor tag get an appropriate CSS class.

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

leofeyer added a commit that referenced this issue Nov 2, 2012


This comment has been minimized.

Copy link

commented Nov 2, 2012

Implemented in fbda74d.

@leofeyer leofeyer closed this Nov 2, 2012

leofeyer added a commit that referenced this issue Oct 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.