single-event.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. /**
  3. * The template for displaying all single event posts
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6. *
  7. * @package UIU_CSE
  8. */
  9. get_header(); ?>
  10. <?php while (have_posts()) : the_post(); ?>
  11. <main id="main" class="site-main" role="main">
  12. <div class="sections">
  13. <section id="event-single-header" class="container">
  14. <h5>Event</h5>
  15. <h1><?php echo get_the_title(); ?></h1>
  16. <p class="subtext">
  17. <strong>Venue: </strong><?php the_field('event_venue'); ?>
  18. </p>
  19. <span class="news-date single"><?php the_field('news_date'); ?></span>
  20. <span class="event-published-date">Date & Time: <?php the_field('event_date_start'); ?> to <?php the_field('event_date_end'); ?></span>
  21. <hr>
  22. <div class="event-socials">
  23. <div>
  24. SHARE:
  25. <a href="#" class="social-icons"><i class="fa-brands fa-facebook-f"></i></a>
  26. <a href="#" class="social-icons"><i class="fa-brands fa-twitter"></i></a>
  27. <a href="#" class="social-icons"><i class="fa-brands fa-linkedin-in"></i></a>
  28. </div>
  29. </div>
  30. </section>
  31. <section id="news-single-header" class="container">
  32. <div class="news-single-body">
  33. <div class="article-cover-image">
  34. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  35. <span class="img-caption"> </span>
  36. </div>
  37. <div class="article">
  38. <?php echo get_the_content(); ?>
  39. </div>
  40. <hr>
  41. </div>
  42. </section>
  43. </div>
  44. </main>
  45. <?php endwhile; ?>
  46. <style>
  47. p {
  48. max-width: 100% !important;
  49. }
  50. header {
  51. height: 100px !important;
  52. }
  53. #event-single-header .event-date {
  54. font-size: 16px;
  55. color: #2F4858;
  56. display: block;
  57. margin-bottom: 30px;
  58. }
  59. #event-single-header h1 {
  60. color: #000 !important;
  61. font-family: "DM Serif Text", serif;
  62. margin-bottom: 10px !important;
  63. }
  64. #event-single-header h5 {
  65. margin-top: 30px;
  66. font-size: 30px;
  67. color: #2F4858;
  68. }
  69. #event-single-header .subtext {
  70. font-size: 22px !important;
  71. color: #2F4858 !important;
  72. }
  73. #event-single-header .event-published-date {
  74. display: block;
  75. color: #485680;
  76. font-weight: 800;
  77. font-size: 14px;
  78. }
  79. .event-socials {
  80. margin: 20px 20px !important;
  81. font-size: 26x;
  82. }
  83. .event-socials a {
  84. margin: 0px 15px;
  85. }
  86. .social-icons {
  87. color: #2F4858;
  88. }
  89. .event-single-body {
  90. max-width: 900px !important;
  91. margin: 30px auto !important;
  92. }
  93. .event-single-body p {
  94. text-align: justify;
  95. font-size: 18px;
  96. color: #2F4858 !important;
  97. }
  98. .event-single-body ul li {
  99. list-style: none;
  100. color: #2F4858;
  101. font-size: 16px;
  102. }
  103. .event-single-body h3 {
  104. font-family: "DM Serif Text", serif;
  105. font-size: 26px;
  106. color: #2F4858;
  107. }
  108. .event-single-body .event-image img {
  109. width: 100%;
  110. margin-bottom: 30px;
  111. }
  112. .img-caption {
  113. font-size: 14px;
  114. color: #475481 !important;
  115. line-height: 14px;
  116. }
  117. /*# sourceMappingURL=single-event.css.map */
  118. </style>
  119. <?php get_footer(); ?>