Skip to content

Commit

Permalink
Removed outdated hooks in manifest.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Sep 21, 2023
1 parent 15ce3c6 commit 83dd43d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 96 deletions.
8 changes: 0 additions & 8 deletions _extensions/s2_custom_toolbar/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@

<minversion>1.0b</minversion>
<maxtestedon>2.0-dev</maxtestedon>

<hooks>
<hook id="fn_toolbar_end"><![CDATA[
$s2_custom_toolbar = '<img class="separator" src="i/1.gif" alt="" />';
$s2_custom_toolbar .= '<img style="background: transparent;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIhSURBVDjLY/j//z8DJZhhGBlgZ2fHnZWVVdra2vpu3rx5/2tqah7m5OSYA7EEkH0XJAaSA6kBqUUxwMjIiM3Hx6dr4sSJ/1+8ePH/7t27/w8ePPi/sbHxXnV19aGbN2/+AIkdOXLkP0gNSC1ID9wAQ0NDv+Li4g9Xr159FxERsc3b2/tPamrq/0mTJv2vrKz8D2KDxEByK1aseAhSC9KD7IKupqam75MnT0739/fnsre3/7x3797/586d+3/o0KH/a9eu/Z8xx+Jf6nzD/yA1ILUgPXADdHV1M9PT099PmzatJCgoaKejo+MvNze3/4GBgWAMYifMMPrfuDnqf/gMjf8gtSA9cAM0gcDX1/d6b2/v+1WrVr1dt27d//yltv9zF1n8T19g8j9pruH/mvWh/1ednvi/ZLX/f9c+iX+a2hpacAPU1NSYgc428PLyup+SkvIlOzv7e/Zi8/8bzk37v/bsFLDGFacn/J+wp+T/wuNd/zOWuv03bWf/rdvMyIgzfpOB/gVp7tuV/79zR/b/1m1p/xs2J/5v2pr+f8ah5v8xC2z+q9Yz/MRpQPRszf8rT034v/RE7/+Fx7r+zzvaATQk6//0Q03/05Z6/FesZbguXcnAidOAwOmKfz0nSv917hf9a93N/zduvtX/aQcb/ictdvsvX8twUbKSgZ2kpKzdzPg6fqHzf/lqhjNAzWwk5wWgk1/LVTP/F61kYEEWBwAP7or0z//OfQAAAABJRU5ErkJggg==" alt="Ссылка (откроется в новом окне)" onclick="return InsertTag(\'<a target=&quot;_blank&quot; href=&quot;&quot;>\', \'</a>\');" />'."\n\t";
$toolbar = str_replace('</div>', $s2_custom_toolbar.'</div>', $toolbar);
]]></hook>
</hooks>
</extension>
21 changes: 1 addition & 20 deletions _extensions/s2_feedback/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,4 @@

<minversion>1.0b</minversion>
<maxtestedon>1.0b2</maxtestedon>

<hooks>
<hook id="idx_template_pre_replace"><![CDATA[
if (strpos($template, '<!-- s2_feedback -->') !== false)
{
Lang::load($ext_info['id'], function () use ($ext_info)
{
if (file_exists($ext_info['path'].'/lang/'.S2_LANGUAGE.'.php'))
return require $ext_info['path'].'/lang/'.S2_LANGUAGE.'.php';
else
return require $ext_info['path'].'/lang/English.php';
});
include $ext_info['path'].'/functions.php';
$replace['<!-- s2_feedback -->'] = s2_feedback_form($ext_info['url'].'/feedback.php');
}
]]></hook>

</hooks>

</extension>
</extension>
22 changes: 0 additions & 22 deletions _extensions/s2_typo/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,4 @@

<minversion>2.0dev</minversion>
<maxtestedon>2.0dev</maxtestedon>

<hooks>

<hook id="idx_template_after_replace"><![CDATA[
require $ext_info['path'].'/functions.php';
$template = s2_typo_make($template);
]]></hook>

<hook id="pr_render_pre_get_content" priority="9"><![CDATA[
require $ext_info['path'].'/functions.php';
$content['rss_title'] = s2_typo_make($content['rss_title'], true);
$content['rss_description'] = s2_typo_make($content['rss_description'], true);
]]></hook>

<hook id="pr_render_pre_item_render" priority="9"><![CDATA[
$item['title'] = s2_typo_make($item['title'], true);
$item['text'] = s2_typo_make($item['text']);
]]></hook>

</hooks>

</extension>
46 changes: 0 additions & 46 deletions _extensions/s2_wysiwyg/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,50 +51,4 @@ $query = array(
);
$s2_db->buildAndQuery($query);
]]></uninstall>

<hooks>
<hook id="ai_after_js_include"><![CDATA[
?>
<script type="text/javascript">
var s2_wysiwyg_type = <?php echo S2_WYSIWYG_TYPE; ?>, s2_wysiwyg_cut = <?php echo S2_ADMIN_CUT; ?>, s2_wysiwyg_lang = '<?php echo substr(S2_LANGUAGE, 0, 7) == 'Russian' ? 'ru' : 'en'; ?>';
</script>
<script type="text/javascript" src="<?php echo $ext_info['url']; ?>/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="<?php echo $ext_info['url']; ?>/init.js"></script>
<?php
]]></hook>

<hook id="ai_after_js_init"><![CDATA[
?>
var s2_wysiwyg_pict_url = '<?php echo S2_PATH; ?>/_admin/pictman.php';
<?php
]]></hook>

<hook id="fn_toolbar_start"><![CDATA[
return '<hr />';
]]></hook>

<hook id="fn_output_article_form_pre_text,fn_s2_blog_edit_post_form_pre_text"><![CDATA[
$padding -= 2.583333;
]]></hook>

<hook id="fn_get_options_pre_comment_fs"><![CDATA[
Lang::load($ext_info['id'], function () use ($ext_info)
{
if (file_exists($ext_info['path'].'/lang/'.S2_LANGUAGE.'.php'))
return require $ext_info['path'].'/lang/'.S2_LANGUAGE.'.php';
else
return require $ext_info['path'].'/lang/English.php';
});
$fieldset = array(
'S2_WYSIWYG_TYPE' => s2_get_checkbox('S2_WYSIWYG_TYPE', $options['S2_WYSIWYG_TYPE'], Lang::get('WYSIWYG type', 's2_wysiwyg'), Lang::get('WYSIWYG type label', 's2_wysiwyg')),
);
($hook = s2_hook('s2_wysiwyg_opt_pre_fs_merge')) ? eval($hook) : null;
$output .= '<fieldset><legend>'.Lang::get('WYSIWYG', 's2_wysiwyg').'</legend>'.implode('', $fieldset).'</fieldset>';
]]></hook>

<hook id="opt_start"><![CDATA[
$s2_const_types['S2_WYSIWYG_TYPE'] = 'int';
]]></hook>

</hooks>
</extension>

0 comments on commit 83dd43d

Please sign in to comment.