Changeset 2640189
- Timestamp:
- 12/06/2021 06:44:44 PM (4 years ago)
- Location:
- wp-bottom-menu
- Files:
-
- 31 added
- 2 edited
-
tags/1.4.3 (added)
-
tags/1.4.3/inc (added)
-
tags/1.4.3/inc/customizer-repeater (added)
-
tags/1.4.3/inc/customizer-repeater/class (added)
-
tags/1.4.3/inc/customizer-repeater/class/customizer-repeater-control.php (added)
-
tags/1.4.3/inc/customizer-repeater/css (added)
-
tags/1.4.3/inc/customizer-repeater/css/admin-style.css (added)
-
tags/1.4.3/inc/customizer-repeater/css/font-awesome.css (added)
-
tags/1.4.3/inc/customizer-repeater/css/font-awesome.min.css (added)
-
tags/1.4.3/inc/customizer-repeater/css/fontawesome-iconpicker.min.css (added)
-
tags/1.4.3/inc/customizer-repeater/fonts (added)
-
tags/1.4.3/inc/customizer-repeater/fonts/FontAwesome.otf (added)
-
tags/1.4.3/inc/customizer-repeater/fonts/fontawesome-webfont.eot (added)
-
tags/1.4.3/inc/customizer-repeater/fonts/fontawesome-webfont.svg (added)
-
tags/1.4.3/inc/customizer-repeater/fonts/fontawesome-webfont.ttf (added)
-
tags/1.4.3/inc/customizer-repeater/fonts/fontawesome-webfont.woff (added)
-
tags/1.4.3/inc/customizer-repeater/fonts/fontawesome-webfont.woff2 (added)
-
tags/1.4.3/inc/customizer-repeater/functions.php (added)
-
tags/1.4.3/inc/customizer-repeater/inc (added)
-
tags/1.4.3/inc/customizer-repeater/inc/customizer.php (added)
-
tags/1.4.3/inc/customizer-repeater/inc/icons.php (added)
-
tags/1.4.3/inc/customizer-repeater/js (added)
-
tags/1.4.3/inc/customizer-repeater/js/customizer_repeater.js (added)
-
tags/1.4.3/inc/customizer-repeater/js/fontawesome-iconpicker.js (added)
-
tags/1.4.3/inc/customizer-repeater/js/fontawesome-iconpicker.min.js (added)
-
tags/1.4.3/inc/main.js (added)
-
tags/1.4.3/inc/page-control (added)
-
tags/1.4.3/inc/page-control/page-control.php (added)
-
tags/1.4.3/inc/style.css (added)
-
tags/1.4.3/readme.txt (added)
-
tags/1.4.3/wp-bottom-menu.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-bottom-menu.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-bottom-menu/trunk/readme.txt
r2612060 r2640189 5 5 Requires at least: 5.0 6 6 Tested up to: 5.8.1 7 Stable tag: 1.4. 27 Stable tag: 1.4.3 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 59 59 == Changelog == 60 60 61 == 1.4.3 == 62 * New - Hide menu for non-logged in users. Check it 'WP Bottom Menu > Settings > Hide for visitors'. 63 61 64 = 1.4.2 = 62 65 * Fix - Customizer PHP8 conflict. -
wp-bottom-menu/trunk/wp-bottom-menu.php
r2612060 r2640189 3 3 * Plugin Name: WP Bottom Menu 4 4 * Description: WP Bottom Menu allows you to add a woocommerce supported bottom menu to your site. 5 * Version: 1.4. 25 * Version: 1.4.3 6 6 * Author: J4 7 7 * Author URI: https://j4cob.net … … 24 24 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 25 25 26 define( 'WP_BOTTOM_MENU_VERSION', '1.4. 2' );26 define( 'WP_BOTTOM_MENU_VERSION', '1.4.3' ); 27 27 define( 'WP_BOTTOM_MENU_DIR_URL', plugin_dir_url( __FILE__ ) ); 28 28 define( 'WP_BOTTOM_MENU_DIR_PATH', plugin_dir_path( __FILE__ ) ); … … 67 67 function wp_bottom_menu() { 68 68 69 69 // Check login to hide 70 if ( get_option('wpbottommenu_hide_for_visitor', false) && !is_user_logged_in() ){ 71 return; 72 } 73 70 74 // Check pages to hide 71 75 if ( is_array( get_option( 'wpbottommenu_hide_pages' ) ) ){ … … 290 294 ) 291 295 ); 296 297 $wp_customize->add_setting( 'wpbottommenu_hide_for_visitor' , array( 298 'default' => false, 299 'type' => 'option', 300 )); 301 302 $wp_customize->add_control('wpbottommenu_hide_for_visitor', array( 303 'label' => __( 'Hide for visitors?', 'wp-bottom-menu' ), 304 'description' => __( 'Hide menu for non-logged in visitors', 'wp-bottom-menu' ), 305 'section' => 'wpbottommenu_section_settings', 306 'settings' => 'wpbottommenu_hide_for_visitor', 307 'type' => 'checkbox', 308 )); 292 309 293 310 //
Note: See TracChangeset
for help on using the changeset viewer.