archive-event.php 3.6 KB

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