mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
74 lines
1.6 KiB
PHP
74 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
/*-------------------------------------------------------
|
||
|
*
|
||
|
* LiveStreet Engine Social Networking
|
||
|
* Copyright © 2008 Mzhelskiy Maxim
|
||
|
*
|
||
|
*--------------------------------------------------------
|
||
|
*
|
||
|
* Official site: www.livestreet.ru
|
||
|
* Contact e-mail: rus.engine@gmail.com
|
||
|
*
|
||
|
* GNU General Public License, version 2:
|
||
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||
|
*
|
||
|
*---------------------------------------------------------
|
||
|
*
|
||
|
* Plugin Spoiler
|
||
|
* Shpinev Konstantin
|
||
|
* Contact e-mail: thedoublekey@gmail.com
|
||
|
*
|
||
|
*---------------------------------------------------------
|
||
|
*
|
||
|
* Spoiler :: Plugin
|
||
|
* Modified by fedorov mich © 2014
|
||
|
* [ LS :: 1.0.3 | Habra Style ]
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
if (!class_exists('Plugin')) {
|
||
|
die('Hacking attemp!');
|
||
|
}
|
||
|
|
||
|
class PluginBspoiler extends Plugin {
|
||
|
protected $sTemplatesUrl = "";
|
||
|
|
||
|
/**
|
||
|
* Делегаты
|
||
|
*
|
||
|
* @var unknown_type
|
||
|
*/
|
||
|
protected $aInherits = array(
|
||
|
'module' => array('ModuleText' => '_ModuleBspoiler')
|
||
|
);
|
||
|
|
||
|
// Активация плагина
|
||
|
public function Activate() {
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
// Деактивация плагина
|
||
|
public function Deactivate() {
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Инициализация плагина
|
||
|
*
|
||
|
* (non-PHPdoc)
|
||
|
* @see engine/classes/Plugin#Init()
|
||
|
*/
|
||
|
public function Init()
|
||
|
{
|
||
|
$sTemplatesUrl = Plugin::GetTemplatePath('PluginBspoiler');
|
||
|
|
||
|
// Добавление своего CSS и JS
|
||
|
$this->Viewer_AppendStyle($sTemplatesUrl."/css/style.css");
|
||
|
$this->Viewer_AppendScript($sTemplatesUrl."/js/bspoiler.js");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|