Ejemplo n.º 1
0
)</dc:creator>
	<?php 
        the_category_rss('rdf');
        $more = 1;
        if ($rss_use_excerpt) {
            ?>
	<description><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        } else {
            // use content
            ?>
	<description><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        }
        // end else use content
        ?>
	<content:encoded><![CDATA[<?php 
        the_content('', 0, '');
        ?>
]]></content:encoded>
</item>
<?php 
    }
}
?>
Ejemplo n.º 2
0
	<?php 
        the_category_rss('rdf');
        $GLOBALS['more'] = 1;
        if (get_settings('rss_use_excerpt')) {
            ?>
	<description><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        } else {
            // use content
            ?>
	<description><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        }
        // end else use content
        ?>
	<content:encoded><![CDATA[<?php 
        the_content_rss('', 0, '', 0, 3);
        ?>
]]></content:encoded>
</item>
<?php 
    }
}
?>
</rdf:RDF>
Ejemplo n.º 3
0
<?php

get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
				    <div class="post">
              <a class="post-title" href="<?php 
        echo the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
  				    <p class="post-content">
                <?php 
        the_content_rss();
        ?>
              </p>
            </div>
				<?php 
    }
} else {
    echo '<p>No content found</p>';
}
get_footer();
Ejemplo n.º 4
0
}

header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
$more = 1;

?>
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
<rss version="0.92">
<channel>
	<title><?php bloginfo_rss('name') ?></title>
	<link><?php bloginfo_rss('url') ?></link>
	<description><?php bloginfo_rss('description') ?></description>
	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language><?php echo get_option('rss_language'); ?></language>

<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
	<item>
		<title><?php the_title_rss() ?></title>
<?php if (get_settings('rss_use_excerpt')) { ?>
		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php } else { // use content ?>
		<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
<?php } ?>
		<link><?php permalink_single_rss() ?></link>
	</item>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
</rss>
Ejemplo n.º 5
0
    the_title_rss();
    ?>
</title>
<?php 
    if (get_option('rss_use_excerpt')) {
        ?>
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
<?php 
    } else {
        // use content
        ?>
		<description><?php 
        the_content_rss('', 0, '', get_option('rss_excerpt_length'));
        ?>
</description>
<?php 
    }
    ?>
		<link><?php 
    permalink_single_rss();
    ?>
</link>
		<?php 
    do_action('rss_item');
    ?>
	</item>
<?php 
}
Ejemplo n.º 6
0
	<admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
	<?php do_action('rdf_header'); ?>
	<items>
		<rdf:Seq>
		<?php while (have_posts()): the_post(); ?>
			<rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
		<?php endwhile; ?>
		</rdf:Seq>
	</items>
</channel>
<?php rewind_posts(); while (have_posts()): the_post(); ?>
<item rdf:about="<?php permalink_single_rss() ?>">
	<title><?php the_title_rss() ?></title>
	<link><?php permalink_single_rss() ?></link>
	 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
	<dc:creator><?php the_author() ?></dc:creator>
	<?php the_category_rss('rdf') ?>
<?php if (get_option('rss_use_excerpt')) : ?>
	<description><?php the_excerpt_rss() ?></description>
<?php else : ?>
	<description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
	<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
<?php endif; ?>
	<?php do_action('rdf_item'); ?>
</item>
<?php endwhile;  ?>
</rdf:RDF>
Ejemplo n.º 7
0
            the_title();
            ?>
</h2>
	         <?php 
            if (get_option('gallery-use-featured-content')) {
                ?>
					     <p><?php 
                $key = "featuredtext";
                echo get_post_meta($post->ID, $key, true);
                ?>
</p>
					  <?php 
            } else {
                ?>
					     <p><?php 
                the_content_rss('', 0, '', $wordquantity);
                ?>
</p>
					  <?php 
            }
            ?>
					  <a href="<?php 
            the_permalink();
            ?>
" title="Read More" class="open"></a>
					  <img src="<?php 
            $key = "articleimg";
            echo get_post_meta($post->ID, $key, true);
            ?>
" alt="<?php 
            $key = "alttext";
Ejemplo n.º 8
0
        ?>
" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2> 
			<h3><?php 
        the_time('F jS, Y');
        ?>
