Plugin Directory

Changeset 1301246


Ignore:
Timestamp:
12/06/2015 04:18:46 AM (10 years ago)
Author:
devcon1
Message:

Version Update:

1.4.0

  • Feature Added
  1. Users can choose different color skin to show the navigation arrow and the image scaling mode change icon over the black or white background color.
Location:
background-slider-master/trunk
Files:
12 added
4 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • background-slider-master/trunk/admin/class-background-slider-master-admin.php

    r1265674 r1301246  
    121121        );
    122122        add_settings_field(
     123            'bsm_skin_settings_field',
     124            'Select Controller Skin',
     125            array($this, 'callback_bsm_skin_settings_field'),
     126            'bsm_settings_menu',
     127            'bsm_select_gallery_settings_section',
     128            array('Default will display dark grey.')
     129        );
     130        add_settings_field(
    123131            'bsm_disable_ratio_settings_field',
    124132            'Disable View Mode Change',
     
    167175            'bsm_settings_menu',
    168176            'bsm_view_mode_settings_field'
     177        );
     178        register_setting(
     179            'bsm_settings_menu',
     180            'bsm_skin_settings_field'
    169181        );
    170182        register_setting(
     
    300312        update_post_meta( $post_id, '_bsm_selected_gallery', $bsm_selected );
    301313       
    302        
    303314        update_post_meta( $post_id, '_bsm_test_key', $mydata );
    304315    }
     
    402413        echo $html;
    403414    }
     415   
     416    public function callback_bsm_skin_settings_field( $options ){
     417        $selected = get_option('bsm_skin_settings_field');
     418        $skins = array(
     419            'default' => 'Default - Dark Grey',
     420            'white' => 'White - White Arrows and Icons',
     421            'black' => 'Black - Black Arrows and Icons'
     422        );
     423        $html = '<select class="bsm_skin_settings_field" name="bsm_skin_settings_field">';
     424        foreach($skins as $skin => $skin_name){
     425            $html .= '<option value="' . $skin . '" name="' . $skin . '" ';
     426            if($skin == $selected){
     427                $html .= 'selected="selected"';
     428            }
     429            $html .= '>' . $skin_name . '</option>';
     430        }
     431        $html .= '</selected>';
     432        $html .= '<label for="bsm_skin_settings_field"> '  . $options[0] . '</label>';
     433        echo $html;     
     434    }
     435   
    404436    public function callback_bsm_disable_ratio_settings_field( $options ){
    405437        $html = '<input type="checkbox" id="bsm_disable_ratio_settings_field" name="bsm_disable_ratio_settings_field" value="1" ' . checked(1, get_option('bsm_disable_ratio_settings_field'), false) . '/>';
  • background-slider-master/trunk/background-slider-master.php

    r1290613 r1301246  
    22
    33/**
    4  * The plugin bootstrap file
    5  *
    6  * This file is read by WordPress to generate the plugin information in the plugin
    7  * admin area. This file also includes all of the dependencies used by the plugin,
    8  * registers the activation and deactivation functions, and defines a function
    9  * that starts the plugin.
    104 *
    115 * @link              https://icanwp.com/plugins/background-slider-master/
     
    1610 * Plugin Name:       Background Slider Master
    1711 * Plugin URI:        https://icanwp.com/plugins/background-slider-master/
    18  * Description:       Background Slider Master is designed with a very simple interface so anyone can easily upload images and attach a fast loading responsive background slider to any page or post. This background slider was designed for flexibility. You can choose to create a single slider that displays globally on every page, or create as many background sliders as you want, and attach them to each page individually to show something different.
    19  * Version:           1.3.1
     12 * Description:       Background Slider Master is designed with a very simple interface so anyone can easily upload images and attach a fast loading responsive background slider to any page or post. This background slider features full width responsive and designed for flexibility. You can choose to create a single slider that displays globally on every page, or create as many background sliders as you want, and attach them to each page individually to show something different.
     13 * Version:           1.4.0
    2014 * Author:            iCanWP Team, Sean Roh, Chris Couweleers
    2115 * Author URI:        https://icanwp.com/plugins/background-slider-master/
  • background-slider-master/trunk/public/class-background-slider-master-public.php

    r1245553 r1301246  
    8989                                'bsm_plugin_url' => plugin_dir_url( __FILE__ ),
    9090                                'bsm_view_mode' => get_option('bsm_view_mode_settings_field'), // full screen, original ratio
     91                                'bsm_skin' => get_option('bsm_skin_settings_field'), // arrows and icons skin color
    9192                                'bsm_thumb_nav' => get_option('bsm_thumb_nav_settings_field'), // true or false
    9293                                'bsm_slider_delay' => get_option('bsm_slider_delay_settings_field'), //time between the slider changes
    9394                                'bsm_easing_option_duration' => get_option('bsm_easing_option_duration_settings_field'), // time for animation transition
    9495                                'bsm_auto_play' => get_option('bsm_auto_play_settings_field') // true or false
     96                               
    9597                            );
    9698                wp_localize_script( $this->plugin_name . '_bsm_script', 'bsm_loc', $bsm_loc);
     
    136138                <div id="bsm-toolbar">
    137139                    <a href="#">
    138                         <img src="'. plugin_dir_url( __FILE__ ) .'assets/toolbar_fs_icon.png" width="50" height="50" />
     140                        <img src="'. plugin_dir_url( __FILE__ ) .'assets/toolbar_fs_icon-default.png" width="50" height="50" />
    139141                    </a>
    140142                </div>';
  • background-slider-master/trunk/public/css/background-slider-master-public.css

    r1246798 r1301246  
    112112    z-index: 3;
    113113    filter: alpha(opacity=40);
    114     -moz-opacity: 0.4;
    115     -khtml-opacity: 0.4;
    116     opacity: 0.4;
     114    -moz-opacity: 0.5;
     115    -khtml-opacity: 0.5;
     116    opacity: 0.5;
    117117}
    118118.BSMnextImageBtn:hover,
     
    121121    -moz-opacity: 0.8;
    122122    -khtml-opacity: 0.8;
    123     opacity: 0.8;
     123    opacity: 0.85;
    124124}
    125125.BSMnextImageBtn {
    126126    right: 0;
    127     background: url(../assets/nextImgBtn.png) center center no-repeat;
     127    background-position: center center;
     128    background-repeat: no-repeat;
    128129    z-index: 3;
    129130}
    130131.BSMprevImageBtn {
    131     background: url(../assets/prevImgBtn.png) center center no-repeat;
     132    background-position: center center;
     133    background-repeat: no-repeat;
    132134    z-index: 3;
    133135}
  • background-slider-master/trunk/public/js/background-slider-master-public.js

    r1265674 r1301246  
    77   
    88    $defaultViewMode=bsm_loc.bsm_view_mode; //full, normal, original
     9    $bsmSkin=bsm_loc.bsm_skin; // skin option
    910    $tsMargin=30; //first and last thumbnail margin (for better cursor interaction)
    1011    $scrollEasing=parseInt(bsm_loc.bsm_easing_option_duration); //scroll easing amount (0 for no easing)
     
    5354    $(window).load(function() {
    5455        $toolbar.data("imageViewMode",$defaultViewMode); //default view mode
     56
    5557        if($defaultViewMode=="full"){
    56             $toolbar_a.html("<img src='" + bsm_loc.bsm_plugin_url + "assets/toolbar_n_icon.png' width='50' height='50' />").attr("id", "view-normal").attr("title", "Original Ratio");
     58            $toolbar_a.html('<img src="' + bsm_loc.bsm_plugin_url + 'assets/toolbar_n_icon-' + $bsmSkin + '.png" width="50" height="50" />').attr("id", "view-normal").attr("title", "Original Ratio");
    5759        } else {
    58             $toolbar_a.html("<img src='" + bsm_loc.bsm_plugin_url + "assets/toolbar_fs_icon.png' width='50' height='50' />").attr("id", "view-max").attr("title", "Full Screen");
     60            $toolbar_a.html('<img src="' + bsm_loc.bsm_plugin_url + 'assets/toolbar_fs_icon-' + $bsmSkin + '.png" width="50" height="50" />').attr("id", "view-max").attr("title", "Full Screen");
    5961        }
    6062        ShowHideNextPrev($nextPrevBtnsInitState);
     63        $nextImageBtn.css('background-image','url("' + bsm_loc.bsm_plugin_url + 'assets/nextImgBtn-' + $bsmSkin + '.png")');
     64        $prevImageBtn.css('background-image','url("' + bsm_loc.bsm_plugin_url + 'assets/prevImgBtn-' + $bsmSkin + '.png")');
     65       
     66        if( $bsmSkin === "black" ){
     67            $nextImageBtn.css('opacity','0.7');
     68            $prevImageBtn.css('opacity','0.7');
     69        }
     70       
    6171        //thumbnail scroller
    6272        $thumbScroller_container.css("marginLeft",$tsMargin+"px"); //add margin
     
    167177    //mouseover toolbar
    168178    if($toolbar.css("display")!="none"){
    169         $toolbar.fadeTo("fast", 0.25);
     179        $toolbar.fadeTo("fast", 0.45);
    170180    }
    171181    $toolbar.hover(
     
    176186        function(){ //mouse out
    177187            var $this=$(this);
    178             $this.stop().fadeTo("fast", 0.25);
     188            $this.stop().fadeTo("fast", 0.45);
    179189        }
    180190    );
     
    351361        FullScreenBackground($bgimg,$bgimg.data("newImageW"),$bgimg.data("newImageH"));
    352362        if(theMode=="full"){
    353             $toolbar_a.html("<img src='" + bsm_loc.bsm_plugin_url + "assets/toolbar_n_icon.png' width='50' height='50'  />").attr("id", "view-normal").attr("title", "Original Ratio");
     363            $toolbar_a.html('<img src="' + bsm_loc.bsm_plugin_url + 'assets/toolbar_n_icon-' + $bsmSkin + '.png" width="50" height="50" />').attr("id", "view-normal").attr("title", "Original Ratio");
    354364        } else {
    355             $toolbar_a.html("<img src='" + bsm_loc.bsm_plugin_url + "assets/toolbar_fs_icon.png' width='50' height='50'  />").attr("id", "view-max").attr("title", "Full Screen");
     365            $toolbar_a.html('<img src="' + bsm_loc.bsm_plugin_url + 'assets/toolbar_fs_icon-' + $bsmSkin + '.png" width="50" height="50" />').attr("id", "view-max").attr("title", "Full Screen");
    356366        }
    357367    }
  • background-slider-master/trunk/readme.txt

    r1290613 r1301246  
    11=== Background Slider Master ===
    22Contributors: devcon1, devcon2
    3 Tags: background slider, slider, responsive background slider, responsive slider, simple slider, easy slider, premium background slider, multi page background slider
     3Tags: background slider, responsive background slider, full width background slider, multi page background slider
    44Requires at least: 4.1
    55Tested up to: 4.3.1
     
    6161-Many more
    6262
     638. Can the navigation be shown overthe white or black background images?
     64Yes. You can choose different skin for the color of navigation and the scale change mode icon.
    6365
    6466== Screenshots ==
     
    95971. Add directions to the top of the settings tab: Apply slider to all pages and posts globally below, or click into your pages and posts individually and look for the "Select Background Slider Master Gallery" option on the side. This will apply the Background Slider to that page or post only.
    9698
     99= 1.4.0 =
     100* Feature Added
     1011. Users can choose different color skin to show the navigation arrow and the image scaling mode change icon over the black or white background color.
     102
     103== Upgrade Notice ==
     104
     105= 1.4.0 =
     106Icon and navigation arrow color can be changed from the settings > "Select Controller Skin"
     107
     108
    97109== Support ==
    98110* This plugin is provided as is without any warranty.
  • background-slider-master/trunk/uninstall.php

    r1245553 r1301246  
    3737    'bsm_thumb_nav_settings_field',
    3838    'bsm_slider_delay_settings_field',
    39     'bsm_easing_option_duration_settings_field'
     39    'bsm_easing_option_duration_settings_field',
     40    'bsm_skin_settings_field'
    4041);
    4142
Note: See TracChangeset for help on using the changeset viewer.