-
Notifications
You must be signed in to change notification settings - Fork 0
/
4d2f7d18b93012edc0be5aed4e674338.php
executable file
·50 lines (45 loc) · 1.41 KB
/
4d2f7d18b93012edc0be5aed4e674338.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require_once '/Users/Johan/Sites/johanbrook_wp3/wp-content/plugins/wordless/vendor/phamlp/haml/HamlHelpers.php';
?> <?php global $post;?>
<article role="article" <?php if(get_post_format()) echo 'class="'.get_post_format().'"';?>>
<header>
<?php if(get_post_format() == "link"):?>
<em title="This is a linked post. Clicking the heading will take you to the target" class="suphead">
<span class="label">Linked</span> <span class="link-url"><?php echo get_post_meta($post->ID, LINK, true);?></span>
</em>
<h1>
<?php echo link_to(get_the_title() . " →",
get_post_meta($post->ID, LINK, true),
array("title" => get_post_meta($post->ID, LINK_NAME, true))
); ?>
</h1>
<?php else: ?>
<?php if(is_single()):?>
<h1>
<?php echo the_title(); ?>
</h1>
<?php else:?>
<h1>
<?php echo link_to(get_the_title(), get_permalink()); ?>
</h1>
<?php endif; endif;?>
<small class="meta">
<time datetime="<?php the_time("c");?>" pubdate><?php the_time("F y, 2012");?></time>
<?php echo sep(); ?>
<a href="<?php the_permalink();?>">Permalink</a>
<?php echo sep(); ?>
<?php if(the_shortlink()): { ?>
Shortlink: <a href="<?php the_shortlink();?>"><?php the_shortlink();?></a>
<?php } ?>
<?php endif;; ?>
</small>
</header>
<div class="post-text">
<?php
if(is_single() || get_post_format() == "link")
echo get_the_filtered_content();
else
the_excerpt();
?>
</div>
</article>