Plugin Directory

Changeset 3160511


Ignore:
Timestamp:
10/01/2024 10:07:15 AM (18 months ago)
Author:
david.kane
Message:

Releasing v2.24.5

Location:
supapress/trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • supapress/trunk/admin/views/add-edit-partials/elements.php

    r2991891 r3160511  
    312312        echo supapress_get_empty_element_template( __('Author name', 'supapress' ), 'show_author' );
    313313        echo supapress_get_empty_element_template( __('Author bio', 'supapress' ), 'show_author_bio' );
     314        echo supapress_get_empty_element_template( __('Edition', 'supapress' ), 'show_edition' );
    314315        echo supapress_get_empty_element_template( __('Format', 'supapress' ), 'show_format' );
    315316        ?>
     
    536537        echo supapress_get_toggle_field( __( 'Author name', 'supapress' ), 'show_author', $properties, '', $action );
    537538        echo supapress_get_toggle_field( __( 'Author bio', 'supapress' ), 'show_author_bio', $properties );
     539        echo supapress_get_toggle_field( __( 'Edition', 'supapress' ), 'show_edition', $properties );
    538540        echo supapress_get_toggle_field( __( 'Format', 'supapress' ), 'show_format', $properties );
    539541        echo supapress_get_toggle_field( __( 'Publication date', 'supapress' ), 'show_pubdate', $properties );
  • supapress/trunk/composer.json

    r3142940 r3160511  
    33    "description": "Quickly and easily connect your book metadata (ONIX) to your WordPress site.",
    44    "type": "wordpress-plugin",
    5     "version": "2.24.0",
     5    "version": "2.24.5",
    66    "authors": [
    77        {
  • supapress/trunk/includes/book.php

    r2991891 r3160511  
    404404    }
    405405
     406    public function get_edition() {
     407        return $this->_get( 'edition' );
     408    }
     409
     410    public function the_edition( $before = '<p class="sp__the-edition">', $after = '</p>', $echo = true ) {
     411        $edition = '';
     412        $textEdition = $this->get_edition();
     413
     414        if( empty( $textEdition ) ) {
     415            return '';
     416        }
     417
     418        if ( isset( $this->properties['show_edition'] ) && $this->properties['show_edition'] === 'on' ) {
     419            $edition = "{$before}{$textEdition}{$after}";
     420        }
     421
     422        if ( $echo ) {
     423            echo $edition;
     424        } else {
     425            return $edition;
     426        }
     427    }
     428
    406429    public function the_cover( $before = '<p class="sp__the-cover">', $after = '</p>', $echo = true ) {
    407430        $image = '';
  • supapress/trunk/includes/functions.php

    r3142940 r3160511  
    897897        }
    898898
    899         return site_url() . supapress_translate_template_url( $text_template, $supapress_instance );
     899        $url = site_url() . supapress_translate_template_url( $text_template, $supapress_instance );
     900
     901        if (substr($url, -1) !== '/') {
     902            $url .= '/'; // Append a slash if not present
     903        }
     904
     905        return $url;
    900906    };
    901907
     
    944950    add_filter( 'wpseo_opengraph_url', $supapress_seo_override_url, 15, 3 );
    945951    add_filter( 'wpseo_title', $supapress_seo_override_title, 15, 1 );
     952    add_filter( 'wpseo_twitter_title', $supapress_seo_override_title, 15, 1 );
    946953    add_filter( 'wpseo_opengraph_title', $supapress_seo_override_title, 15, 1 );
    947954    add_filter( 'wpseo_metadesc', $supapress_seo_override_desc, 15, 1 );
  • supapress/trunk/includes/widget-template.php

    r2946444 r3160511  
    4141        'show_author'                  => 'on',
    4242        'show_author_bio'              => 'off',
     43        'show_edition'                 => 'off',
    4344        'show_format'                  => 'off',
    4445        'show_pubdate'                 => 'off',
  • supapress/trunk/includes/widget.php

    r3142940 r3160511  
    8080            'show_author'                  => array(),
    8181            'show_author_bio'              => array(),
     82            'show_edition'                 => array(),
    8283            'show_pubdate'                 => array(),
    8384            'pub_date_format'              => 'Y-m-d',
  • supapress/trunk/readme.txt

    r3142940 r3160511  
    33Tags: supadü, supadu, folio, books, publishers, supafolio, supadu for wordpress, supapress, supafolio for wordpress
    44Requires at least: 6.0
    5 Tested up to: 6.6.1
    6 Stable tag: 2.24.0
     5Tested up to: 6.6.2
     6Stable tag: 2.24.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939== Changelog ==
     40
     41= 2.24.5 =
     42Release Date: Sep 2024
     43* Update: Edition field added as option
     44* Update: wpseo_twitter_title added
     45* Update: supapress_seo_override_url edited
    4046
    4147= 2.24.0 =
  • supapress/trunk/supapress.php

    r3142940 r3160511  
    77 * Plugin URI: https://www.supadu.com
    88 * Description: Quickly and easily connect your book metadata (ONIX) to your WordPress site.
    9  * Version: 2.24.0
     9 * Version: 2.24.5
    1010 * Author: Supadü
    1111 * Author URI: https://www.supadu.com
     
    3737defined( 'ABSPATH' ) or die( 'Illegal Access!' );
    3838
    39 define( 'SUPAPRESS_VERSION', '2.24.0' );
     39define( 'SUPAPRESS_VERSION', '2.24.5' );
    4040
    4141define( 'SUPAPRESS_SITE_URL', get_site_url() );
  • supapress/trunk/views/isbn-lookup-carousel.php

    r2210736 r3160511  
    2121
    2222                $supapress->the_subtitle();
     23
     24                $supapress->the_edition();
    2325
    2426                $supapress->the_price();
  • supapress/trunk/views/isbn-lookup-grid.php

    r2210736 r3160511  
    1919
    2020            $supapress->the_subtitle();
     21
     22            $supapress->the_edition();
    2123
    2224            $supapress->the_price();
  • supapress/trunk/views/isbn-lookup-list.php

    r2210736 r3160511  
    2121
    2222                $supapress->the_subtitle();
     23
     24                $supapress->the_edition();
    2325
    2426                $supapress->the_price();
  • supapress/trunk/views/product-details.php

    r2210736 r3160511  
    2525
    2626                $supapress->the_subtitle();
     27
     28                $supapress->the_edition();
    2729
    2830                $supapress->the_author();
  • supapress/trunk/views/search-results-grid.php

    r2991891 r3160511  
    4545                    $supapress->the_subtitle();
    4646
     47                    $supapress->the_edition();
     48
    4749                    $supapress->the_price();
    4850
  • supapress/trunk/views/search-results-list.php

    r2991891 r3160511  
    4646                        $supapress->the_subtitle();
    4747
     48                        $supapress->the_edition();
     49
    4850                        $supapress->the_price();
    4951
Note: See TracChangeset for help on using the changeset viewer.