Home › Forums › Theme support › Portfolio img entry › Reply To: Portfolio img entry
Can you show exactly where should I change the code? How should it look like?
<?php global $ix, $title, $portfolio2_content, $masonry; ?>
<!-- portfolio-entry -->
<div class='div_portfolio_entry'>
<div class="portfolio-img">
<div class="portfolio-img-inner">
<a class="prettyPhoto prettyPhoto[works-<?php echo $ix; ?>]" href="<?php print img_original_url($post->ID) ?>">
<?php if($masonry==true)
{
?><img src="<?php print img_masonry_url($post->ID) ?>" alt="" /><?php
}
else
{
?><img src="<?php echo sevenleague_image_url($post->ID, load_option("portfolio_thumbnail") ); ?>" alt="" /><?php
}
?>
</a>
</div>
<div class='lrs'>
<div>
<h3><?php echo get_the_title(); ?></h3>
<p> </p>
<p>
<a title="<?php echo get_the_title(); ?>" class="lightbox prettyPhoto prettyPhoto[works-<?php echo $ix; ?>]" href='<?php print img_original_url($post->ID) ?>'><i class='fa-icon icon-search'></i></a>
<a href='<?php echo get_permalink(); ?>'><i class='fa-icon icon-share-alt'></i></a>
</p>
</div>
</div>
</div>
</div>
<?php
$content=get_the_content();
if($portfolio2_content!="")
{
if(strlen("$content")>$portfolio2_content)
{
$content=(substr( $content, 0, strpos( $content, " ", $portfolio2_content )+1 ) );
}
$content=strip_tags($content);
echo "<p>$content</p>";
}
?>
<?php if(load_option("portfolio2_showreadmore")=="on") { ?>
<a class="" href="<?php the_permalink(); ?>"> Read more </a>
<?php }?>