3600, "href"=> "producturl", "title"=> "name", "description"=> "description", "prijs"=> "price", "image"=> "imageurl", "class"=> "TradetrackerRSS", "input_encoding"=>NULL, "detect_encoding"=>true, "callback"=> "reizen_cb", "groep"=> "Vliegreizen", "url"=> "http://pf.tradetracker.net/?fid=161&aid=32886&type=xml&encoding=utf-8", "land"=> "f_country", "tag_2"=> "", "stad"=> "f_city", "list_1"=> "f_subtitel", "list_3"=> "f_reistype", "unset"=> array("categories"), ); $feeds['kras']= array ( "freq"=>3600, "href"=> "producturl", "title"=> "name", "description"=> "description", "prijs"=> "price", "image"=> "imageurl", "class"=> "TradetrackerRSS", "input_encoding"=>NULL, "detect_encoding"=>true, "callback"=> "reizen_cb", "groep"=> "Vliegreizen", "url"=> "http://pf.tradetracker.nl/?fid=292&aid=32886&type=xml&encoding=utf-8", "land"=> "f_land", "tag_2"=> "", "stad"=> "f_plaats", "list_1"=> "f_subtitel", "list_3"=> "f_reistype", "unset"=> array("categories"), ); $feeds['sunweb']=array ( "freq"=>3600, "href"=> "url", "title"=> "title", "description"=> "description", "prijs"=> "price", "image"=>"image", "class"=>"M4NRSS", "input_encoding"=> NULL, "detect_encoding"=>true, "callback"=>"reizen_cb", "groep"=> "Vliegreizen", "url"=> "http://www.m4n.nl/_df?m=public_stream_xml&sep=tab1&valq=value2&enq=enq1&dfid=6650&duid=5330", "land"=> "destination_country", "regio"=> "destination_region", "stad"=> "destination_name", ); $feeds['gofun']= array ( "class"=> "M4NRSS", "url"=> "http://www.m4n.nl/_df?m=public_stream_xml&sep=tab1&valq=value2&enq=enq1&dfid=7158&duid=5330", "freq"=>3, "callback"=> "reizen_cb", "groep"=> "Vliegreizen", "href"=> "url", "title"=> "title", "description"=> "description", "prijs"=> "price", "image"=> "image", "land"=> "category", "stad"=> "column0", "input_encoding"=>NULL, "detect_encoding"=>true, ); $template['naam']= array ( "class"=> "", "url"=> "", "freq"=>864000, "callback"=> "generic_cb", "href"=> "", "title"=> "", "description"=> "", "prijs"=> "", "image"=> "", "groep"=> "", "tag_1"=> "", "tag_2"=> "", "tag_3"=> "", "tag_4"=> "", "tag_5"=> "", "tag_6"=> "", "tag_7"=> "", "tag_8"=> "", "tag_9"=> "", "list_1"=> "", "text_1"=> "", "list_2"=> "", "text_2"=> "", "list_3"=> "", "text_3"=> "", "list_4"=> "", "text_4"=> "", "list_5"=> "", "text_5"=> "", "input_encoding"=>NULL, "detect_encoding"=>true ); function gmaAddressLookup($a) { global $GmaKey; $res = false; $GmaCacheDir=MAGPIE_CACHE_DIR; if ( ! $GmaKey ) { return ; } if ( $GmaCacheDir ) { $cache_file="$GmaCacheDir/" . md5($a); $fp = @fopen($cache_file, 'r'); if ( $fp ) { if ( filesize($cache_file) ) { $coords = unserialize (fread( $fp, filesize($cache_file) )); return $coords; } } } if ( $res === false ) { $service_url = 'http://maps.google.com/maps/geo?output=csv&key='. $GmaKey .'&q='; $res = drupal_http_request($service_url . rawurlencode($a)); } $coords = array('lat'=>0, 'lon'=>0); if ( $res->code == 200 ) { $bits = explode(',',$res->data); $coords=array('lat'=>$bits[2], 'lon'=>$bits[3]); if ( $GmaCacheDir ) { $fp = @fopen( $cache_file, 'w' ); if ( $fp ) { fwrite( $fp, serialize($coords) ); fclose( $fp ); } } } return $coords; } $w) { if ( strstr($v,'list_') ) { $x= $item[$feed_opts[$v]]; if ( $x ) { $y=$feed_opts['text_'.substr($v,5)]; $list.="
  • $y $x
  • "; } } } foreach ( array('href','image','title','prijs','description',) as $v ) { if ( $feed_opts[$v] && ( $feed_opts[$v] != $v ) ) { $item[$v]=trim($item[$feed_opts[$v]]); unset ($item[$feed_opts[$v]]); } } $item['feed']=$feed_opts['groep']; #Niet overal werkt strtolower goed bij utf8 #$title = utf8_encode(ucwords(strtolower(utf8_decode($item['title'])))); $title = $item['title']; $item['title']=str_replace('&','&',$title); $item['href']=preg_replace("/DF-REF/","drupal",$item['href']); # als je de description anders wilt vormgeven maak dan een # function description_cb(&$item) met daarin de gewenste 'template' if ( function_exists ( description_cb ) ) { description_cb($item); } else { $href=$item['href']; $title=$item['title']; $image=$item['image']; unset($item['image']) ; $description=$item['description']; if ( $list ) { $description .= ""; } $x= $item['prijs']; if ( $x >0 ) { $description.="

    € $x

    "; } $item['description']="

    $title

    $description
    "; } if ( is_array($feed_opts['unset']) ) { foreach ($feed_opts['unset'] as $v ) { unset($item[$v]); } } } current_namespace = $ns; } # if feed type isn't set, then this is first element of feed # identify feed from root element # if ( $el == 'products' ) { } elseif ( $el == 'campsites' ) { } elseif ( $el == 'accommodations' ) { } elseif ($el == 'campsite' ) { $this->initem = true; } elseif ($el == 'accommodations') { $this->incategories = true; } elseif ($el == 'accommodation') { } // set stack[0] to current element else { array_unshift($this->stack, $el); } } function feed_end_element ($p, $el) { $el = strtolower($el); if ( $el == 'campsite' ) { $cat=split("/", join("/",$this->current_categories)); foreach ($cat as $k => $v) { $this->current_item["c_$k"]=$v; } $this->current_item['categories']=$cat; if ( $this->current_item['mapimage'] ) { $this->current_item['description'] = str_replace("..."," Lees Verder ...", $this->current_item['description']); $this->current_item['description'].= ''; } $this->current_item['description'].= "

    Beschikbare Accommodatie

    "; $this->current_item['oppervlakte']= $this->current_item['pitches'] . " plaatsen op " . $this->current_item['surfacearea']; $this->current_item['afstand']= $this->current_item['distance'] . " vanaf " . $this->current_item['distancefromcity']; $this->current_item['geopend']= "Geopend ". $this->current_item['openingdate']; unset($this->current_item['pitches']); unset($this->current_item['surfacearea']); unset($this->current_item['distance']); unset($this->current_item['distancefromcity']); unset($this->current_item['openingdate']); unset($this->current_item['closingdate']); $this->store_item($this->current_item); $this->current_categories = array(); $this->current_accommodation = array(); #$this->current_fields = array(); $this->initem = false; } elseif ($el == 'additional') { $this->inadditional = false; } elseif ($el == 'field') { if ( $this->infield ) { $this->infield = false; array_shift( $this->stack); } } elseif ($el == 'accommodations') { $this->incategories = false; } elseif ($el == 'accommodation') { $this->incategory = false; if ( $this->current_item['priceindication'] ) { $price=" vanaf €" . $this->current_item['priceindication'] . " " ; } else { $price=''; }; $this->current_accommodation[]="
  • ". $this->current_item['accommodationname'] . " " . $this->current_item['personssuitable'] . " personen" . $price . ".
  • "; unset($this->current_item['accommodationname']); unset($this->current_item['personssuitable']); unset($this->current_item['priceindication']); } elseif ($el == 'campsites' ) { } elseif ($el == 'accommodations' ) { } elseif ( $el == 'fields' ) { } else { array_shift( $this->stack); } $this->current_namespace = false; } } Italiaans design | Italie informatie

    Italiaans design

    Italiaanse klassiekers


    Italiaanse topmerken on line


    Gandia Blasco, Paola Lenti Outdoor design subsolo

    Published in

    MDF Italia - Rimadesio - NOCTUM luxe interieurbouw en projectinrichting.

    Published in

    Inhoud syndiceren