-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-single.php
122 lines (115 loc) · 5.69 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<div id="singlePost">
<nav id="nav-above" class="navigation">
<div class="nav-previous">
<?php previous_post_link( '%link', '<img src="http://m.garrettamini.com/wp-content/themes/brunelleschi/images/leftChevron.png" />' . '<span class="meta-nav">' . '%title' . '</span>', TRUE ); ?>
</div>
<div class="nav-next">
<?php next_post_link( '%link', '<img src="http://m.garrettamini.com/wp-content/themes/brunelleschi/images/rightChevron.png" />' . '<span class="meta-nav">' . '%title' . '</span>', TRUE ); ?>
</div>
</nav>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'brunelleschi' ) ) ) : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('twelvecol last'); ?>>
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<!-- .entry-meta -->
<section id="entry-gallery" class="eightcol">
<?php
$images = get_children(array(
'post_type' => 'attachment',
'post_status' => null,
'post_parent' => $post->ID,
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ID'));
?>
<?php
if ($images) {
foreach($images as $image) {
//get thumbnail of image first: (we'll actually display this one)
$attachment=wp_get_attachment_image_src($image->ID, 'large');
?>
<a href="<?=$attachment[0];?>" rel="lightbox" ><img src="<?php echo $attachment[0]; ?>" <?php echo $attributes; ?> /></a>
<?php }
} ?>
</section>
<section class="entry fourcol last">
<div class="entry-meta">
<div id="time"><?php the_time('M Y'); ?></div>
<div id="client">
<ul>
<li>Client:</li>
<li>
<?php $client = get_post_custom_values( "Client" ); echo $client[0] ?>
</li>
</ul>
</div>
<div id="tools">
<ul>
<li>Tools:</li>
<?php if (in_category( 'Illustrator' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/illustrator.png' alt='Adobe Illustrator' title='Adobe Illustrator' /></li>"; } ?>
<?php if (in_category( 'Photoshop' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/photoshop.png' alt='Adobe Photoshop' title='Adobe Photoshop' /></li>"; } ?>
<?php if (in_category( 'HTML' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/html.png' alt='HTML' title='HTML' /></li>"; } ?>
<?php if (in_category( 'CSS' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/css.png' alt='CSS' title='CSS' /></li>"; } ?>
<?php if (in_category( 'jQuery' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/jquery.png' alt='jQuery' title='jQuery' /></li>"; } ?>
<?php if (in_category( 'Javascript' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/javascript.png' alt='Javascript' title='Javascript' /></li>"; } ?>
<?php if (in_category( 'HTML5' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/html5.png' alt='HTML5' title='HTML5' /></li>"; } ?>
<?php if (in_category( 'CSS3' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/css3.png' alt='CSS3' title='CSS3' /></li>"; } ?>
<?php if (in_category( 'Mobile' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/mobile.png' alt='Mobile' title='Mobile' /></li>"; } ?>
<?php if (in_category( 'Wordpress' )) { echo "<li><img src='/wp-content/themes/brunelleschi/images/wordpress.png' alt='Wordpress' title='Wordpress' /></li>"; } ?>
</ul>
</div>
</div>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'brunelleschi' ), 'after' => '</div>' ) ); ?>
</div>
<!-- #entry-author-info -->
<div class="entry-utility">
<?php edit_post_link( __( 'Edit', 'brunelleschi' ), '<span class="edit-link">', '</span>' ); ?>
</div>
<!-- .entry-utility -->
</section>
</article>
<!-- #post-## -->
<?php comments_template( '', true ); ?>
<?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'aside', 'aside category slug', 'brunelleschi' ) ) ) : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('twelvecol last format-standard'); ?>>
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<section class="eightcol">
<div class="entry-content">
<?php the_content(); ?>
</div>
</section>
<section class="aboutMe fourcol last">
<?php $recent = new WP_Query( 'pagename=about-me' ); while($recent->have_posts()) : $recent->the_post();?>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
<?php endwhile; ?>
</section>
</article>
<?php else : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('twelvecol last'); ?>>
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<section class="eightcol">
<div class="entry-content">
<?php the_content(); ?>
</div>
</section>
<section class="entry-meta fourcol last">
<p id="time"><?php the_time('M d, Y'); ?></p>
<p>By <?php the_author(); ?></p>
<div class="entry-utility">
<?php edit_post_link( __( 'Edit', 'brunelleschi' ), '<span class="edit-link">', '</span>' ); ?>
</div>
</section>
</article>
<?php comments_template( '', true ); ?>
<?php endif; ?>
<?php endwhile; ?>
</div>