From 01e9a8e40351a87f6548a4f55de842d6f6918ad0 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 15 Sep 2026 02:44:28 +0000
Subject: [PATCH] =Found little glitch with auto-adding rewrite rules to taxonomy Registrar instances where we have the post type as the base in the url rewrite
---
inc/helpers/renderFields.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/inc/helpers/renderFields.php b/inc/helpers/renderFields.php
index d26da67..44af18d 100644
--- a/inc/helpers/renderFields.php
+++ b/inc/helpers/renderFields.php
@@ -17,7 +17,7 @@
* @param string $on
* @param string $off
* @param bool $hidden
- *
+ * @param array $data
* @return string
*/
function jvbRenderToggleTextField(
@@ -584,6 +584,7 @@
}
$firstPart = [
+ $location['address'],
$location['street'],
$location['city'],
$location['province'],
@@ -595,15 +596,15 @@
$googleAddress = urlencode($coords.','.$address);
$appAddress = urlencode($address);
$google_url = "https://www.google.com/maps/dir/?api=1&destination={$googleAddress}";
- $apple_url = "https://maps.apple.com/?daddr={$appAddress}";
+ $apple_url = "https://maps.apple.com/?daddr={$appAddress}&dirflg=1";
$apple = sprintf(
- '<a href="%s" target="_blank" rel="noopener" class="apple-link" title="Find us in Apple Maps">%s</a>',
+ '<a href="%s" target="_blank" rel="noopener" class="apple-link btn chip" title="Find us on Apple Maps">%s</a>',
$apple_url,
jvbIcon('apple-logo')
);
$google = sprintf(
- '<a href="%s" target="_blank" rel="noopener" class="apple-link" title="Find us in Apple Maps">%s</a>',
+ '<a href="%s" target="_blank" rel="noopener" class="btn chip" title="Find us on Google Maps">%s</a>',
$google_url,
jvbIcon('google-logo')
);
--
Gitblit v1.10.0