Changeset 3160511
- Timestamp:
- 10/01/2024 10:07:15 AM (18 months ago)
- Location:
- supapress/trunk
- Files:
-
- 14 edited
-
admin/views/add-edit-partials/elements.php (modified) (2 diffs)
-
composer.json (modified) (1 diff)
-
includes/book.php (modified) (1 diff)
-
includes/functions.php (modified) (2 diffs)
-
includes/widget-template.php (modified) (1 diff)
-
includes/widget.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
supapress.php (modified) (2 diffs)
-
views/isbn-lookup-carousel.php (modified) (1 diff)
-
views/isbn-lookup-grid.php (modified) (1 diff)
-
views/isbn-lookup-list.php (modified) (1 diff)
-
views/product-details.php (modified) (1 diff)
-
views/search-results-grid.php (modified) (1 diff)
-
views/search-results-list.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
supapress/trunk/admin/views/add-edit-partials/elements.php
r2991891 r3160511 312 312 echo supapress_get_empty_element_template( __('Author name', 'supapress' ), 'show_author' ); 313 313 echo supapress_get_empty_element_template( __('Author bio', 'supapress' ), 'show_author_bio' ); 314 echo supapress_get_empty_element_template( __('Edition', 'supapress' ), 'show_edition' ); 314 315 echo supapress_get_empty_element_template( __('Format', 'supapress' ), 'show_format' ); 315 316 ?> … … 536 537 echo supapress_get_toggle_field( __( 'Author name', 'supapress' ), 'show_author', $properties, '', $action ); 537 538 echo supapress_get_toggle_field( __( 'Author bio', 'supapress' ), 'show_author_bio', $properties ); 539 echo supapress_get_toggle_field( __( 'Edition', 'supapress' ), 'show_edition', $properties ); 538 540 echo supapress_get_toggle_field( __( 'Format', 'supapress' ), 'show_format', $properties ); 539 541 echo supapress_get_toggle_field( __( 'Publication date', 'supapress' ), 'show_pubdate', $properties ); -
supapress/trunk/composer.json
r3142940 r3160511 3 3 "description": "Quickly and easily connect your book metadata (ONIX) to your WordPress site.", 4 4 "type": "wordpress-plugin", 5 "version": "2.24. 0",5 "version": "2.24.5", 6 6 "authors": [ 7 7 { -
supapress/trunk/includes/book.php
r2991891 r3160511 404 404 } 405 405 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 406 429 public function the_cover( $before = '<p class="sp__the-cover">', $after = '</p>', $echo = true ) { 407 430 $image = ''; -
supapress/trunk/includes/functions.php
r3142940 r3160511 897 897 } 898 898 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; 900 906 }; 901 907 … … 944 950 add_filter( 'wpseo_opengraph_url', $supapress_seo_override_url, 15, 3 ); 945 951 add_filter( 'wpseo_title', $supapress_seo_override_title, 15, 1 ); 952 add_filter( 'wpseo_twitter_title', $supapress_seo_override_title, 15, 1 ); 946 953 add_filter( 'wpseo_opengraph_title', $supapress_seo_override_title, 15, 1 ); 947 954 add_filter( 'wpseo_metadesc', $supapress_seo_override_desc, 15, 1 ); -
supapress/trunk/includes/widget-template.php
r2946444 r3160511 41 41 'show_author' => 'on', 42 42 'show_author_bio' => 'off', 43 'show_edition' => 'off', 43 44 'show_format' => 'off', 44 45 'show_pubdate' => 'off', -
supapress/trunk/includes/widget.php
r3142940 r3160511 80 80 'show_author' => array(), 81 81 'show_author_bio' => array(), 82 'show_edition' => array(), 82 83 'show_pubdate' => array(), 83 84 'pub_date_format' => 'Y-m-d', -
supapress/trunk/readme.txt
r3142940 r3160511 3 3 Tags: supadü, supadu, folio, books, publishers, supafolio, supadu for wordpress, supapress, supafolio for wordpress 4 4 Requires at least: 6.0 5 Tested up to: 6.6. 16 Stable tag: 2.24. 05 Tested up to: 6.6.2 6 Stable tag: 2.24.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 41 = 2.24.5 = 42 Release Date: Sep 2024 43 * Update: Edition field added as option 44 * Update: wpseo_twitter_title added 45 * Update: supapress_seo_override_url edited 40 46 41 47 = 2.24.0 = -
supapress/trunk/supapress.php
r3142940 r3160511 7 7 * Plugin URI: https://www.supadu.com 8 8 * Description: Quickly and easily connect your book metadata (ONIX) to your WordPress site. 9 * Version: 2.24. 09 * Version: 2.24.5 10 10 * Author: Supadü 11 11 * Author URI: https://www.supadu.com … … 37 37 defined( 'ABSPATH' ) or die( 'Illegal Access!' ); 38 38 39 define( 'SUPAPRESS_VERSION', '2.24. 0' );39 define( 'SUPAPRESS_VERSION', '2.24.5' ); 40 40 41 41 define( 'SUPAPRESS_SITE_URL', get_site_url() ); -
supapress/trunk/views/isbn-lookup-carousel.php
r2210736 r3160511 21 21 22 22 $supapress->the_subtitle(); 23 24 $supapress->the_edition(); 23 25 24 26 $supapress->the_price(); -
supapress/trunk/views/isbn-lookup-grid.php
r2210736 r3160511 19 19 20 20 $supapress->the_subtitle(); 21 22 $supapress->the_edition(); 21 23 22 24 $supapress->the_price(); -
supapress/trunk/views/isbn-lookup-list.php
r2210736 r3160511 21 21 22 22 $supapress->the_subtitle(); 23 24 $supapress->the_edition(); 23 25 24 26 $supapress->the_price(); -
supapress/trunk/views/product-details.php
r2210736 r3160511 25 25 26 26 $supapress->the_subtitle(); 27 28 $supapress->the_edition(); 27 29 28 30 $supapress->the_author(); -
supapress/trunk/views/search-results-grid.php
r2991891 r3160511 45 45 $supapress->the_subtitle(); 46 46 47 $supapress->the_edition(); 48 47 49 $supapress->the_price(); 48 50 -
supapress/trunk/views/search-results-list.php
r2991891 r3160511 46 46 $supapress->the_subtitle(); 47 47 48 $supapress->the_edition(); 49 48 50 $supapress->the_price(); 49 51
Note: See TracChangeset
for help on using the changeset viewer.