alargule
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeucfknight10: that works great! Never would have thought it would be that easy ??
Thank you for your help!
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeThis should be it:
<?php if ( wp_attachment_is_image( get_the_ID() ) ): ?> <p class="attachment-image"> <?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeSorry for my late response; any help would be greatly appreciated, though!
I’ve been comparing the attachment.php files for the Twenty Ten theme and the Prototype 0.1 theme. As far as I can see, the hyperlink to the full-sized image is being controlled by this code segment in Twenty Ten:
if ( wp_attachment_is_image() ) { echo ' <span class="meta-sep">|</span> '; $metadata = wp_get_attachment_metadata(); printf( __( 'Full size is %s pixels', 'twentyten'), sprintf( '<a href="%1$s" title="%2$s">%3$s × %4$s</a>', wp_get_attachment_url(), esc_attr( __('Link to full-size image', 'twentyten') ), $metadata['width'], $metadata['height'] ) ); }
…whereas the Prototype theme has this:
if ( wp_attachment_is_image( get_the_ID() ) )
A simple copy-and-paste action from the Twenty Ten file to the Prototype file did not do the trick, of course. So some things should be changed, but I don’t know which?
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeOK, I’m sorry.
Maybe I should rephrase my question:
is there any way that I can modify this theme in such a way, that the resized images offers a link to the image with the original dimensions? Say a link at the top of the image, or the possibility to click on the image to display the original?
Possibly involves some re-coding of the templates, but I’m not that good at php to be honest.
Forum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeForum: Themes and Templates
In reply to: Prototype 0.1: displaying images full sizeThank you, but that does not seem to be the problem.
When I use Twenty Ten as the theme for my website, the images are still shown resized. However, Twenty Ten offers an option to display the full size image, whereas Prototype 0.1 does not seem to support that feature.
Forum: Themes and Templates
In reply to: Twenty Ten 1.1 ignoring image width resizing^^ That used to do the trick. However, it doesn’t work anymore since the latest patch. Seems even the workaround has been ‘fixed’…