Topic: how can I make a shortcut;

hi
how can I make a shortcut;
example




and the call {button}

Re: how can I make a shortcut;

I make a video See this

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: how can I make a shortcut;

I saw this post http://forum.monstra.org/topic/501/add- … -markdown/

I did do of what was wrong bad

Morfy::factory()->addFilter('content', function($content) {
    $some_code = '


';
    return str_replace('{button}', $some_code, $content);
});

like

Morfy::factory()->addFilter('content', function($content) {
    $html = '


';
    return str_replace('{button}', $html, $content);
});

thanks bro smile

Re: how can I make a shortcut;

smile

// call this with {discus}
Morfy::factory()->addFilter('content',function($content){
    // Nickname of discus
    $name = 'Write nickname here';
    $html = '
comments powered by Disqus '; return str_replace('{discus}',$html,$content); });

Re: how can I make a shortcut;

Good wink

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website