-
Notifications
You must be signed in to change notification settings - Fork 5
/
image.php
127 lines (99 loc) · 3.99 KB
/
image.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
123
124
125
126
127
<?php
/**
* The xhtml1.0 transitional image for our theme.
*
*
* @package WordPress
* @subpackage Raindrops
* @since Raindrops 0.1
*/
?>
<?php get_header('xhtml1'); ?>
<div id="yui-main">
<!--<?php echo basename(__FILE__,'.php');?>[<?php echo basename(dirname(__FILE__));?>]-->
<div class="yui-b">
<!--main-->
<!-- Use Standard Nesting Grids and Special Nesting Grids to subdivid regions of your layout. -->
<!-- Special Nesting Grid C has two children, the first is 2/3, the second is 1/3 -->
<?php
if(function_exists('bcn_display'))
{
// Display the breadcrumb
echo '<div class="breadcrumb">';
bcn_display();
echo '</div>';
}
?>
<div class="<?php if(isset($yui_inner_layout)){echo $yui_inner_layout;}else{echo 'yui-ge';}?>" id="container">
<!-- content -->
<div class="yui-u first" <?php if($rsidebar_show == false){echo "style=\"width:100%;\"";} ?>>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry attachment">
<h2 class="title"><?php the_title(); ?></h2>
<p><?php _e("Entry");?><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment">
<?php echo get_the_title($post->post_parent); ?></a></p>
<?php $image = get_post_meta($post->ID, 'image', true); ?>
<?php $image = wp_get_attachment_image_src($my_image, 'full'); ?>
<p class="image">
<?php //height="<?php echo round((190/$image[1])*$image[2]);?>
<img src="<?php echo $image[0];?>" width="100%" alt="<?php the_title(); ?>" /></p>
<?php //echo wp_get_attachment_image( $post->ID, '' ); ?>
<div class="caption">
<dl>
<dd class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></dd>
<dd class="serif"><?php the_content('<p >Read the rest of this entry »</p>'); ?></dd>
</dl>
</div>
<br style="clear:both;" />
<?php //the_taxonomies('<li class="taxonomies">Taxonomy(ies) ', ', ', '</li>'); ?>
<hr />
<div class="navigation">
<div style="text-align:left;float:left;"><?php previous_image_link(0) ?></div><div style="float:right;text-align:right;"><?php next_image_link(0) ?></div>
</div>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php
/*<li>You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.</li>*/
?>
<?php } /*elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
<li>Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.</li>
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
<li>You can skip to the end and leave a response. Pinging is currently not allowed.</li>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<li>Both comments and pings are currently closed.</li>
<?php } */?>
</ul>
</div>
<br class="clear" />
</div>
<?php endwhile; else: ?>
<p>Sorry, no attachments matched your criteria.</p>
<?php endif; ?>
</div>
<!-- navigation-->
<div class="yui-u">
<!--rsidebar start-->
<?php if($rsidebar_show){get_sidebar('2');
} ?>
<!--rsidebar end-->
</div>
<!--add col here -->
</div>
<!--main-->
</div>
</div>
<!--sidebar-->
<!-- navigation 2 -->
<div class="yui-b">
<!--lsidebar start-->
<?php get_sidebar('1'); ?>
<!--lsidebar end-->
</div>
<!-- navigation 2 -->
<!--sidebar-->
</div>
<?php get_footer(); ?>