コード例 #1
0
     * CJT Shortcodes ([cjtoolbox ....])! 
     * 
     * This method role is to load the shortcode routines
     * in order to handle the request.
     * 
     * It doesn't do anything except deferring the shortcode
     * codes from loaded until shortcode is really used!
     * 
     * @param mixed $attributes
     */
    public function shortcode($attributes, $content)
    {
        // Instantiate Shortcode handler class.
        cssJSToolbox::import('controllers:coupling:shortcode:shortcode.php');
        $shortcode = new CJT_Controllers_Coupling_Shortcode($attributes, $content);
        // Return Shortcode replacement!
        return (string) $shortcode;
    }
    /**
     * put your comment there...
     * 
     */
    public static function &theInstance()
    {
        return self::$instance;
    }
}
// End class.
// Hookable!
CJTBlocksCouplingController::define('CJTBlocksCouplingController', array('hookType' => CJTWordpressEvents::HOOK_FILTER));