<?php ################################################################################## ###### Hauptanweisungen ################################################################################## ###### HTML-Tag oeffnen
echo '<html>';
echo ' <!– ################################################################################## ###### parentbox umspannender Inhalts-Container (öffnen) ################################################################################## –>
<!– ################################################################################## ###### Voransicht-Box für Blog-Einträge (öffnen) ################################################################################## –>
<div class="contentbox-left">
';
if ($maxDisplayedBlogArticles == -1) {
$maxDisplayedBlogArticles = sizeof( $blogPageData );
}
for ($articleCounter=0; $articleCounter < $maxDisplayedBlogArticles; $articleCounter++) {
if ((array_key_exists($articleCounter, $blogPageData)) && ($blogPageData[$articleCounter]['blogPageReleaseState'] == 'published')) {
if ($articleCounter == 0) {
echo "
<div>Aktuelles auf {$_SERVER['SERVER_NAME']}</div>
<br /><br />
";
} elseif ($blogPageData[$articleCounter]['blogPageCreationDate'] != $blogPageData[$articleCounter - 1]['blogPageCreationDate']) {
echo "
<hr /><br />
<div class='dateBox'>Beiträge vom {$blogPageData[$articleCounter]['blogPageCreationDate']}</div>
<br /><br />
";
}
include(phpConvertPageToFilesystemPath($blogPageData[$articleCounter]['includeFileData']));
$includedProductArrayId = key(array_slice($product, -1, 1, true));
$namespaceProduct = phpCreateDokuWikiConformName('wiki:ernährung:marke:' . $product[$includedProductArrayId]['marke']['wert']);
if ((!isset($blogPageData[$articleCounter]['blogPageCover'])) || (empty($blogPageData[$articleCounter]['blogPageCover']))) {
$blogCover = '';
$blogCoverArray = explode('_',end(explode(':',$blogPageData[$articleCounter]['includeFileData'])));
foreach ($blogCoverArray as $blogCoverString) {
if (strstr($blogCoverString, '-')) {
$blogCover .= $blogCoverString . '_';
} else {
$blogCover .= substr($blogCoverString, 0, 3) . '_';
}
}
$blogCover = $namespaceProduct . ':' . $blogCover . 'blog_cover.jpg';
} else {
$blogCover = $blogPageData[$articleCounter]['blogPageCover'];
}
$blogPageData[$articleCounter]['includedProductArrayId'] = $includedProductArrayId;
echo '
<div class="sectionbox-column">
<div class="titlebox">
<div class="titlebox-top"></html>' . $product[$includedProductArrayId]['marke']['wert'] . ' \\\\ ' . $product[$includedProductArrayId]['produktlinie']['wert'] . ' \\\\ ' . $product[$includedProductArrayId]['produktname']['wert'] . ' ' . $product[$includedProductArrayId]['produktnamenszusatz']['wert'] . '<html></div>
<div class="titlebox-bottom"></html>' . $blogPageData[$articleCounter]['blogPageCategories'] . '<html></div>
</div>
<div class="contentbox">
<div class="contentbox-information"></html>{{' . $blogCover . '?nolink}}<html><br /><br /></div>
</div>
<div class="eyecatcherbox">
<div class="eyecatcherbox-top"></html>' . $blogPageData[$articleCounter]['blogPageEyeCatcher'] . ' [[blog:ernaehrung:vorlagen:tpl_fleischlos_produkt_produkttest_call?currentPageId=' . end(explode( ':', $blogPageData[$articleCounter]['includeFileData'] )) . '¤tBlogContentFile=' . $blogPageData[$articleCounter]['blogPageDataFile'] . '|weiterlesen...]]<html></div>
<div class="eyecatcherbox-bottom"></html>' . $blogPageData[$articleCounter]['blogPageCreationDate'] . ', ' .$blogPageData[$articleCounter]['blogPageCreationTime'] . '<html></div>
</div>
</div>
';
}
}
echo '
</div>
<div class="contentbox-right">
';
include($sidebarRight);
echo '
</div>
<!– ################################################################################## ###### Voransicht-Box für Blog-Einträge (schließen) ################################################################################## –> </div> <!– ################################################################################## ###### parentbox umspannender Inhalts-Container (schließen) ################################################################################## –>
</div>
<script> var biggestHeight = 0; Loop through elements children to find & set the biggest height $(".parentbox*").each(function(){ If this elements height is bigger than the biggestHeight if ($(this).height() > biggestHeight ) {
// Set the biggestHeight to this Height biggestHeight = $(this).height();
} });
Set the container height $(".parentbox").height(biggestHeight); </script> '; ###### HTML-Tag schliessen
echo '</html>';
?>