locator patch
cmsimple/tplfuncs.php | 7 ++++--- | |
1 file changed, 4 insertions(+), 3 deletions(-) | |
diff --git a/cmsimple/tplfuncs.php b/cmsimple/tplfuncs.php | |
index 4a91580e..3250e1bc 100644 | |
--- a/cmsimple/tplfuncs.php | |
+++ b/cmsimple/tplfuncs.php | |
@@ -369,14 +369,15 @@ function locator() | |
} | |
$html .= '<span property="itemListElement" typeof="ListItem">'; | |
$inner = '<span property="name">' . $title | |
- . '</span><meta property="position" content="'. ($i + 1) . '">'; | |
+ . '</span>'; | |
if (isset($url) && $i < $last) { | |
$html .= '<a property="item" typeof="WebPage" href="' . $url . '">' | |
. $inner . '</a>'; | |
} else { | |
- $html .= $inner; | |
+ $html .= '<span property="item" typeof="WebPage" href="' . $url . '">' | |
+ . $inner . '</span>'; | |
} | |
- $html .= '</span>'; | |
+ $html .= '<meta property="position" content="'. ($i + 1) . '"></span>'; | |
} | |
$html .= '</span>'; | |
return $html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment