Changeset 2814684
- Timestamp:
- 11/08/2022 09:03:46 PM (3 years ago)
- Location:
- staff-list/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
staff-list.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
staff-list/trunk/readme.txt
r2801069 r2814684 6 6 Tested up to: 6.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.6. 78 Stable tag: 1.6.8 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 122 122 123 123 == Changelog == 124 125 = 1.6.8 20221108 126 * New: Added support for The SEO Framework - page title, canonical and og properties. 124 127 125 128 = 1.6.7 20221018 -
staff-list/trunk/staff-list.php
r2801069 r2814684 11 11 Requires at least: 4.9 12 12 Requires PHP: 5.6 13 Version: 1.6. 713 Version: 1.6.8 14 14 ------------------------------------------------------------------------ 15 15 Copyright 2009-2021 abcFolio. … … 39 39 private static $instance; 40 40 public $pluginSlug = 'abcfolio-staff-list'; 41 public $pluginVersion = '1.6. 7';41 public $pluginVersion = '1.6.8'; 42 42 public $prefix = 'abcfsl'; 43 43 … … 252 252 253 253 // The SEO Framework 254 // if( !$pluginActive ){ 255 // if(in_array('autodescription/autodescription.php', apply_filters('active_plugins', $activePlugins))){ 256 // //error_log( print_r( 'the_seo_framework_active', true) ); 257 // $pluginActive = true; 258 // add_filter( 'the_seo_framework_rel_canonical_output', array( $this, 'filter_spg_canonical' )); 259 // add_filter( 'the_seo_framework_ogurl_output', array( $this, 'filter_spg_canonical' )); 260 // add_filter( 'the_seo_framework_title_from_custom_field', array( $this, 'filter_spg_wp_title' ), 10, 2); 261 262 // add_filter( 'the_seo_framework_image_generation_params', array( $this, 'tsf_image_generation_args' ), 10, 2); 263 // } 264 // } 254 if( !$pluginActive ){ 255 if(in_array('autodescription/autodescription.php', apply_filters('active_plugins', $activePlugins))){ 256 //error_log( print_r( 'the_seo_framework_active', true) ); 257 $pluginActive = true; 258 add_filter( 'the_seo_framework_rel_canonical_output', array( $this, 'filter_spg_canonical' )); 259 add_filter( 'the_seo_framework_ogurl_output', array( $this, 'filter_spg_canonical' )); 260 add_filter( 'the_seo_framework_title_from_custom_field', array( $this, 'filter_spg_wp_title' ), 10, 2); 261 262 // Needs further development to generate image WxH. Currently no image dimensions are added. 263 add_filter( 'the_seo_framework_image_generation_params', array( $this, 'tsf_image_generation_args' ), 10, 2); 264 } 265 } 265 266 266 267 // Squirrly SEO … … 278 279 // No SEO plugins. Render custom staff member title using WP filter. 279 280 if( !$pluginActive ){ 281 //error_log( print_r( 'NO SEO plugin active.', true) ); 280 282 add_filter( 'pre_get_document_title', array( $this, 'filter_spg_wp_title' ), 20); 281 283 } … … 373 375 } 374 376 375 // function tsf_image_generation_args( $params = [], $args = null, $context = 'social' ) { 376 377 // $params['cbs']['npx'] = array( $this, 'tsf_singular_npx_generator' ); 378 // return $params; 379 // } 377 function tsf_image_generation_args( $params = [], $args = null, $context = 'social' ) { 378 $params['cbs']['npx'] = array( $this, 'tsf_singular_npx_generator' ); 379 return $params; 380 } 380 381 381 382 function tsf_singular_npx_generator( $args = null, $size = 'full' ) {
Note: See TracChangeset
for help on using the changeset viewer.