diff --git a/application/classes/modules/ifhub/Ifhub.class.php b/application/classes/modules/ifhub/Ifhub.class.php
new file mode 100644
index 00000000..6643f50e
--- /dev/null
+++ b/application/classes/modules/ifhub/Ifhub.class.php
@@ -0,0 +1,41 @@
+
+ * Текст спойлера
+ *
+ *
+ * @param string $sTag Тег на ктором сработал колбэк
+ * @param array $aParams Список параметров тега
+ * @return string
+ */
+ public function CallbackParserTagSpoiler($sTag, $aParams, $sText)
+ {
+ $sTitle = "Спойлер";
+ if (isset($aParams['title'])) {
+ $sTitle = $aParams['title'];
+ }
+
+ return '
'.
+ '
'.$sTitle.''.
+ '
'.$sText.'
'.
+ '
';
+ }
+}
diff --git a/application/config/jevix.php b/application/config/jevix.php
index 3c976184..20709088 100644
--- a/application/config/jevix.php
+++ b/application/config/jevix.php
@@ -6,7 +6,7 @@ return array(
'cfgAllowTags' => array(
// вызов метода с параметрами
array(
- array('ls', 'gallery'),
+ array('ls', 'gallery', 'spoiler'),
),
),
// Коротие теги типа
@@ -56,6 +56,10 @@ return array(
'a',
array('data-rel' => '#text', 'class' => array('js-lbx'))
),
+ array(
+ 'spoiler',
+ array('title' => '#text')
+ ),
),
'cfgSetTagCallbackFull' => array(
array(
@@ -66,6 +70,10 @@ return array(
'gallery',
array('_this_', 'Media_CallbackParserTagGallery'),
),
+ array(
+ 'spoiler',
+ array('_this_', 'Ifhub_CallbackParserTagSpoiler'),
+ ),
)
),
);
diff --git a/application/plugins/bspoiler/PluginBspoiler.class.php b/application/plugins/bspoiler/PluginBspoiler.class.php
deleted file mode 100644
index 54125fc1..00000000
--- a/application/plugins/bspoiler/PluginBspoiler.class.php
+++ /dev/null
@@ -1,73 +0,0 @@
- 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");
- }
-
-}
-
-?>
diff --git a/application/plugins/bspoiler/Readme.txt b/application/plugins/bspoiler/Readme.txt
deleted file mode 100644
index 75de02cc..00000000
--- a/application/plugins/bspoiler/Readme.txt
+++ /dev/null
@@ -1,8 +0,0 @@
----Плагин спойлер---
-
-Описание настройки: http://livestreet.ru/blog/17229.html
-
-Первоначальный автор - kks.
-Адаптировал для 1.0.3 - http://livestreet.ru/profile/dex-/
-Выложил в каталог - testerok, gs.dafter.ru
-
diff --git a/application/plugins/bspoiler/classes/.htaccess b/application/plugins/bspoiler/classes/.htaccess
deleted file mode 100644
index f31bf500..00000000
--- a/application/plugins/bspoiler/classes/.htaccess
+++ /dev/null
@@ -1,2 +0,0 @@
-Order Deny,Allow
-Deny from all
\ No newline at end of file
diff --git a/application/plugins/bspoiler/classes/modules/bspoiler/Bspoiler.class.php b/application/plugins/bspoiler/classes/modules/bspoiler/Bspoiler.class.php
deleted file mode 100644
index 8770d346..00000000
--- a/application/plugins/bspoiler/classes/modules/bspoiler/Bspoiler.class.php
+++ /dev/null
@@ -1,64 +0,0 @@
-oJevix->tagsRules);
- $aTags[] = 'spoiler';
- $this->oJevix->cfgAllowTags($aTags);
- $this->oJevix->cfgAllowTagParams('spoiler', array('title'));
- }
-
- private function SpoilerParser($sText)
- {
- $aMatches = array();
- while (preg_match('//', $sText, $aMatches) !== false && count($aMatches) > 1) {
- $sTitle = $aMatches[1];
- $sText = str_replace("",
- ''.$sTitle.'',
- $sText);
- $sText = str_replace("", '
', $sText);
- }
- return $sText;
- }
-
- public function Parser($sText)
- {
- $sResult = parent::Parser($sText);
- $sResult = $this->SpoilerParser($sResult);
- echo $sResult;die;
- return $sResult;
- }
-}
-
-?>
diff --git a/application/plugins/bspoiler/config/.htaccess b/application/plugins/bspoiler/config/.htaccess
deleted file mode 100644
index f31bf500..00000000
--- a/application/plugins/bspoiler/config/.htaccess
+++ /dev/null
@@ -1,2 +0,0 @@
-Order Deny,Allow
-Deny from all
\ No newline at end of file
diff --git a/application/plugins/bspoiler/config/config.php b/application/plugins/bspoiler/config/config.php
deleted file mode 100644
index e0dcaf01..00000000
--- a/application/plugins/bspoiler/config/config.php
+++ /dev/null
@@ -1,32 +0,0 @@
-
\ No newline at end of file
diff --git a/application/plugins/bspoiler/plugin.xml b/application/plugins/bspoiler/plugin.xml
deleted file mode 100644
index 332ca867..00000000
--- a/application/plugins/bspoiler/plugin.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
- Bspoiler Plugin (rewrote 1.0.3)
- Плагин Bspoiler (переделан под 1.0.3)
-
-
- kks (rewrote dex-)
- kks (переделал dex-, выложил testerok)
-
- http://ls.ksotik.ru/
- 1.1.0
-
- 2.0.*
-
-
-
-
- Spoiler tag support.
- Плагин, добавляющий поддержку тега spoiler в топики и страницы.
-
-
diff --git a/application/plugins/bspoiler/templates/.htaccess b/application/plugins/bspoiler/templates/.htaccess
deleted file mode 100644
index d183f597..00000000
--- a/application/plugins/bspoiler/templates/.htaccess
+++ /dev/null
@@ -1,5 +0,0 @@
-Options -Indexes
-
- Order allow,deny
- Deny from all
-
\ No newline at end of file
diff --git a/application/plugins/bspoiler/templates/skin/default/css/style.css b/application/plugins/bspoiler/templates/skin/default/css/style.css
deleted file mode 100644
index 693699e0..00000000
--- a/application/plugins/bspoiler/templates/skin/default/css/style.css
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Spoiler :: CSS
- * Modified by fedorov mich 2014
- * [ LS :: 1.0.3 | Habra Style ]
- */
-.spoiler-title { color: #6da3bd; border-bottom: 1px dashed; font-weight: normal; cursor: pointer; }
-.spoiler-title:hover { color: #4d7285; }
-.spoiler-body { display: none; padding: 10px; border: 1px solid #eee; background: #f9f9f9; margin-top: 10px; overflow: hidden; }
-.spoiler-title:before { float: left; content: " "; width: 16px; height: 16px; margin-top: 2px; display: block; border: 0px solid red; background: url(../images/spoiler.icon.png) no-repeat left top; }
-.spoiler-title.open:before { background: url(../images/spoiler.icon.png) no-repeat left bottom; }
\ No newline at end of file
diff --git a/application/plugins/bspoiler/templates/skin/default/images/spoiler.icon.png b/application/plugins/bspoiler/templates/skin/default/images/spoiler.icon.png
deleted file mode 100644
index 0a77069e..00000000
Binary files a/application/plugins/bspoiler/templates/skin/default/images/spoiler.icon.png and /dev/null differ
diff --git a/application/plugins/bspoiler/templates/skin/default/js/bspoiler.js b/application/plugins/bspoiler/templates/skin/default/js/bspoiler.js
deleted file mode 100644
index 742b4a44..00000000
--- a/application/plugins/bspoiler/templates/skin/default/js/bspoiler.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Spoiler :: jQuery
- * Modified by fedorov mich 2014
- * [ LS :: 1.0.3 | Habra Style ]
- */
-$(document).ready(function(){
- $('.spoiler-title').on('click touchstart', function(){
- $(this).toggleClass('open');
- $(this).parent().children('div.spoiler-body').toggle('normal');
- return false;
- });
-});
\ No newline at end of file