Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

disable comments in shakengrid theme (premium) WordPress

  • SOLVED

hi,

i'm using shaken grid premium theme for a website (www.studiowootwoot.com/tangram), and over the pictures u see a box coming up with share / comment /enlarge, and i would like to disable it.
I suppose i have to do this in the loop.php
this is the loop.php, can anyone tell me what i have to change to don't see the comments in the pictures?
thanks
Karina

<?php
/**
* Posts Loop
*
* This file is responsible for outputting the
* blog posts as well as filter options (if
* the user is viewing the frontpage).
*
* In the event that the html needs to be modified,
* this template may be duplicated inside a child theme
* and edited there.
*
* @package Shaken Grid (Premium)
* @since 1.0
* @alter 1.6.1
*
***************************************************************
***************************************************************
*
* Post Filters
*
* Displays filter options if on frontpage and if they aren't
* disabled in the theme options. The filters are based on
* the categories. Each post has its category slug assigned
* as class names. The Isotope plugin handles the filtering.
*/ ?>

<?php if(is_home() && !of_get_option('hide_filters')) { ?>
<div id="filtering-nav">
<a href="#" class="filter-btn"><span><?php _e('Filter', 'shaken'); ?></span></a>
<ul>
<li><a href="#" data-filter="*"><?php _e('All', 'shaken'); ?></a></li>
<?php
$args=array(
'orderby' => 'name',
'hierarchical' => 0
);
$categories=get_categories($args);
foreach($categories as $category) { ?>
<li><a href="#" data-filter=".<?php echo $category->category_nicename; ?>"><?php echo $category->name; ?></a></li>
<?php } ?>
</ul>
<div class="clearfix"></div>
</div><!-- #filtering-nav -->
<?php } ?>

<?php
/**
* Display ALL posts
*
* If this is the homepage and the "show all posts on blog" option
* is checked in the theme options, then display all posts on one
* page without pagination.
*/
if(is_home() && !is_search() && (of_get_option('show_all') || of_get_option('frontpage_category'))):
$query_string = false;
if(of_get_option('show_all')){
$query_string = 'posts_per_page=-1';
}
if(of_get_option('frontpage_category') && of_get_option('frontpage_category') != 'all'){

if(of_get_option('show_all')){
$query_string .= '&';
}

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query_string .= 'cat='.of_get_option('frontpage_category').'&paged='.$paged;
}
if($query_string){
query_posts($query_string);
}
endif;

/* Say hello to the Loop... */
if (have_posts()) :

/* Display navigation to next/previous pages when applicable */
if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older', 'shaken') ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>', 'shaken') ); ?></div>
<div class="clearfix"></div>
</div><!-- #nav-below -->
<?php endif; ?>

<?php /* Anything placed in #sort is positioned by jQuery Masonry */ ?>
<div class="sort">

<?php /* Display sidebar if it has widgets assigned to it */ ?>
<?php if(is_active_sidebar('gallery-sidebar')) : ?>
<div class="all box col2">
<div class="box-content">
<?php get_sidebar(); ?>
</div>
</div>
<?php endif; ?>

<?php /* Display ads set in theme options */ ?>
<?php get_template_part( 'includes/ads'); ?>

<?php while (have_posts()) : the_post();

// Gather custom fields
$embed_code = get_post_meta($post->ID, 'soy_vid', true);
$vid_url = get_post_meta($post->ID, 'soy_vid_url', true);
$force_feat_img = get_post_meta($post->ID, 'soy_hide_vid', true);
$show_title = get_post_meta($post->ID, 'soy_show_title', true);
$show_desc = get_post_meta($post->ID, 'soy_show_desc', true);
$box_size = get_post_meta($post->ID, 'soy_box_size', true);

global $my_size;

if($box_size == 'Medium (485px)'){
$my_size = 'col3';
$embed_size = '485';
} else if($box_size == 'Large (660px)'){
$my_size = 'col4';
$embed_size = '660';
} else if($box_size == 'Tiny (135px)'){
$my_size = 'col1';
$embed_size = '135';
}else{
$my_size = 'col2';
$embed_size = '310';
}

/* Check whether content is being displayed
* This determines whether a border should be applied
* above the postmeta section
*/
if($show_title != 'No'){
$content_class = 'has-content';
} else if($show_desc != 'No' && $post->post_content){
$content_class = 'has-content';
}else {
$content_class = 'no-content';
}
?>

