]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Supress header, footer, sidebar on OAuth verifier pin page when in "desktop" mode
authorZach Copley <zach@status.net>
Mon, 25 Oct 2010 20:30:38 +0000 (13:30 -0700)
committerZach Copley <zach@status.net>
Mon, 25 Oct 2010 20:30:38 +0000 (13:30 -0700)
actions/apioauthpin.php

index 64baf260d1479139e18632dca4ce716ce8040b4f..a0d98e54318bfe81a17f4fbd4b65a592d1018411 100644 (file)
@@ -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.
      *