So my client would like her site’s pagelist blocks displaying news-type pages to display the thumbnails with the title and description wrapped around the thumbnail (the descriptions can be long and are not truncated). I have created a custom template with a float:left custom css file in application/… but having some trouble reorganising the view.php so it displays correctly, presumably as one div.
How would I redo this code (I removed unneeded parts like Date) so it would just be the thumbnail floated left with title and text wrapped around - does it need a new div class? I did try reorganising but it doesn’t seem to float the image.
<div class="<?php echo $entryClasses ?>">
<?php if ($includeEntryText) {
?>
<div class="ccm-block-page-list-page-entry-text">
<?php if (isset($includeName) && $includeName) {
?>
<div class="ccm-block-page-list-title">
<?php if (isset($useButtonForLink) && $useButtonForLink) {
?>
<?php echo h($title); ?>
<?php
} else {
?>
<a href="<?php echo h($url) ?>"
target="<?php echo h($target) ?>"><?php echo h($title) ?></a>
<?php
} ?>
</div>
<?php
} ?>
<?php if (isset($includeDate) && $includeDate) {
?>
<div class="ccm-block-page-list-date"><?php echo h($date) ?></div>
<?php
} ?>
<?php if (isset($includeDescription) && $includeDescription) {
?>
<div class="ccm-block-page-list-description"><?php echo h($description) ?><br /><br /></div>
<?php
} ?>
<?php if (isset($useButtonForLink) && $useButtonForLink) {
?>
<div class="ccm-block-page-list-page-entry-read-more">
<a href="<?php echo h($url) ?>" target="<?php echo h($target) ?>"
class="<?php echo h($buttonClasses) ?>"><?php echo h($buttonLinkText) ?></a>
</div>
<?php
} ?>
</div>
<?php
} ?>
</div>
<?php
} ?>
</div><!-- end .ccm-block-page-list-pages -->