archive-alumni.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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-alumni" class="container">
  14. <h2>All Alumni</h2>
  15. <hr>
  16. <div class="parent-grid">
  17. <?php if (have_posts()) : ?>
  18. <?php while (have_posts()) : the_post(); ?>
  19. <div class="alumni-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. <div class="archive-alumni-details">
  24. <a class="alumni-name" href="<?php echo get_the_permalink() ?>">
  25. <h3><?php echo get_the_title() ?></h3>
  26. </a>
  27. <span class="alumni-designation">
  28. <?php the_field('alumni_designation'); ?>
  29. </span>
  30. </div>
  31. </div>
  32. <?php endwhile; ?>
  33. </div>
  34. <?php the_posts_navigation(); ?>
  35. <?php
  36. else :
  37. get_template_part('template-parts/content', 'none');
  38. endif;
  39. ?>
  40. </section>
  41. </div>
  42. </main>
  43. <style>
  44. @import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap");
  45. @import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
  46. @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
  47. header {
  48. height: 100px !important;
  49. }
  50. #all-alumni h2 {
  51. color: #000 !important;
  52. margin-top: 40px;
  53. margin-bottom: 20px;
  54. }
  55. #all-alumni .alumni-stub {
  56. width: 100%;
  57. padding: 5px;
  58. box-shadow: 2px 2px 10px 6px rgba(0, 0, 0, 0.137254902);
  59. margin: 30px auto;
  60. }
  61. #all-alumni .stub-img-holder {
  62. border-radius: 4px !important;
  63. height: 160px;
  64. overflow: hidden;
  65. }
  66. #all-alumni .stub-img-holder img {
  67. border-radius: 0px !important;
  68. height: 100%;
  69. width: 100%;
  70. -o-object-fit: cover;
  71. object-fit: cover;
  72. -o-object-position: center;
  73. object-position: center;
  74. }
  75. #all-alumni .archive-alumni-details {
  76. height: 100px;
  77. padding: 0px 10px;
  78. }
  79. #all-alumni .archive-alumni-details .alumni-degree {
  80. display: inline-block;
  81. color: rgba(89, 107, 161, 0.5647058824);
  82. font-weight: 800;
  83. font-size: 14px;
  84. }
  85. #all-alumni .archive-alumni-details .alumni-designation {
  86. display: block;
  87. color: rgba(0, 0, 0, 0.5647058824);
  88. font-weight: 800;
  89. font-size: 14px;
  90. }
  91. #all-alumni .archive-alumni-details h3 {
  92. font-size: 18px;
  93. line-height: 22px;
  94. font-family: "Open Sans", sans-serif;
  95. color: #2F4858 !important;
  96. margin: 10px auto;
  97. }
  98. /*# sourceMappingURL=archive-alumni.css.map */
  99. header {
  100. height: 100px !important;
  101. }
  102. #all-news {
  103. display: flex;
  104. flex-direction: column;
  105. }
  106. #all-news h2 {
  107. color: #000 !important;
  108. margin-top: 40px;
  109. margin-bottom: 20px;
  110. }
  111. #all-news .stub {
  112. margin: 30px auto;
  113. }
  114. #all-news .stub-img-holder {
  115. height: 200px;
  116. overflow: hidden;
  117. }
  118. #all-news .stub-img-holder img {
  119. height: 100%;
  120. width: 100%;
  121. -o-object-fit: cover;
  122. object-fit: cover;
  123. -o-object-position: center;
  124. object-position: center;
  125. }
  126. #all-news .news-date {
  127. display: block;
  128. color: #485680;
  129. font-weight: 800;
  130. font-size: 14px;
  131. margin: 10px 0px !important;
  132. }
  133. #all-news h3 {
  134. height: 50px;
  135. font-size: 18px;
  136. line-height: 22px;
  137. font-family: "Open Sans", sans-serif;
  138. color: #2F4858 !important;
  139. margin: 20px auto;
  140. }
  141. /*# sourceMappingURL=archive-news.css.map */
  142. </style>
  143. <?php
  144. get_footer();