archive-faculty.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. /**
  3. * The template for displaying news archive page
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package UIU_CSE
  8. */
  9. get_header();
  10. ?>
  11. <main id="main" class="site-main" role="main">
  12. <div class="sections">
  13. <section id="all-faculties" class="container">
  14. <h2>List of Faculty Members of Department of CSE</h2>
  15. <!-- <hr> -->
  16. <div class="grid">
  17. <?php if (have_posts()) : ?>
  18. <?php while (have_posts()) : the_post(); ?>
  19. <div class="faculty-stub">
  20. <div class="stub-img-holder">
  21. <img class="stub-img" src="<?php the_field('profile_photo'); ?>" alt="">
  22. </div>
  23. <div class="archive-faculty-details">
  24. <a class="faculty-name" href="#"><h3><?php echo get_the_title(); ?></h3></a>
  25. <span class="faculty-designation">
  26. <?php the_field('designation'); ?>
  27. </span>
  28. </div>
  29. </div>
  30. <?php endwhile; ?>
  31. <?php the_posts_navigation(); ?>
  32. <?php
  33. else :
  34. get_template_part('template-parts/content', 'none');
  35. endif;
  36. ?>
  37. </div>
  38. <div class="grid">
  39. </div>
  40. </section>
  41. </div>
  42. </main><!-- #main -->
  43. <style>
  44. header {
  45. height: 100px !important;
  46. }
  47. #all-news {
  48. display: flex;
  49. flex-direction: column;
  50. }
  51. #all-news h2 {
  52. color: #000 !important;
  53. margin-top: 40px;
  54. margin-bottom: 20px;
  55. }
  56. #all-news .stub {
  57. margin: 30px auto;
  58. }
  59. #all-news .stub-img-holder {
  60. height: 200px;
  61. overflow: hidden;
  62. }
  63. #all-news .stub-img-holder img {
  64. height: 100%;
  65. width: 100%;
  66. -o-object-fit: cover;
  67. object-fit: cover;
  68. -o-object-position: center;
  69. object-position: center;
  70. }
  71. #all-news .news-date {
  72. display: block;
  73. color: #485680;
  74. font-weight: 800;
  75. font-size: 14px;
  76. margin: 10px 0px !important;
  77. }
  78. #all-news h3 {
  79. height: 50px;
  80. font-size: 18px;
  81. line-height: 22px;
  82. font-family: "Open Sans", sans-serif;
  83. color: #2F4858 !important;
  84. margin: 20px auto;
  85. }
  86. /*# sourceMappingURL=archive-news.css.map */
  87. </style>
  88. <?php
  89. get_footer();