single-alumni.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?php
  2. /**
  3. * The template for displaying all single ccess_story 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="success-single-header" class="container">
  14. <h5>Alumni</h5>
  15. <nav class="breadcrumb" aria-label="breadcrumb">
  16. <ul>
  17. <li><a href="/">Home</a></li>
  18. <li><a href="/alumni/">Alumni</a></li>
  19. </ul>
  20. </nav>
  21. <div class="success-img-title">
  22. <img src=" <?php the_field('profile_photo'); ?>" alt="">
  23. <div class="success-name">
  24. <h1><?php echo get_the_title(); ?></h1>
  25. <span class="subtext">
  26. <?php the_field('alumni_designation'); ?>
  27. </span>
  28. </div>
  29. </div>
  30. <hr>
  31. <div class="success-socials">
  32. <div>
  33. SHARE:
  34. <a href="#" class="social-icons"><i class="fa-brands fa-facebook-f"></i></a>
  35. <a href="#" class="social-icons"><i class="fa-brands fa-twitter"></i></a>
  36. <a href="#" class="social-icons"><i class="fa-brands fa-linkedin-in"></i></a>
  37. </div>
  38. </div>
  39. </section>
  40. <section id="success-single-body" class="container">
  41. <div class="success-single-text">
  42. <?php if (has_post_thumbnail()) : ?>
  43. <div class="article-cover-image">
  44. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  45. <span class="img-caption"> </span>
  46. </div>
  47. <?php endif ?>
  48. <div class="article">
  49. <?php echo the_content(); ?>
  50. </div>
  51. <hr>
  52. </div>
  53. </section>
  54. </div>
  55. </main>
  56. <?php endwhile; ?>
  57. <style>
  58. p {
  59. max-width: 100% !important;
  60. }
  61. header {
  62. height: 100px !important;
  63. }
  64. #success-single-header {
  65. padding-top: 40px !important;
  66. display: flex;
  67. flex-direction: column;
  68. justify-content: center;
  69. align-items: flex-start;
  70. margin-bottom: 40px !important;
  71. }
  72. #success-single-header hr {
  73. margin: 10px 0px !important;
  74. width: 100%;
  75. }
  76. #success-single-header h5 {
  77. font-size: 30px;
  78. color: #2F4858;
  79. }
  80. #success-single-header .success-img-title {
  81. display: flex;
  82. flex-direction: row;
  83. justify-content: flex-start;
  84. align-items: flex-start;
  85. }
  86. #success-single-header .success-img-title img {
  87. height: 150px;
  88. width: 150px;
  89. -o-object-fit: cover;
  90. object-fit: cover;
  91. }
  92. #success-single-header .success-img-title .success-name {
  93. height: 150px;
  94. display: flex;
  95. flex-direction: column;
  96. justify-content: center;
  97. align-items: flex-start;
  98. padding: 10px 20px;
  99. }
  100. #success-single-header .success-img-title .success-name .subtext {
  101. display: block;
  102. color: #2F4858;
  103. }
  104. #success-single-header .success-img-title .success-name h1 {
  105. margin: 0px !important;
  106. color: #000;
  107. font-family: "DM Serif Text", serif;
  108. font-size: 30px !important;
  109. }
  110. #success-single-header .success-socials {
  111. margin: 0px 20px !important;
  112. font-size: 26x;
  113. }
  114. #success-single-header .success-socials a {
  115. margin: 0px 10px;
  116. }
  117. .success-single-text {
  118. max-width: 900px;
  119. margin: 0px auto 100px !important;
  120. }
  121. .success-single-text p {
  122. text-align: justify;
  123. color: #2F4858;
  124. }
  125. #success-single-header h5 {
  126. margin-top: 30px;
  127. margin-bottom: unset;
  128. font-size: 30px;
  129. }
  130. #success-single-header .breadcrumb {
  131. margin-top: 0 !important;
  132. margin-bottom: 1rem;
  133. }
  134. #success-single-header .breadcrumb li {
  135. padding-top: 10px;
  136. padding-bottom: 10px;
  137. font-size: 0.8rem;
  138. font-weight: 600;
  139. }
  140. /*# sourceMappingURL=single-success.css.map */
  141. #success-single-header .success-img-title {
  142. margin-bottom: 2rem;
  143. }
  144. </style>
  145. <?php get_footer(); ?>