Exemple #1
0
					
					<h1><?php 
        the_title();
        ?>
</h1>

					<?php 
        the_content('Continue reading &raquo;');
        ?>
					
					<!-- faves -->
					<div id="faves">
						<!-- faves-feed -->
					<?php 
        $i = 0;
        foreach ($faves->show_faves() as $fave) {
            ?>
						<?php 
            $class = $i++ & 1 ? ' odd' : '';
            require_once 'app/simplepie.php';
            $feed_path = $fave->feed_url;
            $feed = new SimplePie((string) $feed_path, ABSPATH . (string) 'wp-content/uploads/activity');
            $feed->handle_content_type();
            if ($feed->data) {
                ?>
						<div class="faves-feed<?php 
                echo $class;
                ?>
">
							<h3><img src="http://www.google.com/s2/favicons?domain=<?php 
                ltrim('http://', $fave->url);
Exemple #2
0
					
					<h1><?php 
        the_title();
        ?>
</h1>

					<?php 
        the_content('Continue reading &raquo;');
        ?>
					
					<!-- faves -->
					<div id="faves">
						<!-- faves-feed -->
					<?php 
        $i = 0;
        foreach (FavesAdmin::show_faves() as $fave) {
            ?>
						<?php 
            $class = $i++ & 1 ? ' odd' : '';
            require_once SIMPLEPIEPATH;
            $feed_path = $fave->feed_url;
            $feed = new SimplePie((string) $feed_path, TEMPLATEPATH . (string) '/app/cache/activity');
            $feed->handle_content_type();
            if ($feed->data) {
                ?>
						<div class="faves-feed<?php 
                echo $class;
                ?>
">
						    <?php 
                $domain = explode($fave->feed_url, '/');