<th>Дата</th> <th>Заглавие блога</th> <th>Краткое описание</th> <th>Редактировать</th> <th>Удалить</th> </tr> <?php foreach ($blogs as $blog) { ?> <tr> <td><?php echo (int) $blog['id']; ?> </td> <td class="my-date"><?php echo FunctionLibrary::dateFormat(htmlentities($blog['dt'])); ?> </td> <td><?php echo htmlentities($blog['title']); ?> </td> <td><?php echo $blog['description']; ?> </td> <td> <a href="/admin/blog/update/<?php echo (int) $blog['id']; ?> ">
<div class="col-sm-9 padding-right"> <div class="features_items"> <h2 class="title text-center">Блог</h2> <?php if (!empty($blog)) { ?> <div class="row my-blog-container"> <div class="col-sm-12 my-grey-color"> <h3 class="my-blog-h3"><?php echo htmlentities($blog['title']); ?> </h3> <p class="my-date-color"> <i class="fa fa-calendar"></i> <?php echo htmlentities(FunctionLibrary::dateFormat($blog['dt'], false)); ?> </p> <br> <div> <img src="/template<?php echo htmlentities($blog['image']); ?> " width="576" height="264" alt="image" > </div> <br> <br>
echo htmlentities($blog['image']); ?> " class="pull-left" width="288" height="132" alt="image" > <h4><?php echo htmlentities($blog['title']); ?> </h4> <p class="my-date-color"> <i class="fa fa-calendar"></i> <?php echo FunctionLibrary::dateFormat($blog['dt'], false); ?> </p> <p class="my-blog-description"><?php echo $blog['description']; ?> </p> <p> <a href="/blog/view/<?php echo (int) $blog['id']; ?> " class="my-orange-color"> Читать дальше > </a> </p> </div>