<?php ################################################################################## ###### Hauptanweisungen ################################################################################## ###### HTML-Tag oeffnen
echo '<html>';
//###### Funktionsaufruf (alle Dateien sammeln) und anschliessend sortieren
$blogPageData = recursiveScan($convertedPath, $excludeArray);
array_multisort(array_column($blogPageData, 'blogPageCreationTimeStamp'), SORT_DESC, $blogPageData );
//$date = DateTime::createFromFormat('d/m/Y', $str);
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)) {
if ($articleCounter == 0) {
echo "
<div class='dateBox'>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 />
";
}
echo '
<div class="sectionbox-column">
<div class="titlebox">
<div class="titlebox-top"></html>' . $blogPageData[$articleCounter]['blogPageTitle'] . '<html></div>
<div class="titlebox-bottom"></html>' . $blogPageData[$articleCounter]['blogPageCategories'] . '<html></div>
</div>
<div class="contentbox">
<div class="contentbox-information"></html>{{' . $blogPageData[$articleCounter]['blogPageCover'] . '?nolink}}<html><br /><br /></div>
</div>
<div class="eyecatcherbox">
<div class="eyecatcherbox-top"></html>' . $blogPageData[$articleCounter]['blogPageEyeCatcher'] . '[[' . $blogPageData[$articleCounter]['blogPageFull'] . '|weiterlesen...]]<html></div>
<div class="eyecatcherbox-bottom"></html>' . $blogPageData[$articleCounter]['blogPageCreationDate'] . ', ' .$blogPageData[$articleCounter]['blogPageCreationTime'] . '<html></div>
</div>
</div>
';
}
}
echo '
</div>
<div class="contentbox-right"></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>';
?>