Plugin Directory

Changeset 2771910


Ignore:
Timestamp:
08/18/2022 04:59:06 AM (4 years ago)
Author:
madebycinza
Message:

cinza slider v1.1.0

Location:
cinza-slider
Files:
28 added
4 edited

Legend:

Unmodified
Added
Removed
  • cinza-slider/trunk/cinza-slider.php

    r2766650 r2771910  
    55 * Plugin URI:        https://cinza.io/plugin/slider
    66 * Description:       A minimal slider plugin.
    7  * Version:           1.0.9
     7 * Version:           1.1.0
    88 * Requires at least: 5.2
    99 * Requires PHP:      7.2
  • cinza-slider/trunk/includes/backend-cpts.php

    r2766132 r2771910  
    161161    $temp_pageDots = 1;
    162162    $temp_draggable = 1;
    163     $temp_hash = 0;
     163    //$temp_hash = 0;
    164164    $temp_animation = 'slide';
    165165    $temp_autoPlay = '0';
     
    187187        $temp_adaptiveHeight = esc_attr($cslider_options['cslider_adaptiveHeight']);
    188188        $temp_draggable = esc_attr($cslider_options['cslider_draggable']);
    189         $temp_hash = esc_attr($cslider_options['cslider_hash']);
     189        //$temp_hash = esc_attr($cslider_options['cslider_hash']);
    190190        $temp_prevNextButtons = esc_attr($cslider_options['cslider_prevNextButtons']);
    191191        $temp_pageDots = esc_attr($cslider_options['cslider_pageDots']);
     
    208208    }
    209209
     210    // NEXT - I'll add this same validation for all checkfields. It's different for text fields. Look into razorfrog.php
     211    $temp_hash = isset($cslider_options['cslider_hash']) ? esc_attr($cslider_options['cslider_hash']) : 0;
     212   
    210213    ?>
    211214    <table id="cslider-optionset" width="100%">
  • cinza-slider/trunk/includes/backend-shortcodes.php

    r2766650 r2771910  
    3737        return "<p class='cslider-error'>ERROR: This Cinza Slider is not published yet.</p>";
    3838    }
     39   
     40    // Get setting values with validation
     41    // NEXT - I'll add this same validation for all checkfields. It's different for text fields. Look into razorfrog.php
     42    $cslider_hash = isset($cslider_options['cslider_hash']) ? esc_attr($cslider_options['cslider_hash']) : '0';
     43
     44
     45
     46
     47
     48
    3949
    4050    // Query: _cslider_options
     
    5666        }
    5767       
    58         if (boolval(esc_attr($cslider_options['cslider_hash']))) {
     68        if (boolval($cslider_hash)) {
    5969            wp_enqueue_script('flickity-hash');
    6070        }
     
    6272        // Behavior
    6373        $options .= '"draggable": ' . (boolval(esc_attr($cslider_options['cslider_draggable'])) ? "true" : "false") . ',';
    64         $options .= '"hash": ' . (boolval(esc_attr($cslider_options['cslider_hash'])) ? "true" : "false") . ',';
     74        $options .= '"hash": ' . (boolval($cslider_hash) ? "true" : "false") . ',';
    6575        $options .= '"freeScroll": ' . (boolval(esc_attr($cslider_options['cslider_freeScroll'])) ? "true" : "false") . ',';
    6676        $options .= '"wrapAround": ' . (boolval(esc_attr($cslider_options['cslider_wrapAround'])) ? "true" : "false") . ',';
  • cinza-slider/trunk/readme.txt

    r2766650 r2771910  
    55Tested up to: 6.0
    66Requires PHP: 7.2
    7 Stable tag: 1.0.9
     7Stable tag: 1.1.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2222
    2323== Changelog ==
     24= 1.1.0 =
     25*Release Date - 17th August, 2022*
     26
     27* PHP 8 warning fixes
     28
    2429= 1.0.9 =
    2530*Release Date - 4th August, 2022*
Note: See TracChangeset for help on using the changeset viewer.