Changeset 1301246
- Timestamp:
- 12/06/2015 04:18:46 AM (10 years ago)
- Location:
- background-slider-master/trunk
- Files:
-
- 12 added
- 4 deleted
- 7 edited
-
admin/class-background-slider-master-admin.php (modified) (4 diffs)
-
background-slider-master.php (modified) (2 diffs)
-
public/assets/nextImgBtn-black.png (added)
-
public/assets/nextImgBtn-default.png (added)
-
public/assets/nextImgBtn-white.png (added)
-
public/assets/nextImgBtn.png (deleted)
-
public/assets/prevImgBtn-black.png (added)
-
public/assets/prevImgBtn-default.png (added)
-
public/assets/prevImgBtn-white.png (added)
-
public/assets/prevImgBtn.png (deleted)
-
public/assets/toolbar_fs_icon-black.png (added)
-
public/assets/toolbar_fs_icon-default.png (added)
-
public/assets/toolbar_fs_icon-white.png (added)
-
public/assets/toolbar_fs_icon.png (deleted)
-
public/assets/toolbar_n_icon-black.png (added)
-
public/assets/toolbar_n_icon-default.png (added)
-
public/assets/toolbar_n_icon-white.png (added)
-
public/assets/toolbar_n_icon.png (deleted)
-
public/class-background-slider-master-public.php (modified) (2 diffs)
-
public/css/background-slider-master-public.css (modified) (2 diffs)
-
public/js/background-slider-master-public.js (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
background-slider-master/trunk/admin/class-background-slider-master-admin.php
r1265674 r1301246 121 121 ); 122 122 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( 123 131 'bsm_disable_ratio_settings_field', 124 132 'Disable View Mode Change', … … 167 175 'bsm_settings_menu', 168 176 'bsm_view_mode_settings_field' 177 ); 178 register_setting( 179 'bsm_settings_menu', 180 'bsm_skin_settings_field' 169 181 ); 170 182 register_setting( … … 300 312 update_post_meta( $post_id, '_bsm_selected_gallery', $bsm_selected ); 301 313 302 303 314 update_post_meta( $post_id, '_bsm_test_key', $mydata ); 304 315 } … … 402 413 echo $html; 403 414 } 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 404 436 public function callback_bsm_disable_ratio_settings_field( $options ){ 405 437 $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 2 2 3 3 /** 4 * The plugin bootstrap file5 *6 * This file is read by WordPress to generate the plugin information in the plugin7 * admin area. This file also includes all of the dependencies used by the plugin,8 * registers the activation and deactivation functions, and defines a function9 * that starts the plugin.10 4 * 11 5 * @link https://icanwp.com/plugins/background-slider-master/ … … 16 10 * Plugin Name: Background Slider Master 17 11 * 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 wasdesigned 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.112 * 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 20 14 * Author: iCanWP Team, Sean Roh, Chris Couweleers 21 15 * Author URI: https://icanwp.com/plugins/background-slider-master/ -
background-slider-master/trunk/public/class-background-slider-master-public.php
r1245553 r1301246 89 89 'bsm_plugin_url' => plugin_dir_url( __FILE__ ), 90 90 '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 91 92 'bsm_thumb_nav' => get_option('bsm_thumb_nav_settings_field'), // true or false 92 93 'bsm_slider_delay' => get_option('bsm_slider_delay_settings_field'), //time between the slider changes 93 94 'bsm_easing_option_duration' => get_option('bsm_easing_option_duration_settings_field'), // time for animation transition 94 95 'bsm_auto_play' => get_option('bsm_auto_play_settings_field') // true or false 96 95 97 ); 96 98 wp_localize_script( $this->plugin_name . '_bsm_script', 'bsm_loc', $bsm_loc); … … 136 138 <div id="bsm-toolbar"> 137 139 <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" /> 139 141 </a> 140 142 </div>'; -
background-slider-master/trunk/public/css/background-slider-master-public.css
r1246798 r1301246 112 112 z-index: 3; 113 113 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; 117 117 } 118 118 .BSMnextImageBtn:hover, … … 121 121 -moz-opacity: 0.8; 122 122 -khtml-opacity: 0.8; 123 opacity: 0.8 ;123 opacity: 0.85; 124 124 } 125 125 .BSMnextImageBtn { 126 126 right: 0; 127 background: url(../assets/nextImgBtn.png) center center no-repeat; 127 background-position: center center; 128 background-repeat: no-repeat; 128 129 z-index: 3; 129 130 } 130 131 .BSMprevImageBtn { 131 background: url(../assets/prevImgBtn.png) center center no-repeat; 132 background-position: center center; 133 background-repeat: no-repeat; 132 134 z-index: 3; 133 135 } -
background-slider-master/trunk/public/js/background-slider-master-public.js
r1265674 r1301246 7 7 8 8 $defaultViewMode=bsm_loc.bsm_view_mode; //full, normal, original 9 $bsmSkin=bsm_loc.bsm_skin; // skin option 9 10 $tsMargin=30; //first and last thumbnail margin (for better cursor interaction) 10 11 $scrollEasing=parseInt(bsm_loc.bsm_easing_option_duration); //scroll easing amount (0 for no easing) … … 53 54 $(window).load(function() { 54 55 $toolbar.data("imageViewMode",$defaultViewMode); //default view mode 56 55 57 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"); 57 59 } 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"); 59 61 } 60 62 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 61 71 //thumbnail scroller 62 72 $thumbScroller_container.css("marginLeft",$tsMargin+"px"); //add margin … … 167 177 //mouseover toolbar 168 178 if($toolbar.css("display")!="none"){ 169 $toolbar.fadeTo("fast", 0. 25);179 $toolbar.fadeTo("fast", 0.45); 170 180 } 171 181 $toolbar.hover( … … 176 186 function(){ //mouse out 177 187 var $this=$(this); 178 $this.stop().fadeTo("fast", 0. 25);188 $this.stop().fadeTo("fast", 0.45); 179 189 } 180 190 ); … … 351 361 FullScreenBackground($bgimg,$bgimg.data("newImageW"),$bgimg.data("newImageH")); 352 362 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"); 354 364 } 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"); 356 366 } 357 367 } -
background-slider-master/trunk/readme.txt
r1290613 r1301246 1 1 === Background Slider Master === 2 2 Contributors: devcon1, devcon2 3 Tags: background slider, slider, responsive background slider, responsive slider, simple slider, easy slider, premiumbackground slider, multi page background slider3 Tags: background slider, responsive background slider, full width background slider, multi page background slider 4 4 Requires at least: 4.1 5 5 Tested up to: 4.3.1 … … 61 61 -Many more 62 62 63 8. Can the navigation be shown overthe white or black background images? 64 Yes. You can choose different skin for the color of navigation and the scale change mode icon. 63 65 64 66 == Screenshots == … … 95 97 1. 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. 96 98 99 = 1.4.0 = 100 * Feature Added 101 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. 102 103 == Upgrade Notice == 104 105 = 1.4.0 = 106 Icon and navigation arrow color can be changed from the settings > "Select Controller Skin" 107 108 97 109 == Support == 98 110 * This plugin is provided as is without any warranty. -
background-slider-master/trunk/uninstall.php
r1245553 r1301246 37 37 'bsm_thumb_nav_settings_field', 38 38 'bsm_slider_delay_settings_field', 39 'bsm_easing_option_duration_settings_field' 39 'bsm_easing_option_duration_settings_field', 40 'bsm_skin_settings_field' 40 41 ); 41 42
Note: See TracChangeset
for help on using the changeset viewer.