<div class="all box <?php
// Assign the category slugs as class names
foreach((get_the_category()) as $category) {
echo $category->category_nicename . ' ';
}
// Assign the size of the box
echo $my_size; ?>">

<div <?php post_class('box-content '.$content_class) ?>>
<?php
/* Display video if available */
if(($embed_code || $vid_url) && !$force_feat_img){
if($vid_url){
echo apply_filters('the_content', "[embed width='".$embed_size."']" . $vid_url . "[/embed]");
} else {
echo $embed_code;
}
} else if(has_post_format('gallery') && !$force_feat_img){
get_template_part('includes/loop-gallery');
} else if ( has_post_thumbnail() ){

$thumbID = get_post_thumbnail_id($post->ID); ?>

<div class="img-container">

<?php
/* Display the appropriate sized featured image */
if($my_size != 'col2'){ ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail($my_size); ?></a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
<?php } ?>

<?php if(current_theme_supports('shaken_action_buttons')) : ?>
<?php /* Display the action buttons (enlarge, share, comment) */ ?>
<div class="actions">

<?php
/* Display "Play" icon if video is available */
if($embed_code && $force_feat_img){ ?>
<a href="<?php the_permalink(); ?>" title="Play this video" class="view play">Play</a>
<?php }
/* Otherwise display enlarge button */
else {
// Decide what images the colorbox links to
$img_rel = ( has_post_format('gallery')) ? $post->ID : 'gallery';
?>
<a href="<?php echo wp_get_attachment_url($thumbID); ?>" rel="<?php echo $img_rel; ?>" title="<?php the_title(); ?>" class="view colorbox">
<?php _e('Enlarge', 'shaken'); ?></a>
<?php } ?>

<a class="share"><?php _e('Share', 'shaken'); ?></a>

<?php
// Comments closed
if ( ! comments_open() ){ ?>
<a href="<?php the_permalink(); ?>" class="comment closed"><span>x</span><?php _e('Closed', 'shaken'); ?> </a>
<?php }
// Otherwise display comment count
else { ?>
<a href="<?php comments_link(); ?>" class="comment"><span><?php comments_number('0', '1', '%'); ?></span> <?php _e('Comment', 'shaken'); ?></a>
<?php } ?>

<?php /* Social Network Share Links */ ?>
<div class="share-container">
<div class="share-icons">
<?php
/* Twitter */
if(of_get_option('tweet_btn_user') && of_get_option('tweet_btn_desc')){
$twitRec = of_get_option('tweet_btn_user').':'.of_get_option('tweet_btn_desc');
}
else {
$twitRec = 'shakenweb:Kick-ass WordPress Themes';
} ?>
<a href="javascript: void(0)" class="twitter-share iframe" onClick="twitPop('<?php the_permalink(); ?>', '<?php the_title_attribute(); ?> - ', '<?php echo $twitRec; ?>')">
Twitter</a>

<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title_attribute(); ?>" class="facebook-share" target="_blank">
Facebook</a>

<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>" class="stumble-share" target="_blank">
StumbleUpon</a>

<a href="http://technorati.com/cosmos/search.html?url=<?php the_permalink(); ?>" class="tech-share" target="_blank">
Technorati</a>

<a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>" class="digg-share" target="_blank">
Digg</a>

<a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute(); ?>" class="delicious-share" target="_blank">
Delicious</a>

<a href="mailto:EMAIL?body=<?php the_permalink(); ?>" class="email-share" target="_blank">
Email</a>
</div>
</div><!-- #share-container -->
</div><!-- #actions -->
<?php endif; ?>


<div class="clearfix"></div>
</div><!-- #img-container -->
<?php } /* END: has_post_thumbnail() */ ?>

<?php
/* Display links to gallery images if the slideshow
* is hidden and this is a gallery post format
*/
if(has_post_thumbnail() && $force_feat_img){
get_template_part('includes/gallery-list');
}

/* Should title be displayed? */
if($show_title != 'No' && !has_post_format('quote')){ ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php }

/* Should post content be displayed? */
if(is_search() && $show_desc != 'No'){
the_excerpt(); // Only display excerpts for search results
} else if($show_desc != 'No'){
if(has_excerpt()){
the_excerpt();
} else{
the_content(__('Continue Reading &rarr;', 'shaken'));
}
} ?>

<?php edit_post_link(__('Edit this post', 'shaken')); ?>

