-
Notifications
You must be signed in to change notification settings - Fork 162
/
loop-single.php
57 lines (48 loc) · 1.76 KB
/
loop-single.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
51
52
53
54
55
56
57
<?php
/**
* The loop that displays a single post.
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop-single.php.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.2
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<style id="s" type="text/css">
<?php $key="css"; echo get_post_meta($post->ID, $key, true); ?>
</style>
<div id="pattern" class="mod group">
<h3 class="label">Pattern</h3>
<h4><?php the_category(' '); ?> <span class="sep">→</span> <?php the_title(); ?></h4>
<div id="pattern-wrap" class="group">
<?php $key="html"; echo get_post_meta($post->ID, $key, true); ?>
</div>
</div>
<div class="group">
<div id="markup" class="mod">
<h3 class="label">HTML</h3> <a href="#" class="clip" title="select code for copying"><img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" alt="copy" /></a>
<textarea class="mod-ta">
<?php $key="html"; echo get_post_meta($post->ID, $key, true); ?>
</textarea>
</div>
<div id="style" class="mod">
<h3 class="label">CSS</h3> <a href="#" class="clip" title="select code for copying"><img src="<?php bloginfo('template_directory'); ?>/images/icon-copy.png" alt="copy" /></a>
<textarea id="css-code" class="mod-ta">
<?php $key="css"; echo get_post_meta($post->ID, $key, true); ?>
</textarea>
</div>
</div>
<?php if($post->post_content != "") {?>
<div id="pattern-notes" class="mod">
<h3 class="label">Notes</h3>
<?php the_content(); ?>
</div>
<?php } ?>
<?php endwhile; // end of the loop. ?>