{"id":14816,"date":"2025-05-15T19:03:39","date_gmt":"2025-05-15T16:03:39","guid":{"rendered":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/"},"modified":"2025-05-19T22:10:37","modified_gmt":"2025-05-19T19:10:37","slug":"my-account-2","status":"publish","type":"page","link":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/","title":{"rendered":"My Account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"14816\" class=\"elementor elementor-14816\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7cabca4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7cabca4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e02c221\" data-id=\"e02c221\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cf0b098 elementor-widget elementor-widget-html\" data-id=\"cf0b098\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\r\n.custom-account {\r\n  max-width: 700px;\r\n  margin: 40px auto;\r\n  font-family: 'Segoe UI', sans-serif;\r\n  background: #fff;\r\n  border-radius: 12px;\r\n  box-shadow: 0 8px 30px rgba(0,0,0,0.05);\r\n  overflow: hidden;\r\n}\r\n.custom-tabs {\r\n  display: flex;\r\n  background: #f0f0ff;\r\n  border-bottom: 1px solid #ddd;\r\n}\r\n.custom-tab {\r\n  flex: 1;\r\n  text-align: center;\r\n  padding: 14px 10px;\r\n  cursor: pointer;\r\n  font-weight: 500;\r\n  transition: 0.3s ease;\r\n}\r\n.custom-tab:hover, .custom-tab.active {\r\n  background: #d6d6f7;\r\n}\r\n.custom-content {\r\n  padding: 30px;\r\n  display: none;\r\n}\r\n.custom-content.active {\r\n  display: block;\r\n}\r\n.custom-username {\r\n  font-size: 20px;\r\n  margin-bottom: 10px;\r\n}\r\nform input {\r\n  width: 100%;\r\n  padding: 8px;\r\n  margin: 8px 0 16px 0;\r\n  border: 1px solid #ccc;\r\n  border-radius: 6px;\r\n}\r\nform button {\r\n  padding: 10px 20px;\r\n  background: #3f51b5;\r\n  color: white;\r\n  border: none;\r\n  border-radius: 6px;\r\n  cursor: pointer;\r\n}\r\nform button:hover {\r\n  background: #2c3ea3;\r\n}\r\niframe.password-reset {\r\n  width: 100%;\r\n  height: 400px;\r\n  border: none;\r\n}\r\n.success-msg {\r\n  margin-top: 10px;\r\n  color: green;\r\n}\r\n.error-msg {\r\n  margin-top: 10px;\r\n  color: red;\r\n}\r\n.logout-btn {\r\n  background: #e53935;\r\n  color: white;\r\n  padding: 10px 20px;\r\n  display: inline-block;\r\n  border-radius: 8px;\r\n  text-decoration: none;\r\n  transition: 0.2s;\r\n}\r\n.logout-btn:hover {\r\n  background: #c62828;\r\n}\r\n<\/style>\r\n\r\n<div class=\"custom-account\">\r\n  <div class=\"custom-tabs\">\r\n    <div class=\"custom-tab active\" data-tab=\"dashboard\">P\u0101rskats<\/div>\r\n    <div class=\"custom-tab\" data-tab=\"edit-profile\">Redi\u0123\u0113t profilu<\/div>\r\n    <div class=\"custom-tab\" data-tab=\"change-password\">Main\u012bt paroli<\/div>\r\n    <div class=\"custom-tab\" data-tab=\"logout\">Izrakst\u012bties<\/div>\r\n  <\/div>\r\n\r\n  <div class=\"custom-content active\" id=\"dashboard\">\r\n    [custom_account_greeting]\r\n    <p>No sava konta p\u0101rskata j\u016bs varat redi\u0123\u0113t profila inform\u0101ciju un main\u012bt paroli.<\/p>\r\n\r\n  <\/div>\r\n\r\n  <div class=\"custom-content\" id=\"edit-profile\">\r\n    <h3>Redi\u0123\u0113t profilu<\/h3>\r\n    <form id=\"update-info-form\">\r\n      <label for=\"new-name\">Jaunais v\u0101rds:<\/label>\r\n      <input type=\"text\" id=\"new-name\" required placeholder=\"Ievadiet jaunu v\u0101rdu\">\r\n      \r\n      <label for=\"new-email\">Jaunais e-pasts:<\/label>\r\n      <input type=\"email\" id=\"new-email\" required placeholder=\"Ievadiet jaunu e-pastu\">\r\n\r\n      <button type=\"submit\">Saglab\u0101t izmai\u0146as<\/button>\r\n      <p id=\"info-update-msg\"><\/p>\r\n    <\/form>\r\n  <\/div>\r\n\r\n  <div class=\"custom-content\" id=\"change-password\">\r\n    <iframe class=\"password-reset\" src=\"https:\/\/www.veikals.teniss.lv\/wp-login.php?action=lostpassword\"><\/iframe>\r\n  <\/div>\r\n\r\n  <div class=\"custom-content\" id=\"logout\">\r\n    <h3>Vai tie\u0161\u0101m v\u0113laties izrakst\u012bties?<\/h3>\r\n    <a href=\"\/wp-login.php?action=logout\" class=\"logout-btn\">Izrakst\u012bties<\/a>\r\n  <\/div>\r\n<\/div>\r\n\r\n<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n  const tabs = document.querySelectorAll('.custom-tab');\r\n  const contents = document.querySelectorAll('.custom-content');\r\n\r\n  tabs.forEach(tab => {\r\n    tab.addEventListener('click', () => {\r\n      const tabId = tab.getAttribute('data-tab');\r\n      tabs.forEach(el => el.classList.remove('active'));\r\n      contents.forEach(el => el.classList.remove('active'));\r\n      tab.classList.add('active');\r\n      document.getElementById(tabId).classList.add('active');\r\n    });\r\n  });\r\n\r\n  const form = document.getElementById('update-info-form');\r\n  form?.addEventListener('submit', function (e) {\r\n    e.preventDefault();\r\n    const newName = document.getElementById('new-name').value.trim();\r\n    const newEmail = document.getElementById('new-email').value.trim();\r\n    const msg = document.getElementById('info-update-msg');\r\n\r\n    fetch('\/wp-admin\/admin-ajax.php', {\r\n      method: 'POST',\r\n      headers: {'Content-Type': 'application\/x-www-form-urlencoded'},\r\n      body: new URLSearchParams({\r\n        action: 'update_user_info',\r\n        new_name: newName,\r\n        new_email: newEmail\r\n      })\r\n    })\r\n    .then(res => res.json())\r\n    .then(data => {\r\n      if (data.success) {\r\n        document.getElementById('user-name').textContent = newName;\r\n        msg.textContent = 'Dati veiksm\u012bgi saglab\u0101ti.';\r\n        msg.className = 'success-msg';\r\n      } else {\r\n        msg.textContent = data.data || 'K\u013c\u016bda saglab\u0101jot datus.';\r\n        msg.className = 'error-msg';\r\n      }\r\n    });\r\n  });\r\n});\r\n<\/script>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>P\u0101rskats Redi\u0123\u0113t profilu Main\u012bt paroli Izrakst\u012bties [custom_account_greeting] No sava konta p\u0101rskata j\u016bs varat redi\u0123\u0113t profila inform\u0101ciju un main\u012bt paroli. Redi\u0123\u0113t profilu Jaunais v\u0101rds: Jaunais e-pasts: Saglab\u0101t izmai\u0146as Vai tie\u0161\u0101m v\u0113laties izrakst\u012bties? Izrakst\u012bties<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/template-pagebuilder-full-width.php","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-14816","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>My Account - Tenisa veikals<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/\" \/>\n<meta property=\"og:locale\" content=\"lv_LV\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"My Account - Tenisa veikals\" \/>\n<meta property=\"og:description\" content=\"P\u0101rskats Redi\u0123\u0113t profilu Main\u012bt paroli Izrakst\u012bties [custom_account_greeting] No sava konta p\u0101rskata j\u016bs varat redi\u0123\u0113t profila inform\u0101ciju un main\u012bt paroli. Redi\u0123\u0113t profilu Jaunais v\u0101rds: Jaunais e-pasts: Saglab\u0101t izmai\u0146as Vai tie\u0161\u0101m v\u0113laties izrakst\u012bties? Izrakst\u012bties\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Tenisa veikals\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-19T19:10:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 min\u016bte\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/index.php\\\/my-account-2\\\/\",\"url\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/index.php\\\/my-account-2\\\/\",\"name\":\"My Account - Tenisa veikals\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/#website\"},\"datePublished\":\"2025-05-15T16:03:39+00:00\",\"dateModified\":\"2025-05-19T19:10:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/index.php\\\/my-account-2\\\/#breadcrumb\"},\"inLanguage\":\"lv-LV\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.veikals.teniss.lv\\\/index.php\\\/my-account-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/index.php\\\/my-account-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"My Account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/#website\",\"url\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/\",\"name\":\"Tenisa veikals\",\"description\":\"RAKE\u0160U SPORTA E-VEIKALS\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"lv-LV\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/#organization\",\"name\":\"Teniss.lv\",\"url\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"lv-LV\",\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/cropped-babolat-logo1.png\",\"contentUrl\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/cropped-babolat-logo1.png\",\"width\":500,\"height\":125,\"caption\":\"Teniss.lv\"},\"image\":{\"@id\":\"https:\\\/\\\/www.veikals.teniss.lv\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"My Account - Tenisa veikals","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/","og_locale":"lv_LV","og_type":"article","og_title":"My Account - Tenisa veikals","og_description":"P\u0101rskats Redi\u0123\u0113t profilu Main\u012bt paroli Izrakst\u012bties [custom_account_greeting] No sava konta p\u0101rskata j\u016bs varat redi\u0123\u0113t profila inform\u0101ciju un main\u012bt paroli. Redi\u0123\u0113t profilu Jaunais v\u0101rds: Jaunais e-pasts: Saglab\u0101t izmai\u0146as Vai tie\u0161\u0101m v\u0113laties izrakst\u012bties? Izrakst\u012bties","og_url":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/","og_site_name":"Tenisa veikals","article_modified_time":"2025-05-19T19:10:37+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 min\u016bte"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/","url":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/","name":"My Account - Tenisa veikals","isPartOf":{"@id":"https:\/\/www.veikals.teniss.lv\/#website"},"datePublished":"2025-05-15T16:03:39+00:00","dateModified":"2025-05-19T19:10:37+00:00","breadcrumb":{"@id":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/#breadcrumb"},"inLanguage":"lv-LV","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.veikals.teniss.lv\/index.php\/my-account-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.veikals.teniss.lv\/"},{"@type":"ListItem","position":2,"name":"My Account"}]},{"@type":"WebSite","@id":"https:\/\/www.veikals.teniss.lv\/#website","url":"https:\/\/www.veikals.teniss.lv\/","name":"Tenisa veikals","description":"RAKE\u0160U SPORTA E-VEIKALS","publisher":{"@id":"https:\/\/www.veikals.teniss.lv\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.veikals.teniss.lv\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"lv-LV"},{"@type":"Organization","@id":"https:\/\/www.veikals.teniss.lv\/#organization","name":"Teniss.lv","url":"https:\/\/www.veikals.teniss.lv\/","logo":{"@type":"ImageObject","inLanguage":"lv-LV","@id":"https:\/\/www.veikals.teniss.lv\/#\/schema\/logo\/image\/","url":"https:\/\/www.veikals.teniss.lv\/wp-content\/uploads\/2021\/01\/cropped-babolat-logo1.png","contentUrl":"https:\/\/www.veikals.teniss.lv\/wp-content\/uploads\/2021\/01\/cropped-babolat-logo1.png","width":500,"height":125,"caption":"Teniss.lv"},"image":{"@id":"https:\/\/www.veikals.teniss.lv\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/pages\/14816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/comments?post=14816"}],"version-history":[{"count":22,"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/pages\/14816\/revisions"}],"predecessor-version":[{"id":14877,"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/pages\/14816\/revisions\/14877"}],"wp:attachment":[{"href":"https:\/\/www.veikals.teniss.lv\/index.php\/wp-json\/wp\/v2\/media?parent=14816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}