Changeset 2877946
- Timestamp:
- 03/10/2023 02:42:37 PM (3 years ago)
- Location:
- supapress/trunk
- Files:
-
- 8 edited
-
admin/admin.php (modified) (5 diffs)
-
admin/functions.php (modified) (1 diff)
-
admin/views/add-edit-partials/restrictions.php (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
includes/widget-template.php (modified) (1 diff)
-
includes/widget.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
supapress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
supapress/trunk/admin/admin.php
r2389550 r2877946 42 42 } 43 43 44 add_action( 'admin_enqueue_scripts', 'supapress_admin_enqueue_ widget_scripts', 'supapress_admin_enqueue_scripts' );44 add_action( 'admin_enqueue_scripts', 'supapress_admin_enqueue_scripts' ); 45 45 46 46 function supapress_admin_enqueue_scripts( $hook ) { … … 87 87 } 88 88 89 add_action( 'admin_enqueue_scripts', 'supapress_admin_enqueue_widget_scripts' ); 90 89 91 function supapress_admin_enqueue_widget_scripts( $hook ) { 90 92 if ( $hook === 'widgets.php' ) { … … 96 98 if ( ( $post = supapress_get_current_contact_form() ) ) { 97 99 $custom_templates = supapress_get_custom_templates_for_module(); 98 list( $search_restriction_publishers, $search_restriction_imprints ) = supapress_get_search_restriction_options( array(100 list( $search_restriction_publishers, $search_restriction_imprints, $search_restriction_series ) = supapress_get_search_restriction_options( array( 99 101 'publisher', 100 'imprint' 102 'imprint', 103 'series' 101 104 ) ); 102 105 include_once SUPAPRESS_PLUGIN_DIR . '/admin/views/add-edit-config.php'; … … 111 114 function supapress_add_new_widget() { 112 115 $custom_templates = supapress_get_custom_templates_for_module(); 113 list( $search_restriction_publishers, $search_restriction_imprints ) = supapress_get_search_restriction_options( array(116 list( $search_restriction_publishers, $search_restriction_imprints, $search_restriction_series ) = supapress_get_search_restriction_options( array( 114 117 'publisher', 115 'imprint' 118 'imprint', 119 'series' 116 120 ) ); 117 121 include_once SUPAPRESS_PLUGIN_DIR . '/admin/views/add-edit-config.php'; … … 489 493 } 490 494 491 add_action( 'media_buttons', 'supapress_add_shortcode_button', 100 );492 493 /**494 * Add a shortcode button.495 *496 * Adds a button to add a widget shortcode in WordPress content editor.497 * Uses Thickbox. http://codex.wordpress.org/ThickBox498 *499 * @since 3.0.0500 */501 function supapress_add_shortcode_button() {502 include SUPAPRESS_PLUGIN_DIR . '/admin/views/add-module-shortcode-button.php';503 }504 505 506 495 add_action( 'edit_form_after_editor', 'supapress_add_shortcode_panel', 100 ); 507 496 /** -
supapress/trunk/admin/functions.php
r2303372 r2877946 202 202 } 203 203 204 if ( ! isset( $_POST['search_restriction_series'] ) ) { 205 $_POST['search_restriction_series'] = array(); 206 } 207 204 208 if ( ! isset( $_POST['retailer_links'] ) ) { 205 209 $_POST['retailer_links'] = array(); -
supapress/trunk/admin/views/add-edit-partials/restrictions.php
r2389550 r2877946 44 44 </select> 45 45 </div> 46 47 <div class="supapress-field-wrapper"> 48 <label for="search_restriction_series" class="supapress-label"><?php _e( 'Series:', 'supapress' ); ?></label> 49 <select name="search_restriction_series[]" id="search_restriction_series" 50 class="supapress-search-restriction-list" 51 data-svg-url="<?php echo SUPAPRESS_PLUGIN_URL; ?>/admin/img/svg/sprite.svg#icon-three-squares" 52 multiple="multiple" title="Click to select Series"> 53 <?php if ( ! empty( $search_restriction_series ) ) : ?> 54 <?php foreach ( $search_restriction_series as $series ) : ?> 55 <option value="<?php echo $series->seo_name; ?>"<?php echo supapress_multi_selected( $properties, 'search_restriction_series', $series->seo_name ); ?>><?php echo $series->name; ?></option> 56 <?php endforeach; ?> 57 <?php endif; ?> 58 </select> 59 </div> 46 60 </div> -
supapress/trunk/composer.json
r2857586 r2877946 3 3 "description": "Quickly and easily connect your book metadata (ONIX) to your WordPress site.", 4 4 "type": "wordpress-plugin", 5 "version": "2.2 2.1",5 "version": "2.23.0", 6 6 "authors": [ 7 7 { -
supapress/trunk/includes/widget-template.php
r2210736 r2877946 65 65 'search_restriction_publisher' => array(), 66 66 'search_restriction_imprint' => array(), 67 'search_restriction_series' => array(), 67 68 'retailer_links' => array() 68 69 ); -
supapress/trunk/includes/widget.php
r2857586 r2877946 102 102 'search_restriction_publisher' => array(), 103 103 'search_restriction_imprint' => array(), 104 'search_restriction_series' => array(), 104 105 'retailer_links' => array() 105 106 ) ); … … 449 450 } 450 451 452 if ( ! empty( $properties['search_restriction_series'] ) ) { 453 $params['series'] = implode( ',', $properties['search_restriction_series'] ); 454 } 455 451 456 foreach ( $filters as $filter ) { 452 457 if ( isset( $_GET[ $filter ] ) ) { -
supapress/trunk/readme.txt
r2857586 r2877946 4 4 Requires at least: 6.0 5 5 Tested up to: 6.1 6 Stable tag: 2.2 2.16 Stable tag: 2.23.0 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.23.0 = 42 Release Date: March 2023 43 * Update: restriction by series feature added 44 * Update: supafolio module button removed from wysiwig editor 45 * Fix: enqueue_scripts function fixed 46 47 = 2.22.4 = 48 Release Date: January 2023 49 * Fix: fix issue with SVN from previous release 40 50 41 51 = 2.22.1 = -
supapress/trunk/supapress.php
r2857586 r2877946 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.2 2.19 * Version: 2.23.0 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.2 2.1' );39 define( 'SUPAPRESS_VERSION', '2.23.0' ); 40 40 41 41 define( 'SUPAPRESS_SITE_URL', get_site_url() );
Note: See TracChangeset
for help on using the changeset viewer.