Added new template function, the_permalink(). echoes get_permalink. We are now consistent in the templates.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2974cd48f
commit
0fc3d11f7c
|
@ -36,7 +36,7 @@ require('./wp-blog-header.php');
|
|||
<?php the_date('','<h2>','</h2>'); ?>
|
||||
|
||||
<div class="post">
|
||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
|
||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
|
||||
<div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||
|
||||
<div class="storycontent">
|
||||
|
|
|
@ -248,7 +248,7 @@ switch($action) {
|
|||
?>
|
||||
<div id='preview' class='wrap'>
|
||||
<h2><?php _e('Post Preview (updated when post is saved)'); ?></h2>
|
||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), the_title()); ?>"><?php the_title(); ?></a></h3>
|
||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), the_title()); ?>"><?php the_title(); ?></a></h3>
|
||||
<div class="meta"><?php printf(__("Filed under: %s"), the_category()); ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||
|
||||
<div class="storycontent">
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
function the_permalink() {
|
||||
echo get_permalink();
|
||||
}
|
||||
|
||||
function permalink_anchor($mode = 'id') {
|
||||
global $id, $post;
|
||||
switch(strtolower($mode)) {
|
||||
|
|
|
@ -32,7 +32,7 @@ header('Content-type: application/rss+xml', true);
|
|||
<comments><?php comments_link(); ?></comments>
|
||||
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', $post->post_date_gmt); ?></pubDate>
|
||||
<?php the_category_rss() ?>
|
||||
<guid><?php echo get_permalink($id); ?></guid>
|
||||
<guid><?php the_permalink($id); ?></guid>
|
||||
<?php $more = 1; if (get_settings('rss_use_excerpt')) {
|
||||
?>
|
||||
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
|
||||
|
|
Loading…
Reference in New Issue