1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012 |
- <?php
- /**
- * Template Name: Journal
- *
- * @package UIU_CSE
- */
- get_header(); ?>
- <?php while (have_posts()) : the_post();
- $auth_token = get_field('auth_token', 'option');
- $client_id = get_field('client_id', 'option');
- $journal_api = get_field('journal_api', 'option');
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_URL => $journal_api,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_ENCODING => '',
- CURLOPT_MAXREDIRS => 10,
- CURLOPT_TIMEOUT => 0,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
- CURLOPT_CUSTOMREQUEST => 'POST',
- CURLOPT_POSTFIELDS => '{
- "employee_id" : " ",
- "year" : " ",
- "auth_token" : "' . $auth_token . '",
- "user_login_id" : "' . $client_id . '"
- }',
- CURLOPT_HTTPHEADER => array(
- 'Content-Type: application/json'
- ),
- ));
- $response = curl_exec($curl);
- curl_close($curl);
- $response = json_decode($response, true);
- // Decode the JSON data
- $data = json_decode($data, true);
- // Array to store unique paper titles
- $uniquePaperTitles = [];
- // Iterate over the data and extract unique paper titles
- foreach ($response as $entry) {
- foreach ($entry['JournalList'] as $journal) {
- $paperTitle = $journal['PaperTitle'];
- if (!in_array($paperTitle, $uniquePaperTitles)) {
- $uniquePaperTitles[] = $paperTitle;
- }
- }
- }
- // Output the unique paper titles
- foreach ($uniquePaperTitles as $title) {
- echo $title . "\n";
- }
- ?>
- <main id="main" class="site-main" role="main">
- <div class="">
- <section class="container-fluid">
- <div class="banner-img-holder">
- <div class="banner-overlay">
- </div>
- <img class="banner-img" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
- <div class="banner-title">
- <h1>
- Research at <br> Department of <br>
- Computer Science & Engineering
- </h1>
- </div>
- </div>
- </section>
- <section id="breadcrumb" class="container">
- <div>
- <span class="crumbs">Department of CSE > Research > Journals</span>
- </div>
- </section>
- </div>
- <div class="row container">
- <div class="col-md-3 col-sidebar">
- <div class="generic-para sidebar-links">
- <h3>Research</h3>
- <ul>
- <li><a href="#">Conference Papers</a></li>
- <li class="active"><a href="#">Journals</a></li>
- <li><a href="#">Journals</a></li>
- <li><a href="#">Journals</a></li>
- <li><a href="#">Journals</a></li>
- </ul>
- </div>
- </div>
- <div class="col-md-9 col-content">
- <div class="sections">
- <section id="conference-papers-section" class="container generic-content" data-theme="light">
- <div class="generic-para shadowed">
- <h3>Journal Papers</h3>
- <?php
- foreach ($response as $item) {
- // Access individual elements of each response
- echo "<div class='paper-details'>";
- echo "<span class='paper-year'>{$item['Year']}</span>";
- // Iterate over the JournalList array within each item
- foreach ($item['JournalList'] as $journal) {
- // Access individual elements of each journal
- echo "<a href='{$journal['JournalLink']}'>";
- echo "<h2 class='paper-title'>{$journal['PaperTitle']}</h2>";
- echo "</a>";
- echo "<p class='paper-tags'>";
- $journalKeyword = explode(',', $journal['Keyword']);
- foreach ($journalKeyword as $keyword) {
- if ($keyword) {
- echo "<span class='tag'>{$keyword}</span>";
- }
- }
- echo "</p>";
- echo "<p class='paper-event'><i>Publication: </i> {$journal['JournalTitle']}</p>";
- echo "<p class='paper-contributors'>";
- echo "<i>Authors: </i>";
- // Iterate over the Author array within each journal
- foreach ($journal['Author'] as $author) {
- // Access individual elements of each author
- $authorName = $author['AuthorName'];
- // Process or output the values as needed
- echo " $authorName,";
- }
- echo "</p>";
- }
- echo "</div>";
- }
- ?>
- </div>
- </section>
- </div>
- </div>
- </div>
- </main>
- <!-- #main -->
- <script>
- // var myHeaders = new Headers();
- // myHeaders.append("Content-Type", "application/json");
- // var raw = JSON.stringify({
- // "employee_id": "",
- // "year": "",
- // "user_login_id": "api_user",
- // "auth_token": "api_user20230419045143",
- // "page": 1,
- // "limit": 3
- // });
- // var requestOptions = {
- // method: 'POST',
- // headers: myHeaders,
- // body: raw,
- // redirect: 'follow'
- // };
- // fetch("http://103.109.52.3/webapi/api/EmployeeJournal", requestOptions)
- // .then(response => response.text())
- // .then(result => console.log(result))
- // .catch(error => console.log('error', error));
- </script>
- <?php endwhile; // end of the loop.
- ?>
- <style>
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- }
- * {
- font-family: "Open Sans", sans-serif;
- margin: 0px auto;
- padding: 0px;
- }
- p {
- font-size: 16px !important;
- line-height: 30px;
- color: #4e4e4e !important;
- margin: 0 auto;
- }
- .grid {
- gap: 30px;
- }
- body {
- overflow-y: scroll;
- overflow-x: hidden;
- }
- section {
- background: #fff;
- margin: 0 auto;
- }
- header {
- margin: 0px;
- padding: 0px !important;
- height: 50px;
- overflow: hidden;
- }
- main {
- position: relative;
- padding: 0px !important;
- background-color: #fff;
- }
- h1 {
- font-size: 40px !important;
- letter-spacing: 2px !important;
- line-height: 100%;
- }
- h1,
- h2,
- h3,
- h4 {
- font-weight: normal;
- margin-bottom: 0px !important;
- }
- button {
- margin: 40px auto;
- margin-bottom: 30px;
- max-width: 300px;
- font-size: 20px;
- border-radius: 0px;
- border: none;
- border-radius: 4px;
- background: #f68b1f;
- transition-duration: 0.3s;
- }
- button:hover {
- background: #117cf7;
- }
- .container {
- margin: 0px auto;
- padding: 10px 10px;
- max-width: 1200px !important;
- }
- .container-fluid {
- padding: 0px !important;
- }
- #search-close {
- width: 100px;
- border-radius: 40px;
- background-color: #F68B1F;
- margin-top: 30px;
- margin-right: 30px;
- }
- .overlay-content {
- overflow: hidden;
- }
- .overlay-content label {
- display: inline-block;
- }
- .overlay-content h4 {
- display: inline-block;
- margin: 0px 20px;
- }
- .overlay-content div a {
- display: inline-block;
- text-decoration: underline;
- }
- .overlay-content div h6 {
- display: inline-block;
- }
- #search-bar {
- width: 60%;
- display: inline-block;
- }
- #search-button {
- width: 300px;
- display: inline-block;
- border-radius: 30px;
- margin-left: 20px;
- background: #485680;
- }
- #search-modal {
- overflow: hidden;
- }
- #search-button:hover {
- background-color: #F68B1F;
- }
- #first-nav>ul>img {
- transition-duration: 0.5s;
- }
- section#first-nav-section nav {
- position: fixed;
- text-align: center;
- padding: 0px;
- justify-content: space-evenly;
- height: 70px;
- z-index: 10;
- transition: 0.5s ease-in-out;
- background-color: #160c0c;
- border-bottom: 4px solid #F68B1F;
- box-shadow: 0px 5px 12px -5px #2F4858;
- }
- section#first-nav-section nav ul {
- align-items: center;
- z-index: 3;
- }
- section#first-nav-section nav ul img {
- height: 50px;
- width: auto;
- margin-right: 30px;
- padding-left: 20px;
- }
- section#first-nav-section nav ul>li {
- margin-right: 50px;
- }
- section#first-nav-section nav ul>li:last-child {
- margin-right: 0px;
- }
- section#first-nav-section nav ul>li:last-child {
- margin-right: 0;
- }
- section#first-nav-section nav ul>li>a {
- color: #fff;
- transition-duration: 0.3s;
- font-size: 14px;
- letter-spacing: 2px;
- text-transform: uppercase;
- font-weight: bold;
- font-size: 12px;
- }
- section#first-nav-section nav ul>li:after {
- content: "";
- display: block;
- margin: auto;
- height: 1px;
- width: 0px;
- background: transparent;
- transition: width 0.3s ease, background-color 0.5s ease;
- }
- section#first-nav-section nav ul>li:hover:after {
- width: 100%;
- background: #fff;
- }
- section#first-nav-section .nav-resp {
- height: 50px;
- background-color: #160c0c;
- border-bottom: 4px solid #F68B1F;
- box-shadow: 0px 5px 12px -5px #2F4858;
- }
- section#first-nav-section .nav-resp ul img {
- height: 30px !important;
- padding-left: 20px;
- }
- section#first-nav-section .nav-resp #menu-bars {
- padding-top: 2px;
- }
- #menu-bars {
- display: none;
- padding-top: 2px;
- color: #fff;
- }
- section#second-nav-section nav {
- position: fixed;
- top: 70px;
- text-align: center;
- padding: 0px;
- justify-content: space-evenly;
- height: 50px;
- z-index: 10;
- transition: 0.5s ease-in-out;
- background: #117cf7;
- }
- section#second-nav-section nav ul {
- margin-top: 0px;
- width: 100vw;
- justify-content: space-evenly;
- display: inline-flex;
- }
- section#second-nav-section nav ul li>a {
- margin: 0px;
- color: #fff;
- transition-duration: 0.3s;
- font-size: 14px;
- letter-spacing: 2px;
- text-transform: uppercase;
- font-weight: normal;
- font-size: 12px;
- border-radius: 0px;
- }
- section#second-nav-section nav ul li>a:hover {
- border-radius: 0;
- font-weight: bolder;
- color: #eeffb0;
- text-decoration: none !important;
- }
- section#second-nav-section nav ul li:first-of-type>a:hover {
- background: none;
- }
- section#second-nav-section nav ul li>a>img {
- height: 40px !important;
- }
- section#second-nav-section nav ul li>a>img:hover {
- background-color: rgba(255, 255, 255, 0);
- }
- section#second-nav-section .second-nav-active {
- height: 40px;
- top: 50px;
- background-color: #117cf7;
- }
- section#second-nav-section .second-nav-active ul>li>a>img {
- height: 30px !important;
- }
- #top-search {
- width: 140px;
- border-radius: 0;
- height: 30px;
- }
- @media (max-width: 1100px) {
- #first-nav>ul {
- position: relative;
- width: 100%;
- left: 0px;
- }
- #first-nav>ul>img {
- width: 350px;
- -o-object-fit: contain;
- object-fit: contain;
- margin-right: auto;
- }
- #first-nav>ul>li {
- display: none;
- }
- #first-nav>ul>li:last-child {
- display: inline-block;
- margin-right: auto;
- width: 40px;
- }
- #top-search {
- display: none;
- }
- #menu-bars {
- display: inline-block;
- margin: 0px auto;
- padding-top: 13px;
- font-size: 45px;
- color: #fff;
- }
- #first-nav>ul>li:last-child {
- display: none;
- }
- }
- @media (max-width: 576px) {
- #menu-bars {
- margin: 0px auto;
- padding-top: 13px;
- font-size: 45px;
- color: #fff;
- }
- #first-nav>ul>img {
- width: 170px;
- margin-left: 10px !important;
- }
- #search>button.filled {
- display: none;
- }
- body>main>section:nth-child(2)>div>h1 {
- font-size: 60px;
- }
- #first-nav>ul>li:last-child {
- display: none;
- }
- #cta {
- display: flex;
- flex-direction: column;
- }
- #cta>button:nth-child(2) {
- display: none;
- }
- #second-nav-section {
- display: none !important;
- }
- }
- #slider-container {
- padding: 0px !important;
- }
- .yellow-line {
- display: block;
- width: 100px;
- height: 4px;
- background-color: #00ff00;
- margin-left: 10px;
- margin-top: 10px;
- margin-bottom: 0px;
- }
- @media screen and (max-width: 800px) {
- .yellow-line {
- margin-left: calc(50vw - 50%) !important;
- }
- }
- footer {
- position: relative;
- z-index: 30 !important;
- }
- #footer1 {
- z-index: 10;
- height: 400px;
- background: url("../img/footer2.png") no-repeat;
- background-size: cover;
- background-position: top;
- }
- footer.container-fluid {
- border-top: 10px solid #C85688;
- overflow: hidden;
- text-align: left;
- margin: 0px;
- padding: 0px !important;
- background: #160c0c;
- min-height: 350px;
- }
- footer.container-fluid h3 {
- margin: 10px auto;
- margin: 30px 0px;
- font-family: "Open Sans", sans-serif;
- font-size: 20px;
- color: #fff;
- font-weight: normal;
- text-decoration: underline;
- }
- footer.container-fluid ul {
- padding: 0px;
- }
- footer.container-fluid ul>li {
- list-style: none;
- margin: 0px;
- padding: 0px;
- line-height: 110%;
- }
- footer.container-fluid ul>li a {
- text-decoration: none;
- color: #fff;
- font-size: 12px;
- letter-spacing: 2px;
- font-weight: normal;
- font-family: "Open Sans", sans-serif;
- text-transform: uppercase;
- }
- footer.container-fluid ul>li a:hover {
- color: #F68B1F;
- text-decoration: underline;
- }
- #fine-print {
- text-align: center;
- margin: 10px auto;
- height: 50px;
- border-top: 1px solid #F68B1F;
- }
- #fine-print p {
- font-size: 12px;
- display: inline-flex;
- }
- #fine-print ul {
- display: inline;
- }
- #fine-print ul>li {
- display: inline;
- padding: 10px;
- font-size: 12px;
- letter-spacing: 1px;
- }
- .banner-img-holder {
- width: 100vw;
- height: 400px;
- margin-bottom: 60px !important;
- }
- .banner-overlay {
- position: relative;
- top: 0px;
- bottom: 0px;
- height: 400px;
- width: 100vw;
- background-color: rgba(50, 52, 63, 0.4588235294);
- z-index: 1;
- }
- .banner-img {
- position: relative;
- top: -400px;
- width: 100%;
- height: 100%;
- -o-object-fit: cover;
- object-fit: cover;
- -o-object-position: center;
- object-position: center;
- filter: greyscale(80%) !important;
- }
- .banner-title {
- position: relative;
- top: -800px;
- height: 400px;
- width: 100vw;
- z-index: 2;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .banner-title h1 {
- margin-top: 50px !important;
- font-family: "Open Sans", sans-serif;
- font-weight: 800;
- line-height: 140%;
- color: #fff;
- text-align: center;
- }
- #breadcrumb {
- padding-top: 20px;
- }
- #breadcrumb div {
- margin-left: 20px !important;
- }
- .crumbs {
- font-size: 14px;
- font-weight: 400;
- margin: 30px 0px;
- padding-bottom: 5px;
- letter-spacing: 2px;
- color: #333 !important;
- border-bottom: 1px solid #333;
- }
- .sidebar-links {
- margin: 10px 0px !important;
- border-radius: 4px;
- border: 1px solid rgba(51, 51, 51, 0.1921568627);
- }
- .sidebar-links h3 {
- font-size: 30px !important;
- font-family: "Open Sans", sans-serif !important;
- width: 100%;
- text-align: center !important;
- text-transform: uppercase;
- padding-bottom: 15px !important;
- border-bottom: 1px solid #117cf7 !important;
- }
- .sidebar-links ul li {
- height: 30px !important;
- padding: 5px 10px !important;
- font-size: 14px;
- list-style: none;
- border-bottom: 1px solid rgba(51, 51, 51, 0.231372549);
- }
- .sidebar-links ul li a:link,
- .sidebar-links ul li a:visited {
- color: #117cf7;
- }
- .sidebar-links ul li a:hover {
- text-decoration: none;
- color: #333;
- }
- .sidebar-links ul li.active a:link,
- .sidebar-links ul li.active a:visited {
- color: #865994;
- font-weight: 600;
- }
- .generic-content-block {
- padding: 40px 10px !important;
- }
- .generic-header {
- width: 100%;
- margin: 30px auto !important;
- }
- .generic-header h1 {
- font-weight: 600;
- text-align: center;
- text-transform: uppercase;
- }
- .personnel-img {
- width: 300px;
- height: 300px;
- margin: 30px auto;
- }
- .personnel-img img {
- border-radius: 4px;
- box-shadow: 4px 6px 18px 12px rgba(51, 51, 51, 0.1490196078);
- width: 100%;
- height: 100%;
- -o-object-fit: cover;
- object-fit: cover;
- -o-object-position: center;
- object-position: center;
- }
- .shadowed {
- border-radius: 4px;
- box-shadow: 4px 6px 18px 12px rgba(51, 51, 51, 0.1490196078);
- }
- .generic-para {
- text-align: left;
- padding: 20px !important;
- }
- .generic-para ol {
- margin: 10px 30px !important;
- }
- .generic-para img {
- border-radius: 4px;
- height: 240px;
- width: 100%;
- -o-object-fit: cover;
- object-fit: cover;
- -o-object-position: center;
- object-position: center;
- }
- .generic-para h2 {
- text-align: center;
- letter-spacing: 1px;
- }
- .generic-para h3 {
- font-family: "DM Serif Text", serif;
- margin: 20px 0px !important;
- text-align: left;
- border-bottom: 3px solid #117cf7;
- }
- .generic-para p {
- text-align: justify;
- margin: 30px 0px !important;
- font-size: 16px !important;
- line-height: 22px;
- }
- .prof-name {
- color: #485680;
- font-weight: 700;
- font-size: 18px;
- }
- .prof-deg {
- font-style: italic;
- font-weight: 400;
- }
- .prof-des {
- font-size: 18px;
- font-weight: 700;
- }
- .area {
- margin: 10px 0px;
- border: 1px solid rgba(51, 51, 51, 0.3803921569);
- border-radius: 8px;
- height: 120px;
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .alignnone {
- width: 150px !important;
- height: auto !important;
- margin: 20px auto !important;
- }
- #all-faculties h2,
- #all-events h2,
- #all-news h2 {
- color: #000 !important;
- margin-top: 40px;
- margin-bottom: 20px;
- font-weight: 800;
- }
- #all-faculties hr,
- #all-events hr,
- #all-news hr {
- border: 1px solid rgba(51, 51, 51, 0.3882352941);
- }
- #all-faculties .faculty-stub,
- #all-events .faculty-stub,
- #all-news .faculty-stub {
- width: 100%;
- padding: 5px;
- box-shadow: 2px 2px 10px 6px rgba(0, 0, 0, 0.137254902);
- margin: 30px auto !important;
- }
- #all-faculties .stub-img-holder,
- #all-events .stub-img-holder,
- #all-news .stub-img-holder {
- border-radius: 4px !important;
- height: 160px;
- overflow: hidden;
- }
- #all-faculties .stub-img-holder img,
- #all-events .stub-img-holder img,
- #all-news .stub-img-holder img {
- border-radius: 0px !important;
- height: 100%;
- width: 100%;
- -o-object-fit: cover;
- object-fit: cover;
- -o-object-position: center;
- object-position: center;
- }
- #all-faculties .archive-faculty-details,
- #all-events .archive-faculty-details,
- #all-news .archive-faculty-details {
- height: 100px;
- padding: 0px 10px;
- }
- #all-faculties .archive-faculty-details .faculty-degree,
- #all-events .archive-faculty-details .faculty-degree,
- #all-news .archive-faculty-details .faculty-degree {
- display: inline-block;
- color: rgba(89, 107, 161, 0.5647058824);
- font-weight: 800;
- font-size: 14px;
- }
- #all-faculties .archive-faculty-details .faculty-designation,
- #all-events .archive-faculty-details .faculty-designation,
- #all-news .archive-faculty-details .faculty-designation {
- display: block;
- color: rgba(0, 0, 0, 0.5647058824);
- font-weight: 800;
- font-size: 14px;
- }
- #all-faculties .archive-faculty-details h3,
- #all-events .archive-faculty-details h3,
- #all-news .archive-faculty-details h3 {
- font-size: 18px;
- line-height: 22px;
- font-family: "Open Sans", sans-serif;
- color: #2F4858 !important;
- margin: 10px auto;
- }
- .faculty-grp-img {
- height: auto !important;
- width: 100% !important;
- margin: 0px auto !important;
- }
- .paper-details {
- padding: 30px 0px;
- border-bottom: 1px solid rgba(51, 51, 51, 0.1764705882);
- }
- .paper-details .paper-title {
- font-size: 18px !important;
- text-align: left !important;
- margin: 10px 0px !important;
- text-decoration: underline;
- }
- .paper-details .paper-year {
- font-size: 14px;
- display: block;
- color: rgba(51, 51, 51, 0.4509803922);
- }
- .paper-details p {
- margin: 5px !important;
- font-size: 14px !important;
- }
- .paper-details .paper-contributors {
- color: #222222 !important;
- }
- .paper-details .paper-tags {
- margin: 20px 0px !important;
- }
- .paper-details .paper-tags .tag {
- font-size: 14px;
- border: 1px solid rgba(17, 124, 247, 0.431372549);
- padding: 3px 8px !important;
- border-radius: 10px;
- }
- /*# sourceMappingURL=journal-cse.css.map */
- </style>
- <?php get_footer(); ?>
|