archive-event.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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="primary" class="site-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>Events</li>
  20. </ul>
  21. </nav>
  22. <div class="content">
  23. <!-- left content -->
  24. <div class="left-content">
  25. <div class="main-title">Events</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-events" class="container">
  61. <!-- <hr> -->
  62. <div class="parent-grid">
  63. <?php if (have_posts()) : ?>
  64. <?php while (have_posts()) : the_post(); ?>
  65. <div class="stub grid-sub-item">
  66. <div class="stub-img-holder">
  67. <img class="stub-img" src="<?php echo get_the_post_thumbnail_url() ?>" alt="">
  68. </div>
  69. <a href="<?php echo get_permalink(); ?>">
  70. <h3><?php echo get_the_title(); ?></h3>
  71. </a>
  72. <span class="events-date">Venue: <?php the_field('event_venue'); ?></span>
  73. <span class="events-date"><?php the_field('event_date_start'); ?> --- <?php the_field('event_date_end'); ?></span>
  74. </div>
  75. <?php endwhile; ?>
  76. <?php the_posts_navigation(); ?>
  77. <?php
  78. else :
  79. get_template_part('template-parts/content', 'none');
  80. endif;
  81. ?>
  82. </div>
  83. </section>
  84. </div>
  85. </main><!-- #main -->
  86. <style>
  87. @import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap");
  88. @import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");
  89. @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css);
  90. header {
  91. height: 100px !important;
  92. }
  93. #all-events {
  94. display: flex;
  95. flex-direction: column;
  96. }
  97. #all-events h2 {
  98. color: #000 !important;
  99. margin-top: 40px;
  100. margin-bottom: 20px;
  101. }
  102. #all-events .stub {
  103. margin: 30px auto;
  104. }
  105. #all-events .stub-img-holder {
  106. height: 200px;
  107. overflow: hidden;
  108. }
  109. #all-events .stub-img-holder img {
  110. height: 100%;
  111. width: 100%;
  112. -o-object-fit: cover;
  113. object-fit: cover;
  114. -o-object-position: center;
  115. object-position: center;
  116. }
  117. #all-events .events-date {
  118. display: block;
  119. color: #485680;
  120. font-weight: 800;
  121. font-size: 14px;
  122. margin: 10px 0px !important;
  123. }
  124. #all-events h3 {
  125. height: 50px;
  126. font-size: 18px;
  127. line-height: 22px;
  128. font-family: "Open Sans", sans-serif;
  129. color: #2F4858 !important;
  130. margin: 20px auto;
  131. }
  132. /*# sourceMappingURL=archive-events.css.map */
  133. </style>
  134. <?php
  135. get_footer();