page-journal.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. <?php
  2. /**
  3. * Template Name: Journal
  4. *
  5. * @package UIU_CSE
  6. */
  7. get_header(); ?>
  8. <?php while (have_posts()) : the_post();
  9. $auth_token = get_field('auth_token', 'option');
  10. $client_id = get_field('client_id', 'option');
  11. $journal_api = get_field('journal_api', 'option');
  12. $curl = curl_init();
  13. curl_setopt_array($curl, array(
  14. CURLOPT_URL => $journal_api,
  15. CURLOPT_RETURNTRANSFER => true,
  16. CURLOPT_ENCODING => '',
  17. CURLOPT_MAXREDIRS => 10,
  18. CURLOPT_TIMEOUT => 0,
  19. CURLOPT_FOLLOWLOCATION => true,
  20. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  21. CURLOPT_CUSTOMREQUEST => 'POST',
  22. CURLOPT_POSTFIELDS => '{
  23. "auth_token" : "' . $auth_token . '",
  24. "user_login_id" : "' . $client_id . '"
  25. }',
  26. CURLOPT_HTTPHEADER => array(
  27. 'Content-Type: application/json'
  28. ),
  29. ));
  30. $response = curl_exec($curl);
  31. curl_close($curl);
  32. $response = json_decode($response, true);
  33. ?>
  34. <main id="main" class="site-main" role="main">
  35. <div class="">
  36. <section class="container-fluid">
  37. <div class="banner-img-holder">
  38. <div class="banner-overlay">
  39. </div>
  40. <img class="banner-img" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  41. <div class="banner-title">
  42. <h1>
  43. Research at <br> Department of <br>
  44. Computer Science &amp; Engineering
  45. </h1>
  46. </div>
  47. </div>
  48. </section>
  49. <section id="breadcrumb" class="container">
  50. <div>
  51. <span class="crumbs">Department of CSE > Research > Journals</span>
  52. </div>
  53. </section>
  54. </div>
  55. <div class="row container">
  56. <div class="col-md-3 col-sidebar">
  57. <div class="generic-para sidebar-links">
  58. <h3>Research</h3>
  59. <ul>
  60. <li><a href="#">Conference Papers</a></li>
  61. <li class="active"><a href="#">Journals</a></li>
  62. <li><a href="#">Journals</a></li>
  63. <li><a href="#">Journals</a></li>
  64. <li><a href="#">Journals</a></li>
  65. </ul>
  66. </div>
  67. </div>
  68. <div class="col-md-9 col-content">
  69. <div class="sections">
  70. <section id="conference-papers-section" class="container generic-content" data-theme="light">
  71. <div class="generic-para shadowed">
  72. <h3>Journal Papers</h3>
  73. <?php
  74. foreach ($response as $item) {
  75. // Access individual elements of each response
  76. echo "<div class='paper-details'>";
  77. echo "<span class='paper-year'>{$item['Year']}</span>";
  78. // Iterate over the JournalList array within each item
  79. foreach ($item['JournalList'] as $journal) {
  80. // Access individual elements of each journal
  81. echo "<a href='{$journal['JournalLink']}'>";
  82. echo "<h2 class='paper-title'>{$journal['PaperTitle']}</h2>";
  83. echo "</a>";
  84. echo "<p class='paper-tags'>";
  85. // $journalKeyword = explode(',', $journal['Keyword']);
  86. foreach ($journal['KeyWords'] as $keyword) {
  87. if ($keyword) {
  88. echo "<span class='tag'>{$keyword}</span>";
  89. }
  90. }
  91. echo "</p>";
  92. echo "<p class='paper-event'><i>Publication: </i> {$journal['JournalTitle']}</p>";
  93. echo "<p class='paper-contributors'>";
  94. echo "<i>Authors: </i>";
  95. // Iterate over the Author array within each journal
  96. foreach ($journal['Author'] as $author) {
  97. // Access individual elements of each author
  98. $authorName = $author['AuthorName'];
  99. // Process or output the values as needed
  100. echo " $authorName,";
  101. }
  102. echo "</p>";
  103. }
  104. echo "</div>";
  105. }
  106. ?>
  107. </div>
  108. </section>
  109. </div>
  110. </div>
  111. </div>
  112. </main>
  113. <!-- #main -->
  114. <?php endwhile; // end of the loop.
  115. ?>
  116. <style>
  117. #fine-print {
  118. text-align: center;
  119. margin: 10px auto;
  120. height: 50px;
  121. border-top: 1px solid #F68B1F;
  122. }
  123. #fine-print p {
  124. font-size: 12px;
  125. display: inline-flex;
  126. }
  127. #fine-print ul {
  128. display: inline;
  129. }
  130. #fine-print ul>li {
  131. display: inline;
  132. padding: 10px;
  133. font-size: 12px;
  134. letter-spacing: 1px;
  135. }
  136. .banner-img-holder {
  137. width: 100vw;
  138. height: 400px;
  139. margin-bottom: 60px !important;
  140. }
  141. .banner-overlay {
  142. position: relative;
  143. top: 0px;
  144. bottom: 0px;
  145. height: 400px;
  146. width: 100vw;
  147. background-color: rgba(50, 52, 63, 0.4588235294);
  148. z-index: 1;
  149. }
  150. .banner-img {
  151. position: relative;
  152. top: -400px;
  153. width: 100%;
  154. height: 100%;
  155. -o-object-fit: cover;
  156. object-fit: cover;
  157. -o-object-position: center;
  158. object-position: center;
  159. filter: greyscale(80%) !important;
  160. }
  161. .banner-title {
  162. position: relative;
  163. top: -800px;
  164. height: 400px;
  165. width: 100vw;
  166. z-index: 2;
  167. display: flex;
  168. flex-direction: column;
  169. justify-content: center;
  170. }
  171. .banner-title h1 {
  172. margin-top: 50px !important;
  173. font-family: "Open Sans", sans-serif;
  174. font-weight: 800;
  175. line-height: 140%;
  176. color: #fff;
  177. text-align: center;
  178. }
  179. #breadcrumb {
  180. padding-top: 20px;
  181. }
  182. #breadcrumb div {
  183. margin-left: 20px !important;
  184. }
  185. .crumbs {
  186. font-size: 14px;
  187. font-weight: 400;
  188. margin: 30px 0px;
  189. padding-bottom: 5px;
  190. letter-spacing: 2px;
  191. color: #333 !important;
  192. border-bottom: 1px solid #333;
  193. }
  194. .sidebar-links {
  195. margin: 10px 0px !important;
  196. border-radius: 4px;
  197. border: 1px solid rgba(51, 51, 51, 0.1921568627);
  198. }
  199. .sidebar-links h3 {
  200. font-size: 30px !important;
  201. font-family: "Open Sans", sans-serif !important;
  202. width: 100%;
  203. text-align: center !important;
  204. text-transform: uppercase;
  205. padding-bottom: 15px !important;
  206. border-bottom: 1px solid #117cf7 !important;
  207. }
  208. .sidebar-links ul li {
  209. height: 30px !important;
  210. padding: 5px 10px !important;
  211. font-size: 14px;
  212. list-style: none;
  213. border-bottom: 1px solid rgba(51, 51, 51, 0.231372549);
  214. }
  215. .sidebar-links ul li a:link,
  216. .sidebar-links ul li a:visited {
  217. color: #117cf7;
  218. }
  219. .sidebar-links ul li a:hover {
  220. text-decoration: none;
  221. color: #333;
  222. }
  223. .sidebar-links ul li.active a:link,
  224. .sidebar-links ul li.active a:visited {
  225. color: #865994;
  226. font-weight: 600;
  227. }
  228. .generic-content-block {
  229. padding: 40px 10px !important;
  230. }
  231. .generic-header {
  232. width: 100%;
  233. margin: 30px auto !important;
  234. }
  235. .generic-header h1 {
  236. font-weight: 600;
  237. text-align: center;
  238. text-transform: uppercase;
  239. }
  240. .personnel-img {
  241. width: 300px;
  242. height: 300px;
  243. margin: 30px auto;
  244. }
  245. .personnel-img img {
  246. border-radius: 4px;
  247. box-shadow: 4px 6px 18px 12px rgba(51, 51, 51, 0.1490196078);
  248. width: 100%;
  249. height: 100%;
  250. -o-object-fit: cover;
  251. object-fit: cover;
  252. -o-object-position: center;
  253. object-position: center;
  254. }
  255. .shadowed {
  256. border-radius: 4px;
  257. box-shadow: 4px 6px 18px 12px rgba(51, 51, 51, 0.1490196078);
  258. }
  259. .generic-para {
  260. text-align: left;
  261. padding: 20px !important;
  262. }
  263. .generic-para ol {
  264. margin: 10px 30px !important;
  265. }
  266. .generic-para img {
  267. border-radius: 4px;
  268. height: 240px;
  269. width: 100%;
  270. -o-object-fit: cover;
  271. object-fit: cover;
  272. -o-object-position: center;
  273. object-position: center;
  274. }
  275. .generic-para h2 {
  276. text-align: center;
  277. letter-spacing: 1px;
  278. }
  279. .generic-para h3 {
  280. font-family: "DM Serif Text", serif;
  281. margin: 20px 0px !important;
  282. text-align: left;
  283. border-bottom: 3px solid #117cf7;
  284. }
  285. .generic-para p {
  286. text-align: justify;
  287. margin: 30px 0px !important;
  288. font-size: 16px !important;
  289. line-height: 22px;
  290. }
  291. .prof-name {
  292. color: #485680;
  293. font-weight: 700;
  294. font-size: 18px;
  295. }
  296. .prof-deg {
  297. font-style: italic;
  298. font-weight: 400;
  299. }
  300. .prof-des {
  301. font-size: 18px;
  302. font-weight: 700;
  303. }
  304. .area {
  305. margin: 10px 0px;
  306. border: 1px solid rgba(51, 51, 51, 0.3803921569);
  307. border-radius: 8px;
  308. height: 120px;
  309. width: 100%;
  310. display: flex;
  311. justify-content: center;
  312. align-items: center;
  313. }
  314. .alignnone {
  315. width: 150px !important;
  316. height: auto !important;
  317. margin: 20px auto !important;
  318. }
  319. #all-faculties h2,
  320. #all-events h2,
  321. #all-news h2 {
  322. color: #000 !important;
  323. margin-top: 40px;
  324. margin-bottom: 20px;
  325. font-weight: 800;
  326. }
  327. #all-faculties hr,
  328. #all-events hr,
  329. #all-news hr {
  330. border: 1px solid rgba(51, 51, 51, 0.3882352941);
  331. }
  332. #all-faculties .faculty-stub,
  333. #all-events .faculty-stub,
  334. #all-news .faculty-stub {
  335. width: 100%;
  336. padding: 5px;
  337. box-shadow: 2px 2px 10px 6px rgba(0, 0, 0, 0.137254902);
  338. margin: 30px auto !important;
  339. }
  340. #all-faculties .stub-img-holder,
  341. #all-events .stub-img-holder,
  342. #all-news .stub-img-holder {
  343. border-radius: 4px !important;
  344. height: 160px;
  345. overflow: hidden;
  346. }
  347. #all-faculties .stub-img-holder img,
  348. #all-events .stub-img-holder img,
  349. #all-news .stub-img-holder img {
  350. border-radius: 0px !important;
  351. height: 100%;
  352. width: 100%;
  353. -o-object-fit: cover;
  354. object-fit: cover;
  355. -o-object-position: center;
  356. object-position: center;
  357. }
  358. #all-faculties .archive-faculty-details,
  359. #all-events .archive-faculty-details,
  360. #all-news .archive-faculty-details {
  361. height: 100px;
  362. padding: 0px 10px;
  363. }
  364. #all-faculties .archive-faculty-details .faculty-degree,
  365. #all-events .archive-faculty-details .faculty-degree,
  366. #all-news .archive-faculty-details .faculty-degree {
  367. display: inline-block;
  368. color: rgba(89, 107, 161, 0.5647058824);
  369. font-weight: 800;
  370. font-size: 14px;
  371. }
  372. #all-faculties .archive-faculty-details .faculty-designation,
  373. #all-events .archive-faculty-details .faculty-designation,
  374. #all-news .archive-faculty-details .faculty-designation {
  375. display: block;
  376. color: rgba(0, 0, 0, 0.5647058824);
  377. font-weight: 800;
  378. font-size: 14px;
  379. }
  380. #all-faculties .archive-faculty-details h3,
  381. #all-events .archive-faculty-details h3,
  382. #all-news .archive-faculty-details h3 {
  383. font-size: 18px;
  384. line-height: 22px;
  385. font-family: "Open Sans", sans-serif;
  386. color: #2F4858 !important;
  387. margin: 10px auto;
  388. }
  389. .faculty-grp-img {
  390. height: auto !important;
  391. width: 100% !important;
  392. margin: 0px auto !important;
  393. }
  394. .paper-details {
  395. padding: 30px 0px;
  396. border-bottom: 1px solid rgba(51, 51, 51, 0.1764705882);
  397. }
  398. .paper-details .paper-title {
  399. font-size: 18px !important;
  400. text-align: left !important;
  401. margin: 10px 0px !important;
  402. text-decoration: underline;
  403. }
  404. .paper-details .paper-year {
  405. font-size: 14px;
  406. display: block;
  407. color: rgba(51, 51, 51, 0.4509803922);
  408. }
  409. .paper-details p {
  410. margin: 5px !important;
  411. font-size: 14px !important;
  412. }
  413. .paper-details .paper-contributors {
  414. color: #222222 !important;
  415. }
  416. .paper-details .paper-tags {
  417. margin: 20px 0px !important;
  418. }
  419. .paper-details .paper-tags .tag {
  420. font-size: 14px;
  421. border: 1px solid rgba(17, 124, 247, 0.431372549);
  422. padding: 3px 8px !important;
  423. border-radius: 10px;
  424. }
  425. /*# sourceMappingURL=journal-cse.css.map */
  426. </style>
  427. <?php get_footer(); ?>