Plugin Directory

Changeset 2877946


Ignore:
Timestamp:
03/10/2023 02:42:37 PM (3 years ago)
Author:
david.kane
Message:

Releasing v2.23.0

Location:
supapress/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • supapress/trunk/admin/admin.php

    r2389550 r2877946  
    4242}
    4343
    44 add_action( 'admin_enqueue_scripts', 'supapress_admin_enqueue_widget_scripts', 'supapress_admin_enqueue_scripts' );
     44add_action( 'admin_enqueue_scripts', 'supapress_admin_enqueue_scripts' );
    4545
    4646function supapress_admin_enqueue_scripts( $hook ) {
     
    8787}
    8888
     89add_action( 'admin_enqueue_scripts', 'supapress_admin_enqueue_widget_scripts' );
     90
    8991function supapress_admin_enqueue_widget_scripts( $hook ) {
    9092    if ( $hook === 'widgets.php' ) {
     
    9698    if ( ( $post = supapress_get_current_contact_form() ) ) {
    9799        $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(
    99101            'publisher',
    100             'imprint'
     102            'imprint',
     103            'series'
    101104        ) );
    102105        include_once SUPAPRESS_PLUGIN_DIR . '/admin/views/add-edit-config.php';
     
    111114function supapress_add_new_widget() {
    112115    $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(
    114117        'publisher',
    115         'imprint'
     118        'imprint',
     119        'series'
    116120    ) );
    117121    include_once SUPAPRESS_PLUGIN_DIR . '/admin/views/add-edit-config.php';
     
    489493}
    490494
    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/ThickBox
    498  *
    499  * @since 3.0.0
    500  */
    501 function supapress_add_shortcode_button() {
    502     include SUPAPRESS_PLUGIN_DIR . '/admin/views/add-module-shortcode-button.php';
    503 }
    504 
    505 
    506495add_action( 'edit_form_after_editor', 'supapress_add_shortcode_panel', 100 );
    507496/**
  • supapress/trunk/admin/functions.php

    r2303372 r2877946  
    202202    }
    203203   
     204    if ( ! isset( $_POST['search_restriction_series'] ) ) {
     205        $_POST['search_restriction_series'] = array();
     206    }
     207   
    204208    if ( ! isset( $_POST['retailer_links'] ) ) {
    205209        $_POST['retailer_links'] = array();
  • supapress/trunk/admin/views/add-edit-partials/restrictions.php

    r2389550 r2877946  
    4444        </select>
    4545    </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>
    4660</div>
  • supapress/trunk/composer.json

    r2857586 r2877946  
    33    "description": "Quickly and easily connect your book metadata (ONIX) to your WordPress site.",
    44    "type": "wordpress-plugin",
    5     "version": "2.22.1",
     5    "version": "2.23.0",
    66    "authors": [
    77        {
  • supapress/trunk/includes/widget-template.php

    r2210736 r2877946  
    6565        'search_restriction_publisher' => array(),
    6666        'search_restriction_imprint'   => array(),
     67        'search_restriction_series'   => array(),
    6768        'retailer_links'   => array()
    6869    );
  • supapress/trunk/includes/widget.php

    r2857586 r2877946  
    102102            'search_restriction_publisher' => array(),
    103103            'search_restriction_imprint'   => array(),
     104            'search_restriction_series'   => array(),
    104105            'retailer_links'   => array()
    105106        ) );
     
    449450        }
    450451
     452        if ( ! empty( $properties['search_restriction_series'] ) ) {
     453            $params['series'] = implode( ',', $properties['search_restriction_series'] );
     454        }
     455
    451456        foreach ( $filters as $filter ) {
    452457            if ( isset( $_GET[ $filter ] ) ) {
  • supapress/trunk/readme.txt

    r2857586 r2877946  
    44Requires at least: 6.0
    55Tested up to: 6.1
    6 Stable tag: 2.22.1
     6Stable tag: 2.23.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939== Changelog ==
     40
     41= 2.23.0 =
     42Release 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 =
     48Release Date: January 2023
     49* Fix: fix issue with SVN from previous release
    4050
    4151= 2.22.1 =
  • supapress/trunk/supapress.php

    r2857586 r2877946  
    77 * Plugin URI: https://www.supadu.com
    88 * Description: Quickly and easily connect your book metadata (ONIX) to your WordPress site.
    9  * Version: 2.22.1
     9 * Version: 2.23.0
    1010 * Author: Supadü
    1111 * Author URI: https://www.supadu.com
     
    3737defined( 'ABSPATH' ) or die( 'Illegal Access!' );
    3838
    39 define( 'SUPAPRESS_VERSION', '2.22.1' );
     39define( 'SUPAPRESS_VERSION', '2.23.0' );
    4040
    4141define( 'SUPAPRESS_SITE_URL', get_site_url() );
Note: See TracChangeset for help on using the changeset viewer.