Changeset 2231172
- Timestamp:
- 01/21/2020 08:01:46 PM (6 years ago)
- Location:
- slick-engagement/trunk
- Files:
-
- 3 edited
-
SlickEngagement_Plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
slick-engagement.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
slick-engagement/trunk/SlickEngagement_Plugin.php
r2230520 r2231172 194 194 } 195 195 196 public function removeSemicolons($value) 197 { 198 return str_replace(';', ' ', $value); 199 } 200 196 201 public function addSlickPageHeader() 197 202 { 198 203 global $post; 204 echo "\n"; 205 echo '<meta property="slick:wpversion" content="1.0.17" />' . "\n"; 199 206 $siteCode = $this->getOption('SiteCode'); 200 echo "\n";201 echo '<meta property="slick:wpversion" content="1.0.16" />' . "\n";202 207 if ($siteCode) { 203 208 $serverUrl = $this->getOption('SlickServerUrl', 'https://app.slickstream.com/e2/embed-nav.js'); … … 224 229 foreach ($categories as $category) { 225 230 if (isset($category->slug) && $category->slug !== 'uncategorized') { 226 echo '<meta property="slick:category" content="' . $category->slug . ':' . $category->name . '" />' . "\n"; 231 echo '<meta property="slick:category" content="' . $category->slug . ':' . $this->removeSemicolons($category->name); 232 $used = [$category->cat_ID]; 233 $count = 0; 234 $parentCatId = $category->category_parent; 235 while ($parentCatId && count < 8 && !in_array($parentCatId, $used)) { 236 $parentCat = get_category($parentCatId); 237 if (isset($parentCat->slug) && $parentCat->slug !== 'uncategorized') { 238 echo ';' . $parentCat->slug . ':' . $this->removeSemicolons($parentCat->name); 239 $parentCatId = $parentCat->cat_ID; 240 } else { 241 break; 242 } 243 array_push($used, $parentCatId); 244 $count = $count + 1; 245 } 246 echo '" />' . "\n"; 227 247 } 228 248 } -
slick-engagement/trunk/readme.txt
r2230520 r2231172 7 7 Requires at least: 4.0 8 8 Tested up to: 5.3.2 9 Stable tag: 1.0.1 69 Stable tag: 1.0.17 10 10 11 11 Increase pageviews and delight visitors with fast and responsive site search, beautiful content discovery tools and more. … … 73 73 = 1.0.16 = 74 74 - Remove (unintended) whitespace from site code 75 76 = 1.0.17 = 77 - Add category hierarchy into metadata -
slick-engagement/trunk/slick-engagement.php
r2230520 r2231172 3 3 Plugin Name: Slick Engagement 4 4 Plugin URI: https://slickstream.com/getting-started 5 Version: 1.0.1 65 Version: 1.0.17 6 6 Author: Slickstream 7 7 Author URI: https://slickstream.com
Note: See TracChangeset
for help on using the changeset viewer.