/** * Registers available smart categories * * New smart categories can be added by creating a new smart category class * in a custom plugin or the theme functions file. * * @since 1.1 * * @return void Description... **/ function smartcategories () { Ecart::add_smartcategory('CatalogProducts'); Ecart::add_smartcategory('NewProducts'); Ecart::add_smartcategory('FeaturedProducts'); Ecart::add_smartcategory('OnSaleProducts'); Ecart::add_smartcategory('BestsellerProducts'); Ecart::add_smartcategory('SearchResults'); Ecart::add_smartcategory('TagProducts'); Ecart::add_smartcategory('RelatedProducts'); Ecart::add_smartcategory('RandomProducts'); do_action('ecart_register_smartcategories'); }
/** * Grabs interface help screencasts * * @since 1.1 * * @return void **/ function help () { if (!isset($_GET['id'])) return; $Settings =& EcartSettings(); list($status,$key) = $Settings->get('updatekey'); $site = get_bloginfo('siteurl'); $request = array("EcartScreencast" => $_GET['id'],'key'=>$key,'site'=>$site); $response = Ecart::callhome($request); echo $response; exit(); }