diff --git a/css/user-dropdown-menu.css b/css/user-dropdown-menu.css index 041183b..890c15e 100644 --- a/css/user-dropdown-menu.css +++ b/css/user-dropdown-menu.css @@ -1,3 +1,6 @@ +#sagaio-udm-inner-wrapper { + position: relative !important; +} div.sagaio-udm-icon:hover { cursor: pointer; } diff --git a/readme.txt b/readme.txt index 619c1ad..d524cf5 100644 --- a/readme.txt +++ b/readme.txt @@ -9,6 +9,20 @@ Licemse URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html Insert a dropdown menu with a icon button, based on Bootstrap 4.0 Dropdown. All settings can be found in the Theme Customizer. += Features = + +* Build your menu from the standard interface and assign it to User Dropdown Menu +* All settings found in your Theme Customizer +* Option to change the default icon image +* Option to display login form that is customizable +* Option to display header above login form +* Option to display current username in menu +* Option to display header above username +* Option to display logout link +* Lots of more options when it comes to styling + +Are you missing an option? Head over to https://github.com/sagaio/user-dropdown-menu and submit an issue. + == Installation == = From your WordPress dashboard = @@ -49,11 +63,21 @@ Start a topic in the support section == Changelog == += 1.0.2 = +*2016-11-17* + +* Fix: Shortcode was using ```echo``` and is now using ```return``` instead. +* Fix: Position of inner wrapper changed to relative to contain dropdown menu- +* Update: ```#sagaio-udm-menu-wrapper``` changed name to ```#sagaio-udm-menu-inner-wrapper```. +* New: Added outer wrapper and options for configuring its position, id: ```#sagaio-udm-menu-wrapper``. + = 1.0.1 = *2016-11-14* -* Fix: Typo in ```
``` -* New: Options for configuring the login header, class: ```.sagaio-udm-menu-header`` + +* Fix: Typo in ```
``. +* New: Options for configuring the login header, class: ```.sagaio-udm-menu-header``. = 1.0.0 = *2016-11-14* + * First release \ No newline at end of file diff --git a/user-dropdown-menu.php b/user-dropdown-menu.php index a77c7f1..7cbfff2 100644 --- a/user-dropdown-menu.php +++ b/user-dropdown-menu.php @@ -96,18 +96,30 @@ static function sagaio_udm_customize_register( $wp_customize ) { } /* Icon: height, widths, margins and paddings */ - $general_icon_settings = []; + $icon_hwmp = []; - $general_icon_settings[] = array( 'slug'=>'sagaio_udm_icon_width', 'default' => '30', 'label' => __( 'Icon width', 'sagaio-udm' ) ); - $general_icon_settings[] = array( 'slug'=>'sagaio_udm_icon_height', 'default' => '30', 'label' => __( 'Icon height', 'sagaio-udm' ) ); - $general_icon_settings[] = array( 'slug'=>'sagaio_udm_icon_margin', 'default' => '0', 'label' => __( 'Icon margin', 'sagaio-udm' ) ); + $icon_hwmp[] = array( 'slug'=>'sagaio_udm_icon_width', 'default' => '30', 'label' => __( 'Icon width', 'sagaio-udm' ) ); + $icon_hwmp[] = array( 'slug'=>'sagaio_udm_icon_height', 'default' => '30', 'label' => __( 'Icon height', 'sagaio-udm' ) ); + $icon_hwmp[] = array( 'slug'=>'sagaio_udm_icon_margin', 'default' => '0', 'label' => __( 'Icon margin', 'sagaio-udm' ) ); - foreach($general_icon_settings as $setting) + foreach($icon_hwmp as $setting) { $wp_customize->add_setting( $setting['slug'], array( 'default' => $setting['default'], 'type' => 'option', 'capability' => 'edit_theme_options' )); $wp_customize->add_control( $setting['slug'], array( 'type' => 'number', 'label' => $setting['label'], 'section' => 'sagaio_udm_icon', 'input_attrs' => array( 'min' => 0, 'max' => 100) )); } + /* Icon: position */ + $icon_positions = []; + + $icon_positions[] = array( 'slug'=>'sagaio_udm_icon_outer_wrapper_position', 'default' => 'relative', 'label' => __( 'Outer wrapper position', 'sagaio-udm' ) ); + + foreach($icon_positions as $setting) + { + $wp_customize->add_setting( $setting['slug'], array( 'default' => $setting['default'], 'type' => 'option', 'capability' => 'edit_theme_options' )); + $wp_customize->add_control( $setting['slug'], array( 'type' => 'select', 'label' => $setting['label'], 'section' => 'sagaio_udm_icon', 'choices' => array( 'relative' => 'Relative', 'absolute' => 'Absolute', 'fixed' => 'Fixed', 'static' => 'Static' ) )); + } + + /* Login form: border */ $login_form_border[] = array( 'slug'=>'sagaio_udm_login_button_border_width', 'default' => '1', 'label' => __( 'Login button border width', 'sagaio-udm' ) ); @@ -421,6 +433,9 @@ static function echo_customizer_styles() { $sagaio_udm_login_header_alignment = get_option('sagaio_udm_login_header_alignment', 'left'); $sagaio_udm_login_button_alignment = get_option('sagaio_udm_login_button_alignment', 'left'); + // Outer Wrapper Position + $sagaio_udm_icon_outer_wrapper_position = get_option('sagaio_udm_icon_outer_wrapper_position', 'relative'); + // Determine if we whould display labels for the input fields $display_login_labels = get_option('sagaio_udm_display_login_labels', false); if(!$display_login_labels) { @@ -430,6 +445,9 @@ static function echo_customizer_styles() { } $style = '