Example #1
0
 public static function get_instance()
 {
     // create an object
     NULL === self::$instance and self::$instance = new self();
     return self::$instance;
     // return the object
 }
Example #2
0
function ajaxsearchpro_preview()
{
    require_once ASP_PATH . "/includes/shortcodes.php";
    $o = aspShortcodeContainer::get_instance();
    $out = $o->wpdreams_asp_shortcode(array("id" => $_POST['asid']));
    print $out;
    die;
}