*/ class Rex_Feed_Template_Homebook extends Rex_Feed_Abstract_Template { protected function init_atts(){ $this->attributes = array( 'Required Information' => array( 'name' => 'Name', 'id' => 'ID', 'url' => 'Url', 'cat' => 'Cat', 'price' => 'Price', 'brand' => 'Brand', 'img' => 'Img', ), 'Recommended Information' => array( 'Size' => 'Size', 'additional_image' => 'Additional Image', 'desc' => 'Desc', 'oldprice' => 'Old Price', ), 'Optional Information' => array( 'Color' => 'Color', 'EAN' => 'EAN', 'Partnumber' => 'Part Number', ), ); } protected function init_default_template_mappings(){ $this->template_mappings = array( array( 'attr' => 'id', 'type' => 'meta', 'meta_key' => 'id', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'name', 'type' => 'meta', 'meta_key' => 'title', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'url', 'type' => 'meta', 'meta_key' => 'url', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'cat', 'type' => 'meta', 'meta_key' => 'product_cats', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'price', 'type' => 'meta', 'meta_key' => 'price', 'st_value' => '', 'prefix' => '', 'suffix' => ' '.get_option('woocommerce_currency'), 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'brand', 'type' => 'meta', 'meta_key' => 'brand', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), array( 'attr' => 'img', 'type' => 'meta', 'meta_key' => 'featured_image', 'st_value' => '', 'prefix' => '', 'suffix' => '', 'escape' => 'default', 'limit' => 0, ), ); } }