Laminate Flooring |
|
Laminate Flooring Articles
|
|
cache_dir = $dir;
$rss->cache_time = 1800;
$randomOrder = 0;
$rs = $rss->get('http://blogsearch.google.com/blogsearch_feeds?hl=en&as_epq=flooring&ie=utf-8&num=10&output=rss');
$random_items = rand(3,7);
$itemcount = 0;
$usehtml = 0;
if ($randomOrder) shuffle($rs[items]);
foreach($rs[items] as $item) {
if ($itemcount >= $random_items) break;
$text=stripslashes($item[title]);
$text = str_replace('<','<',html_entity_decode($text));
$text = str_replace('','',$text);
$title = $text;
if (!$usehtml){
$text=strip_tags(html_entity_decode(str_replace('<','<',$text)));
$text_array = explode(' ',$text);
$titleLenght=rand(10,20);
$title = implode(' ',array_slice($text_array, 0,$titleLenght));
}
$text=stripslashes($item[description]);
$text = str_replace('<','<',html_entity_decode($text));
$text = str_replace('','',$text);
$text = str_replace('[!]','',$text);
$description = $text;
if (!$usehtml){
$text=strip_tags(html_entity_decode(str_replace('<','<',$text)));
$text_array = explode(' ',$text);
$descLenght=rand(50,100);
$description = implode(' ',array_slice($text_array, 0,$descLenght));
}
$template = stripslashes('\"><#rss_title#> <#rss_description#>
');
$template = str_replace('<#rss_link#>',$item[link],$template);
$template = str_replace('<#rss_title#>',$title,$template);
$template = str_replace('<#rss_description#>',$description,$template);
echo $template;
$itemcount++;
}
?>
|
|
|
|
 |
|
Copyright © http://www.laminateflooringsolutions.com/ - Laminate Flooring - All
Rights Reserved.
|
|