single-faculty.php 10 KB

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