'll be honest and say I have no idea what I’m doing. The person who would normally help me with this is busy with holiday stuff and I’d love to get this working before Christmas. I’m trying to integrate FotoMoto with my site but am running in to a problem. The gallery template I have is only showing a horizontal crop of the images and that’s all FotoMoto is fetching, I need to show the proper aspect ratio of each image. Sample of the page I’m looking to change: http://rbavonephotography.com/home/?gallery=animals This is the code I’m assuming has the instructions I just can’t figure out what to change.
[php]<?php
/**
- The main template file for display portfolio page.
-
@package WordPress
*/
/**
- Get all photos
**/
$menu_sets_query = ‘’;
$portfolio_items = -1;
$portfolio_sort = get_option(‘pp_portfolio_sort’);
if(empty($portfolio_sort))
{
$portfolio_sort = ‘DESC’;
}
$args = array(
‘post_type’ => ‘attachment’,
‘numberposts’ => $portfolio_items,
‘post_status’ => null,
‘post_parent’ => $post->ID,
‘order’ => $portfolio_sort,
‘orderby’ => ‘date’,
);
$all_photo_arr = get_posts( $args );
get_header(); ?>
<div class="page_caption">
<h1 class="cufon"><?php echo $post->post_title; ?></h1>
</div>
<div id="content_wrapper">
<?php
if(!empty($all_photo_arr))
{
?>
<!-- Begin content -->
<div id="page_content_wrapper">
<?php
$pp_gallery_width = 295;
$pp_gallery_height = 200;
?>
<div class="inner">
<div class="inner_wrapper">
<div class="one_third">
<div style="width:70%">
<?php
if(!empty($post->post_content))
{
$baseLinkArr = parse_url(curPageURL());
if(isset($baseLinkArr['query']) && !empty($baseLinkArr['query']))
{
$start = '&mode=f';
}
else
{
$start = '?mode=f';
}
?>
<p><?php echo nl2br(stripslashes(html_entity_decode(do_shortcode($post->post_content)))); ?></p>
<br/><br/>
<a href="<?php echo curPageURL().$start; ?>" class="button">View Fullscreen</a>
<?php
}
?>
</div>
</div>
<div class="two_third last">
<?php
foreach($all_photo_arr as $key => $photo)
{
$small_image_url = get_stylesheet_directory_uri().'/images/000_70.png';
$hyperlink_url = get_permalink($photo->ID);
if(!empty($photo->guid))
{
$image_url[0] = $photo->guid;
$small_image_url = get_stylesheet_directory_uri().'/timthumb.php?src='.$image_url[0].'&h='.$pp_gallery_height.'&w='.$pp_gallery_width.'&zc=1';
}
$last_class = '';
if(($key+1)%2==0)
{
$last_class = 'last';
}
?>
<div class="one_half <?php echo $last_class; ?>" style="margin-bottom:2%">
<?php
if(!empty($small_image_url))
{
?>
<a rel="gallery" href="<?php echo $image_url[0]; ?>" title="<?php echo $photo->post_title; ?>">
<img src="<?php echo $small_image_url; ?>" alt="" class="img_nofade frame"/>
</a>
<?php
}
?>
</div>
<?php
}
?>
<br class="clear"/><br/><br/>
</div>
</div>
</div>
</div>
<br class="clear"/>
</div>
<!-- End content -->
<?php
}
?>
</div>
</div>
<?php get_footer(); ?>[/php]
I appreciate any help I can get, I don’t want to have to change my site just to get FotoMoto working but at the same time I need FotoMoto to work.