]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SiteNoticeInSidebar/SiteNoticeInSidebarPlugin.php
Merge remote-tracking branch 'upstream/master' into social-master
[quix0rs-gnu-social.git] / plugins / SiteNoticeInSidebar / SiteNoticeInSidebarPlugin.php
index 4e6aade2a519b33d54b5efdefc1c7addbf1f3632..869a88dfc9278233485ce6ec9490a5cd9c9dd728 100644 (file)
@@ -55,12 +55,12 @@ class SiteNoticeInSidebarPlugin extends Plugin
      * @return
      */
 
-    function onStartShowSiteNotice($action)
+    function onStartShowSiteNotice(Action $action)
     {
         return false;
     }
 
-    function onStartShowSections($action)
+    function onStartShowSections(Action $action)
     {
         $text = common_config('site', 'notice');
         if (!empty($text)) {
@@ -70,23 +70,9 @@ class SiteNoticeInSidebarPlugin extends Plugin
         return true;
     }
 
-    function onEndShowStyles($action)
+    function onEndShowStyles(Action $action)
     {
         $action->element('style', null, '#site_notice { width: 100% }');
         return true;
     }
-
-    function onAutoload($cls)
-    {
-        $dir = dirname(__FILE__);
-
-        switch ($cls)
-        {
-        case 'SiteNoticeSection':
-            include_once $dir . '/'.strtolower($cls).'.php';
-            return false;
-        default:
-            return true;
-        }
-    }
 }