From 7641ea1aa025078d27b885dcb2adb37dbc0ea6bb Mon Sep 17 00:00:00 2001 From: gregory-p Date: Fri, 22 Mar 2019 11:53:09 +0300 Subject: [PATCH 1/3] LAW-2640 --- htdocs/wp-content/themes/lawcarta/footer.php | 4 ++-- htdocs/wp-content/themes/livecarta/footer.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/wp-content/themes/lawcarta/footer.php b/htdocs/wp-content/themes/lawcarta/footer.php index 4b62381..98caf92 100644 --- a/htdocs/wp-content/themes/lawcarta/footer.php +++ b/htdocs/wp-content/themes/lawcarta/footer.php @@ -11,7 +11,7 @@ require_once 'inc/walker-nav-menu.php';
Menu
Features About Us - Private Policy + Privacy Policy Terms of Use Contact Us FAQ @@ -23,7 +23,7 @@ require_once 'inc/walker-nav-menu.php';
Legal
- Private Policy + Privacy Policy Terms of Use
diff --git a/htdocs/wp-content/themes/livecarta/footer.php b/htdocs/wp-content/themes/livecarta/footer.php index 4887ffd..2ef0c44 100644 --- a/htdocs/wp-content/themes/livecarta/footer.php +++ b/htdocs/wp-content/themes/livecarta/footer.php @@ -5,7 +5,7 @@
Menu
Features About Us - Private Policy + Privacy Policy Terms of Use Contact Us FAQ @@ -17,7 +17,7 @@
Legal
- Private Policy + Privacy Policy Terms of Use
From fb84f44f9723718ce7c856f81cca61f21fe47176 Mon Sep 17 00:00:00 2001 From: gregory-p Date: Fri, 22 Mar 2019 14:03:07 +0300 Subject: [PATCH 2/3] LAW-2639 --- .../wp-content/themes/lawcarta/functions.php | 29 +++++++++++++++++++ htdocs/wp-content/themes/lawcarta/header.php | 29 +------------------ .../wp-content/themes/lawcarta/page_fac.php | 6 ++-- .../lawcarta/single-fac_category_answer.php | 4 +-- 4 files changed, 35 insertions(+), 33 deletions(-) diff --git a/htdocs/wp-content/themes/lawcarta/functions.php b/htdocs/wp-content/themes/lawcarta/functions.php index 2cd102e..b41aaf7 100644 --- a/htdocs/wp-content/themes/lawcarta/functions.php +++ b/htdocs/wp-content/themes/lawcarta/functions.php @@ -182,3 +182,32 @@ function my_filter_post_where( $where) { return $where; } + +function get_lawcarta_url(){ + $urlParts = parse_url(home_url()); + $scheme = isset($urlParts['scheme']) ? $urlParts['scheme'] . '://' : ''; + + $baseTemplate = basename( get_page_template() ); + + $host = isset($urlParts['host']) ? $urlParts['host'] : ''; + if (defined('LAWCARTA_SUBDOMAIN')) { + $hostParts = explode('.', $host); + if (count($hostParts) === 3) { + array_shift($hostParts); + } + if (!empty(LAWCARTA_SUBDOMAIN)) { + array_unshift($hostParts, LAWCARTA_SUBDOMAIN); + } + $host = implode('.', $hostParts); + } + + $port = isset($urlParts['port']) ? $urlParts['port'] : ''; + if (defined('LAWCARTA_PORT')) { + $port = LAWCARTA_PORT; + } + if (!empty($port)) { + $port = ':' . $port; + } + + return "$scheme$host$port"; +} \ No newline at end of file diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index 1cae7ce..e9099ec 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -2,33 +2,6 @@ require_once 'inc/walker-nav-menu.php'; -$urlParts = parse_url(home_url()); -$scheme = isset($urlParts['scheme']) ? $urlParts['scheme'] . '://' : ''; - -$baseTemplate = basename( get_page_template() ); - -$host = isset($urlParts['host']) ? $urlParts['host'] : ''; -if (defined('LAWCARTA_SUBDOMAIN')) { - $hostParts = explode('.', $host); - if (count($hostParts) === 3) { - array_shift($hostParts); - } - if (!empty(LAWCARTA_SUBDOMAIN)) { - array_unshift($hostParts, LAWCARTA_SUBDOMAIN); - } - $host = implode('.', $hostParts); -} - -$port = isset($urlParts['port']) ? $urlParts['port'] : ''; -if (defined('LAWCARTA_PORT')) { - $port = LAWCARTA_PORT; -} -if (!empty($port)) { - $port = ':' . $port; -} - -$lawCartaUrl = "$scheme$host$port"; - ?> > @@ -48,7 +21,7 @@ $lawCartaUrl = "$scheme$host$port"; diff --git a/htdocs/wp-content/themes/lawcarta/page_fac.php b/htdocs/wp-content/themes/lawcarta/page_fac.php index b69b0e6..fb07230 100644 --- a/htdocs/wp-content/themes/lawcarta/page_fac.php +++ b/htdocs/wp-content/themes/lawcarta/page_fac.php @@ -93,8 +93,8 @@ if ($tIds !== false) {
Interested? Get to know more
@@ -102,5 +102,5 @@ if ($tIds !== false) {
Interested? Get to know more
- Request a demo - Sign Up For Free + Request a demo + Sign Up For Free
From 15cf2b445ec92d59103feddc8f6779722aa62f04 Mon Sep 17 00:00:00 2001 From: gregory-p Date: Fri, 22 Mar 2019 14:12:07 +0300 Subject: [PATCH 3/3] LAW-2639 --- htdocs/wp-content/themes/lawcarta/header.php | 6 +++--- htdocs/wp-content/themes/lawcarta/page_fac.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index e9099ec..def1ee1 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -50,14 +50,14 @@ require_once 'inc/walker-nav-menu.php'; } ?> - +