shopid, 'bool'); $subshop->enabled = $checked == 1; $subshop->customtitle = ATKPTools::get_post_parameter(ATKP_SHOP_POSTTYPE.'_'.$shopprefix.'_subshop'.$subshop->shopid.'_customtitle', 'string'); $subshop->customsmalllogourl = ATKPTools::get_post_parameter(ATKP_SHOP_POSTTYPE.'_'.$shopprefix.'_subshop'.$subshop->shopid.'_customsmalllogourl', 'url'); $subshop->customlogourl = ATKPTools::get_post_parameter(ATKP_SHOP_POSTTYPE.'_'.$shopprefix.'_subshop'.$subshop->shopid.'_customlogourl', 'url'); $subshop->customfield1 = ATKPTools::get_post_parameter(ATKP_SHOP_POSTTYPE.'_'.$shopprefix.'_subshop'.$subshop->shopid.'_customfield1', 'html'); $subshop->customfield2 = ATKPTools::get_post_parameter(ATKP_SHOP_POSTTYPE.'_'.$shopprefix.'_subshop'.$subshop->shopid.'_customfield2', 'html'); $subshop->customfield3 = ATKPTools::get_post_parameter(ATKP_SHOP_POSTTYPE.'_'.$shopprefix.'_subshop'.$subshop->shopid.'_customfield3', 'html'); } } public function echo_subshop_settings($subshops, $shopprefix, $locked = false) { ?> displayshoplogo = ATKPTools::get_post_setting( $shopid, ATKP_SHOP_POSTTYPE.'_displayshoplogo'); $this->enablepricecomparison = ATKPTools::get_post_setting( $shopid, ATKP_SHOP_POSTTYPE.'_enablepricecomparison'); $this->buyat = ATKPTools::get_post_setting( $shopid, ATKP_SHOP_POSTTYPE.'_text_buyat'); $this->addtocart = ATKPTools::get_post_setting( $shopid, ATKP_SHOP_POSTTYPE.'_text_addtocart'); } public static function retrieve_provider($id) { $providers = array(); $providers = apply_filters('atkp_load_providers', $providers, $id); if(isset($providers[$id] )) return $providers[$id]; else return null; } public static function retrieve_providers() { $providers = array(); $providers = apply_filters('atkp_load_providers', $providers, null); return $providers; } public function get_caption() { return 'base'; } public function check_configuration($post_id) { return ''; } public function set_configuration($post_id) { } public function get_configuration($post) { } public function get_shops($post_id, $allshops= false) { return array(); } public function checklogon($shop) { } public function quick_search($keyword, $searchType, $page=1) { } public function retrieve_browsenodes($keyword) { } public function retrieve_departments() { } public function retrieve_filters() { } public function retrieve_product($asin, $id_type = 'ASIN') { } public function retrieve_products($asins, $id_type = 'ASIN') { } public function get_supportedlistsources() { } public function retrieve_list($requestType, $nodeid, $keyword, $asin, $maxCount, $sortOrder, $filter) { } public function replace_trackingid($shopId, $url, $trackingId) { return $url; } } class subshop { public $data = array(); function __construct() { $this->logourl =''; $this->shopid =''; $this->programid =''; $this->title =''; $this->enabled = false; } public function __get($member) { if (isset($this->data[$member])) { return $this->data[$member]; } } public function __set($member, $value) { // if (isset($this->data[$member])) { $this->data[$member] = $value; //} } } ?>