Changeset 187988
- Timestamp:
- 03/28/2023 05:02:33 AM (3 years ago)
- Location:
- affiliate-review/0.4.1
- Files:
-
- 6 edited
- 1 copied
- . (copied) (copied from affiliate-review/0.4)
- custom-style.php (modified) (1 diff)
- functions.php (modified) (2 diffs)
- inc/customizer.php (modified) (1 diff)
- languages/affiliate-review.pot (modified) (1 diff)
- readme.txt (modified) (2 diffs)
- style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
affiliate-review/0.4.1/custom-style.php
r186801 r187988 593 593 $affiliate_review_custom_css .='}'; 594 594 } 595 596 /*----------------Sroll to top Settings ------------------*/ 597 598 $affiliate_review_scroll_to_top_font_size = get_theme_mod('affiliate_review_scroll_to_top_font_size'); 599 if($affiliate_review_scroll_to_top_font_size != false){ 600 $affiliate_review_custom_css .='.scrollup i{'; 601 $affiliate_review_custom_css .='font-size: '.esc_attr($affiliate_review_scroll_to_top_font_size).';'; 602 $affiliate_review_custom_css .='}'; 603 } 604 605 $affiliate_review_scroll_to_top_padding = get_theme_mod('affiliate_review_scroll_to_top_padding'); 606 $affiliate_review_scroll_to_top_padding = get_theme_mod('affiliate_review_scroll_to_top_padding'); 607 if($affiliate_review_scroll_to_top_padding != false){ 608 $affiliate_review_custom_css .='.scrollup i{'; 609 $affiliate_review_custom_css .='padding-top: '.esc_attr($affiliate_review_scroll_to_top_padding).';padding-bottom: '.esc_attr($affiliate_review_scroll_to_top_padding).';'; 610 $affiliate_review_custom_css .='}'; 611 } 612 613 $affiliate_review_scroll_to_top_width = get_theme_mod('affiliate_review_scroll_to_top_width'); 614 if($affiliate_review_scroll_to_top_width != false){ 615 $affiliate_review_custom_css .='.scrollup i{'; 616 $affiliate_review_custom_css .='width: '.esc_attr($affiliate_review_scroll_to_top_width).';'; 617 $affiliate_review_custom_css .='}'; 618 } 619 620 $affiliate_review_scroll_to_top_height = get_theme_mod('affiliate_review_scroll_to_top_height'); 621 if($affiliate_review_scroll_to_top_height != false){ 622 $affiliate_review_custom_css .='.scrollup i{'; 623 $affiliate_review_custom_css .='height: '.esc_attr($affiliate_review_scroll_to_top_height).';'; 624 $affiliate_review_custom_css .='}'; 625 } 626 627 $affiliate_review_scroll_to_top_border_radius = get_theme_mod('affiliate_review_scroll_to_top_border_radius'); 628 if($affiliate_review_scroll_to_top_border_radius != false){ 629 $affiliate_review_custom_css .='.scrollup i{'; 630 $affiliate_review_custom_css .='border-radius: '.esc_attr($affiliate_review_scroll_to_top_border_radius).'px;'; 631 $affiliate_review_custom_css .='}'; 632 } 633 -
affiliate-review/0.4.1/functions.php
r184408 r187988 40 40 add_theme_support( 'wc-product-gallery-zoom' ); 41 41 add_theme_support( 'wc-product-gallery-slider' ); 42 add_theme_support( 'wc-product-gallery-lightbox' ); 42 43 add_theme_support( 'post-thumbnails' ); 43 44 add_theme_support( 'title-tag' ); … … 82 83 if (is_admin() && ('themes.php' == $pagenow) && isset( $_GET['activated'] )) { 83 84 add_action('admin_notices', 'affiliate_review_activation_notice'); 85 } 86 87 // Theme Activation Redirects To Get Started Page 88 if (is_admin() && ('themes.php' == $pagenow) && isset($_GET['activated']) && wp_get_theme()->get('TextDomain') === 'affiliate-review') { 89 wp_redirect(admin_url('themes.php?page=affiliate_review_guide')); 84 90 } 85 91 } -
affiliate-review/0.4.1/inc/customizer.php
r186801 r187988 879 879 )); 880 880 881 $wp_customize->add_setting('affiliate_review_scroll_to_top_icon',array( 882 'default' => 'fas fa-long-arrow-alt-up', 883 'sanitize_callback' => 'sanitize_text_field' 884 )); 885 $wp_customize->add_control(new affiliate_review_Fontawesome_Icon_Chooser( 886 $wp_customize,'affiliate_review_scroll_to_top_icon',array( 887 'label' => __('Add Scroll to Top Icon','affiliate-review'), 888 'transport' => 'refresh', 889 'section' => 'affiliate_review_footer', 890 'setting' => 'affiliate_review_scroll_to_top_icon', 891 'type' => 'icon' 892 ))); 893 894 $wp_customize->add_setting('affiliate_review_scroll_to_top_font_size',array( 895 'default'=> '', 896 'sanitize_callback' => 'sanitize_text_field' 897 )); 898 $wp_customize->add_control('affiliate_review_scroll_to_top_font_size',array( 899 'label' => __('Icon Font Size','affiliate-review'), 900 'description' => __('Enter a value in pixels. Example:20px','affiliate-review'), 901 'input_attrs' => array( 902 'placeholder' => __( '10px', 'affiliate-review' ), 903 ), 904 'section'=> 'affiliate_review_footer', 905 'type'=> 'text' 906 )); 907 908 $wp_customize->add_setting('affiliate_review_scroll_to_top_padding',array( 909 'default'=> '', 910 'sanitize_callback' => 'sanitize_text_field' 911 )); 912 $wp_customize->add_control('affiliate_review_scroll_to_top_padding',array( 913 'label' => __('Icon Top Bottom Padding','affiliate-review'), 914 'description' => __('Enter a value in pixels. Example:20px','affiliate-review'), 915 'input_attrs' => array( 916 'placeholder' => __( '10px', 'affiliate-review' ), 917 ), 918 'section'=> 'affiliate_review_footer', 919 'type'=> 'text' 920 )); 921 922 $wp_customize->add_setting('affiliate_review_scroll_to_top_width',array( 923 'default'=> '', 924 'sanitize_callback' => 'sanitize_text_field' 925 )); 926 $wp_customize->add_control('affiliate_review_scroll_to_top_width',array( 927 'label' => __('Icon Width','affiliate-review'), 928 'description' => __('Enter a value in pixels Example:20px','affiliate-review'), 929 'input_attrs' => array( 930 'placeholder' => __( '10px', 'affiliate-review' ), 931 ), 932 'section'=> 'affiliate_review_footer', 933 'type'=> 'text' 934 )); 935 936 $wp_customize->add_setting('affiliate_review_scroll_to_top_height',array( 937 'default'=> '', 938 'sanitize_callback' => 'sanitize_text_field' 939 )); 940 $wp_customize->add_control('affiliate_review_scroll_to_top_height',array( 941 'label' => __('Icon Height','affiliate-review'), 942 'description' => __('Enter a value in pixels. Example:20px','affiliate-review'), 943 'input_attrs' => array( 944 'placeholder' => __( '10px', 'affiliate-review' ), 945 ), 946 'section'=> 'affiliate_review_footer', 947 'type'=> 'text' 948 )); 949 950 $wp_customize->add_setting( 'affiliate_review_scroll_to_top_border_radius', array( 951 'default' => '', 952 'transport' => 'refresh', 953 'sanitize_callback' => 'affiliate_review_sanitize_number_range' 954 ) ); 955 $wp_customize->add_control( 'affiliate_review_scroll_to_top_border_radius', array( 956 'label' => esc_html__( 'Icon Border Radius','affiliate-review' ), 957 'section' => 'affiliate_review_footer', 958 'type' => 'range', 959 'input_attrs' => array( 960 'step' => 1, 961 'min' => 1, 962 'max' => 50, 963 ), 964 ) ); 965 881 966 $wp_customize->add_setting('affiliate_review_scroll_top_alignment',array( 882 967 'default' => 'Right', -
affiliate-review/0.4.1/languages/affiliate-review.pot
r186801 r187988 912 912 msgstr "" 913 913 914 #: inc/customizer.php:616 915 msgid 'Scroll To Top Height' 916 msgstr "" 917 918 #: inc/customizer.php:616 919 msgid 'Scroll To Top Width' 920 msgstr "" 921 922 #: inc/customizer.php:616 923 msgid 'Scroll To Top Padding' 924 msgstr "" 925 914 926 #: inc/customizer.php:626 915 927 msgid 'Add Open Menu Icon' -
affiliate-review/0.4.1/readme.txt
r186801 r187988 5 5 Tested up to: 6.1 6 6 Requires PHP: 7.2 7 Stable tag: 0.4 7 Stable tag: 0.4.1 8 8 License: GNU General Public License v3.0 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 167 167 * Updated language folder. 168 168 169 = 0.4.1 = 170 * Added single product gallery lightbox option. 171 * Added function for get started popup in function.php. 172 * Replace h1 to p tag in logo code. 173 * Added scroll to top icon option in customizer. 174 * Added scroll to top icon font size option in customizer. 175 * Added scroll to top icon padding option in customizer. 176 * Added scroll to top icon width option in customizer. 177 * Added scroll to top icon height option in customizer. 178 * Added scroll to top icon border radius option in customizer. 179 * Updated language folder. 180 169 181 == Resources == 170 182 -
affiliate-review/0.4.1/style.css
r186801 r187988 8 8 Tested up to: 6.1 9 9 Requires PHP: 7.2 10 Version: 0.4 10 Version: 0.4.1 11 11 License: GNU General Public License v3.0 12 12 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.