2
2
/**
3
3
* Wish List for WooCommerce Pro - General Section Settings
4
4
*
5
- * @version 2.3.7
5
+ * @version 3.0.5
6
6
* @since 1.0.0
7
7
* @author WPFactory.
8
8
*/
@@ -64,6 +64,7 @@ class Alg_WC_Wish_List_Settings_Style extends Alg_WC_Wish_List_Settings_Section
64
64
65
65
// Wishlist options
66
66
const OPTION_STYLE_WISH_LIST_SHARE_ICON_COLOR = 'alg_wc_wl_style_wish_list_share_icon_color ' ;
67
+ const OPTION_STYLE_WISH_LIST_SHARE_ICON_COLOR_HOVER = 'alg_wc_wl_style_wish_list_share_icon_color_hover ' ;
67
68
const OPTION_STYLE_WISH_LIST_SHOW_TABLE_TITLES_DESKTOP = 'alg_wc_wl_style_wish_list_t_titles_desktop ' ;
68
69
const OPTION_STYLE_WISH_LIST_SHOW_TABLE_TITLES_MOBILE = 'alg_wc_wl_style_wish_list_t_titles_mobile ' ;
69
70
const OPTION_REMOVE_BTN_ICON_CLASS = 'alg_wc_wl_style_wish_list_remove_btn_icon_class ' ;
@@ -78,11 +79,25 @@ class Alg_WC_Wish_List_Settings_Style extends Alg_WC_Wish_List_Settings_Section
78
79
const OPTION_MULTIPLE_TAB_BG_COLOR = 'alg_wc_wl_style_wish_list_multiple_tab_bg_color ' ;
79
80
const OPTION_MULTIPLE_TAB_ACTIVE_FONT_COLOR = 'alg_wc_wl_style_wish_list_multiple_tab_active_font_color ' ;
80
81
const OPTION_MULTIPLE_TAB_ACTIVE_BG_COLOR = 'alg_wc_wl_style_wish_list_multiple_tab_active_bg_color ' ;
82
+ const OPTION_MULTIPLE_TAB_DELETE_BUTTON_COLOR = 'alg_wc_wl_style_wish_list_multiple_tab_delete_button_color ' ;
83
+ const OPTION_MULTIPLE_TAB_DELETE_BUTTON_HOVER_COLOR = 'alg_wc_wl_style_wish_list_multiple_tab_delete_button_hover_color ' ;
81
84
82
85
// My account tab
83
86
const OPTION_STYLE_MY_ACCOUNT_TAB_ICON_ENABLE = 'alg_wc_wl_style_my_account_tab_icon_enable ' ;
84
87
const OPTION_STYLE_MY_ACCOUNT_TAB_ICON = 'alg_wc_wl_style_my_account_tab_icon ' ;
85
88
const OPTION_STYLE_MY_ACCOUNT_TAB_ICON_ELEMENT = 'alg_wc_wl_style_my_account_tab_icon_element ' ;
89
+
90
+ // Style Customization
91
+ const OPTION_STYLE_CUSTOMIZED_CSS = 'alg_wc_wl_style_customized_css ' ;
92
+
93
+ // Multiple Wishlist Modal Color Option
94
+ const OPTION_MULTIPLE_POPUP_BG_COLOR = 'alg_wc_wl_style_popup_bg_color ' ;
95
+ const OPTION_MULTIPLE_POPUP_FONT_COLOR = 'alg_wc_wl_style_popup_font_color ' ;
96
+ const OPTION_MULTIPLE_POPUP_LIST_ITEM_COLOR = 'alg_wc_wl_style_popup_list_item_color ' ;
97
+ const OPTION_MULTIPLE_POPUP_CHECKBOX_CHECKED_COLOR = 'alg_wc_wl_style_popup_checkbox_checked_color ' ;
98
+ const OPTION_MULTIPLE_POPUP_CHECKBOX_UNCHECKED_COLOR = 'alg_wc_wl_style_popup_checkbox_unchecked_color ' ;
99
+ const OPTION_MULTIPLE_POPUP_CHECKBOX_TICK_COLOR = 'alg_wc_wl_style_popup_checkbox_tick_color ' ;
100
+ const OPTION_MULTIPLE_POPUP_BUTTON_COLOR = 'alg_wc_wl_style_popup_button_color ' ;
86
101
87
102
/**
88
103
* Constructor.
@@ -117,7 +132,7 @@ function get_section_priority() {
117
132
/**
118
133
* get_settings.
119
134
*
120
- * @version 2.3.7
135
+ * @version 3.0.5
121
136
* @since 1.0.0
122
137
*/
123
138
function get_settings ( $ settings = null ) {
@@ -159,6 +174,17 @@ function get_settings( $settings = null ) {
159
174
'data-alpha-enabled ' => "true " ,
160
175
)
161
176
),
177
+ array (
178
+ 'title ' => __ ( 'Social icons hover colors ' , 'wish-list-for-woocommerce ' ),
179
+ 'desc ' => __ ( 'Color for social icons ' ),
180
+ 'id ' => self ::OPTION_STYLE_WISH_LIST_SHARE_ICON_COLOR_HOVER ,
181
+ 'default ' => '#a0a0a0 ' ,
182
+ 'class ' => 'color-picker ' ,
183
+ 'type ' => 'text ' ,
184
+ 'custom_attributes ' => array (
185
+ 'data-alpha-enabled ' => "true " ,
186
+ )
187
+ ),
162
188
array (
163
189
'type ' => 'sectionend ' ,
164
190
'id ' => 'alg_wc_wl_general_style_opts ' ,
@@ -719,6 +745,103 @@ function get_settings( $settings = null ) {
719
745
),
720
746
);
721
747
748
+ $ multiple_wishlist_modal_options = array (
749
+
750
+ // My account tab
751
+ array (
752
+ 'title ' => __ ( 'Multiple Wishlist Modal Color Option ' , 'wish-list-for-woocommerce ' ),
753
+ 'type ' => 'title ' ,
754
+ 'desc ' => __ ( 'Multiple wishlist popup ' , 'wish-list-for-woocommerce ' ),
755
+ 'id ' => 'alg_wc_wl_style_multiple_wishlist_popup ' ,
756
+ ),
757
+ array (
758
+ 'title ' => __ ( 'Popup Background Color ' , 'wish-list-for-woocommerce ' ),
759
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
760
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_BG_COLOR ,
761
+ 'default ' => '#ffffff ' ,
762
+ 'class ' => 'color-picker ' ,
763
+ 'type ' => 'text ' ,
764
+ 'custom_attributes ' => array (
765
+ 'data-alpha-enabled ' => "true " ,
766
+ )
767
+ ),
768
+
769
+ array (
770
+ 'title ' => __ ( 'Popup Font Color ' , 'wish-list-for-woocommerce ' ),
771
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
772
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_FONT_COLOR ,
773
+ 'default ' => '#000 ' ,
774
+ 'class ' => 'color-picker ' ,
775
+ 'type ' => 'text ' ,
776
+ 'custom_attributes ' => array (
777
+ 'data-alpha-enabled ' => "true " ,
778
+ )
779
+ ),
780
+
781
+ array (
782
+ 'title ' => __ ( 'Popup List Item Color ' , 'wish-list-for-woocommerce ' ),
783
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
784
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_LIST_ITEM_COLOR ,
785
+ 'default ' => '#eee ' ,
786
+ 'class ' => 'color-picker ' ,
787
+ 'type ' => 'text ' ,
788
+ 'custom_attributes ' => array (
789
+ 'data-alpha-enabled ' => "true " ,
790
+ )
791
+ ),
792
+
793
+ array (
794
+ 'title ' => __ ( 'Checkbox checked Color ' , 'wish-list-for-woocommerce ' ),
795
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
796
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_CHECKBOX_CHECKED_COLOR ,
797
+ 'default ' => '#255cd2 ' ,
798
+ 'class ' => 'color-picker ' ,
799
+ 'type ' => 'text ' ,
800
+ 'custom_attributes ' => array (
801
+ 'data-alpha-enabled ' => "true " ,
802
+ )
803
+ ),
804
+ array (
805
+ 'title ' => __ ( 'Checkbox unchecked Color ' , 'wish-list-for-woocommerce ' ),
806
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
807
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_CHECKBOX_UNCHECKED_COLOR ,
808
+ 'default ' => '#47474936 ' ,
809
+ 'class ' => 'color-picker ' ,
810
+ 'type ' => 'text ' ,
811
+ 'custom_attributes ' => array (
812
+ 'data-alpha-enabled ' => "true " ,
813
+ )
814
+ ),
815
+
816
+ array (
817
+ 'title ' => __ ( 'Checkbox tick Color ' , 'wish-list-for-woocommerce ' ),
818
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
819
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_CHECKBOX_TICK_COLOR ,
820
+ 'default ' => '#fff ' ,
821
+ 'class ' => 'color-picker ' ,
822
+ 'type ' => 'text ' ,
823
+ 'custom_attributes ' => array (
824
+ 'data-alpha-enabled ' => "true " ,
825
+ )
826
+ ),
827
+ array (
828
+ 'title ' => __ ( 'Checkbox button Color ' , 'wish-list-for-woocommerce ' ),
829
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
830
+ 'id ' => self ::OPTION_MULTIPLE_POPUP_BUTTON_COLOR ,
831
+ 'default ' => '#eeeeee ' ,
832
+ 'class ' => 'color-picker ' ,
833
+ 'type ' => 'text ' ,
834
+ 'custom_attributes ' => array (
835
+ 'data-alpha-enabled ' => "true " ,
836
+ )
837
+
838
+ ),
839
+ array (
840
+ 'type ' => 'sectionend ' ,
841
+ 'id ' => 'alg_wc_wl_style_multiple_wishlist_popup ' ,
842
+ ),
843
+ );
844
+
722
845
723
846
$ multiple_wishlist_color_opts = array (
724
847
// Thumb button - back layer
@@ -777,11 +900,58 @@ function get_settings( $settings = null ) {
777
900
)
778
901
),
779
902
903
+ array (
904
+ 'title ' => __ ( 'Tab Delete Button Color ' , 'wish-list-for-woocommerce ' ),
905
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
906
+ 'id ' => self ::OPTION_MULTIPLE_TAB_DELETE_BUTTON_COLOR ,
907
+ 'default ' => '#DC3232 ' ,
908
+ 'class ' => 'color-picker ' ,
909
+ 'type ' => 'text ' ,
910
+ 'custom_attributes ' => array (
911
+ 'data-alpha-enabled ' => "true " ,
912
+ )
913
+ ),
914
+
915
+ array (
916
+ 'title ' => __ ( 'Tab Delete Button Hover Color ' , 'wish-list-for-woocommerce ' ),
917
+ //'desc' => __( 'Thumb button color when an item is on wishlist. ' ),
918
+ 'id ' => self ::OPTION_MULTIPLE_TAB_DELETE_BUTTON_HOVER_COLOR ,
919
+ 'default ' => '#DC3232 ' ,
920
+ 'class ' => 'color-picker ' ,
921
+ 'type ' => 'text ' ,
922
+ 'custom_attributes ' => array (
923
+ 'data-alpha-enabled ' => "true " ,
924
+ )
925
+ ),
926
+
780
927
array (
781
928
'type ' => 'sectionend ' ,
782
929
'id ' => 'alg_wc_wl_style_multi_wishlist_opt ' ,
783
930
),
784
931
);
932
+
933
+ $ wishlist_customized_css = array (
934
+ // Customized CSS
935
+ array (
936
+ 'title ' => __ ( 'Style Customization ' , 'wish-list-for-woocommerce ' ),
937
+ 'type ' => 'title ' ,
938
+ /*'desc' => __( '', 'wish-list-for-woocommerce' ),*/
939
+ 'id ' => 'alg_wc_wl_style_customized_css ' ,
940
+ ),
941
+
942
+ array (
943
+ 'title ' => __ ( 'Add customized css ' , 'wish-list-for-woocommerce ' ),
944
+ 'desc ' => __ ( 'Apply customized css for wishlist ' , 'wish-list-for-woocommerce ' ),
945
+ 'id ' => self ::OPTION_STYLE_CUSTOMIZED_CSS ,
946
+ 'type ' => 'textarea ' ,
947
+ ),
948
+
949
+ array (
950
+ 'type ' => 'sectionend ' ,
951
+ 'id ' => 'alg_wc_wl_style_customized_css ' ,
952
+ ),
953
+
954
+ );
785
955
786
956
return parent ::get_settings ( array_merge ( $ settings , array_merge (
787
957
$ style_section_opts ,
@@ -793,7 +963,9 @@ function get_settings( $settings = null ) {
793
963
$ wish_list_table_opts ,
794
964
$ remove_button_opts ,
795
965
$ multiple_wishlist_color_opts ,
796
- $ my_account_tab_options
966
+ $ multiple_wishlist_modal_options ,
967
+ $ wishlist_customized_css ,
968
+ $ my_account_tab_options ,
797
969
) ) );
798
970
}
799
971
0 commit comments