Exemplo n.º 1
0
        if (str_word_count($title, 0) <= 3) {
            if (stristr($title, "iPhone Wallpaper") === FALSE) {
                $title .= " iPhone Wallpaper";
            }
            foreach ($item->get_enclosures() as $enc) {
                if ($count == 1) {
                    $count++;
                    foreach ($enc->get_credits() as $cred) {
                        $name = $cred->get_name();
                        echo '<p><img src="' . $enc->get_thumbnail() . '" alt="' . $title . '" align="left"/>';
                        echo "Uploader: " . $name . "\n";
                    }
                    echo "<br/>Desc: " . clearDescription($enc->get_description()) . "</p>";
                }
            }
            echo '<h3  class="title-item"><a href="/wallpaper/' . str_replace('--', '-', clearTitle(clearQuery(str_ireplace("wallpaper", "", str_ireplace("iPhone", "", $title))))) . 'iphone-wallpaper/">' . $title . "</a></h3>";
        }
    }
    ?>

			<?php 
    link_pages('<p><strong>Pages:</strong> ', '</p>', 'number');
    ?>

			<!-- <?php 
    trackback_rdf();
    ?>
 -->

		</div>
Exemplo n.º 2
0
         if ($count == 1) {
             ///echo  '<h3  class="title-item"><a href="/wallpaper/' . str_replace('+', '-',clearTitle(clearQuery(str_ireplace("wallpaper","", str_ireplace("iPhone","", $title))))) . '-iphone-wallpaper/">' . $title . "</a></h3>";
             echo '<h3  class="title-item">' . $title . "</h3>";
             $count++;
             foreach ($enc->get_credits() as $cred) {
                 $name = $cred->get_name();
                 echo '<p><img src="' . $enc->get_link() . '" alt="' . $title . '" align="left"/>';
                 echo 'Uploader: <a href="http://iphone.masbuchin.com/wallpaper/' . str_replace('+', '-', clearTitle(clearQuery($name))) . '-iphone-wallpaper/">' . $name . "</a>\n";
             }
             echo "<br/>Description: This is an iPhone Wallpaper uploaded by " . $name . ' with given title "' . $title . '". The original description from this author is ' . clearDescription($enc->get_description()) . ". Click the link below to see this wallpaper in actual size. You may download " . $title . " by click the link below, after the image displayed in full size:</p>\n\t\t\t\t\t<blockquote><p>How To Install Wallpaper on Your iPhone:</p>\n<p>1. In Safari, go to the screen that gives you the option for &#8216;medium&#8217; or &#8216;original image&#8217; sizes. Click &#8216;Original Size&#8217;</p>\n\n<p>2. Tap and hold your finger on the image. When you see a pop-up box, choose &#8216;Save Image&#8217;</p>\n<p>3. Go to your iPhone&#8217;s Camera Roll, choose the photo, tap the Action icon, then tap &#8216;Use As Wallpaper&#8217;</p>\t\t\t\n\t\t\t\t\t";
             echo '<a href="' . $enc->get_link() . '">View and Download ' . $title . "</a></blockquote><br/><br/>";
             echo 'Another iPhone Wallpapers Tagged With: ';
             $exp_title = explode(' ', $title);
             foreach ($exp_title as $tag) {
                 if (stristr($tag, "iphone") === FALSE && stristr($tag, "wallpaper") === FALSE) {
                     echo '<a href="/wallpaper/' . str_replace('+', '-', clearTitle(clearQuery(str_ireplace("wallpaper", "", str_ireplace("iPhone", "", $tag))))) . '-iphone-wallpaper/">' . $tag . "</a> ";
                 }
             }
         }
     }
     //echo  '<h3  class="title-item"><a href="/wallpaper/' . str_replace('+', '-',clearTitle(clearQuery(str_ireplace("---","-",str_ireplace("wallpaper","", str_ireplace("iPhone","", $title)))))) . '-iphone-wallpaper/">' . $title . "</a></h3>";
     //}
     /*else{
     			$cnt = 1;
     			while($cnt==1){
     				$cnt++;
     				$title = $item->get_title();
     				echo  '<h3  class="title-item"><a href="/wallpaper/' . str_replace('+', '-',clearTitle(clearQuery($title))) . '-iphone-wallpaper/">' . $title . "</a></h3>";
     			}
     		}*/
 }
function yahooFeed($query)
{
    return 'http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query=' . clearQuery($query) . '&adult_ok=1';
}
Exemplo n.º 4
0
<?php

//require_once('/home/buchin/masbuchin.com/Geo_IP/stat_functions.php');
//Get User countery
$country = 'US';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">


	<title><?php 
if (is_page('wallpaper')) {
    echo ucwords(str_replace('-', ' ', clearQuery(get_query_var('keyword'))));
    echo " | ";
}
if (!is_page('wallpaper')) {
    wp_title();
}
?>
 <?php 
bloginfo('name');
?>
</title>

	<meta http-equiv="Content-Type" content="<?php 
bloginfo('html_type');
?>
; charset=<?php 
bloginfo('charset');
?>