single-event.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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">Duration: <?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. footer.container-fluid {
  48. margin-top: 80px;
  49. }
  50. p {
  51. max-width: 100% !important;
  52. }
  53. header {
  54. height: 100px !important;
  55. }
  56. #event-single-header .event-date {
  57. font-size: 16px;
  58. color: #2F4858;
  59. display: block;
  60. margin-bottom: 30px;
  61. }
  62. #event-single-header h1 {
  63. color: #000 !important;
  64. font-family: "DM Serif Text", serif;
  65. margin-bottom: 10px !important;
  66. }
  67. #event-single-header h5 {
  68. margin-top: 30px;
  69. font-size: 30px;
  70. color: #2F4858;
  71. }
  72. #event-single-header .subtext {
  73. font-size: 22px !important;
  74. color: #2F4858 !important;
  75. }
  76. #event-single-header .event-published-date {
  77. display: block;
  78. color: #485680;
  79. font-weight: 800;
  80. font-size: 14px;
  81. }
  82. .event-socials {
  83. margin: 20px 20px !important;
  84. font-size: 26x;
  85. }
  86. .event-socials a {
  87. margin: 0px 15px;
  88. }
  89. .social-icons {
  90. color: #2F4858;
  91. }
  92. .event-single-body {
  93. max-width: 900px !important;
  94. margin: 30px auto !important;
  95. }
  96. .event-single-body p {
  97. text-align: justify;
  98. font-size: 18px;
  99. color: #2F4858 !important;
  100. }
  101. .event-single-body ul li {
  102. list-style: none;
  103. color: #2F4858;
  104. font-size: 16px;
  105. }
  106. .event-single-body h3 {
  107. font-family: "DM Serif Text", serif;
  108. font-size: 26px;
  109. color: #2F4858;
  110. }
  111. .event-single-body .event-image img {
  112. width: 100%;
  113. margin-bottom: 30px;
  114. }
  115. .img-caption {
  116. font-size: 14px;
  117. color: #475481 !important;
  118. line-height: 14px;
  119. }
  120. /*# sourceMappingURL=single-event.css.map */
  121. </style>
  122. <?php get_footer(); ?>