forked from simplebits/Pears
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop-single.php
More file actions
52 lines (44 loc) · 1.43 KB
/
loop-single.php
File metadata and controls
52 lines (44 loc) · 1.43 KB
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
<?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(); ?>
<h2 class="label"><em>2.</em> Sprawdź przykład rozwiązania</h2>
<div id="iframe">
<iframe src="<?php echo get_template_directory_uri(); ?>/preview.php?p=<?php echo $post->ID ?>"></iframe>
</div><!-- /iframe -->
<div class="main" role="main">
<style id="s" type="text/css">
<?php $key="css"; echo get_post_meta($post->ID, $key, true); ?>
</style>
<?php if($post->post_content != "") {?>
<div id="pattern-notes" class="mod">
<h3 class="label"><em>3.</em> Notatki</h3>
<?php the_content(); ?>
</div>
<?php } ?>
<div id="markup" class="mod">
<h3 class="label"><em>4.</em> Skopiuj HTML</h3>
<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"><em>5.</em> Skopiuj CSS</h3>
<textarea id="css-code" class="mod-ta">
<?php $key="css"; echo get_post_meta($post->ID, $key, true); ?>
</textarea>
</div>
<?php endwhile; // end of the loop. ?>