plugins/blocks/fontSize/FontSizeBlockPlugin.inc.php

00001 <?php
00002 
00016 // $Id$
00017 
00018 
00019 import('plugins.BlockPlugin');
00020 
00021 class FontSizeBlockPlugin extends BlockPlugin {
00028    function register($category, $path) {
00029       $success = parent::register($category, $path);
00030       if ($success) {
00031          $this->addLocaleData();
00032       }
00033       return $success;
00034    }
00035 
00036 
00041    function getEnabled() {
00042       if (!Config::getVar('general', 'installed')) return true;
00043       return parent::getEnabled();
00044    }
00045 
00050    function getInstallSitePluginSettingsFile() {
00051       return $this->getPluginPath() . '/settings.xml';
00052    }
00053 
00058    function getNewConferencePluginSettingsFile() {
00059       return $this->getPluginPath() . '/settings.xml';
00060    }
00061 
00067    function getBlockContext() {
00068       if (!Config::getVar('general', 'installed')) return BLOCK_CONTEXT_RIGHT_SIDEBAR;
00069       return parent::getBlockContext();
00070    }
00071 
00076    function getSupportedContexts() {
00077       return array(BLOCK_CONTEXT_LEFT_SIDEBAR, BLOCK_CONTEXT_RIGHT_SIDEBAR);
00078    }
00079 
00084    function getSeq() {
00085       if (!Config::getVar('general', 'installed')) return 3;
00086       return parent::getSeq();
00087    }
00088 
00094    function getName() {
00095       return 'FontSizeBlockPlugin';
00096    }
00097 
00102    function getDisplayName() {
00103       return __('plugins.block.fontSize.displayName');
00104    }
00105 
00109    function getDescription() {
00110       return __('plugins.block.fontSize.description');
00111    }
00112 
00118    function getContents(&$templateMgr) {
00119       return parent::getContents($templateMgr);
00120    }
00121 }
00122 
00123 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7