</h3>
		</div>
		<div class="entrybody">
			<?php 
        the_content_rss('', TRUE, '', 22);
        ?>
		</div>
		
		<div class="entrymeta">Posted in <?php 
        the_category(', ');
        ?>
 | <?php 
        edit_post_link('Edit', '', ' | ');
        ?>
  <?php 
        comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;');
        ?>
		</div>
		
	</div>
Ejemplo n.º 9
0
            ?>
		<summary type="text/html"><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
            ?>
</summary>
<?php 
        } else {
            // use content
            ?>
		<summary type="text/html"><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
            ?>
</summary>
<?php 
        }
        // end else use content
        ?>
		<content type="text/html" mode="escaped" xml:base="<?php 
        permalink_single_rss();
        ?>
"><![CDATA[<?php 
        the_content_rss('', 0, '', 0, 1);
        ?>
]]></content>
	</entry>
	<?php 
    }
}
?>
</feed>
Ejemplo n.º 10
0
    			
    		</div>

			<div class="text">
    			<div class="glyph"><div class="symbol"></div></div>
    			<div class="titleheading">
    			<h3><?php 
            the_title();
            ?>
</h3>
    			</div>
    			<div class="excerpt">
    			
	    		
			<?php 
            the_content_rss('', FALSE, '', 150);
            ?>
    			
    			
    			</div>
    			<div class="dateheading">
    			<?php 
            the_date();
            ?>
    			</div>
    			<div class="hiddendate">5<?php 
            //echo "-"; the_time('Ymd')
            ?>
</div>
    			<div class="hiddengroup"><?php 
            $category = get_the_category();
Ejemplo n.º 11
0
</h2>
            <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
            <article>
                <h3><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
                <p><p><?php 
        the_content_rss('', true, '', 30);
        ?>
</p></p>
                <a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_post_thumbnail();
        ?>
</a>
                <p class="post_meta"><?php 
        echo get_the_date();
        ?>
</p>
            </article>
           <?php 
Ejemplo n.º 12
0
" title="<?php 
        printf(__('Read full post: %s', 'mim'), wp_specialchars(get_the_title(), 1));
        ?>
"><?php 
        the_title();
        ?>
</a>&#160;<span><?php 
        unset($previousday);
        the_date('Y-m-d', '', '');
        ?>
</span></h2>
<?php 
        if ($postcount < $highlightposts && is_home() && !is_paged()) {
            ?>
	<div class="ec"><?php 
            the_content_rss('', true, '', 20, 2);
            ?>
</div>
<?php 
        }
        $postcount++;
    }
    if (mim_show_navigation()) {
        ?>
	<div class="nav"><?php 
        posts_nav_link(' | ', '&#171; Newer posts', 'Older posts &#187;');
        ?>
</div>
<?php 
    }
} else {
Ejemplo n.º 13
0
<?php 
$items_count = 0;
while ($row = mysql_fetch_object($result)) {
    start_b2();
    ?>
		<item>
				<title><?php 
    the_title_rss();
    ?>
</title><?php 
    // we might use this in the future, but not now, that's why it's commented in PHP
    // so that it doesn't appear at all in the RSS
    //				echo "<category>"; the_category_unicode(); echo "</category>";
    ?>
				<description><?php 
    the_content_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html);
    ?>
</description>
				<link><?php 
    permalink_single_rss();
    ?>
</link>
		</item>
<?php 
    $items_count++;
    if ($items_count == $posts_per_rss && empty($m)) {
        break;
    }
}
?>
Ejemplo n.º 14
0
function widget_simplr_recent_entries($args)
{
    global $wpdb, $comments, $comment;
    extract($args);
    $options = get_option('widget_simplr_recent_entries');
    $title = empty($options['title']) ? __('Recent Entries', 'simplr') : $options['title'];
    $count = empty($options['count']) ? __('5', 'simplr') : $options['count'];
    global $wpdb, $r;
    $r = new wp_query("showposts={$count}");
    if ($r->have_posts()) {
        ?>
		<?php 
        echo $before_widget;
        ?>
			<?php 
        echo $before_title;
        echo $title;
        echo $after_title;
        ?>
			<ul><?php 
        while ($r->have_posts()) {
            $r->the_post();
            ?>

				<li class="hentry" onclick="location.href='<?php 
            the_permalink();
            ?>
';">
					<span class="entry-title"><a href="<?php 
            the_permalink();
            ?>
" title="Continue reading <?php 
            get_the_title();
            the_title();
            ?>
" rel="bookmark"><?php 
            get_the_title();
            the_title();
            ?>
</a></span>
					<span class="entry-summary"><?php 
            the_content_rss('', TRUE, '', 10);
            ?>
</span>
					<span class="entry-date"><abbr class="published" title="<?php 
            the_time('Y-m-d\\TH:i:sO');
            ?>
"><?php 
            unset($previousday);
            printf(__('%1$s', 'simplr'), the_date('F jS, Y', false));
            ?>
</abbr></span>
					<span class="entry-comments"><?php 
            comments_popup_link(__('No comments', 'simplr'), __('One comment', 'simplr'), __('% comments', 'simplr'));
            ?>
</span>
				</li>
			<?php 
        }
        ?>

			</ul>
		<?php 
        echo $after_widget;
    }
}
Ejemplo n.º 15
0
    ?>
    
            <li>
              <span class="highlightlink"><img src="http://wakingideas.com/wordpress/wp-content/themes/wakingideas/images/icon_track.png" alt="link" /> <a href="<?php 
    the_permalink();
    ?>
