Changeset 1849152
- Timestamp:
- 03/29/2018 09:37:06 AM (8 years ago)
- Location:
- wow-scroll-up/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
wow-scroll-button.php (modified) (2 diffs)
-
wow-scroll-up.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wow-scroll-up/trunk/readme.txt
r1846971 r1849152 33 33 * Add Image property 34 34 35 = 1.2 = 36 * Add enable property 37 35 38 == Upgrade Notice == 36 39 37 = 1. 2=40 = 1.3 = 38 41 * Add animations 39 42 -
wow-scroll-up/trunk/wow-scroll-button.php
r1846971 r1849152 3 3 ?> 4 4 5 6 <?php if($wsu_main_option['wsu_button_enable_b'] == '1'){ ?> 5 7 <div class="wsu-scrollup-bttn <?php if($wsu_main_option['wsu_button_position'] == 'bottom-left'){echo 'left ';} if($wsu_main_option['wsu_button_style'] == 'circle'){echo 'circle';} if(trim($wsu_main_option['wsu_button_mobile']) == '1'){echo ' mobile';} ?>" style="width: <?php echo $wsu_main_option['wsu_width'] . 'px'; ?>; height: <?php echo $wsu_main_option['wsu_height'] . 'px'; ?>; line-height: <?php echo $wsu_main_option['wsu_height'] . 'px'; ?>; background: <?php echo $wsu_main_option['wsu_bg_color']; ?>;"> 6 8 <div class="wsu-hover" style="background: <?php echo $wsu_main_option['wsu_bg_color_hover']; ?>"></div> … … 13 15 </div> 14 16 </div> 17 <?php } ?> -
wow-scroll-up/trunk/wow-scroll-up.php
r1847002 r1849152 3 3 Plugin Name: Wow scroll up 4 4 Description: This plugin allows you to easily scroll back to the top of the page. 5 Version: 1. 15 Version: 1.2 6 6 Author: WebArea | Vera Nedvyzhenko 7 7 Author URI: https://profiles.wordpress.org/veradeveloper/ … … 89 89 add_settings_section('wsu_section_effects_st', 'Effects Settings', '', 'wsu_settings_page' ); 90 90 91 add_settings_field('wsu_button_enable_b', 'Enable Button', 'wsu_button_enable_fill', 'wsu_settings_page', 'wsu_section_general_st' ); 91 92 add_settings_field('wsu_button_icon_type', 'Button Icon Type', 'wsu_button_icon_type_fill', 'wsu_settings_page', 'wsu_section_general_st' ); 92 93 … … 108 109 109 110 add_action('admin_init', 'wsu_register_settings'); 111 112 function wsu_button_enable_fill(){ 113 $val = get_option('wsu_options')['wsu_button_enable_b']; 114 ?> 115 <input type="hidden" name="wsu_options[wsu_button_enable_noval]" value="1"> 116 <div class="wsu-checkbox"> 117 <input type="checkbox" name="wsu_options[wsu_button_enable_b]" value="1"<?php checked( 1 == $val ); ?> /> 118 <label></label> 119 </div> 120 <?php 121 } 110 122 111 123 function wsu_button_icon_type_fill(){ … … 270 282 $wsu_main_option = get_option('wsu_options'); 271 283 if(empty($wsu_main_option)){ 284 $wsu_main_option['wsu_button_enable_b'] = 1; 272 285 $wsu_main_option['wsu_button_icon_type'] = 'icon'; 273 286 $wsu_main_option['wsu_button_icon'] = 'up-arrow'; … … 289 302 if(!array_key_exists('wsu_button_icon_type', $wsu_main_option)){ 290 303 $wsu_main_option['wsu_button_icon_type'] = 'icon'; 291 update_option('wsu_options', $wsu_main_option);292 304 } 305 306 if(!array_key_exists('wsu_button_enable_noval', $wsu_main_option)){ 307 $wsu_main_option['wsu_button_enable_b'] = 1; 308 $wsu_main_option['wsu_button_enable_noval'] = 1; 309 } 310 update_option('wsu_options', $wsu_main_option); 293 311 } 294 312 }
Note: See TracChangeset
for help on using the changeset viewer.