Skip to content

Commit

Permalink
More changes to attachment page. Updated post thumbnail functionality.
Browse files Browse the repository at this point in the history
git-svn-id: https://techozoic-fluid.googlecode.com/svn/trunk@76 010e1cd8-cc02-723b-e9b4-cf61d25fcfdd
  • Loading branch information
jeremyclark13 committed Oct 22, 2010
1 parent 5cb6a82 commit 26e1342
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 25 deletions.
44 changes: 23 additions & 21 deletions attachment.php
Expand Up @@ -24,26 +24,30 @@
$metadata = wp_get_attachment_metadata();
$date_format = get_option('date_format');
$camera = $metadata['image_meta']; ?>
<strong><?php _e('Exif Information','techozoic');?></strong>
<strong><?php _e('Image Information','techozoic');?></strong>
<br />
<?php _e('Size:', 'techozoic');
printf(__('%1$s &times; %2s','techozoic'), $metadata['width'], $metadata['height'] );
<?php printf(__('Size: %1$s &times; %2s','techozoic'), $metadata['width'], $metadata['height'] );
echo " <br />";
_e('Camera:','techozoic');
echo $camera['camera'];
echo " <br />";
_e('Taken:','techozoic');
echo date($date_format ,$camera['created_timestamp']);
echo " <br />";
_e('Aperture:','techozoic');
echo$camera['aperture'];
echo " <br />";
_e('ISO:','techozoic');
echo$camera['iso'];
echo " <br />";
_e('Shutter Speed:','techozoic');
echo$camera['shutter_speed'];
echo " <br />";
if ($camera['camera'] != ""){
printf(__('Camera: %s','techozoic'), $camera['camera'] );
echo " <br />";
}
if ($camera['created_timestamp'] != 0){
printf(__('Taken: %s','techozoic'), date($date_format ,$camera['created_timestamp'] ) );
echo " <br />";
}
if ($camera['aperture'] != 0){
printf(__('Aperture: %s','techozoic'), $camera['aperture'] );
echo " <br />";
}
if ($camera['iso'] != 0){
printf(__('ISO: %s','techozoic'), $camera['iso'] );
echo " <br />";
}
if ($camera['shutter_speed'] != 0){
printf(__('Shutter Speed: %s','techozoic'), $camera['shutter_speed'] );
echo " <br />";
}
?>
<strong><?php _e('Click for original image','techozoic');?></strong>
</span>
Expand Down Expand Up @@ -83,15 +87,13 @@
}
?>
</div><!--#pic-navigation-->
<div style="clear:both"></div>
<?php
} else { ?>
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
<?php
}

wp_link_pages('<p><strong>'.__('Pages' ,'techozoic').':</strong>', '</p>', 'number'); ?>

<div style="clear:both;margin-bottom:10px"></div>
<p class="postmetadata alt">
<small>
<?php
Expand Down
5 changes: 3 additions & 2 deletions changelog.php
Expand Up @@ -13,10 +13,11 @@
<br />
<h2>Change Log</h2>
<h3>Version 1.9.2</h3><br />

- Fixed error with 2 column setting defaulting to Content - Sidebar even after saving.<br />
- Updated attachment.php page for better gallery intergration. <br />
<h3>Version 1.9.1</h3><br />
- Dynamic Styles now stored in database instead of calculated on every page load.<br />
- Changed out style.php is called from functions.php<br />
- Changed how style.php is called from functions.php<br />
- Added option for specifing different widths for left and right sidebars<br />
- Added font resize widget<br />
- Fixed error on search results and 404 page if sidebars where used on single pages <br />
Expand Down
1 change: 1 addition & 0 deletions functions.php
Expand Up @@ -481,6 +481,7 @@ function tech_save_postdata( $post_id ) {

if(function_exists('add_theme_support')) {
add_theme_support( 'post-thumbnails' );
add_image_size( 'single-post-thumbnail', $content_width, 9999 );
//WP 2.9 Post Thumbnail Support
add_theme_support('automatic-feed-links');
//WP Auto Feed Links
Expand Down
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -33,7 +33,7 @@
<small><?php _e('By' , 'techozoic') ?> <?php the_author() ?>&nbsp;|&nbsp;<?php printf(__('Filed in %s' , 'techozoic'), get_the_category_list(', ')) ?><?php edit_post_link(__('&nbsp;|&nbsp; Edit.','techozoic'), '', ''); ?></small>
</div><div style="clear:both"></div>
<div class="entry">
<?php if(function_exists('the_post_thumbnail')) { the_post_thumbnail(); }?>
<?php if(function_exists('the_post_thumbnail')) { the_post_thumbnail('thumbnail'); }?>
<?php the_content(__('Read the remainder of this entry &raquo;' , 'techozoic')); ?>
<?php if ( comments_open() && empty($post->post_password) ) { ?>
<div class="post_comment_cont">
Expand Down
2 changes: 1 addition & 1 deletion single.php
Expand Up @@ -22,7 +22,7 @@
</div>
<?php do_action('tech_before_sing_content');?>
<div class="singlepost entry">
<?php if(function_exists('the_post_thumbnail')) { the_post_thumbnail(); }?>
<?php if(function_exists('the_post_thumbnail')) { the_post_thumbnail('single-post-thunbnail'); }?>
<?php the_content('<p class="serif">'.__('Read the rest of this entry','techozoic'). '&raquo;</p>');
wp_link_pages();
?>
Expand Down

0 comments on commit 26e1342

Please sign in to comment.