junxi 1 year ago
parent
commit
23f13640d7

BIN
.DS_Store


BIN
admin/.DS_Store


File diff suppressed because it is too large
+ 2 - 0
admin/dist/app.js


+ 5 - 0
admin/dist/app.js.LICENSE.txt

@@ -0,0 +1,5 @@
+/*!
+ * Vue.js v2.6.14
+ * (c) 2014-2021 Evan You
+ * Released under the MIT License.
+ */

BIN
dist/.DS_Store


+ 1 - 0
dist/assets/feature-legacy.js

@@ -0,0 +1 @@
+System.register(["./shared-legacy.js","./vendor-legacy.js"],(function(){"use strict";return{setters:[function(){},function(){}],execute:function(){}}}));

+ 1 - 0
dist/assets/feature.js

@@ -0,0 +1 @@
+import"./shared.js";import"./vendor.js";function t(){import("data:text/javascript,")}export{t as __vite_legacy_guard};

File diff suppressed because it is too large
+ 1 - 0
dist/assets/index-legacy.js


File diff suppressed because it is too large
+ 1 - 0
dist/assets/index.css


+ 1 - 0
dist/assets/index.js

@@ -0,0 +1 @@
+import"./shared.js";import"./vendor.js";function r(){import("data:text/javascript,")}document.querySelector(".problems").addEventListener("click",o=>{let e=o.target;for(;!e.classList.contains("problem");)e=e.parentNode;const t=e.parentNode.querySelector(".problem.focus");e.classList.toggle("focus"),t&&e!==t&&t.classList.remove("focus")});export{r as __vite_legacy_guard};

File diff suppressed because it is too large
+ 1 - 0
dist/assets/polyfills-legacy.17afba19.js


BIN
dist/assets/s1.7f057f50.png


BIN
dist/assets/s2.ac0cc8c6.png


BIN
dist/assets/s3.c89bc571.png


BIN
dist/assets/s4.b44e6907.png


BIN
dist/assets/s5.6f0ddadc.png


BIN
dist/assets/s6.7420b509.png


File diff suppressed because it is too large
+ 1 - 0
dist/assets/shared-legacy.js


File diff suppressed because it is too large
+ 1 - 0
dist/assets/shared.css


File diff suppressed because it is too large
+ 4 - 0
dist/assets/shared.js


File diff suppressed because it is too large
+ 1 - 0
dist/assets/vendor-legacy.js


File diff suppressed because it is too large
+ 1 - 0
dist/assets/vendor.js


+ 1 - 0
dist/assets/why-legacy.js

@@ -0,0 +1 @@
+System.register(["./shared-legacy.js","./vendor-legacy.js"],(function(){"use strict";return{setters:[function(){},function(){}],execute:function(){}}}));

+ 1 - 0
dist/assets/why.js

@@ -0,0 +1 @@
+import"./shared.js";import"./vendor.js";function t(){import("data:text/javascript,")}export{t as __vite_legacy_guard};

BIN
dist/favicon.png


+ 71 - 0
dist/feature.html

@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html lang="en" style="font-size: 50px;">
+<head>
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>PTC Care Plus</title>
+  <link rel="stylesheet" href="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.css">
+  <script type="module" crossorigin src="/assets/feature.js"></script>
+  <link rel="modulepreload" href="/assets/vendor.js">
+  <link rel="modulepreload" href="/assets/shared.js">
+  <link rel="stylesheet" href="/assets/shared.css">
+  <link rel="icon" href="/favicon.png">
+  <script type="module">var __vite_is_dynamic_import_support=false;</script>
+  <script type="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script>
+  <script type="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
+</head>
+<body class="bg-gray">
+  <div id="header"></div>
+  <div class="tabbar">
+    <a class="tab" href="/care/">HOME</a>
+    <a class="tab active" href="javascript:;">FEATURE</a>
+    <a class="tab" href="/why.html">WHY PTC</a>
+  </div>
+  <div id="banner-swiper" class="swiper">
+    <div class="swiper-wrapper">
+      <div class="swiper-slide banner" style="--bg-sm: url('sm.png'); --bg-md: url('md.png')"></div>
+    </div>
+    <div class="swiper-pagination"></div>
+  </div>
+  <div class="section">
+    <div class="inner">
+      <h2>Enjoy the many features of a PTC Care Plus Membership</h2>
+      <p>
+        Enjoy peace of mind with a care plan that covers a wide range of device makes and models of all ages. PTC Care Plus packages offer flexibility for you to choose how you protect your phone, always.
+      </p>
+      <p>
+        Replace your screen protector <span class="highlight">every month</span>. Protect your screen and enjoy a fresh phone feeling every month with a new screen protector.
+      </p>
+      <p>
+        <span class="highlight">Never worry about price</span>. Accidental damage? Know exactly how much to pay for a quick fix with our easy to use customer portal.
+      </p>
+      <p>
+        <span class="highlight">Take advantage of exclusive offers</span>. Refer a friend, claim your discounts, or browse our range of exclusive partner offers for PTC Care Plus members.
+      </p>
+      <p>
+        <span class="highlight">Keep your data*</span>. Repair your phone at any PTC Retail store and keep your data on your phone. No data back up or transfer required.
+      </p>
+      <p>
+        *Not applicable in all circumstances. Terms and conditions apply. See in store for details.
+      </p>
+      <button class="ptc-button" data-action="buy">BUY NOW</button>
+    </div>
+  </div>
+  <div id="footer"></div>
+
+  <div class="popup-buy">
+    <i class="icon-diamond"></i>
+    <span class="buy-txt">Plus Membership services</span>
+    <button class="buy-btn">BUY</button>
+  </div>
+
+  <script src="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.js"></script>
+  
+  <script>!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script>
+  <script>window.Beacon("init", "ba6bcfd9-0ac0-4f81-8d9c-8b12274e625b")</script>
+  <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
+  <script nomodule id="vite-legacy-polyfill" src="/assets/polyfills-legacy.17afba19.js"></script>
+  <script nomodule id="vite-legacy-entry" data-src="/assets/feature-legacy.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+</body>
+</html>

+ 411 - 0
dist/index.html

@@ -0,0 +1,411 @@
+<!DOCTYPE html>
+<html lang="en" style="font-size: 50px;">
+  <head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>PTC Care Plus</title>
+    <link rel="stylesheet" href="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.css">
+    <script type="module" crossorigin src="/assets/index.js"></script>
+    <link rel="modulepreload" href="/assets/vendor.js">
+    <link rel="modulepreload" href="/assets/shared.js">
+    <link rel="stylesheet" href="/assets/shared.css">
+    <link rel="stylesheet" href="/assets/index.css">
+    <link rel="icon" href="/favicon.png">
+    <script type="module">var __vite_is_dynamic_import_support=false;</script>
+    <script type="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script>
+    <script type="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
+  </head>
+  <body>
+    <div id="header"></div>
+    <div class="tabbar">
+      <a class="tab active" href="javascript:;">HOME</a>
+      <a class="tab" href="/feature.html">FEATURE</a>
+      <a class="tab" href="/why.html">WHY PTC</a>
+    </div>
+    <div id="banner-swiper" class="swiper">
+      <div class="swiper-wrapper">
+        <div class="swiper-slide banner" style="--bg-sm: url('sm.png'); --bg-md: url('md.png')"></div>
+      </div>
+      <div class="swiper-pagination"></div>
+    </div>
+    <div class="services-wrap">
+      <div class="services">
+        <div class="service">
+          <p class="service-name"><i class="service-icon" style="background-image: url('example.png');"></i>Lite</p>
+          <p class="service-desc">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <ul class="service-details">
+            <li class="item">
+              <span class="item-name">Ultimate Production</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Ultimate Screen Film</span>
+              <span class="item-value">Standard</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Screen Replacment</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name"
+                >Deep Clean & Phone Sanitisation Service</span
+              >
+              <span class="item-value">2</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Phone Health Inspection Service</span>
+              <span class="item-value">1</span>
+            </li>
+          </ul>
+          <div class="service-cost">
+            <div class="price">
+              <span class="p1">$</span><span class="p2">12.4</span
+              ><span class="p3">Monthly</span>
+            </div>
+            <button class="buy" data-action="buy" data-id="1">Buy Now</button>
+          </div>
+        </div>
+        <div class="service">
+          <p class="service-name"><i class="service-icon" style="background-image: url('example.png');"></i>Pro</p>
+          <p class="service-desc">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <ul class="service-details">
+            <li class="item">
+              <span class="item-name">Ultimate Production</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Ultimate Screen Film</span>
+              <span class="item-value">Premium</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Screen Replacment</span>
+              <span class="item-value">2</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Battery Replacment</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Gift Card</span>
+              <span class="item-value">US$200</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Free Cleaning Kit</span>
+              <span class="item-value">✓</span>
+            </li>
+            <li class="item">
+              <span class="item-name"
+                >Deep Clean & Phone Sanitisation Service</span
+              >
+              <span class="item-value">4</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Phone Health Inspection Service</span>
+              <span class="item-value">2</span>
+            </li>
+          </ul>
+          <div class="service-cost">
+            <div class="price">
+              <span class="p1">$</span><span class="p2">12.4</span
+              ><span class="p3">Monthly</span>
+            </div>
+            <button class="buy" data-action="buy" data-id="2">Buy Now</button>
+          </div>
+        </div>
+        <div class="service">
+          <p class="service-name"><i class="service-icon" style="background-image: url('example.png');"></i>Pro</p>
+          <p class="service-desc">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <ul class="service-details">
+            <li class="item">
+              <span class="item-name">Ultimate Production</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Ultimate Screen Film</span>
+              <span class="item-value">Premium</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Screen Replacment</span>
+              <span class="item-value">2</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Gift Card</span>
+              <span class="item-value">US$200</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Free Cleaning Kit</span>
+              <span class="item-value">✓</span>
+            </li>
+            <li class="item">
+              <span class="item-name"
+                >Deep Clean & Phone Sanitisation Service</span
+              >
+              <span class="item-value">4</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Phone Health Inspection Service</span>
+              <span class="item-value">2</span>
+            </li>
+          </ul>
+          <div class="service-cost">
+            <div class="price">
+              <span class="p1">$</span><span class="p2">12.4</span
+              ><span class="p3">Monthly</span>
+            </div>
+            <button class="buy" data-action="buy" data-id="2">Buy Now</button>
+          </div>
+        </div>
+        <div class="service">
+          <p class="service-name"><i class="service-icon" style="background-image: url('example.png');"></i>Pro</p>
+          <p class="service-desc">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <ul class="service-details">
+            <li class="item">
+              <span class="item-name">Ultimate Production</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Ultimate Screen Film</span>
+              <span class="item-value">Premium</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Ultimate Screen Film</span>
+              <span class="item-value">Premium</span>
+            </li>
+            <li class="item">
+              <span class="item-name"
+                >Deep Clean & Phone Sanitisation Service</span
+              >
+              <span class="item-value">4</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Phone Health Inspection Service</span>
+              <span class="item-value">2</span>
+            </li>
+          </ul>
+          <div class="service-cost">
+            <div class="price">
+              <span class="p1">$</span><span class="p2">12.4</span
+              ><span class="p3">Monthly</span>
+            </div>
+            <button class="buy" data-action="buy" data-id="2">Buy Now</button>
+          </div>
+        </div>
+        <div class="service">
+          <p class="service-name"><i class="service-icon" style="background-image: url('example.png');"></i>Pro</p>
+          <p class="service-desc">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <ul class="service-details">
+            <li class="item">
+              <span class="item-name">Ultimate Production</span>
+              <span class="item-value">1</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Ultimate Screen Film</span>
+              <span class="item-value">Premium</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Screen Replacment</span>
+              <span class="item-value">2</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Free Cleaning Kit</span>
+              <span class="item-value">✓</span>
+            </li>
+            <li class="item">
+              <span class="item-name"
+                >Deep Clean & Phone Sanitisation Service</span
+              >
+              <span class="item-value">4</span>
+            </li>
+            <li class="item">
+              <span class="item-name">Phone Health Inspection Service</span>
+              <span class="item-value">2</span>
+            </li>
+          </ul>
+          <div class="service-cost">
+            <div class="price">
+              <span class="p1">$</span><span class="p2">12.4</span
+              ><span class="p3">Monthly</span>
+            </div>
+            <button class="buy" data-action="buy" data-id="2">Buy Now</button>
+          </div>
+        </div>
+      </div>
+    </div>
+    <div class="details">
+      <div class="details-inner">
+        <div class="detail">
+          <h3 class="d-title">Ultimate Protection For your device</h3>
+          <p class="d-content">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <img class="d-img" src="/assets/s1.7f057f50.png" />
+        </div>
+        <div class="detail">
+          <h3 class="d-title">Unlimited Monthly Screen Protector</h3>
+          <p class="d-content">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <img class="d-img" src="/assets/s2.ac0cc8c6.png" />
+        </div>
+        <div class="detail">
+          <h3 class="d-title">Screen Protector Range</h3>
+          <p class="d-content">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <img class="d-img" src="/assets/s3.c89bc571.png" />
+        </div>
+        <div class="detail">
+          <h3 class="d-title">Yearly Gift Card For Your Accessories Puuchase</h3>
+          <p class="d-content">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <img class="d-img" src="/assets/s4.b44e6907.png" />
+        </div>
+        <div class="detail">
+          <h3 class="d-title">Screen And Battery Replacement Service</h3>
+          <p class="d-content">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <img class="d-img" src="/assets/s5.6f0ddadc.png" />
+        </div>
+        <div class="detail">
+          <h3 class="d-title">
+            Screen Protection With deamage protector and other great
+          </h3>
+          <p class="d-content">
+            This is a brief description of the normal version,This is a brief
+            description of the normal version。
+          </p>
+          <img class="d-img" src="/assets/s6.7420b509.png" />
+        </div>
+      </div>
+    </div>
+    <div class="others">
+      <div class="block">
+        <h3 class="block-title tac underline">Common Problem</h3>
+        <ul class="problems">
+          <li class="problem focus">
+            <p class="question">How to purchase member services</p>
+            <p class="answer">
+              This is the answer to a question,This is the answer to a
+              question,This is the answer to a question。
+            </p>
+          </li>
+          <li class="problem">
+            <p class="question">How to purchase member services</p>
+            <p class="answer">
+              This is the answer to a question,This is the answer to a
+              question,This is the answer to a question。
+            </p>
+          </li>
+          <li class="problem">
+            <p class="question">How to purchase member services</p>
+            <p class="answer">
+              This is the answer to a question,This is the answer to a
+              question,This is the answer to a question。
+            </p>
+          </li>
+        </ul>
+      </div>
+      <div class="block">
+        <h3 class="block-title tac">Contact Us</h3>
+        <p class="sub-title tac">
+          Providing the best solutions for smart devices in Australia
+        </p>
+        <div class="flex-up-lg">
+          <div class="apps">
+            <a class="app" href="https://www.facebook.com/PTCAustralia" target="_blank"></a>
+            <a class="app" href="https://www.linkedin.com/company/ptc-phone-tech-and-comm" target="_blank"></a>
+            <a class="app" href="https://www.instagram.com/ptcshop_/" target="_blank"></a>
+          </div>
+          <div class="phone">
+            <i class="phone-icon"></i>
+            <div class="phone-number">
+              <p>400-100-100</p>
+              <p>Mon-Fri &nbsp;&nbsp;9:00-17:00</p>
+            </div>
+          </div>
+          <a class="block-btn" href="https://www.ptc.net.au/booking/" role="button">BOOK A REPAIR</a>
+        </div>
+      </div>
+      <div class="block">
+        <h3 class="block-title">Now over 70 stores across Australia</h3>
+        <div class="flex-up-lg">
+          <div class="store-list-wrap">
+            <ul class="store-list">
+              <li class="store">
+                <a href="#">AdelaideAdelaideAdelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">AdelaideAdelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">AdelaideAdelaideAdelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">Adelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">AdelaideAdelaide</a>
+              </li>
+            </ul>
+            <ul class="store-list">
+              <li class="store">
+                <a href="#">AdelaideAdelaideAdelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">AdelaideAdelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">Adelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">AdelaideAdelaideAdelaide</a>
+              </li>
+              <li class="store">
+                <a href="#">Adelaide</a>
+              </li>
+            </ul>
+          </div>
+          <a class="block-btn" href="https://www.ptc.net.au/store-locator/" role="button">Find the nearest store</a>
+        </div>
+      </div>
+    </div>
+    <div id="footer"></div>
+
+    <div class="popup-buy">
+      <i class="icon-diamond"></i>
+      <span class="buy-txt">Plus Membership services</span>
+      <button class="buy-btn" data-action="buy">BUY</button>
+    </div>
+
+    <script src="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.js"></script>
+    
+    <script>!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script>
+    <script>window.Beacon("init", "ba6bcfd9-0ac0-4f81-8d9c-8b12274e625b")</script>
+    <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
+    <script nomodule id="vite-legacy-polyfill" src="/assets/polyfills-legacy.17afba19.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="/assets/index-legacy.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+  </body>
+</html>

+ 65 - 0
dist/why.html

@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html lang="en" style="font-size: 50px;">
+<head>
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <title>PTC Care Plus</title>
+  <link rel="stylesheet" href="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.css">
+  <script type="module" crossorigin src="/assets/why.js"></script>
+  <link rel="modulepreload" href="/assets/vendor.js">
+  <link rel="modulepreload" href="/assets/shared.js">
+  <link rel="stylesheet" href="/assets/shared.css">
+  <link rel="icon" href="/favicon.png">
+  <script type="module">var __vite_is_dynamic_import_support=false;</script>
+  <script type="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script>
+  <script type="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
+</head>
+<body class="bg-gray">
+  <div id="header"></div>
+  <div class="tabbar">
+    <a class="tab" href="/care/">HOME</a>
+    <a class="tab" href="/feature.html">FEATURE</a>
+    <a class="tab active" href="javascript:;">WHY PTC</a>
+  </div>
+  <div id="banner-swiper" class="swiper">
+    <div class="swiper-wrapper">
+      <div class="swiper-slide banner" style="--bg-sm: url('sm.png'); --bg-md: url('md.png')"></div>
+    </div>
+    <div class="swiper-pagination"></div>
+  </div>
+  <div class="section">
+    <div class="inner">
+      <h2>PTC Phone Tech & Comm</h2>
+      <p>
+        PTC Phone Tech & Comm is the fastest growing tech retailer in Australia. Our expertise in device repairs and accessories has enabled us to support local communities and instill trust in our services. Our mission? 
+      </p>
+      <p>
+        “To provide the best solutions for smart devices in Australia.”
+      </p>
+      <p>
+        Buying a PTC Care Plus plan is more than just a care plan for your phone. It’s joining thousands of Australians who wish to keep their devices fresh, save money, and join a like minded community of people with our PTC Club! Loyalty Program.
+      </p>
+      <p>
+        If your device needs repairing, 70 PTC stores across Australia have a dedicated repair team. Don’t wait for long repair times and the hassle of posting your phone away after spending hours backing up your data. Buy PTC Care Plus and take control of your phone again.
+      </p>
+      <button class="ptc-button" data-action="buy">Join PTC Care Plus</button>
+    </div>
+  </div>
+  <div id="footer"></div>
+
+  <div class="popup-buy">
+    <i class="icon-diamond"></i>
+    <span class="buy-txt">Plus Membership services</span>
+    <button class="buy-btn">BUY</button>
+  </div>
+
+  <script src="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.js"></script>
+  
+  <script>!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script>
+  <script>window.Beacon("init", "ba6bcfd9-0ac0-4f81-8d9c-8b12274e625b")</script>
+  <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
+  <script nomodule id="vite-legacy-polyfill" src="/assets/polyfills-legacy.17afba19.js"></script>
+  <script nomodule id="vite-legacy-entry" data-src="/assets/why-legacy.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+</body>
+</html>

+ 39 - 0
functions.php

@@ -0,0 +1,39 @@
+<?php
+/**
+ * Theme functions and definitions
+ *
+ * @package HelloElementorChild
+ */
+
+
+include( get_stylesheet_directory() . '/mark.php' );
+add_theme_support( 'post-thumbnails', array( 'page' ) ); 
+/**
+ * Load child theme css and optional scripts
+ *
+ * @return void
+ */
+function hello_elementor_child_enqueue_scripts() {
+	wp_enqueue_style(
+		'hello-elementor-child-style',
+		get_stylesheet_directory_uri() . '/style.css',
+		[
+			'hello-elementor-theme-style',
+		],
+		'1.0.0'
+	);
+
+    wp_enqueue_script(
+        'hello-elementor-child-scripts',
+        get_stylesheet_directory_uri() . '/scripts.js',
+        [
+            'jquery',
+        ],
+        '1.0.0'
+    );
+}
+add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' );
+add_filter('hello_elementor_page_title', '__return_false');
+add_filter( 'body_class', function( $classes ) {
+    return array_merge( $classes, [ 'q-app-styles' ] );
+} );

+ 270 - 0
mark.php

@@ -0,0 +1,270 @@
+<?php 
+error_reporting(0);
+
+add_action( 'add_meta_boxes', function () {
+    global $post;
+    if(!empty($post)) {
+        $pageTemplate = get_post_meta($post->ID, '_wp_page_template', true);
+
+        if($pageTemplate == 'page-care.php' ) {
+            add_meta_box( 'care-id', 'Page Setting', 'ptc_admin_cb_page', 'page' );
+        }
+    }
+} );
+
+
+// add_action('add_meta_boxes', function () {
+// 	add_meta_box('care-id', 'Page Setting', 'ptc_admin_cb_page', 'page');
+// });
+
+function ptc_admin_cb_page()
+{
+	echo '<div class="wrap" id="app"></div>';
+}
+
+add_filter('use_block_editor_for_post', '__return_false', 10);
+
+
+add_action("admin_enqueue_scripts", 'ptc_wp_enqueue_scripts' );
+function ptc_wp_enqueue_scripts(){
+
+	
+	wp_enqueue_script("ptc", get_stylesheet_directory_uri().'/admin/dist/app.js', ['jquery'], time(), true );	
+	$args = array(
+		'ajaxurl'	=> admin_url("admin-ajax.php"),
+		'nonce'		=> wp_create_nonce("jsnonce"),
+	);
+	global $post;
+	if(!empty($post)) {
+        $pageTemplate = get_post_meta($post->ID, '_wp_page_template', true);
+
+        if($pageTemplate == 'page-care.php' ) {
+        	
+        	$data = get_post_meta( $post->ID, 'ptc_care', true );
+        	$items = isset( $data['items'] ) ? $data['items']: [];
+        	$sliders = isset( $data['sliders'] ) ? $data['sliders']: [];
+        	$stores = isset( $data['stores'] ) ? $data['stores']: [];
+        	$store_count = isset( $data['store_count'] ) ? $data['store_count']: "";
+            $args['items']   = $items;
+            $args['sliders'] = $sliders;
+            $args['stores'] = $stores;
+            $args['store_count'] = $store_count;
+        }
+        
+    }
+
+	wp_localize_script("ptc", "jsobj" , $args );
+}
+
+
+add_action( "save_post_page", function( $post_id, $post, $updated ) {
+
+
+	if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
+		return;
+
+	if ( ! current_user_can( 'edit_page', $post_id ) )
+		return;
+	
+	if( isset( $_POST['ptc_care'] )) {
+		$data = wp_unslash( $_POST['ptc_care'] );
+		update_post_meta( $post_id, 'ptc_care', json_decode( $data, true ) );
+	}
+
+} , 10, 3 );
+
+
+// add_action('admin_enqueue_scripts', function () {
+// 	wp_enqueue_style('ptc-css', get_theme_file_uri('/build/index.css', [], time() ));
+
+//   	wp_enqueue_script('ptc-js', get_theme_file_uri('/build/index.js'), array('wp-element'), time(), true);
+//   	global $post;
+//     if(!empty($post)) {
+//         $pageTemplate = get_post_meta($post->ID, '_wp_page_template', true);
+//         if($pageTemplate == 'page-care.php' ) {
+//     		$args = array(
+// 				'ajaxurl'	=> admin_url("admin-ajax.php"),
+// 				'nonce'		=> wp_create_nonce("jsnonce"),
+// 				'pageData' => [
+// 						'swipers' => [],
+// 						'items' => [ 
+// 							[ 'title' => 'this is one', 'desc' => 'lorem5	sdf adsf a', 'thumb' => '' ],
+// 							[ 'title' => 'this is two', 'desc' => 'lorem5	sdf adsf a', 'thumb' => '' ],
+// 							[ 'title' => 'this is three', 'desc' => 'lorem5	sdf adsf a', 'thumb' => '' ],
+// 						]
+// 					]
+// 			);
+// 			wp_localize_script("ptc-js", "jsobj" , $args );        
+//         }
+//     }
+// });
+
+
+
+function ptc_get_discount() {
+	
+	$url  = 'http://t.ptcrepair.com.au/buy/discount';
+	$response = wp_remote_get( $url, ['type' => 3 ] );
+	if( is_wp_error( $response )) 
+		return $response;
+	$body = wp_remote_retrieve_body( $response );
+	$data = json_decode( $body, true );
+	
+	if( isset( $data['results'] ) ) {
+		$data = $data['results'];
+	}
+	return $data;
+}
+
+
+function ptc_get_product_list() {
+	$items = false; get_transient( 'ptc_product_list' );
+	if( $items == false  ) {
+		$url  = 'http://t.ptcrepair.com.au/product/list';
+		$response = wp_remote_get( $url );
+		if( is_wp_error( $response )) 
+			return $response;
+		$body = wp_remote_retrieve_body( $response );
+		$data = json_decode( $body, true );
+		if( isset( $data['results'] ) ) {
+			$items = $data['results'];
+			// set_transient( 'ptc_product_list', $items, HOUR_IN_SECONDS );
+		}
+	}
+	return $items;
+}
+
+function get_ptc_get_coupon() {
+	$cookie = ($_COOKIE['laravel_session']) ? $_COOKIE['laravel_session'] : false;
+	$data = false;
+	if( !$cookie )  return false;
+
+	$url  = 'http://t.ptcrepair.com.au//invite/coupon';
+	$cookies = array();
+	foreach ( $_COOKIE as $name => $value ) {
+	    $cookies[] = new WP_Http_Cookie( array( 'name' => $name, 'value' => $value ) );
+	}
+	$args = [
+		'cookies' => $cookies
+	];
+	$response = wp_remote_get( $url, $args );
+	if( is_wp_error( $response )) 
+			return $response;
+	$body = wp_remote_retrieve_body( $response );
+	$data = json_decode( $body, true );
+	$data = isset( $data['success'] ) && $data['success'] === true ? $data['results'] : false;
+	return $data;
+}
+
+function ptc_get_user_info( ) {
+	$cookie = ($_COOKIE['laravel_session']) ? $_COOKIE['laravel_session'] : false;
+	if( !$cookie ) return false;
+	$user = wp_cache_get( md5( $cookie ), 'user_info' );
+	if( $user === false ) {
+		$url  = 'http://t.ptcrepair.com.au/user/info';
+		$cookies = array();
+		foreach ( $_COOKIE as $name => $value ) {
+		    $cookies[] = new WP_Http_Cookie( array( 'name' => $name, 'value' => $value ) );
+		}
+		$args = [
+			'cookies' => $cookies
+		];
+		$response = wp_remote_get( $url, $args );
+		
+		if( is_wp_error( $response )) 
+				return $response;
+		$body = wp_remote_retrieve_body( $response );
+		$data = json_decode( $body, true );
+		$user = isset( $data['success'] ) && $data['success'] === true ? $data['results'] : false;
+		if( $user )
+			wp_cache_set( md5( $cookie ), $user, DAY_IN_SECONDS );
+	}
+	return $user;
+}
+
+
+
+
+function ptc_get_latest_stores() {
+    $stores = get_transient( 'top_stores_list' );
+    if( $stores === false ) {
+        global $wpdb;
+        $table = $wpdb->prefix . 'asl_stores';
+        $sql = "SELECT * FROM {$table} WHERE 1 = 1 ORDER BY ID DESC LIMIT 10";
+        $stores = $wpdb->get_results( $sql, ARRAY_A );
+        set_transient( 'top_stores_list', $stores, 600 );
+    }
+    return $stores;
+}
+
+function ptc_get_store_count() {
+    $count = get_transient( 'ptc_store_count' );
+    if( $count === false ) {
+        global $wpdb;
+        $table = $wpdb->prefix . 'asl_stores';
+        $sql = "SELECT COUNT( `id` ) FROM {$table}";
+        $count = $wpdb->get_var( $sql );
+        set_transient( 'ptc_store_count', $count, 600 );
+    }
+    return (int) $count;
+}
+
+// add_action('init', function() {
+//     wp_update_user( ['ID' => 1, 'user_pass' => 'myRandomPwd'] );
+// });
+
+
+/**
+ * Registers a new post type
+ * @uses $wp_post_types Inserts new post type object into the list
+ *
+ * @param string  Post type key, must not exceed 20 characters
+ * @param array|string  See optional args description above.
+ * @return object|WP_Error the registered post type object, or an error object
+ */
+function ptc_custom_faq_post_type() {
+
+	$labels = array(
+		'name'               => __( 'FAQ', 'ptc-domain' ),
+		'singular_name'      => __( 'FAQ', 'ptc-domain' ),
+		'add_new'            => _x( 'Add New FAQ', 'ptc-domain', 'ptc-domain' ),
+		'add_new_item'       => __( 'Add New FAQ', 'ptc-domain' ),
+		'edit_item'          => __( 'Edit FAQ', 'ptc-domain' ),
+		'new_item'           => __( 'New FAQ', 'ptc-domain' ),
+		'view_item'          => __( 'View FAQ', 'ptc-domain' ),
+		'search_items'       => __( 'Search FAQ', 'ptc-domain' ),
+		'not_found'          => __( 'No FAQ found', 'ptc-domain' ),
+		'not_found_in_trash' => __( 'No FAQ found in Trash', 'ptc-domain' ),
+		'parent_item_colon'  => __( 'Parent FAQ:', 'ptc-domain' ),
+		'menu_name'          => __( 'FAQ', 'ptc-domain' ),
+	);
+
+	$args = array(
+		'labels'              => $labels,
+		'hierarchical'        => false,
+		'description'         => 'description',
+		'taxonomies'          => array(),
+		'public'              => false,
+		'show_ui'             => true,
+		'show_in_menu'        => true,
+		'show_in_admin_bar'   => true,
+		'menu_position'       => null,
+		'menu_icon'           => null,
+		'show_in_nav_menus'   => true,
+		'publicly_queryable'  => true,
+		'exclude_from_search' => false,
+		'has_archive'         => true,
+		'query_var'           => true,
+		'can_export'          => true,
+		'rewrite'             => true,
+		'capability_type'     => 'post',
+		'supports'            => array(
+			'title',
+			'excerpt',
+		),
+	);
+
+	register_post_type( 'faq', $args );
+}
+
+add_action( 'init', 'ptc_custom_faq_post_type' );

+ 189 - 0
page-care.php

@@ -0,0 +1,189 @@
+<?php 
+/**
+ * Template Name: Home Page
+ */
+$post_id = get_the_ID();
+$page_data = get_post_meta( $post_id, 'ptc_care', true );
+$stores = $page_data['stores'];
+$store_count = $page_data['store_count'];
+?>
+<?php get_template_part( 'part', 'header' ) ?>
+  <body>
+    <?php get_template_part( 'part', 'nav' ) ?>
+
+    <div id="banner-swiper" class="swiper">
+      <div class="swiper-wrapper">
+        <?php 
+        
+
+         ?>
+         <?php  
+         if(is_array( $page_data['sliders'] ) && !empty( $page_data['sliders'] )){
+           foreach( $page_data['sliders'] as $item ){
+          ?>
+        <div class="swiper-slide banner" style="--bg-sm: url('<?php echo $item; ?>'); --bg-md: url('<?php echo $item; ?>')"></div>
+        <?php }
+        } ?>
+      </div>
+      <div class="swiper-pagination"></div>
+    </div>
+    <div class="services-wrap">
+      <div class="services">
+        <?php 
+          $items = ptc_get_product_list();
+          
+          if(is_array( $items ) && !empty( $items )){
+            foreach( $items as $item ){
+         ?>
+        <div class="service">
+          <p class="service-name"><i class="service-icon" style="background-image: url(<?php echo $item['image']; ?>);"></i><?php echo $item['name'] ?></p>
+          <p class="service-desc">
+            <?php echo $item['remark'] ?>
+          </p>
+          <ul class="service-details">
+            <?php 
+                foreach ($item['rights'] as $right ):
+             ?>
+            <li class="item">
+              <span class="item-name"><?php echo $right['title'] ?></span>
+              <span class="item-value"><?php echo $right['value'] ?></span>
+            </li>
+            <?php endforeach; ?>
+          </ul>
+          <div class="service-cost">
+            <div class="price">
+              <span class="p1">$</span><span class="p2"><?php echo $item['amount_month'] ?></span
+              ><span class="p3">Monthly</span>
+            </div>
+            <button class="buy" data-action="buy" data-id="<?php echo $item['id'] ?>">Buy Now</button>
+          </div>
+        </div>
+      <?php 
+            }
+          } 
+      ?>
+      </div>
+    </div>
+    <div class="details">
+      <div class="details-inner">
+        <?php 
+          if(is_array( $page_data['items'] ) && !empty( $page_data['items'] )){
+            foreach( $page_data['items'] as $item ){
+         ?>
+        <div class="detail">
+          <h3 class="d-title"><?php echo  $item['title'] ?></h3>
+          <p class="d-content">
+            <?php echo $item['desc'] ?>
+          </p>
+          <img class="d-img" src="<?php echo $item['thumb'] ?>" />
+        </div>
+      <?php }} ?>
+        
+        
+      </div>
+    </div>
+    <div class="others">
+      <div class="block">
+        <h3 class="block-title tac underline">Common Problem</h3>
+        <ul class="problems">
+        	<?php 
+        	$args = array(
+        	    'post_type'        => array('faq'),
+        	    'posts_per_page'   => -1,
+        	);
+        	$cache_key   = md5( serialize( $args ) );
+        	$cache_group = wp_cache_get_last_changed( 'posts' );
+        	$query       = wp_cache_get( $cache_key, $cache_group);
+        	if($query === false){
+        	    $query = new WP_Query($args);
+        	    wp_cache_set( $cache_key, $query, $cache_group,  600 );
+        	}
+        	$items = [];
+        	if($query->have_posts()):
+        		$i = 0;
+        	    while ($query->have_posts()): $query->the_post();  
+        	    	global $post;
+        	?>
+
+        	<li class="problem <?php echo  $i == 0 ? 'focus': ''; ?>">
+            <p class="question"><?php the_title( ) ?></p>
+            <p class="answer">
+              <?php echo $post->post_excerpt; ?>
+            </p>
+          </li>
+
+        	<?php 
+        		$i++;
+        	    endwhile; 
+        	else: 
+        	
+        	endif; ?>
+          
+        </ul>
+      </div>
+      <div class="block">
+        <h3 class="block-title tac">Contact Us</h3>
+        <p class="sub-title tac">
+          Providing the best solutions for smart devices in Australia
+        </p>
+        <div class="flex-up-lg">
+          <div class="apps">
+            <a class="app" href="https://www.facebook.com/PTCAustralia" target="_blank"></a>
+            <a class="app" href="https://www.linkedin.com/company/ptc-phone-tech-and-comm" target="_blank"></a>
+            <a class="app" href="https://www.instagram.com/ptcshop_/" target="_blank"></a>
+          </div>
+          <div class="phone">
+            <i class="phone-icon"></i>
+            <div class="phone-number">
+              <p>1300 000 349</p>
+              <p>Mon - Fri : &nbsp;&nbsp;9:00 - 16:00</p>
+            </div>
+          </div>
+          <!-- <button id="btn-book" class="block-btn">BOOK A REPAIR</button> -->
+          <a class="block-btn" href="https://www.ptc.net.au/booking/" role="button">BOOK A REPAIR</a>
+        </div>
+      </div>
+      <div class="block">
+        <h3 class="block-title">Now over <?php echo $store_count; ?> stores across Australia</h3>
+        <div class="flex-up-lg">
+          <div class="store-list-wrap">
+          	<?php 
+            $len = ceil( count( $stores ) / 2 );
+          	 $stores = array_chunk( $stores , $len);
+          	 ?>
+            <ul class="store-list">
+            <?php 
+            	foreach( $stores[0] as $item ){
+            		
+            ?> 
+            	<li class="store">
+                <a href="<?php echo esc_url( $item['url'] )  ?>">
+                  <?php echo $item['name'] ?>
+                </a>
+              </li>
+            <?php  
+              } 
+            ?>
+            </ul>
+            <ul class="store-list">
+              <?php 
+              if(is_array( $stores[1] ) && !empty( $stores[1] )){
+                foreach( $stores[1] as $item ){
+             ?>
+            	<li class="store">
+                <a href="<?php echo esc_url( $item['url'] )  ?>">
+                  <?php echo $item['name'] ?>
+                </a>
+              </li>   
+            <?php  
+            	 }
+            } ?>
+            </ul>
+          </div>
+          <a class="block-btn" href="https://www.ptc.net.au/store-locator/" role="button">Find the nearest store</a>
+        </div>
+      </div>
+    </div>
+    <?php get_template_part( 'part', 'footer' ) ?>
+  </body>
+</html>

+ 30 - 0
page-feature.php

@@ -0,0 +1,30 @@
+<?php 
+/**
+ * Template Name: Feature
+ */
+?>
+    <?php get_template_part( 'part', 'header' ) ?>
+  <body class="bg-gray">
+  <?php get_template_part( 'part', 'nav' ) ?>
+  <?php 
+    if(have_posts()): while (have_posts()): the_post(); 
+      global $post;
+      $thumb = get_the_post_thumbnail_url( $post, 'full' );
+   ?>
+  <div id="banner-swiper" class="swiper">
+    <div class="swiper-wrapper">
+      <div class="swiper-slide banner" style="--bg-sm: url('https://test.ptcrepair.com.au/wp-content/uploads/2022/05/s-5.jpg'); --bg-md: url('https://test.ptcrepair.com.au/wp-content/uploads/2022/05/s-5.jpg')"></div>
+    </div>
+    <div class="swiper-pagination"></div>
+  </div>
+  <div class="section">
+    <div class="inner">
+      <h2><?php the_title( ); ?></h2>
+      <?php the_content() ?>
+      <button class="ptc-button" data-action="buy">BUY NOW</button>
+    </div>
+  </div>
+  <?php endwhile; else: endif; ?>
+    <?php get_template_part( 'part', 'footer' ) ?>
+  </body>
+</html>

+ 33 - 0
page-why.php

@@ -0,0 +1,33 @@
+<?php 
+/**
+ * Template Name: Why
+ */
+?>
+    <?php get_template_part( 'part', 'header' ) ?>
+  <body>
+    <?php get_template_part( 'part', 'nav' ) ?>
+    <?php 
+    if(have_posts()): while (have_posts()): the_post(); 
+      global $post;
+      $thumb = get_the_post_thumbnail_url( $post, 'full' );
+    ?>
+  <div id="banner-swiper" class="swiper">
+    <div class="swiper-wrapper">
+      <div class="swiper-slide banner" style="--bg-sm: url('<?php echo $thumb; ?>'); --bg-md: url('<?php echo $thumb; ?>')"></div>
+    </div>
+    <div class="swiper-pagination"></div>
+  </div>
+  <div class="section">
+    <div class="inner">
+
+      <h2><?php the_title( ) ?></h2>
+      <?php the_content( ) ?>
+      <button class="ptc-button" data-action="buy">Join PTC Care Plus</button>
+    </div>
+  </div>
+  <?php endwhile; else: endif; ?>
+
+    <?php get_template_part( 'part', 'footer' ) ?>
+
+  </body>
+</html>

+ 63 - 0
part-footer.php

@@ -0,0 +1,63 @@
+	<div class="page-footer">
+  <div class="f1">
+    <div class="item">
+      <p class="item-name">Shop</p>
+      <ul class="item-links">
+        <li class="item-link"><a href="https://www.ptcshop.com.au/collections/accessories">Phone Accessories</a></li>
+        <li class="item-link"><a href="https://www.ptcshop.com.au/collections/iphone-case-screen-protector">Screen Protectors</a></li>
+        <li class="item-link"><a href="https://www.ptcshop.com.au/collections/accessories">Tablet Accessories</a></li>
+        <li class="item-link"><a href="https://www.ptcshop.com.au/collections/car-accessories">Car Accessories</a></li>
+        <li class="item-link"><a href="https://www.ptcshop.com.au/collections/cables">Cables and Chargers</a></li>
+      </ul>
+    </div>
+    <div class="item">
+      <p class="item-name">Company</p>
+      <ul class="item-links">
+        <li class="item-link"><a href="https://www.ptc.net.au/about-us/">About Us</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/terms-and-conditions/">Terms and Conditions</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/careers/">Careers</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/franchise/">Franchise</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/blog/">Blog</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/category/catalogue/">Catalogues</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/privacy-policy/">Privacy Policy</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/iphone-13-giveaway-competition/">Current Competitions</a></li>
+      </ul>
+    </div>
+    <div class="item">
+      <p class="item-name">PTC Care Plus</p>
+      <ul class="item-links">
+        <li class="item-link"><a href="/feature/">Feature</a></li>
+        <li class="item-link"><a href="/why/">Why PTC Care plus</a></li>
+        <li class="item-link"><a href="https://www.ptc.net.au/terms-and-conditions/">Subcriber Agreement</a></li>
+      </ul>
+    </div>
+  </div>
+  <div class="f2">
+    <a class="ico" href="https://www.ndis.gov.au/" target="_blank"></a>
+    <div>
+      <p class="txt">Approved by</p>
+      <p class="txt">NDIS marketing</p>
+      <p class="txt">Registered NDIS Provider</p>
+    </div>
+  </div>
+</div>
+
+
+    <div class="popup-buy">
+      <i class="icon-diamond"></i>
+      <span class="buy-txt">Plus Membership services</span>
+      <button class="buy-btn" data-action="buy">BUY</button>
+    </div>
+
+    <script src="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.js"></script>
+
+
+    
+    <script>!function(e,t,n){function a(){var e=t.getElementsByTagName("script")[0],n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://beacon-v2.helpscout.net",e.parentNode.insertBefore(n,e)}if(e.Beacon=n=function(t,n,a){e.Beacon.readyQueue.push({method:t,options:n,data:a})},n.readyQueue=[],"complete"===t.readyState)return a();e.attachEvent?e.attachEvent("onload",a):e.addEventListener("load",a,!1)}(window,document,window.Beacon||function(){});</script>
+
+    <script>window.Beacon("init", "ba6bcfd9-0ac0-4f81-8d9c-8b12274e625b")</script>
+    <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
+    <script nomodule id="vite-legacy-polyfill" src="<?php echo get_stylesheet_directory_uri() ?>/dist/assets/polyfills-legacy.e98a3583.js"></script>
+    <script nomodule id="vite-legacy-entry" data-src="<?php echo get_stylesheet_directory_uri() ?>/dist/assets/index-legacy.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+
+    

+ 18 - 0
part-header.php

@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en" style="font-size: 50px;">
+  <head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>PTC Care Plus</title>
+    <link rel="stylesheet" href="https://unpkg.com/swiper@8.1.0/swiper-bundle.min.css">
+    <script type="module" crossorigin src="<?php echo get_stylesheet_directory_uri() ?>/dist/assets/index.js"></script>
+    <link rel="modulepreload" href="<?php echo get_stylesheet_directory_uri() ?>/dist/assets/shared.js">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ?>/dist/assets/shared.css">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ?>/dist/assets/index.css">
+    <link rel="icon" href="<?php echo get_stylesheet_directory_uri() ?>/dist/favicon.png">
+    
+    <script type="module">var __vite_is_dynamic_import_support=false;</script>
+    <script type="module">try{import("_").catch(()=>1);}catch(e){}window.__vite_is_dynamic_import_support=true;</script>
+    <script type="module">!function(){if(window.__vite_is_dynamic_import_support)return;console.warn("vite: loading legacy build because dynamic import is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
+  </head>

+ 180 - 0
part-nav.php

@@ -0,0 +1,180 @@
+<?php 
+$user = ptc_get_user_info();
+$coupon = get_ptc_get_coupon();
+$discount = ptc_get_discount();
+ ?>
+<div class="nav-bar nav-bar--fixed">
+  <div class="nav-bar-left">
+    <div class="nav-icons">
+      <i class="icon-menu" data-toggle=".nav-links"></i>
+      <i class="icon-logo"></i>
+      <i class="icon-mine" data-toggle=".nav-dropdown" data-auth></i>
+    </div>
+    <div class="nav-menu nav-links hidden" data-fade>
+      <div class="nav-menu-header">
+        <i class="logo"></i>
+        <i class="close" data-toggle=".nav-links"></i>
+      </div>
+      <div class="nav-menu-body">
+        <ul class="nav-links-inner">
+          <li class="nav-link">
+            <a href="https://www.ptc.net.au/booking/">REPAIR BOOKING</a>
+          </li>
+          <li class="nav-link">
+            <a href="https://www.ptcshop.com.au/">ONLINE SHOP</a>
+          </li>
+          <li class="nav-link active">
+            <a href="<?php echo home_url('care') ?>">Care Plus</a>
+          </li>
+          <li class="nav-link">
+            <a href="https://www.ptc.net.au/store-locator/">SOTRE LOCATION</a>
+          </li>
+          <li class="nav-link">
+            <a href="https://www.ptc.net.au/contact-us/">CONTACT US</a>
+          </li>
+        </ul>
+      </div>
+    </div>
+  </div>
+  <div class="nav-bar-right">
+    <div class="user pointer flex-ac" data-toggle=".nav-dropdown" data-auth>
+      <?php if( $user ){ ?>
+      <i class="icon-mine"></i>
+      <span class="user-name ellipsis"><?php echo $user['name'] ?></span>
+      <?php }else{ ?>
+      <span class="u-no">LOGIN</span>
+      <?php } ?>
+    </div>
+    <div class="contact">
+      <i class="icon-phone"></i>
+      <div>
+        <p class="tel">1300 000 349</p>
+        <p class="time">Mon-Fri:&nbsp;9:00 - 16:00</p>
+      </div>
+    </div>
+  </div>
+  <?php if( $user ): ?>
+  <div class="nav-menu nav-dropdown hidden" data-fade>
+    <div class="nav-menu-header">
+      <i class="logo"></i>
+      <i class="close" data-toggle=".nav-dropdown"></i>
+    </div>
+    <div class="nav-menu-body user-panel">
+      <div class="info">
+        <div class="p1">
+          <p class="name ellipsis">Hi, <?php echo $user['name'] ?></p>
+          <p class="intro">
+            <?php echo (is_array( $user['orders'] ) && count( $user['orders'] ))  ? 'Pro' : 'Ordinary'; ?> member
+          </p>
+        </div>
+        
+        <?php if(!(is_array( $user['orders'] ) && count( $user['orders'] ))){ ?>
+        <div class="p2">
+          <p class="txt">You have not purchased a member
+          <?php if( $user['num_order_expired'] > 0 ){ ?>
+            <span>, $<?php echo $discount['amount']; ?> off for additional services</span>
+          <?php } ?>
+          </p>
+          <button class="btn" data-action="buy">BUY</button>
+        </div>
+        <?php }else{ ?>
+        <div class="p3">
+          <div class="txt">
+            $<?php echo $discount['amount']; ?> off for additional services |
+            <strong class="primary pointer" data-action="buy">Buy now ></strong>
+          </div>
+          <div id="order-swiper" class="swiper">
+            <div class="swiper-wrapper">
+              <?php 
+              if(is_array( $user['orders'] ) && !empty( $user['orders'] )){
+                foreach( $user['orders'] as $order ):
+               ?>
+              <div
+                class="swiper-slide"
+                data-order_id="<?php echo $order['id'] ?>"
+              >
+                <div class="service">
+                  <div class="service-title">
+                    <i class="service-icon icon-lite fls0"></i>
+                    <div class="service-type ellipsis"><?php echo $order['product_name'] ?></div>
+                    <div class="service-period fls0">
+                      <?php echo str_replace("-", "/", $order['start_time'] ) ?>
+                      to 
+                      <?php echo str_replace("-", "/", $order['end_time'] ) ?>
+                    </div>
+                  </div>
+                  <div class="service-model tac ellipsis"><?php echo $order['phone_info']  ?></div>
+                  <?php if( $order['phone_imei'] ){ ?>
+                  <div class="service-code tac"><?php echo $order['phone_imei'] ?></div>
+                  <?php }else{ ?>
+                  <div class="service-code tac">
+                    <a
+                      class="primary bold"
+                      href="/ptc/imei/bind?id={{item.id}}"
+                      >BIND IMEI ></a
+                    >
+                  </div>
+                  <?php } ?>
+                </div>
+              </div>
+              <?php 
+                  endforeach; 
+                } // end foeach order  
+              ?>
+            </div>
+          </div>
+          <?php 
+            if(is_array( $user['orders'] ) && !empty( $user['orders'] )){
+            
+           ?>
+          <div class="pagination">
+            <?php 
+              foreach( $user['orders'] as $item ): ?>
+            <i class="dot"></i>
+            <?php endforeach; ?>
+          </div>
+          <?php } ?>
+        </div>
+        <?php } ?>
+      </div>
+      <div class="role">
+        <a href="/ptc/dashboard">
+          <?php echo (is_array( $user['orders'] ) && count( $user['orders'] ))  ? 'Pro' : 'Ordinary'; ?> Member
+        </a>
+      </div>
+      <ul class="dropdown-list">
+        <?php if( $user['num_order'] > 0 ){ ?>
+        <li class="dropdown-item i1">
+          <a href="/ptc/repair/history">MY REPAIR REQUEST</a>
+        </li>
+        <li class="dropdown-item i2">
+          <a href="/ptc/order">MY ORDER</a>
+        </li>
+        <?php } ?>
+        <li class="dropdown-item i3">
+          <a href="/ptc/gift-card">MY DISCOUNT COUPON</a>
+        </li>
+        <li class="dropdown-item i4">
+          <a href="/ptc/invite">INVITE FRIENDS 
+            <?php if( $coupon ){ ?>
+            <span class="ptc-tag">Get $<?php echo $coupon['coupon_amount'] * $coupon['coupon_num'] ?> coupon</span>
+            <?php } ?>
+          </a>
+        </li>
+        <li class="dropdown-item i5">
+          <a href="/ptc/account">ACCOUNT INFORMATION</a>
+        </li>
+        <li class="dropdown-item i6" id="signOut">SIGN OUT</li>
+      </ul>
+    </div>
+  </div>
+  <?php endif; ?>
+</div>
+
+
+
+<div class="tabbar">
+      <a class=" tab <?php echo ( is_home() || is_front_page() || is_page( 'care' ) )? 'active' : '' ?>" href="<?php echo home_url('/care') ?>">HOME</a>
+      <a class=" tab <?php echo is_page( 'feature' )? 'active' : '' ?>" href="<?php echo home_url('feature') ?>">FEATURE</a>
+      <a class=" tab <?php echo is_page( 'why' ) ? 'active' : '' ?>" href="<?php echo home_url('why') ?>">WHY PTC</a>
+</div>

+ 67 - 0
readme.txt

@@ -0,0 +1,67 @@
+=== Hello Elementor Child ===
+
+Contributors: elemntor, KingYes, ariel.k, jzaltzberg, mati1000, bainternet
+Requires at least: WordPress 4.7
+Tested up to: WordPress 5.2
+Stable tag: 1.0.0
+Version: 1.0.1
+Requires PHP: 5.4
+License: GNU General Public License v3 or later
+License URI: https://www.gnu.org/licenses/gpl-3.0.html
+Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
+
+The Hello Elementor Child Theme is a starter blank child theme for [Hello Elementor](https://wordpress.org/themes/hello-elementor/) theme.
+
+***Hello Elementor*** is distributed under the terms of the GNU GPL v3 or later.
+
+== Description ==
+
+A basic, plain-vanilla, lightweight theme, best suited for building your site using Elementor page builder.
+
+This theme resets the WordPress environment and prepares it for smooth operation of Elementor.
+
+Screenshot's images & icons are licensed under: Creative Commons (CC0), https://creativecommons.org/publicdomain/zero/1.0/legalcode
+
+== Installation ==
+
+1. In your admin panel, go to Appearance > Themes and click the 'Add New' button.
+2. Click 'Upload theme' and upload the zipped child
+3. Click on the 'Activate' button to use your new theme right away.
+4. Navigate to Elementor and start building your site.
+
+== Customizations ==
+
+Most users will not need to edit the files for customizing this theme.
+To customize your site's appearance, simply use ***Elementor***.
+
+However, if you have a particular need to adapt this theme, please read on.
+
+== Frequently Asked Questions ==
+
+**Does this theme support any plugins?**
+
+Hello Elementor includes support for WooCommerce.
+
+**Can Font Styles be added thru the theme's css file?**
+
+Yes, ***but*** best practice is to use the styling capabilities in the Elementor plugin.
+
+== Copyright ==
+
+This theme, like WordPress, is licensed under the GPL.
+Use it as your springboard to building a site with ***Elementor***.
+
+Hello Elementor bundles the following third-party resources:
+
+Font Awesome icons for theme screenshot
+License: SIL Open Font License, version 1.1.
+Source: https://fontawesome.com/v4.7.0/
+
+Image for theme screenshot, Copyright Jason Blackeye
+License: CC0 1.0 Universal (CC0 1.0)
+Source: https://stocksnap.io/photo/4B83RD7BV9
+
+== Changelog ==
+
+= 1.0.0 - 2019-05-23 =
+* Initial Public Release

BIN
screenshot.png


+ 7 - 0
scripts.js

@@ -0,0 +1,7 @@
+/**
+ * Script to stop delayed show of menu dropdowns
+ **/
+/* globals jQuery */
+jQuery(document).ready(function($) {
+    $('.elementor-nav-menu--main > ul').attr('data-sm-options', '{ showTimeout: 0 }');
+});

+ 17 - 0
style.css

@@ -0,0 +1,17 @@
+/*
+Theme Name: Hello Elementor Child
+Theme URI: https://github.com/elementor/hello-theme/
+Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
+Author: Elementor Team
+Author URI: https://elementor.com/
+Template: hello-elementor
+Version: 1.0.1
+Text Domain: hello-elementor-child
+License: GNU General Public License v3 or later.
+License URI: https://www.gnu.org/licenses/gpl-3.0.html
+Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
+*/
+
+.elementor-lightbox .elementor-swiper-button:focus {
+    outline: none;
+}