Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('C5_EXECUTE') or die("Access Denied.");
- ?>
- <div id="blog-index">
- <?php
- $isFirst = true; //So first item in list can have a different css class (e.g. no top border)
- $excerptBlocks = ($controller->truncateSummaries ? 1 : null); //1 is the number of blocks to include in the excerpt
- $truncateChars = ($controller->truncateSummaries ? $controller->truncateChars : 0);
- foreach ($cArray as $cobj):
- $title = $cobj->getCollectionName();
- $date = $cobj->getCollectionDatePublic(DATE_APP_GENERIC_MDY_FULL);
- $author = $cobj->getVersionObject()->getVersionAuthorUserName();
- $link = $nh->getLinkToCollection($cobj);
- $firstClass = $isFirst ? 'first-entry' : '';
- $entryController = Loader::controller($cobj);
- if(method_exists($entryController,'getCommentCountString')) {
- $comments = $entryController->getCommentCountString('%s '.t('Comment'), '%s '.t('Comments'));
- }
- $isFirst = false;
- ?>
- <div class="produkt-wrap overflow">
- <div class="main-bild">
- <?php
- $a = new Area('Bild');
- $a->display($cobj);
- ?>
- </div>
- <div class="main-info">
- <?php
- $a = new Area('Text');
- $a->display($cobj);
- ?>
- </div>
- </div>
- <?php endforeach; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement