Explorar o código

Menu API updated

Md Mozahidur Rahman hai 1 ano
pai
achega
16a2491125
Modificáronse 3 ficheiros con 2 adicións e 50 borrados
  1. 2 5
      js/theme-settings.js
  2. 0 3
      page-template/page-conference.php
  3. 0 42
      page-template/page-journal.php

+ 2 - 5
js/theme-settings.js

@@ -133,14 +133,11 @@ const addMenuFeature = (url, parentClass) => {
 };
 
 // add content in global menu
-addMenuFeature(
-  "https://cse.uiu.local/wp-json/options/menu/global-header",
-  "uiu-global-header-menu"
-);
+addMenuFeature("/wp-json/options/menu/global-header", "uiu-global-header-menu");
 
 // add content in departmentalmenu menu
 addMenuFeature(
-  "https://cse.uiu.local/wp-json/options/menu/departmental-header",
+  "/wp-json/options/menu/departmental-header",
   "uiu-departmental-header-menu"
 );
 

+ 0 - 3
page-template/page-conference.php

@@ -90,8 +90,6 @@ get_header(); ?>
                     </ul>
                 </div>
 
-
-
             </div>
             <div class="col-md-9 col-content">
 
@@ -101,7 +99,6 @@ get_header(); ?>
                             <h3>Conference Papers</h3>
                             <?php
 
-
                             $uniqueTitles = [];
 
                             // Iterate through the data and remove duplicates

+ 0 - 42
page-template/page-journal.php

@@ -39,31 +39,21 @@ get_header(); ?>
     $response = json_decode($response, true);
 
 ?>
-
     <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 &amp; Engineering
                         </h1>
                     </div>
-
                 </div>
-
-
             </section>
 
             <section id="breadcrumb" class="container">
@@ -88,8 +78,6 @@ get_header(); ?>
                     </ul>
                 </div>
 
-
-
             </div>
             <div class="col-md-9 col-content">
 
@@ -132,7 +120,6 @@ get_header(); ?>
                                 echo "</div>";
                             }
                             ?>
-
                         </div>
                     </section>
                 </div>
@@ -141,35 +128,6 @@ get_header(); ?>
     </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>