<?php /* Post footer */
if($my_size != 'col1'){ ?>
<div class="post-footer">
<span class="category-ic"><?php the_category(', '); ?></span>
<a href="<?php echo wp_get_shortlink(); ?>" class="shortlink tooltip" title="Shortlink"><?php _e('Shortlink', 'shaken'); ?></a>
</div>
<?php } ?>

</div><!-- #box-content -->
</div><!-- #box -->
<?php endwhile; ?>
</div><!-- #sort -->

<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older', 'shaken') ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>', 'shaken') ); ?></div>
<div class="clearfix"></div>
</div><!-- #nav-below -->
<?php endif; ?>

<?php else : ?>
<?php /* If there are no posts */ ?>
<div id="sort">
<div class="box">
<h2><?php _e('Sorry, no posts were found', 'shaken'); ?></h2>
<?php get_search_form(); ?>
</div>
</div><!-- #sort -->
<?php endif; ?>

Answers (4)

2011-08-15

Gabriel Reguly answers:

Hi Karina,

Try with the following code for your loop.php file.


<?php
/**
* Posts Loop
*
* This file is responsible for outputting the
* blog posts as well as filter options (if
* the user is viewing the frontpage).
*
* In the event that the html needs to be modified,
* this template may be duplicated inside a child theme
* and edited there.
*
* @package Shaken Grid (Premium)
* @since 1.0
* @alter 1.6.1
*
***************************************************************
***************************************************************
*
* Post Filters
*
* Displays filter options if on frontpage and if they aren't
* disabled in the theme options. The filters are based on
* the categories. Each post has its category slug assigned
* as class names. The Isotope plugin handles the filtering.
*/ ?>
<?php
if ( is_home() && !of_get_option('hide_filters') ) {
?>

<div id="filtering-nav">
<a href="#" class="filter-btn"><span><?php _e('Filter', 'shaken'); ?></span></a>
<ul>
<li><a href="#" data-filter="*"><?php _e('All', 'shaken'); ?></a></li>
<?php
$args=array(
'orderby' => 'name',
'hierarchical' => 0
);
$categories=get_categories($args);
foreach($categories as $category) {
?>
<li><a href="#" data-filter=".<?php echo $category->category_nicename; ?>"><?php echo $category->name; ?></a></li>
<?php
}
?>
</ul>
<div class="clearfix"></div>
</div>
<!-- #filtering-nav -->
<?php
}
/**
* Display ALL posts
*
* If this is the homepage and the "show all posts on blog" option
* is checked in the theme options, then display all posts on one
* page without pagination.
*/
if ( is_home() && !is_search() && ( of_get_option('show_all') || of_get_option('frontpage_category' ) ) ):
$query_string = false;
if(of_get_option('show_all')){
$query_string = 'posts_per_page=-1';
}
if(of_get_option('frontpage_category') && of_get_option('frontpage_category') != 'all'){
if(of_get_option('show_all')){
$query_string .= '&';
}
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query_string .= 'cat='.of_get_option('frontpage_category').'&paged='.$paged;
}
if($query_string){
query_posts($query_string);
}
endif;

/* Say hello to the Loop... */
if (have_posts()) :

/* Display navigation to next/previous pages when applicable */
if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-above" class="navigation">
<div class="nav-previous">
<?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older', 'shaken') ); ?>
</div>
<div class="nav-next">
<?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>', 'shaken') ); ?>
</div>
<div class="clearfix"></div>
</div>
<!-- #nav-below -->
<?php endif; ?>
<?php /* Anything placed in #sort is positioned by jQuery Masonry */ ?>
<div class="sort">
<?php /* Display sidebar if it has widgets assigned to it */ ?>
<?php if(is_active_sidebar('gallery-sidebar')) : ?>
<div class="all box col2">
<div class="box-content">
<?php get_sidebar(); ?>
</div>
</div>
<?php endif; ?>
<?php /* Display ads set in theme options */ ?>
<?php get_template_part( 'includes/ads'); ?>
<?php while (have_posts()) : the_post();

// Gather custom fields
$embed_code = get_post_meta($post->ID, 'soy_vid', true);
$vid_url = get_post_meta($post->ID, 'soy_vid_url', true);
$force_feat_img = get_post_meta($post->ID, 'soy_hide_vid', true);
$show_title = get_post_meta($post->ID, 'soy_show_title', true);
$show_desc = get_post_meta($post->ID, 'soy_show_desc', true);
$box_size = get_post_meta($post->ID, 'soy_box_size', true);

