1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

let shortcode_handler register

This commit is contained in:
marj 2009-07-21 10:21:20 +00:00
parent 11105a62df
commit 865c50fdbf
2 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt) * Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* $Id: news_shortcodes.php,v 1.22 2009-07-21 06:31:23 e107coders Exp $ * $Id: news_shortcodes.php,v 1.23 2009-07-21 10:21:20 marj_nl_fr Exp $
* *
* News shortcode batch * News shortcode batch
*/ */
@ -19,6 +19,7 @@ $codes = array(
*/ */
$codes = array(); $codes = array();
/*
$tmp = get_class_methods('news_shortcodes'); $tmp = get_class_methods('news_shortcodes');
foreach($tmp as $c) foreach($tmp as $c)
{ {
@ -28,8 +29,8 @@ foreach($tmp as $c)
} }
} }
unset($tmp); unset($tmp);
*/
register_shortcode('news_shortcodes', $codes); register_shortcode('news_shortcodes', TRUE);
initShortcodeClass('news_shortcodes'); initShortcodeClass('news_shortcodes');
class news_shortcodes class news_shortcodes

View File

@ -9,9 +9,9 @@
* Tagwords Shortcodes * Tagwords Shortcodes
* *
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_shortcodes.php,v $ * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_shortcodes.php,v $
* $Revision: 1.5 $ * $Revision: 1.6 $
* $Date: 2009-07-21 08:27:23 $ * $Date: 2009-07-21 10:21:20 $
* $Author: e107coders $ * $Author: marj_nl_fr $
* *
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@ -23,6 +23,7 @@ $codes = array(
*/ */
$codes = array(); $codes = array();
/*
$tmp = get_class_methods('tagwords_shortcodes'); $tmp = get_class_methods('tagwords_shortcodes');
foreach($tmp as $c) foreach($tmp as $c)
{ {
@ -31,7 +32,8 @@ foreach($tmp as $c)
$codes[] = substr($c, 3); $codes[] = substr($c, 3);
} }
} }
register_shortcode('tagwords_shortcodes', $codes); */
register_shortcode('tagwords_shortcodes', TRUE);
initShortcodeClass('tagwords_shortcodes'); initShortcodeClass('tagwords_shortcodes');