コード例 #1
0
ファイル: single.php プロジェクト: ashenkar/sanga
					<?php 
    if (bauhaus_should_show_thumbnail() && wptouch_has_post_thumbnail()) {
        ?>
						<div class="post-page-thumbnail">
							<?php 
        the_post_thumbnail('feature-post-home', array('class' => 'post-thumbnail wp-post-image'));
        ?>
						</div>
					<?php 
    }
    ?>


<?php 
    theme_author_box();
    post_context();
    featured_oembed();
    summary_bullets();
    ?>


                                		<?php 
    wptouch_the_content();
    ?>


									

					<?php 
    if (bauhaus_should_show_taxonomy()) {
        ?>
コード例 #2
0
ファイル: engine.php プロジェクト: juandodyk/media-rss
 function __construct($url, $params = array())
 {
     $xml = in_array('xml', $params);
     $gcache = in_array('google_cache', $params);
     if ($gcache) {
         $url = google_cache($url);
     }
     $pre_t = microtime(true);
     $ctx = isset($params['post']) ? post_context($params['post']) : NULL;
     $source = @file_get_contents($url, false, $ctx);
     $this->html = new DOMDocument();
     $this->enc = isset($params['encoding']) ? $params['encoding'] : 'utf-8';
     if (!$xml) {
         @$this->html->loadhtml(htmlenc($source, $this->enc));
     } else {
         @$this->html->loadxml($source);
     }
     $this->xpath = new DOMXpath($this->html);
     $this->clean(in_array('clean_aside', $params));
     if (!in_array('silence', $params)) {
         echo $url . " " . (microtime(true) - $pre_t) . "<br>\n";
     }
 }