Topic: [Request] Shortcode plugin
Hello everyone, is it possible to create a shortcode creator plugin on monstra?
ShortCodes UI or so.
It would be popular for sure.
If you dont get my point i can explane more, just ask
So far So good
Monstra → Development → [Request] Shortcode plugin
Pages 1
Hello everyone, is it possible to create a shortcode creator plugin on monstra?
ShortCodes UI or so.
It would be popular for sure.
If you dont get my point i can explane more, just ask
we have already blocks and snippets with UI to manage them and shortcodes to include/run them
i mean plugin to make shortcodes like this:
.......
shortcode i can use in admin - pages - editor
[16] image here text here [/16]
or something like this, like i set a Html\php code by plugin and then i can use it as shortcode in pages and etc
Okey, will think about it
i mean plugin to make shortcodes like this:
.......shortcode i can use in admin - pages - editor
[16] image here text here [/16]or something like this, like i set a Html\php code by plugin and then i can use it as shortcode in pages and etc
+1
i have made one omg im so suck at this ...
Could u please fix if i made any mistakes
p\s i have not write it from the begging its spoiler plugin before.
was trying to make a plugin which gonna convert this html code:
Web title
Innovative design always develops in.
into shortcode and also will be added in markitup editor as icon when u click on it it will call this shortcode
{iconbox title="YOUR TITLE" class="Put-icon-name-u-want-here} YOUR CONTENT FOR Icon block {/iconbox}
if no class for icon, then default icon will be "icomoon-cube4"
Then add it on page [will have a list with 400 icons for user to pick one they need(=]
{iconbox title="Web title"} Innovative design always develops in. {/iconbox}
iconbox.plugin.php code:
Shortcode::add('iconbox', 'Iconbox::_shortcode'); Action::add('admin_header','Iconbox::_header', 9); class Iconbox { public static function _shortcode($attributes, $content) { extract($attributes); if (isset($title)) { $class = (isset($class)) ? $class : 'icomoon-cube4'; $current = (isset($show) and $show == true) ? ' current' : ''; $html = ''; return $html; } } public static function _header() { if (isset(Plugin::$plugins['markitup'])) { echo ""; echo ""; } } }'.$title.'
'; $html.= ''.Filter::apply('content', $content).'
Really need a look from professional to tell me if there is any mistakes made
Pages 1
Monstra → Development → [Request] Shortcode plugin