• 1.
    	<?php if( prime_get_homepage_content() == 'none' ) { ?>
  • 2.
    		<div class="project <?php echo prime_portfolio_category_as_class(); ?>">
  • 3.
    			<figure class="frontCover">
  • 4.
    			<div class="project-thumbnail-title">
  • 5.
    				<div class="project-thumbnail">
  • 6.
    					<img src="<?php echo prime_resize( $iFile, wp_get_attachment_url( $thumbID ), 300, 9999, false, true ); ?>" alt="" />
  • 7.
    					<a href="<?php the_permalink(); ?>" class="project-mask-link"></a>
  • 8.
    					<?php if( get_option( THEME_SHORTNAME . '_show_the_view_and_like' ) !== '0' ){ ?>
  • 9.
    					<span class="list-meta view"></span>
  • 10.
    					<span class="list-meta like"></span>
  • 11.
    					<span class="list-meta comment"></span>
  • 12.
    					<?php } ?>
  • 13.
    				</div>
  • 14.
    				<div class="project-title">
  • 15.
    					<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  • 16.
    				</div>
  • 17.
    			</div>
  • 18.
    				<div class="sideBase">
  • 19.
    					<?php if( get_option( THEME_SHORTNAME . '_show_the_view_and_like' ) !== '0' ){ ?>
  • 20.
    					<span class="list-meta-value view"><?php echo $num_view;?></span>
  • 21.
    					<span class="list-meta-value like"><?php echo $num_likes; ?></span>
  • 22.
    					<span class="list-meta-value comment"><?php echo $num_comments; ?></span>
  • 23.
    					<?php } ?>
  • 24.
    				</div>
  • 25.
    			</figure>
  • 26.
    		</div>
  • 27.
    	<?php } ?>
<?php if( prime_get_homepage_content() == 'none' ) { ?> <div class="project <?php echo prime_portfolio_category_as_class(); ?>"> <figure class="frontCover"> <div class="project-thumbnail-title"> <div class="project-thumbnail"> <img src="<?php echo prime_resize( $iFile, wp_get_attachment_url( $thumbID ), 300, 9999, false, true ); ?>" alt="" /> <a href="<?php the_permalink(); ?>" class="project-mask-link"></a> <?php if( get_option( THEME_SHORTNAME . '_show_the_view_and_like' ) !== '0' ){ ?> <span class="list-meta view"></span> <span class="list-meta like"></span> <span class="list-meta comment"></span> <?php } ?> </div> <div class="project-title"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> </div> <div class="sideBase"> <?php if( get_option( THEME_SHORTNAME . '_show_the_view_and_like' ) !== '0' ){ ?> <span class="list-meta-value view"><?php echo $num_view;?></span> <span class="list-meta-value like"><?php echo $num_likes; ?></span> <span class="list-meta-value comment"><?php echo $num_comments; ?></span> <?php } ?> </div> </figure> </div> <?php } ?>

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter