Plugin Directory

Changeset 2814684


Ignore:
Timestamp:
11/08/2022 09:03:46 PM (3 years ago)
Author:
abcfolio
Message:

Version: 1.6.8

Location:
staff-list/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • staff-list/trunk/readme.txt

    r2801069 r2814684  
    66Tested up to:  6.1
    77Requires PHP: 5.6
    8 Stable tag: 1.6.7
     8Stable tag: 1.6.8
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    122122
    123123== Changelog ==
     124
     125= 1.6.8 20221108
     126* New: Added support for The SEO Framework - page title, canonical and og properties.
    124127
    125128= 1.6.7 20221018
  • staff-list/trunk/staff-list.php

    r2801069 r2814684  
    1111Requires at least: 4.9
    1212Requires PHP: 5.6
    13 Version: 1.6.7
     13Version: 1.6.8
    1414------------------------------------------------------------------------
    1515Copyright 2009-2021 abcFolio.
     
    3939    private static $instance;
    4040    public $pluginSlug = 'abcfolio-staff-list';
    41     public $pluginVersion = '1.6.7';   
     41    public $pluginVersion = '1.6.8';   
    4242    public $prefix = 'abcfsl';
    4343
     
    252252
    253253        // 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        }   
    265266       
    266267        // Squirrly SEO
     
    278279        // No SEO plugins. Render custom staff member title using WP filter.
    279280        if( !$pluginActive ){
     281            //error_log( print_r( 'NO SEO plugin active.', true) );
    280282            add_filter( 'pre_get_document_title', array( $this, 'filter_spg_wp_title' ), 20);           
    281283        } 
     
    373375    }   
    374376   
    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    }
    380381   
    381382    function tsf_singular_npx_generator( $args = null, $size = 'full' ) {
Note: See TracChangeset for help on using the changeset viewer.