Skip to content

Instantly share code, notes, and snippets.

@brandondove
Created October 13, 2010 17:54
Show Gist options
  • Save brandondove/624520 to your computer and use it in GitHub Desktop.
Save brandondove/624520 to your computer and use it in GitHub Desktop.
<?php
while( shopp( 'catalog', 'categories' ) ) :
if( shopp( 'category', 'has-images' ) ) :
$content_column.= '<div class="shopp-main-category">';
$content_column.= '<a href="'.shopp( 'category', 'url', 'return=true' ).'">';
$content_column.= shopp( 'category', 'coverimage', 'return=true&width=220&height=450&fit=crop&title='.shopp( 'category', 'name', 'return=true' ) );
$content_column.= '</a><span class="shopp-category-title"><a href="'.shopp( 'category', 'url', 'return=true' ).'">'.shopp( 'category', 'name', 'return=true' ).'</a></span>';
$content_column.= '</div>';
endif;
endwhile;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment