+ function onEndShowInsideFooter($action)
+ {
+ if ($this->serveMobile) {
+ // TRANS: Link to switch site layout from mobile to desktop mode. Appears at very bottom of page.
+ $linkText = _m('Switch to desktop site layout.');
+ $key = 'mobile-toggle-disable';
+ } else {
+ // TRANS: Link to switch site layout from desktop to mobile mode. Appears at very bottom of page.
+ $linkText = _m('Switch to mobile site layout.');
+ $key = 'mobile-toggle-enable';
+ }
+ $action->elementStart('p');
+ $action->element('a', array('href' => '#', 'id' => $key), $linkText);
+ $action->elementEnd('p');
+ return true;