" title="Permalink to <?php 
    the_title();
    ?>
" rel="bookmark"><?php 
    the_title();
    ?>
</a>
              </span>
              <?php 
    the_content_rss('', TRUE, '', 30);
    ?>
            </li>
          <?php 
}
?>
      </ul>    
    </div>

    <div id="sidebar"> 
      <h3>Outside the Box</h3>
      <ul>
      <?php 
c2c_get_recent_posts($num_posts = 5, $format = "<li><span class=\"linkauthor\">%post_author%</span> <br /> <div class=\"linkdesc\"><img src=\"http://wakingideas.com/wordpress/wp-content/themes/wakingideas/images/icon_track.png\" alt=\"link\" /> %post_content%</div></li>", $categories = '7');
?>
      </ul>
Ejemplo n.º 16
0
    the_author_email();
    ?>
)</dc:creator>
		<dc:subject><?php 
    the_category_rss();
    ?>
</dc:subject>
		<guid isPermaLink="false"><?php 
    echo $id;
    ?>
@<?php 
    bloginfo_rss("url");
    ?>
</guid>
		<description><?php 
    the_content_rss('', 0, '', $rss_excerpt_length, 2);
    ?>
</description>
		<content:encoded><![CDATA[<?php 
    the_content('', 0, '');
    ?>
]]></content:encoded>
	</item>
	<?php 
    $items_count++;
    if ($items_count == $posts_per_rss && empty($m)) {
        break;
    }
}
?>
</channel>
Ejemplo n.º 17
0
        // we might use this in the future, but not now, that's why it's commented in PHP
        // so that it doesn't appear at all in the RSS
        //          echo "<category>"; the_category_unicode(); echo "</category>";
        $more = 1;
        if (get_settings('rss_use_excerpt')) {
            ?>
            <description><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), get_settings('rss_encoded_html'));
            ?>
</description>
<?php 
        } else {
            // use content
            ?>
            <description><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html'));
            ?>
</description>
<?php 
        }
        // end else use content
        ?>
            <link><?php 
        permalink_single_rss();
        ?>
</link>
        </item>
<?php 
        $items_count++;
        if ($items_count == $posts_per_page && empty($m)) {
            break;
Ejemplo n.º 18
0
<div>
<a href="<?php 
            the_permalink();
            ?>
" title="Permalink to <?php 
            the_title_attribute();
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a> <?php 
            the_time('F j, Y');
            if (!is_paged() && $postcount == 1) {
                ?>
 <p class="entry-summary"><?php 
                the_content_rss('', TRUE, '', 40, 2);
                ?>
</p><?php 
            }
            ?>
</div>
<?php 
        } elseif (is_single()) {
            ?>
<h2><?php 
            the_title();
            ?>
</h2>
<p><?php 
            the_time('F j, Y, g:i a');
            ?>