single-faculty.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <?php
  2. /**
  3. * The template for displaying all single faculty posts
  4. *
  5. * @package UIU_CSE
  6. */
  7. get_header(); ?>
  8. <?php while (have_posts()) : the_post(); ?>
  9. <section class="static-banner">
  10. <div class="static-banner-underlay">
  11. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  12. </div>
  13. <div class="static-banner-overlay"></div>
  14. </section>
  15. <main>
  16. <section class="profile-header">
  17. <div class="profile-main">
  18. <div class="container">
  19. <div class="top-row">
  20. <div class="profile-img-container">
  21. <img src="<?php the_field('profile_photo'); ?>" alt="">
  22. </div>
  23. <div class="profile-header-text">
  24. <!-- <h3 class="sub-title">Faculty Profile</h3> -->
  25. <h1 class="profile-name">
  26. <?php echo get_the_title(); ?>
  27. </h1>
  28. <h2 class="profile-des">
  29. <?php the_field('designation'); ?>
  30. </h2>
  31. <?php if (have_rows('contact_details')) : ?>
  32. <?php while (have_rows('contact_details')) : the_row(); ?>
  33. <span class="contact-dets"><?php the_sub_field('contact_info'); ?></span>
  34. <?php
  35. // $sub_field_3 = get_sub_field('sub_field_3');
  36. // do something with $sub_field_3
  37. ?>
  38. <?php endwhile; ?>
  39. <?php endif; ?>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </section>
  45. <section class="profile-body primary-c">
  46. <div class="container">
  47. <div class="profile-second-row">
  48. <div class="left-col">
  49. <ul class="profile-choices">
  50. </ul>
  51. </div>
  52. <div class="profile-main-description">
  53. <?php if (have_rows('main_information')) : ?>
  54. <?php while (have_rows('main_information')) : the_row(); ?>
  55. <span class="contact-dets"></span>
  56. <div class="bio desc-block">
  57. <h2 class="m-text"><?php the_sub_field('title'); ?></h2>
  58. <p class="m-text">
  59. <?php the_sub_field('contents'); ?>
  60. </p>
  61. </div>
  62. <?php endwhile; ?>
  63. <?php endif; ?>
  64. </div>
  65. </div>
  66. </div>
  67. </section>
  68. </main>
  69. <!-- #main -->
  70. <?php endwhile; // end of the loop.
  71. ?>
  72. <style>
  73. header {
  74. margin: 0px !important;
  75. padding: 0px !important;
  76. height: 350px;
  77. overflow: hidden;
  78. }
  79. main {
  80. min-height: calc(100vh - 400px);
  81. position: relative;
  82. padding: 0px !important;
  83. background: rgb(56, 32, 23);
  84. background: linear-gradient(180deg, rgb(48, 18, 7) 0%, rgb(40, 21, 13) 22%, rgb(5, 0, 6) 100%);
  85. height: 100%;
  86. }
  87. h1 {
  88. font-family: "DM Serif Text", serif;
  89. font-size: 40px !important;
  90. letter-spacing: 2px !important;
  91. line-height: 110%;
  92. color: #fff;
  93. width: 100%;
  94. margin: 20px auto !important;
  95. text-align: left;
  96. }
  97. h2 {
  98. font-family: "DM Serif Text", serif;
  99. font-size: 40px;
  100. line-height: 45px;
  101. color: #ffc3c3;
  102. width: 100%;
  103. margin: 20px auto;
  104. text-align: left;
  105. }
  106. p {
  107. max-width: 1200px;
  108. font-size: 18px;
  109. color: #ffc3c3;
  110. margin: 50px 15px !important;
  111. }
  112. .desc-block ul>li {
  113. list-style: none;
  114. font-size: 16px;
  115. line-height: 20px;
  116. font-size: 18px;
  117. color: #ffc3c3;
  118. }
  119. .static-banner {
  120. position: relative;
  121. }
  122. .static-banner .static-banner-underlay {
  123. position: fixed;
  124. height: 100%;
  125. width: 100%;
  126. top: 0px;
  127. }
  128. .static-banner .static-banner-underlay img {
  129. height: 100%;
  130. width: 100%;
  131. -o-object-fit: cover;
  132. object-fit: cover;
  133. -o-object-position: bottom;
  134. object-position: bottom;
  135. }
  136. .static-banner .static-banner-overlay {
  137. position: fixed;
  138. width: 100%;
  139. height: 100%;
  140. background-color: #0b1419;
  141. opacity: 0.8;
  142. }
  143. .profile-header {
  144. position: absolute;
  145. top: -300px;
  146. width: 100%;
  147. }
  148. .top-row {
  149. display: flex;
  150. flex-direction: row;
  151. margin-top: 50px;
  152. }
  153. @media screen and (max-width: 600px) {
  154. .top-row {
  155. display: flex;
  156. flex-direction: column;
  157. justify-content: center;
  158. align-items: center;
  159. margin-top: -10px;
  160. }
  161. }
  162. .profile-img-container {
  163. flex-basis: 200px;
  164. border-radius: 50%;
  165. border: 2px solid #F68B1F;
  166. overflow: hidden;
  167. }
  168. .profile-img-container img {
  169. height: 100%;
  170. width: 100%;
  171. -o-object-position: top;
  172. object-position: top;
  173. -o-object-fit: cover;
  174. object-fit: cover;
  175. }
  176. @media screen and (max-width: 600px) {
  177. .profile-img-container {
  178. flex-basis: 100px;
  179. width: 100px !important;
  180. height: 100px !important;
  181. border-radius: 50%;
  182. border: 2px solid #F68B1F;
  183. overflow: hidden;
  184. }
  185. }
  186. .profile-header-text {
  187. margin: 20px 0px 0px 50px !important;
  188. }
  189. @media screen and (max-width: 600px) {
  190. .profile-header-text {
  191. margin: 20px 0px !important;
  192. }
  193. }
  194. .profile-header-text h1 {
  195. font-size: 40px !important;
  196. margin: 5px 0px !important;
  197. }
  198. .profile-header-text h2 {
  199. font-size: 20px !important;
  200. line-height: 24px !important;
  201. color: #fff;
  202. letter-spacing: 2px;
  203. font-weight: normal;
  204. margin: 5px 0px !important;
  205. }
  206. .profile-header-text .contact-dets {
  207. display: inline-block;
  208. font-size: 12px;
  209. margin-top: 15px !important;
  210. margin-right: 20px !important;
  211. font-weight: lighter;
  212. color: #fff;
  213. letter-spacing: 2px;
  214. }
  215. .profile-header-text h3 {
  216. font-size: 14px !important;
  217. text-transform: uppercase;
  218. text-decoration: none !important;
  219. font-family: "Open Sans", sans-serif;
  220. letter-spacing: 2px;
  221. text-align: center !important;
  222. font-weight: normal;
  223. margin: 5px 0px 0px 0px !important;
  224. text-align: left !important;
  225. }
  226. @media screen and (max-width: 700px) {
  227. .profile-header-text {
  228. text-align: center;
  229. }
  230. .profile-header-text h1 {
  231. font-size: 20px !important;
  232. margin: 5px 0px 0px 0px !important;
  233. text-align: center;
  234. }
  235. .profile-header-text h2 {
  236. font-size: 14px !important;
  237. line-height: 16px !important;
  238. color: #fff;
  239. letter-spacing: 2px;
  240. font-weight: normal;
  241. margin: 5px 0px 10px 0px !important;
  242. text-align: center;
  243. }
  244. .profile-header-text h3 {
  245. font-size: 14px !important;
  246. text-transform: uppercase;
  247. text-decoration: none !important;
  248. font-family: "Open Sans", sans-serif;
  249. letter-spacing: 2px;
  250. text-align: center !important;
  251. font-weight: normal;
  252. margin: 5px 0px 0px 0px !important;
  253. text-align: center;
  254. }
  255. .profile-header-text .contact-dets {
  256. display: block;
  257. font-size: 12px;
  258. margin-top: 5px !important;
  259. font-weight: lighter;
  260. color: #fff;
  261. letter-spacing: 1px;
  262. }
  263. }
  264. .profile-second-row {
  265. display: flex;
  266. flex-direction: row;
  267. justify-content: space-between;
  268. }
  269. .left-col {
  270. margin-right: 30px;
  271. width: 400px;
  272. }
  273. @media screen and (max-width: 650px) {
  274. .left-col {
  275. display: none;
  276. }
  277. }
  278. ul.profile-choices>li {
  279. list-style: none;
  280. border-radius: 5px;
  281. overflow: hidden;
  282. height: 50px;
  283. }
  284. ul.profile-choices>li a {
  285. padding: 5px 10px;
  286. font-size: 20px;
  287. line-height: 40px;
  288. font-weight: lighter;
  289. color: #fff;
  290. display: flex;
  291. flex-direction: row;
  292. justify-content: space-between;
  293. transition-duration: 0.5s;
  294. height: 50px !important;
  295. }
  296. ul.profile-choices>li a:after {
  297. content: "chevron_right";
  298. font-family: "Material Icons";
  299. font-size: 20px;
  300. margin-right: 10px;
  301. }
  302. ul.profile-choices>li a:hover {
  303. color: #000;
  304. text-decoration: none;
  305. background-color: rgba(255, 255, 255, 0.2039215686);
  306. }
  307. .pickr {
  308. display: inline-block;
  309. margin-right: 6px !important;
  310. }
  311. .profile-des {
  312. font-family: "Open Sans", sans-serif;
  313. font-size: 25px;
  314. font-weight: normal;
  315. margin: 5px 0px;
  316. color: #fff;
  317. }
  318. details {
  319. margin-left: 0px !important;
  320. }
  321. .accordions {
  322. margin-top: 100px;
  323. }
  324. .sub-title {
  325. font-family: "Open Sans", sans-serif !important;
  326. font-size: 14px;
  327. letter-spacing: 5px;
  328. }
  329. b {
  330. font-weight: 500 !important;
  331. font-size: 22px !important;
  332. }
  333. i {
  334. font-size: 14px;
  335. margin-bottom: 130px !important;
  336. border-bottom: 1px solid #fff;
  337. }
  338. ul {
  339. margin-top: 20px !important;
  340. margin-bottom: 50px !important;
  341. }
  342. ul>li {
  343. list-style: none;
  344. font-size: 16px;
  345. line-height: 20px;
  346. }
  347. h2.m-text {
  348. font-size: 30px;
  349. margin-left: 0px;
  350. font-weight: normal;
  351. }
  352. .desc-block {
  353. opacity: 1;
  354. transition-duration: 0.4s;
  355. overflow: none;
  356. }
  357. .desc-block-hidden {
  358. display: none;
  359. }
  360. .desc-active {
  361. text-decoration: none;
  362. background-color: rgba(255, 255, 255, 0.2039215686);
  363. }
  364. .desc-active a {
  365. color: #000;
  366. }
  367. ul.m-text {
  368. margin-top: 10px !important;
  369. }
  370. /* The Overlay (background) */
  371. .overlay {
  372. /* Height & width depends on how you want to reveal the overlay (see JS below) */
  373. height: 0%;
  374. width: 100%;
  375. position: fixed;
  376. /* Stay in place */
  377. z-index: 1100;
  378. /* Sit on top */
  379. left: 0;
  380. top: 0;
  381. background-color: rgb(0, 0, 0);
  382. /* Black fallback color */
  383. background-color: rgba(0, 0, 0, 0.9);
  384. /* Black w/opacity */
  385. overflow-x: hidden;
  386. /* Disable horizontal scroll */
  387. transition: 0.5s;
  388. /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  389. }
  390. /* Position the content inside the overlay */
  391. .overlay-content {
  392. position: relative;
  393. height: 100%;
  394. top: 25%;
  395. /* 25% from the top */
  396. width: 100%;
  397. /* 100% width */
  398. text-align: center;
  399. /* Centered text/links */
  400. margin-top: 30px;
  401. /* 30px top margin to avoid conflict with the close button on smaller screens */
  402. }
  403. /* The navigation links inside the overlay */
  404. .overlay a {
  405. padding: 8px;
  406. text-decoration: none;
  407. font-size: 18px;
  408. color: white;
  409. display: block;
  410. /* Display block instead of inline */
  411. transition: 0.3s;
  412. /* Transition effects on hover (color) */
  413. }
  414. .overlay h1 {
  415. color: white;
  416. font-size: 20px;
  417. font-weight: lighter;
  418. margin-bottom: 10px;
  419. text-decoration: underline;
  420. }
  421. /* When you mouse over the navigation links, change their color */
  422. .overlay a:hover,
  423. .overlay a:focus {
  424. color: #f1f1f1;
  425. }
  426. /* Position the close button (top right corner) */
  427. .overlay .closebtn {
  428. position: absolute;
  429. top: 20px;
  430. right: 45px;
  431. font-size: 60px;
  432. }
  433. </style>
  434. <?php get_footer(); ?>