page-archive-success_story.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?php
  2. /**
  3. * The template for displaying news archive page
  4. *
  5. * Template Name: Archive - Success Story
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  8. *
  9. * @package UIU_DEPARTMENTAL
  10. */
  11. get_header();
  12. ?>
  13. <main id="main" class="site-main" role="main">
  14. <section id="archive-hero">
  15. <div class="container">
  16. <!-- breadcrumb -->
  17. <nav aria-label="breadcrumb">
  18. <ul>
  19. <li><a href="/">Home</a></li>
  20. <li>Student Success</li>
  21. </ul>
  22. </nav>
  23. <div class="content">
  24. <!-- left content -->
  25. <div class="left-content">
  26. <div class="main-title">Success Stories</div>
  27. <div class="short-details">
  28. Here you will have access to all United International University Student Success Stories.
  29. </div>
  30. <div class="links">
  31. <!-- message -->
  32. <a href="#">
  33. <img src="<?php echo (get_template_directory_uri()) ?>/img/envelope-solid.svg" alt="">
  34. </a>
  35. <!-- printer -->
  36. <a href="#">
  37. <img src="<?php echo (get_template_directory_uri()) ?>/img/print-solid.svg" alt="">
  38. </a>
  39. <!-- facebook -->
  40. <a href="#">
  41. <img src="<?php echo (get_template_directory_uri()) ?>/img/facebook-f.svg" alt="">
  42. </a>
  43. <!-- twitter -->
  44. <a href="#">
  45. <img src="<?php echo (get_template_directory_uri()) ?>/img/twitter.svg" alt="">
  46. </a>
  47. <!-- linkedin -->
  48. <a href="#">
  49. <img src="<?php echo (get_template_directory_uri()) ?>/img/linkedin-in.svg" alt="">
  50. </a>
  51. </div>
  52. </div>
  53. <!-- right content -->
  54. <div class="right-content">
  55. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_07.jpg" alt="">
  56. </div>
  57. </div>
  58. </div>
  59. </section>
  60. <div class="sections">
  61. <section id="all-alumni" class="container">
  62. <!-- <hr> -->
  63. <div class="parent-grid">
  64. <?php
  65. $args = array(
  66. 'post_type' => 'success_story',
  67. 'meta_query' => array(
  68. 'relation' => 'OR',
  69. array(
  70. 'key' => 'related_institutes',
  71. 'value' => 'BBA',
  72. 'compare' => 'LIKE'
  73. ),
  74. array(
  75. 'key' => 'related_institutes',
  76. 'value' => 'sobe',
  77. 'compare' => 'LIKE'
  78. ),
  79. array(
  80. 'key' => 'related_institutes',
  81. 'value' => 'all_departments',
  82. 'compare' => 'LIKE'
  83. ),
  84. array(
  85. 'key' => 'related_institutes',
  86. 'value' => 'all_sites',
  87. 'compare' => 'LIKE'
  88. )
  89. ),
  90. 'posts_per_page' => 6,
  91. 'orderby' => 'date',
  92. 'order' => 'DESC',
  93. );
  94. $query = new WP_Query($args);
  95. if ($query->have_posts()) :
  96. while ($query->have_posts()) :
  97. $query->the_post(); ?>
  98. <div class="alumni-stub grid-sub-item">
  99. <div class="stub-img-holder">
  100. <img class="stub-img" src="<?php the_field('profile_image'); ?>" alt="">
  101. </div>
  102. <div class="archive-alumni-details">
  103. <a class="alumni-name" href="<?php echo get_the_permalink() ?>">
  104. <h3><?php echo get_the_title() ?></h3>
  105. </a>
  106. <span class="alumni-designation">
  107. <?php the_field('student_designation'); ?>
  108. </span>
  109. </div>
  110. </div>
  111. <?php endwhile; ?>
  112. </div>
  113. <?php the_posts_navigation(); ?>
  114. <?php
  115. else :
  116. get_template_part('template-parts/content', 'none');
  117. endif;
  118. ?>
  119. </section>
  120. </div>
  121. </main>
  122. <style>
  123. @import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap");
  124. @import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
  125. @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
  126. header {
  127. height: 100px !important;
  128. }
  129. #all-alumni h2 {
  130. color: #000 !important;
  131. margin-top: 40px;
  132. margin-bottom: 20px;
  133. }
  134. #all-alumni .alumni-stub {
  135. width: 100%;
  136. padding: 5px;
  137. box-shadow: 2px 2px 10px 6px rgba(0, 0, 0, 0.137254902);
  138. margin: 30px auto;
  139. }
  140. #all-alumni .stub-img-holder {
  141. border-radius: 4px !important;
  142. height: 160px;
  143. overflow: hidden;
  144. }
  145. #all-alumni .stub-img-holder img {
  146. border-radius: 0px !important;
  147. height: 100%;
  148. width: 100%;
  149. -o-object-fit: cover;
  150. object-fit: cover;
  151. -o-object-position: center;
  152. object-position: center;
  153. }
  154. #all-alumni .archive-alumni-details {
  155. height: 100px;
  156. padding: 0px 10px;
  157. }
  158. #all-alumni .archive-alumni-details .alumni-degree {
  159. display: inline-block;
  160. color: rgba(89, 107, 161, 0.5647058824);
  161. font-weight: 800;
  162. font-size: 14px;
  163. }
  164. #all-alumni .archive-alumni-details .alumni-designation {
  165. display: block;
  166. color: rgba(0, 0, 0, 0.5647058824);
  167. font-weight: 800;
  168. font-size: 14px;
  169. }
  170. #all-alumni .archive-alumni-details h3 {
  171. font-size: 18px;
  172. line-height: 22px;
  173. font-family: "Open Sans", sans-serif;
  174. color: #2F4858 !important;
  175. margin: 10px auto;
  176. }
  177. /*# sourceMappingURL=archive-alumni.css.map */
  178. header {
  179. height: 100px !important;
  180. }
  181. #all-news {
  182. display: flex;
  183. flex-direction: column;
  184. }
  185. #all-news h2 {
  186. color: #000 !important;
  187. margin-top: 40px;
  188. margin-bottom: 20px;
  189. }
  190. #all-news .stub {
  191. margin: 30px auto;
  192. }
  193. #all-news .stub-img-holder {
  194. height: 200px;
  195. overflow: hidden;
  196. }
  197. #all-news .stub-img-holder img {
  198. height: 100%;
  199. width: 100%;
  200. -o-object-fit: cover;
  201. object-fit: cover;
  202. -o-object-position: center;
  203. object-position: center;
  204. }
  205. #all-news .news-date {
  206. display: block;
  207. color: #485680;
  208. font-weight: 800;
  209. font-size: 14px;
  210. margin: 10px 0px !important;
  211. }
  212. #all-news h3 {
  213. height: 50px;
  214. font-size: 18px;
  215. line-height: 22px;
  216. font-family: "Open Sans", sans-serif;
  217. color: #2F4858 !important;
  218. margin: 20px auto;
  219. }
  220. /*# sourceMappingURL=archive-news.css.map */
  221. /* added by rousnay */
  222. #all-alumni .alumni-stub {
  223. position: relative;
  224. padding: 0 !important;
  225. }
  226. #all-alumni .stub-img-holder {
  227. height: 200px;
  228. }
  229. #all-alumni .archive-alumni-details {
  230. height: 73px;
  231. padding: 0px 10px;
  232. position: absolute;
  233. bottom: 0;
  234. background: rgba(1, 1, 1, .7);
  235. width: 100%;
  236. border-bottom-left-radius: 4px !important;
  237. border-bottom-right-radius: 4px !important;
  238. }
  239. #all-alumni .archive-alumni-details h3 {
  240. color: white !important;
  241. }
  242. #all-alumni .archive-alumni-details span {
  243. color: #f68b1f !important;
  244. }
  245. </style>
  246. <?php
  247. get_footer();