archive-success_story.php 5.4 KB

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