archive-faculty.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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="parent-grid">
  17. <?php if (have_posts()) : ?>
  18. <?php while (have_posts()) : the_post(); ?>
  19. <div class="faculty-stub grid-sub-item">
  20. <div class="stub-img-holder">
  21. <img class="stub-img" src="<?php the_field('profile_photo'); ?>" alt="">
  22. </div>
  23. <a class="faculty-link" href="<?php echo get_the_permalink(); ?>">
  24. <div class="archive-faculty-details">
  25. <h3><?php echo get_the_title(); ?></h3>
  26. <span class="faculty-designation">
  27. Department of Computer Science and Engineering
  28. <?php //the_field('designation');
  29. ?>
  30. </span>
  31. </div>
  32. </a>
  33. </div>
  34. <?php endwhile; ?>
  35. <?php the_posts_navigation(); ?>
  36. <?php
  37. else :
  38. get_template_part('template-parts/content', 'none');
  39. endif;
  40. ?>
  41. </div>
  42. <div class="grid">
  43. </div>
  44. </section>
  45. </div>
  46. </main><!-- #main -->
  47. <style>
  48. @import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap");
  49. @import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
  50. @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
  51. header {
  52. height: 100px !important;
  53. }
  54. #all-faculties h2 {
  55. color: #000 !important;
  56. margin-top: 40px;
  57. margin-bottom: 20px;
  58. }
  59. #all-faculties .faculty-stub {
  60. width: 100%;
  61. padding: 5px;
  62. box-shadow: 2px 2px 10px 6px rgba(0, 0, 0, 0.137254902);
  63. margin: 30px auto;
  64. }
  65. #all-faculties .stub-img-holder {
  66. border-radius: 4px !important;
  67. height: 160px;
  68. overflow: hidden;
  69. }
  70. #all-faculties .stub-img-holder img {
  71. border-radius: 0px !important;
  72. height: 100%;
  73. width: 100%;
  74. -o-object-fit: cover;
  75. object-fit: cover;
  76. -o-object-position: center;
  77. object-position: center;
  78. }
  79. #all-faculties .archive-faculty-details {
  80. height: 100px;
  81. padding: 0px 10px;
  82. }
  83. #all-faculties .archive-faculty-details .faculty-degree {
  84. display: inline-block;
  85. color: rgba(89, 107, 161, 0.5647058824);
  86. font-weight: 800;
  87. font-size: 14px;
  88. }
  89. #all-faculties .archive-faculty-details .faculty-designation {
  90. display: block;
  91. color: rgba(0, 0, 0, 0.5647058824);
  92. font-weight: 800;
  93. font-size: 14px;
  94. }
  95. #all-faculties .archive-faculty-details h3 {
  96. font-size: 18px;
  97. line-height: 22px;
  98. font-family: "Open Sans", sans-serif;
  99. color: #2F4858 !important;
  100. margin: 10px auto;
  101. }
  102. /*# sourceMappingURL=archive-faculty.css.map */
  103. </style>
  104. <?php
  105. get_footer();