global $my_size;

if($box_size == 'Medium (485px)'){
$my_size = 'col3';
$embed_size = '485';
} else if($box_size == 'Large (660px)'){
$my_size = 'col4';
$embed_size = '660';
} else if($box_size == 'Tiny (135px)'){
$my_size = 'col1';
$embed_size = '135';
}else{
$my_size = 'col2';
$embed_size = '310';
}

/* Check whether content is being displayed
* This determines whether a border should be applied
* above the postmeta section
*/
if($show_title != 'No'){
$content_class = 'has-content';
} else if($show_desc != 'No' && $post->post_content){
$content_class = 'has-content';
}else {
$content_class = 'no-content';
}
?>
<div class="all box <?php
// Assign the category slugs as class names
foreach((get_the_category()) as $category) {
echo $category->category_nicename . ' ';
}
// Assign the size of the box
echo $my_size; ?>">
<div <?php post_class('box-content '.$content_class) ?>>
<?php
/* Display video if available */
if(($embed_code || $vid_url) && !$force_feat_img){
if($vid_url){
echo apply_filters('the_content', "[embed width='".$embed_size."']" . $vid_url . "[/embed]");
} else {
echo $embed_code;
}
} else if(has_post_format('gallery') && !$force_feat_img){
get_template_part('includes/loop-gallery');
} else if ( has_post_thumbnail() ){
$thumbID = get_post_thumbnail_id($post->ID); ?>
<div class="img-container">
<?php
/* Display the appropriate sized featured image */
if($my_size != 'col2'){ ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail($my_size); ?>
</a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php } ?>
<?php if(current_theme_supports('shaken_action_buttons')) : ?>
<?php /* Display the action buttons (enlarge, share, comment) */ ?>
<div class="actions">
<?php /* Display "Play" icon if video is available */
if($embed_code && $force_feat_img){ ?>
<a href="<?php the_permalink(); ?>" title="Play this video" class="view play">Play</a>
<?php }
/* Otherwise display enlarge button */
else {
// Decide what images the colorbox links to
$img_rel = ( has_post_format('gallery')) ? $post->ID : 'gallery';
?>
<a href="<?php echo wp_get_attachment_url($thumbID); ?>" rel="<?php echo $img_rel; ?>" title="<?php the_title(); ?>" class="view colorbox">
<?php _e('Enlarge', 'shaken'); ?>
</a>
<?php } ?>
</div>
<!-- #actions -->
<?php endif; ?>
<div class="clearfix"></div>
</div>
<!-- #img-container -->
<?php } /* END: has_post_thumbnail() */ ?>
<?php
/* Display links to gallery images if the slideshow
* is hidden and this is a gallery post format
*/
if(has_post_thumbnail() && $force_feat_img){
get_template_part('includes/gallery-list');
}

/* Should title be displayed? */
if($show_title != 'No' && !has_post_format('quote')){ ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php the_title(); ?>
</a></h2>
<?php }

/* Should post content be displayed? */
if(is_search() && $show_desc != 'No'){
the_excerpt(); // Only display excerpts for search results
} else if($show_desc != 'No'){
if(has_excerpt()){
the_excerpt();
} else{
the_content(__('Continue Reading &rarr;', 'shaken'));
}
} ?>
<?php edit_post_link(__('Edit this post', 'shaken')); ?>
<?php /* Post footer */
if($my_size != 'col1'){ ?>
<div class="post-footer"> <span class="category-ic">
<?php the_category(', '); ?>
</span> <a href="<?php echo wp_get_shortlink(); ?>" class="shortlink tooltip" title="Shortlink">
<?php _e('Shortlink', 'shaken'); ?>
</a> </div>
<?php } ?>
</div>
<!-- #box-content -->
</div>
<!-- #box -->
<?php endwhile; ?>
</div>
<!-- #sort -->
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous">
<?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older', 'shaken') ); ?>
</div>
<div class="nav-next">
<?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>', 'shaken') ); ?>
</div>
<div class="clearfix"></div>
</div>
<!-- #nav-below -->
<?php endif; ?>
<?php else : ?>
<?php /* If there are no posts */ ?>
<div id="sort">
<div class="box">
<h2>
<?php _e('Sorry, no posts were found', 'shaken'); ?>
</h2>
<?php get_search_form(); ?>
</div>
</div>
<!-- #sort -->
<?php endif; ?>



