<!-- Content: Text-emphasis view --> <div class="vert_slots"></div> <?php // Title if (isset($page->versions[$page->version_index])) { if (!empty($page->color)) { echo '<div class="path_nav_color" style="background-color:' . $page->color . '"></div>'; } echo '<h4 class="content_title">' . $page->versions[$page->version_index]->title . '</h4>' . "\n"; } // Content if (isset($page->versions[$page->version_index]) && !empty($page->versions[$page->version_index]->content)) { echo '<div id="content">' . nl2brPre($page->versions[$page->version_index]->content) . '</div>'; } else { if ('Author' == $user_level) { echo $no_content_author; } else { echo $no_content; } } ?>
} else { echo lang('page.no_content'); } echo '</div>'; } else { // Content if (empty($page->versions[$page->version_index]->url)) { if (!empty($page->color)) { echo '<div class="path_nav_color" style="background-color:' . $page->color . '"></div>'; } echo '<h4 class="content_title">' . $page->versions[$page->version_index]->title . '</h4>' . "\n"; } echo '<div id="content">'; // Is a file? if (!empty($page->versions[$page->version_index]->url)) { echo '<a class="inline media_page" href="' . $page->versions[$page->version_index]->url . '" resource="' . $page->slug . '"></a>'; if (!empty($page->versions[$page->version_index]->content)) { echo '<br />'; } } $content = trim($page->versions[$page->version_index]->content); if (!empty($content)) { echo nl2brPre($page->versions[$page->version_index]->content); } else { // Put a message here? } echo "</div>\n"; } ?>
</div> </nav> <!-- Main Table Start--> <div class="table-responsive"> <table class="table table-bordered"> <?php foreach ($data as $m) { ?> <tr> <td class="col-md-3 col-xs-2"><?php echo (int) $m['uid'] ? $m['b_username'] : $m['user']; ?> </td> <td class=""><?php echo nl2brPre($m['post_content']); ?> </td> </tr> <?php } ?> </table> </div> <!-- Main Table End--> <?php if (ZFramework::app()->page_on) { ?> <ul class="pagination"> <?php
$result=safe_query("SELECT * FROM ".PREFIX."blog ORDER BY date DESC LIMIT 0,5"); $i=1; while($ds=mysql_fetch_array($result)) { $date = date("d.m.y", $ds['date']); $time = date("H:i", $ds['date']); $rubrik = getrubricname($ds['rubric']); $headline = $ds['headline']; $content = $ds['content']; if(empty($related)) $related="N/A"; ?> <p> </p> <strong>Rubrik: <?php echo $rubrik; ?></strong><hr color="#666666" size="1" /> <strong><?php echo $date. " | " .$headline; ?></strong><p> </p> <?php echo nl2brPre($content); ?> <?php $i++; unset($related); unset($comments); unset($lang); unset($ds); } } ?>