addSiteSpecificJS(APP_NAME, "index/index.js") ?> getSequence() < $items[$j]->getSequence()) { $temp = $items[$i]; $items[$i] = $items[$j]; $items[$j] = $temp; } } } } $sectionItems = array(); $imageSrc = RELATIVE_WWW_ROOT."img/"; if($items) foreach($items as $i => $sectionItem) { if(get_class($sectionItem) == SectionArticle::classname) { $item = $sectionItem->getArticle(); $sectionItems[$i]["item"] = $item; if($item->getPrimaryImage()) { $sectionItems[$i]["imageId"] = "img-".$item->getPrimaryImage()->getID(); $sectionItems[$i]["image"] = $item->getPrimaryImage(); } $sectionItems[$i]["goToLink"] = APP_URL.$section->getRelativeDirectoryURI()."/artikkel/".$item->getID(); $sectionItems[$i]["title"] = $item->getTitle(); $sectionItems[$i]["leadText"] = $item->getLead(); //if($item->getLanguageArticle()->needsTranslation()) $sectionItems[$i]["needsTranslation"] = true; /*if($item->getLanguageArticle()->needsTranslation()) { $sectionItems[$i]["title"] = " ".$sectionItems[$i]["title"]." "; $sectionItems[$i]["leadText"] = " ".$sectionItems[$i]["leadText"]." "; }*/ } /*else if(get_class($sectionItem) == SectionGallery::classname) { $item = $sectionItem->getGallery(); $sectionItems[$i]["item"] = $item; if($item->getPrimaryImage()) { $sectionItems[$i]["imageId"] = "img-".$item->getPrimaryImage()->getID(); $sectionItems[$i]["image"] = $item->getPrimaryImage(); } $sectionItems[$i]["goToLink"] = APP_URL.$section->getRelativeDirectoryURI()."/bildegalleri/".$item->getID(); $sectionItems[$i]["title"] = $item->getTitle(); $sectionItems[$i]["leadText"] = $item->getLead(); //if($item->getLanguageGallery()->needsTranslation()) $sectionItems[$i]["needsTranslation"] = true; }*/ }?> getFilename(), ABSOLUTE_IMG_PATH)); ?>