Hopefully this is what you want.

Regards,
Gabriel


Karina Soors comments:

hi, thanks Gabriel, everything works except the "enlarge" button keeps showing up..
Regards
Karina


Gabriel Reguly comments:

Hi Karina,

Ok, give me some minutes, I'll try to remove it too.

Regards,
Gabriel


Gabriel Reguly comments:

Hi Karina,

Please try this one for your loop.php file


<?php
/**
* Posts Loop
*
* This file is responsible for outputting the
* blog posts as well as filter options (if
* the user is viewing the frontpage).
*
* In the event that the html needs to be modified,
* this template may be duplicated inside a child theme
* and edited there.
*
* @package Shaken Grid (Premium)
* @since 1.0
* @alter 1.6.1
*
***************************************************************
***************************************************************
*
* Post Filters
*
* Displays filter options if on frontpage and if they aren't
* disabled in the theme options. The filters are based on
* the categories. Each post has its category slug assigned
* as class names. The Isotope plugin handles the filtering.
*/ ?>
<?php
if ( is_home() && !of_get_option('hide_filters') ) {
?>

<div id="filtering-nav">
<a href="#" class="filter-btn"><span><?php _e('Filter', 'shaken'); ?></span></a>
<ul>
<li><a href="#" data-filter="*"><?php _e('All', 'shaken'); ?></a></li>
<?php
$args=array(
'orderby' => 'name',
'hierarchical' => 0
);
$categories=get_categories($args);
foreach($categories as $category) {
?>
<li><a href="#" data-filter=".<?php echo $category->category_nicename; ?>"><?php echo $category->name; ?></a></li>
<?php
}
?>
</ul>
<div class="clearfix"></div>
</div>
<!-- #filtering-nav -->
<?php
}
/**
* Display ALL posts
*
* If this is the homepage and the "show all posts on blog" option
* is checked in the theme options, then display all posts on one
* page without pagination.
*/
if ( is_home() && !is_search() && ( of_get_option('show_all') || of_get_option('frontpage_category' ) ) ):
$query_string = false;
if(of_get_option('show_all')){
$query_string = 'posts_per_page=-1';
}
if(of_get_option('frontpage_category') && of_get_option('frontpage_category') != 'all'){
if(of_get_option('show_all')){
$query_string .= '&';
}
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query_string .= 'cat='.of_get_option('frontpage_category').'&paged='.$paged;
}
if($query_string){
query_posts($query_string);
}
endif;

/* Say hello to the Loop... */
if (have_posts()) :

/* Display navigation to next/previous pages when applicable */
if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-above" class="navigation">
<div class="nav-previous">
<?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older', 'shaken') ); ?>
</div>
<div class="nav-next">
<?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>', 'shaken') ); ?>
</div>
<div class="clearfix"></div>
</div>
<!-- #nav-below -->
<?php endif; ?>
<?php /* Anything placed in #sort is positioned by jQuery Masonry */ ?>
<div class="sort">
<?php /* Display sidebar if it has widgets assigned to it */ ?>
<?php if(is_active_sidebar('gallery-sidebar')) : ?>
<div class="all box col2">
<div class="box-content">
<?php get_sidebar(); ?>
</div>
</div>
<?php endif; ?>
<?php /* Display ads set in theme options */ ?>
<?php get_template_part( 'includes/ads'); ?>
<?php while (have_posts()) : the_post();

// Gather custom fields
$embed_code = get_post_meta($post->ID, 'soy_vid', true);
$vid_url = get_post_meta($post->ID, 'soy_vid_url', true);
$force_feat_img = get_post_meta($post->ID, 'soy_hide_vid', true);
$show_title = get_post_meta($post->ID, 'soy_show_title', true);
$show_desc = get_post_meta($post->ID, 'soy_show_desc', true);
$box_size = get_post_meta($post->ID, 'soy_box_size', true);

global $my_size;

if($box_size == 'Medium (485px)'){
$my_size = 'col3';
$embed_size = '485';
} else if($box_size == 'Large (660px)'){
$my_size = 'col4';
$embed_size = '660';
} else if($box_size == 'Tiny (135px)'){
$my_size = 'col1';
$embed_size = '135';
}else{
$my_size = 'col2';
$embed_size = '310';
}

/* Check whether content is being displayed
* This determines whether a border should be applied
* above the postmeta section
*/
if($show_title != 'No'){
$content_class = 'has-content';
} else if($show_desc != 'No' && $post->post_content){
$content_class = 'has-content';
}else {
$content_class = 'no-content';
}
?>
<div class="all box <?php
// Assign the category slugs as class names
foreach((get_the_category()) as $category) {
echo $category->category_nicename . ' ';
}
// Assign the size of the box
echo $my_size; ?>">
<div <?php post_class('box-content '.$content_class) ?>>
<?php
/* Display video if available */
if(($embed_code || $vid_url) && !$force_feat_img){
if($vid_url){
echo apply_filters('the_content', "[embed width='".$embed_size."']" . $vid_url . "[/embed]");
} else {
echo $embed_code;
}
} else if(has_post_format('gallery') && !$force_feat_img){
get_template_part('includes/loop-gallery');
} else if ( has_post_thumbnail() ){
$thumbID = get_post_thumbnail_id($post->ID); ?>
<div class="img-container">
<?php
/* Display the appropriate sized featured image */
if($my_size != 'col2'){ ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail($my_size); ?>
</a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php } ?>
<?php if(current_theme_supports('shaken_action_buttons')) : ?>
<?php /* Display the action buttons (enlarge, share, comment) */ ?>
<div class="actions">
<?php /* Display "Play" icon if video is available */
if($embed_code && $force_feat_img){ ?>
<a href="<?php the_permalink(); ?>" title="Play this video" class="view play">Play</a>
<?php } ?>
</div>
<!-- #actions -->
<?php endif; ?>
<div class="clearfix"></div>
</div>
<!-- #img-container -->
<?php } /* END: has_post_thumbnail() */ ?>
<?php
/* Display links to gallery images if the slideshow
* is hidden and this is a gallery post format
*/
if(has_post_thumbnail() && $force_feat_img){
get_template_part('includes/gallery-list');
}

/* Should title be displayed? */
if($show_title != 'No' && !has_post_format('quote')){ ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php the_title(); ?>
</a></h2>
<?php }

/* Should post content be displayed? */
if(is_search() && $show_desc != 'No'){
the_excerpt(); // Only display excerpts for search results
} else if($show_desc != 'No'){
if(has_excerpt()){
the_excerpt();
} else{
the_content(__('Continue Reading &rarr;', 'shaken'));
}
} ?>
<?php edit_post_link(__('Edit this post', 'shaken')); ?>
<?php /* Post footer */
if($my_size != 'col1'){ ?>
<div class="post-footer"> <span class="category-ic">
<?php the_category(', '); ?>
</span> <a href="<?php echo wp_get_shortlink(); ?>" class="shortlink tooltip" title="Shortlink">
<?php _e('Shortlink', 'shaken'); ?>
</a> </div>
<?php } ?>
</div>
<!-- #box-content -->
</div>
<!-- #box -->
<?php endwhile; ?>
</div>
<!-- #sort -->
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous">
<?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older', 'shaken') ); ?>
</div>
<div class="nav-next">
<?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>', 'shaken') ); ?>
</div>
<div class="clearfix"></div>
</div>
<!-- #nav-below -->
<?php endif; ?>
<?php else : ?>
<?php /* If there are no posts */ ?>
<div id="sort">
<div class="box">
<h2>
<?php _e('Sorry, no posts were found', 'shaken'); ?>
</h2>
<?php get_search_form(); ?>
</div>
</div>
<!-- #sort -->
<?php endif; ?>


Karina Soors comments:

hi,
thanks!! it works now perfect!
greetings
Karina


Gabriel Reguly comments:

Hi Karina,

I am glad to help, now please don't forget to vote for this question prize ;-)

Regards,
Gabriel


Karina Soors comments:

i will, but how can i do that?


Gabriel Reguly comments:

Hmmm,

There should be a 'Assign prize money' link at the bottom of this page.

Like the one in [[LINK href="http://codewi.se/wp-content/uploads/2011/04/assing_prize_link.png"]]this image[[/LINK]]

There is some [[LINK href="http://codewi.se/2011/04/22/voting-assign-prize-money/"]]explanation at this page[[/LINK]].

Regards,
Gabriel


Gabriel Reguly comments:

Sorry,

The link is [[LINK href="http://wpquestions.com/question/pickAWinner/id/2844"]]Vote?[[/LINK]], and is located after your question, just before the answers.

Regards,
Gabriel


Gabriel Reguly comments:

Now I have a correct image.