-
-
Save cmb69/786ece8c527bfe160ad158bf43427898 to your computer and use it in GitHub Desktop.
locator patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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