index.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php import::view(THEME.'header');?>
  2. <h1 class="my-4"><small></small></h1>
  3. <?php foreach (contentlist() as $key): ?>
  4. <!-- Blog Post -->
  5. <div class="card mb-4">
  6. <img class="card-img-top" src="<?php echo Afunc::resimgoster($key->content); ?>" alt="Card image cap" height="300">
  7. <div class="card-body">
  8. <h2 class="card-title"><?php echo $key->title ?></h2>
  9. <p class="card-text"><?php echo Afunc::kelimedenbol($key->content,'150'); ?></p>
  10. <a href="#" class="btn btn-primary"><?php echo ml::select('read'); ?> &rarr;</a>
  11. </div>
  12. <div class="card-footer text-muted">
  13. Ekleyen: <?php echo aFunc::tcevir($key->create_date); ?> by
  14. <a href="#"><?php echo author($key->author)->name; ?></a>
  15. </div>
  16. </div>
  17. <?php endforeach ?>
  18. <!-- Pagination -->
  19. <ul class="pagination justify-content-center mb-4">
  20. <li class="page-item">
  21. <a class="page-link" href="#">&larr; <?php echo ML::select('older'); ?></a>
  22. </li>
  23. <li class="page-item disabled">
  24. <a class="page-link" href="#"><?php echo ML::select('newer'); ?> &rarr;</a>
  25. </li>
  26. </ul>
  27. <?php import::view(THEME.'footer'); ?>