archive-notice.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php
  2. /**
  3. * The template for displaying notice 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>Notice</li>
  19. </ul>
  20. </nav>
  21. <div class="content">
  22. <!-- left content -->
  23. <div class="left-content">
  24. <div class="main-title">Notice</div>
  25. <div class="short-details">
  26. Here you will have access to all United International University Notices.
  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. <section class="container">
  59. <div id="notice-container">
  60. <?php if (have_posts()) : ?>
  61. <?php while (have_posts()) : the_post(); ?>
  62. <!-- single notice -->
  63. <div class="notice">
  64. <div class="image">
  65. <img src="<?php echo get_the_post_thumbnail_url() ?>" alt="">
  66. </div>
  67. <div class="details">
  68. <!-- date -->
  69. <div class="date-container">
  70. <!-- icon -->
  71. <span class="icon">
  72. <img src="<?php echo (get_template_directory_uri()) ?>/img/calendar-days-regular.svg" alt="">
  73. </span>
  74. <!-- date -->
  75. <span class="date">
  76. June 4th, 2023
  77. </span>
  78. </div>
  79. <div class="title">
  80. <a href="<?php echo get_permalink(); ?>">
  81. <?php echo get_the_title(); ?>
  82. </a>
  83. </div>
  84. </div>
  85. </div>
  86. <?php endwhile; ?>
  87. <?php the_posts_navigation(); ?>
  88. <?php
  89. else :
  90. get_template_part('template-parts/content', 'none');
  91. endif;
  92. ?>
  93. </div>
  94. </section>
  95. </main><!-- #main -->
  96. <style>
  97. #notice-container {
  98. padding: 2rem 0;
  99. display: flex;
  100. flex-wrap: wrap;
  101. gap: 1.5rem;
  102. }
  103. #notice-container .notice {
  104. width: calc(25% - 1.5rem);
  105. margin-bottom: 1rem !important;
  106. }
  107. #notice-container .notice .image {
  108. width: 100%;
  109. border-bottom: 4px solid #F68B1F;
  110. overflow: hidden;
  111. }
  112. #notice-container .notice .image img {
  113. width: 100%;
  114. transition: 5s;
  115. }
  116. #notice-container .notice .image img:hover {
  117. transform: scale(1.5);
  118. }
  119. #notice-container .notice .details {
  120. padding: 0.25rem;
  121. }
  122. #notice-container .notice .details .date-container {
  123. margin-top: 0.75rem;
  124. font-size: 0.7rem;
  125. font-weight: 700;
  126. color: #2c5d73;
  127. display: flex;
  128. align-items: center;
  129. gap: 0.35rem;
  130. }
  131. #notice-container .notice .details .date-container .icon {
  132. width: 0.7rem;
  133. }
  134. #notice-container .notice .details .date-container .icon img {
  135. width: 100%;
  136. }
  137. #notice-container .notice .details .title {
  138. margin-top: 0.75rem;
  139. font-size: 0.9rem;
  140. color: #2c5d73;
  141. font-weight: 600;
  142. line-height: 1.4;
  143. }
  144. #notice-container .notice .details .title a {
  145. color: inherit !important;
  146. }
  147. /*# sourceMappingURL=archive-notice.css.map */
  148. </style>
  149. <?php
  150. get_footer();