archive-alumni.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. <section id="archive-hero">
  13. <div class="container">
  14. <!-- breadcrumb -->
  15. <nav aria-label="breadcrumb">
  16. <ul>
  17. <li><a href="/">Home</a></li>
  18. <li>Alumni</li>
  19. </ul>
  20. </nav>
  21. <div class="content">
  22. <!-- left content -->
  23. <div class="left-content">
  24. <div class="main-title">Alumni</div>
  25. <div class="short-details">
  26. As a graduate you will have access to all United International University alumni services.
  27. </div>
  28. <div class="links">
  29. <!-- message -->
  30. <a href="#">
  31. <img src="<?php echo (get_template_directory_uri()) ?>/img/envelope-solid.svg" alt="">
  32. </a>
  33. <!-- printer -->
  34. <a href="#">
  35. <img src="<?php echo (get_template_directory_uri()) ?>/img/print-solid.svg" alt="">
  36. </a>
  37. <!-- facebook -->
  38. <a href="#">
  39. <img src="<?php echo (get_template_directory_uri()) ?>/img/facebook-f.svg" alt="">
  40. </a>
  41. <!-- twitter -->
  42. <a href="#">
  43. <img src="<?php echo (get_template_directory_uri()) ?>/img/twitter.svg" alt="">
  44. </a>
  45. <!-- linkedin -->
  46. <a href="#">
  47. <img src="<?php echo (get_template_directory_uri()) ?>/img/linkedin-in.svg" alt="">
  48. </a>
  49. </div>
  50. </div>
  51. <!-- right content -->
  52. <div class="right-content">
  53. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_07.jpg" alt="">
  54. </div>
  55. </div>
  56. </div>
  57. </section>
  58. <div class="sections">
  59. <section id="all-alumni" class="container">
  60. <!-- <hr> -->
  61. <div class="parent-grid">
  62. <?php if (have_posts()) : ?>
  63. <?php while (have_posts()) : the_post(); ?>
  64. <div class="alumni-stub grid-sub-item">
  65. <div class="stub-img-holder">
  66. <img class="stub-img" src="<?php the_field('profile_photo'); ?>" alt="">
  67. </div>
  68. <div class="archive-alumni-details">
  69. <a class="alumni-name" href="<?php echo get_the_permalink() ?>">
  70. <h3><?php echo get_the_title() ?></h3>
  71. </a>
  72. <span class="alumni-designation">
  73. <?php the_field('alumni_designation'); ?>
  74. </span>
  75. </div>
  76. </div>
  77. <?php endwhile; ?>
  78. </div>
  79. <?php the_posts_navigation(); ?>
  80. <?php
  81. else :
  82. get_template_part('template-parts/content', 'none');
  83. endif;
  84. ?>
  85. </section>
  86. </div>
  87. </main>
  88. <style>
  89. @import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap");
  90. @import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
  91. @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
  92. header {
  93. height: 100px !important;
  94. }
  95. #all-alumni h2 {
  96. color: #000 !important;
  97. margin-top: 40px;
  98. margin-bottom: 20px;
  99. }
  100. #all-alumni .alumni-stub {
  101. width: 100%;
  102. padding: 5px;
  103. box-shadow: 2px 2px 10px 6px rgba(0, 0, 0, 0.137254902);
  104. margin: 30px auto;
  105. }
  106. #all-alumni .stub-img-holder {
  107. border-radius: 4px !important;
  108. height: 160px;
  109. overflow: hidden;
  110. }
  111. #all-alumni .stub-img-holder img {
  112. border-radius: 0px !important;
  113. height: 100%;
  114. width: 100%;
  115. -o-object-fit: cover;
  116. object-fit: cover;
  117. -o-object-position: center;
  118. object-position: center;
  119. }
  120. #all-alumni .archive-alumni-details {
  121. height: 100px;
  122. padding: 0px 10px;
  123. }
  124. #all-alumni .archive-alumni-details .alumni-degree {
  125. display: inline-block;
  126. color: rgba(89, 107, 161, 0.5647058824);
  127. font-weight: 800;
  128. font-size: 14px;
  129. }
  130. #all-alumni .archive-alumni-details .alumni-designation {
  131. display: block;
  132. color: rgba(0, 0, 0, 0.5647058824);
  133. font-weight: 800;
  134. font-size: 14px;
  135. }
  136. #all-alumni .archive-alumni-details h3 {
  137. font-size: 18px;
  138. line-height: 22px;
  139. font-family: "Open Sans", sans-serif;
  140. color: #2F4858 !important;
  141. margin: 10px auto;
  142. }
  143. /*# sourceMappingURL=archive-alumni.css.map */
  144. header {
  145. height: 100px !important;
  146. }
  147. #all-news {
  148. display: flex;
  149. flex-direction: column;
  150. }
  151. #all-news h2 {
  152. color: #000 !important;
  153. margin-top: 40px;
  154. margin-bottom: 20px;
  155. }
  156. #all-news .stub {
  157. margin: 30px auto;
  158. }
  159. #all-news .stub-img-holder {
  160. height: 200px;
  161. overflow: hidden;
  162. }
  163. #all-news .stub-img-holder img {
  164. height: 100%;
  165. width: 100%;
  166. -o-object-fit: cover;
  167. object-fit: cover;
  168. -o-object-position: center;
  169. object-position: center;
  170. }
  171. #all-news .news-date {
  172. display: block;
  173. color: #485680;
  174. font-weight: 800;
  175. font-size: 14px;
  176. margin: 10px 0px !important;
  177. }
  178. #all-news h3 {
  179. height: 50px;
  180. font-size: 18px;
  181. line-height: 22px;
  182. font-family: "Open Sans", sans-serif;
  183. color: #2F4858 !important;
  184. margin: 20px auto;
  185. }
  186. /*# sourceMappingURL=archive-news.css.map */
  187. </style>
  188. <?php
  189. get_footer();