mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 04:12:00 +02:00
Shortcode parser: fixed number of errors, more major changes, getScBatch will now auto-register batch (no need of registerShortcode() call), added new example of sc handler usage (news), work in progress
This commit is contained in:
@@ -20,8 +20,9 @@ register_shortcode('news_shortcodes', TRUE);
|
||||
initShortcodeClass('news_shortcodes');
|
||||
*/
|
||||
|
||||
e107::getScParser()->registerShortcode('news_shortcodes', true)
|
||||
->initShortcodeClass('news_shortcodes');
|
||||
// Done via e107::getScBatch('news'); call - see news_class.php
|
||||
/*e107::getScParser()->registerShortcode('news_shortcodes', true)
|
||||
->initShortcodeClass('news_shortcodes');*/
|
||||
|
||||
class news_shortcodes extends e_shortcode
|
||||
{
|
||||
|
Reference in New Issue
Block a user