shortcodes factory model php working