Advertisement
Guest User

Untitled

a guest
Mar 8th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1. <?php
  2. defined('C5_EXECUTE') or die("Access Denied.");
  3. ?>
  4. <div id="blog-index">
  5.     <?php  
  6.     $isFirst = true; //So first item in list can have a different css class (e.g. no top border)
  7.     $excerptBlocks = ($controller->truncateSummaries ? 1 : null); //1 is the number of blocks to include in the excerpt
  8.     $truncateChars = ($controller->truncateSummaries ? $controller->truncateChars : 0);
  9.     foreach ($cArray as $cobj):
  10.         $title = $cobj->getCollectionName();
  11.         $date = $cobj->getCollectionDatePublic(DATE_APP_GENERIC_MDY_FULL);
  12.         $author = $cobj->getVersionObject()->getVersionAuthorUserName();
  13.         $link = $nh->getLinkToCollection($cobj);
  14.         $firstClass = $isFirst ? 'first-entry' : '';
  15.        
  16.         $entryController = Loader::controller($cobj);
  17.         if(method_exists($entryController,'getCommentCountString')) {
  18.             $comments = $entryController->getCommentCountString('%s '.t('Comment'), '%s '.t('Comments'));
  19.         }
  20.         $isFirst = false;
  21.     ?>
  22.     <div class="produkt-wrap overflow">
  23.  
  24.         <div class="main-bild">
  25.             <?php
  26.                 $a = new Area('Bild');
  27.                 $a->display($cobj);
  28.             ?>
  29.         </div>
  30.  
  31.         <div class="main-info">
  32.             <?php
  33.                 $a = new Area('Text');
  34.                 $a->display($cobj);
  35.             ?>
  36.         </div>
  37.  
  38.     </div>
  39.  
  40.     <?php  endforeach; ?>
  41. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement