From 1a1ca22aca8ab0524413fb41e195adab068a2b42 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 25 Oct 2010 13:30:38 -0700 Subject: Supress header, footer, sidebar on OAuth verifier pin page when in "desktop" mode --- actions/apioauthpin.php | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/actions/apioauthpin.php b/actions/apioauthpin.php index 64baf260d..a0d98e543 100644 --- a/actions/apioauthpin.php +++ b/actions/apioauthpin.php @@ -96,6 +96,70 @@ class ApiOauthPinAction extends InfoAction $this->elementEnd('body'); } + /** + * A local menu + * + * Shows different login/register actions. + * + * @return void + */ + function showLocalNav() + { + // NOP + } + + /* + * Override - suppress output in "desktop" mode + */ + function showHeader() + { + if ($this->desktopMode == false) { + parent::showHeader(); + } + } + + /* + * Override - suppress output in "desktop" mode + */ + function showAside() + { + if ($this->desktopMode == false) { + parent::showAside(); + } + } + + /* + * Override - suppress output in "desktop" mode + */ + function showFooter() + { + if ($this->desktopMode == false) { + parent::showFooter(); + } + } + + /** + * Show site notice. + * + * @return nothing + */ + function showSiteNotice() + { + // NOP + } + + /** + * Show notice form. + * + * Show the form for posting a new notice + * + * @return nothing + */ + function showNoticeForm() + { + // NOP + } + /** * Display content. * -- cgit v1.2.3