Changeset 2537335
- Timestamp:
- 05/25/2021 06:08:05 PM (5 years ago)
- Location:
- slick-engagement/trunk
- Files:
-
- 3 edited
-
SlickEngagement_Plugin.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
slick-engagement.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
slick-engagement/trunk/SlickEngagement_Plugin.php
r2533913 r2537335 325 325 global $post; 326 326 echo "\n"; 327 echo '<meta property="slick:wpversion" content="1.1.1 5" />' . "\n";327 echo '<meta property="slick:wpversion" content="1.1.16" />' . "\n"; 328 328 $siteCode = trim($this->getOption('SiteCode')); 329 329 if ($siteCode) { … … 382 382 $ldJsonPlugin = (object) [ 383 383 '@type' => 'Plugin', 384 'version' => '1.1.1 5',384 'version' => '1.1.16', 385 385 ]; 386 386 array_push($ldJsonElements, $ldJsonPlugin); … … 530 530 } 531 531 } 532 533 $taxonomies = get_object_taxonomies($post, 'objects'); 534 if (!empty($taxonomies)) { 535 $ldJsonTaxonomies = array(); 536 foreach ($taxonomies as $taxonomy) { 537 if (!$taxonomy->_builtin && $taxonomy->public) { 538 $taxTerms = array(); 539 $terms = get_the_terms($post, $taxonomy->name); 540 if (!empty($terms)) { 541 foreach ($terms as $term) { 542 $termObject = (object) [ 543 '@id' => $term->term_id, 544 'name' => $term->name, 545 'slug' => $term->slug, 546 ]; 547 array_push($taxTerms, $termObject); 548 } 549 $ldJsonTaxElement = (object) [ 550 'name' => $taxonomy->name, 551 'label' => $taxonomy->label, 552 'description' => $taxonomy->description, 553 'terms' => $taxTerms, 554 ]; 555 array_push($ldJsonTaxonomies, $ldJsonTaxElement); 556 } 557 } 558 } 559 $ldJsonPost->taxonomies = $ldJsonTaxonomies; 560 } 532 561 } 533 562 array_push($ldJsonElements, $ldJsonPost); … … 537 566 '@graph' => $ldJsonElements, 538 567 ]; 539 // echo '<script type="application/ld+json" class="slickstream-ld-json">' . json_encode($ldJson, JSON_UNESCAPED_SLASHES) . '</script>' . "\n";568 echo '<script type="application/x-slickstream+json">' . json_encode($ldJson, JSON_UNESCAPED_SLASHES) . '</script>' . "\n"; 540 569 } 541 570 } -
slick-engagement/trunk/readme.txt
r2533913 r2537335 6 6 License URI: http://www.gnu.org/licenses/gpl-2.0.html 7 7 Requires at least: 4.0 8 Tested up to: 5.7. 19 Stable tag: 1.1.1 58 Tested up to: 5.7.2 9 Stable tag: 1.1.16 10 10 11 11 Increase pageviews and delight visitors with fast and responsive site search, beautiful content discovery tools and more. … … 133 133 = 1.1.15 134 134 - Support for Kadence theme hooks 135 136 = 1.1.16 137 - Slickstream JSON metadata -
slick-engagement/trunk/slick-engagement.php
r2533913 r2537335 3 3 Plugin Name: Slickstream Search and Engagement 4 4 Plugin URI: https://slickstream.com/getting-started 5 Version: 1.1.1 55 Version: 1.1.16 6 6 Author: Slickstream 7 7 Author URI: https://slickstream.com
Note: See TracChangeset
for help on using the changeset viewer.