Changeset 1562791
- Timestamp:
- 12/27/2016 03:11:41 PM (9 years ago)
- Location:
- advanced-twenty-seventeen/trunk
- Files:
-
- 6 edited
-
advanced-twenty-seventeen.php (modified) (2 diffs)
-
inc/admin/child-theme/footer.php (modified) (1 diff)
-
inc/admin/child-theme/style.css (modified) (2 diffs)
-
inc/admin/class-ats-admin-child-theme.php (modified) (1 diff)
-
inc/class-ats-customizer.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-twenty-seventeen/trunk/advanced-twenty-seventeen.php
r1559152 r1562791 4 4 * Plugin URI: https://saturnthemes.com/ 5 5 * Description: An toolkit that helps you customize the Twenty Seventeen theme completely. 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 * Author: saturnplugins 8 8 * Author URI: https://saturnthemes.com … … 19 19 if ( ! class_exists( 'AdvancedTwentySeventeen' ) ) { 20 20 class AdvancedTwentySeventeen { 21 public $version = '1.1. 2';21 public $version = '1.1.3'; 22 22 23 23 protected static $_instance = null; -
advanced-twenty-seventeen/trunk/inc/admin/child-theme/footer.php
r1558751 r1562791 18 18 19 19 <footer id="colophon" class="site-footer" role="contentinfo"> 20 <div class="wrap ">20 <div class="wrap ats-wrap1"> 21 21 <?php 22 22 get_template_part( 'template-parts/footer/footer', 'widgets' ); 23 ?> 24 </div><!-- .wrap --> 25 <div class="footer-copyright-container"> 26 <div class="wrap ats-wrap2"> 27 <?php if ( has_nav_menu( 'social' ) ) : ?> 28 <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> 29 <?php 30 wp_nav_menu( array( 31 'theme_location' => 'social', 32 'menu_class' => 'social-links-menu', 33 'depth' => 1, 34 'link_before' => '<span class="screen-reader-text">', 35 'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ), 36 ) ); 37 ?> 38 </nav><!-- .social-navigation --> 39 <?php endif; 23 40 24 if ( has_nav_menu( 'social' ) ) : ?> 25 <nav class="social-navigation" role="navigation" aria-label="<?php _e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>"> 26 <?php 27 wp_nav_menu( array( 28 'theme_location' => 'social', 29 'menu_class' => 'social-links-menu', 30 'depth' => 1, 31 'link_before' => '<span class="screen-reader-text">', 32 'link_after' => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ), 33 ) ); 34 ?> 35 </nav><!-- .social-navigation --> 36 <?php endif; 37 38 get_template_part( 'template-parts/footer/site', 'info' ); 39 ?> 40 </div><!-- .wrap --> 41 get_template_part( 'template-parts/footer/site', 'info' ); 42 ?> 43 </div> 44 </div> 41 45 </footer><!-- #colophon --> 42 46 </div><!-- .site-content-contain --> -
advanced-twenty-seventeen/trunk/inc/admin/child-theme/style.css
r1559127 r1562791 37 37 } 38 38 39 .site-footer .ats-wrap1 { 40 padding-bottom: 0; 41 } 42 43 .site-footer .ats-wrap2 { 44 padding-top: 30px; 45 } 46 47 .footer-copyright-container { 48 margin-top: -30px; 49 } 50 39 51 @media (max-width: 1170px) { 40 52 .ats-preview.ats-layout-boxed #page, … … 43 55 } 44 56 } 57 58 @media screen and (min-width: 30em) { 59 .ats-widget-area-advanced .widget-column { 60 float: left !important; 61 padding-left: 15px !important; 62 padding-right: 15px !important; 63 } 64 65 .ats-widget-area-advanced .widget-column:first-child { 66 padding-left: 0 !important; 67 } 68 69 .ats-widget-area-advanced .widget-column:last-child { 70 padding-right: 0 !important; 71 } 72 } 73 74 @media screen and (max-width: 48em) { 75 .ats-widget-area-advanced .widget-column { 76 width: 100% !important; 77 } 78 } -
advanced-twenty-seventeen/trunk/inc/admin/class-ats-admin-child-theme.php
r1558751 r1562791 34 34 @copy( $child_theme_stub_path . '/template-parts/header/site-branding.php', $theme_path . '/template-parts/header/site-branding.php' ); 35 35 @copy( $child_theme_stub_path . '/template-parts/footer/site-info.php', $theme_path . '/template-parts/footer/site-info.php' ); 36 @copy( $child_theme_stub_path . '/template-parts/footer/footer-widgets.php', $theme_path . '/template-parts/footer/footer-widgets.php' ); 36 37 37 38 switch_theme( 'advanced-twenty-seventeen-child' ); -
advanced-twenty-seventeen/trunk/inc/class-ats-customizer.php
r1559127 r1562791 7 7 class ATS_Customizer { 8 8 public function __construct() { 9 add_action( 'widgets_init', array( $this, 'register_sidebars' ), 100 ); 10 9 11 Kirki::add_config( 'ats', array( 10 12 'capability' => 'edit_theme_options', … … 66 68 ) ); 67 69 70 Kirki::add_section( 'ats_footer_general_section', array( 71 'title' => __( 'General', 'advanced-twenty-seventeen' ), 72 'panel' => 'ats_footer_panel', 73 'priority' => $section_priority++, 74 ) ); 75 76 Kirki::add_section( 'ats_footer_widget_section', array( 77 'title' => __( 'Widget', 'advanced-twenty-seventeen' ), 78 'panel' => 'ats_footer_panel', 79 'priority' => $section_priority++, 80 ) ); 81 68 82 Kirki::add_section( 'ats_footer_copyright_section', array( 69 83 'title' => __( 'Custom Copyright', 'advanced-twenty-seventeen' ), 84 'panel' => 'ats_footer_panel', 85 'priority' => $section_priority++, 86 ) ); 87 88 Kirki::add_section( 'ats_footer_social_section', array( 89 'title' => __( 'Social Icons', 'advanced-twenty-seventeen' ), 70 90 'panel' => 'ats_footer_panel', 71 91 'priority' => $section_priority++, … … 578 598 'type' => 'typography', 579 599 'settings' => 'ats_menu_item_hover', 580 'label' => esc_attr__( 'Menu Item ', 'kirki' ),600 'label' => esc_attr__( 'Menu Item on Hover', 'kirki' ), 581 601 'section' => 'ats_menu_section', 582 602 'default' => array( … … 599 619 600 620 Kirki::add_field( 'ats', array( 621 'settings' => 'ats_footer_general_background_image', 622 'label' => __( 'Background Image', 'translation_domain' ), 623 'section' => 'ats_footer_general_section', 624 'type' => 'image', 625 'priority' => $control_priority++, 626 'output' => array( 627 array( 628 'element' => '.site-footer', 629 'property' => 'background-image', 630 ), 631 ), 632 ) ); 633 634 Kirki::add_field( 'ats', array( 635 'settings' => 'ats_footer_general_background_repeat', 636 'label' => __( 'Background Repeat', 'translation_domain' ), 637 'section' => 'ats_footer_general_section', 638 'type' => 'select', 639 'choices' => $this->choice_background_repeat(), 640 'default' => 'no-repeat', 641 'priority' => $control_priority++, 642 'transport' => 'auto', 643 'output' => array( 644 array( 645 'element' => '.site-footer', 646 'property' => 'background-repeat', 647 ), 648 ), 649 ) ); 650 651 Kirki::add_field( 'ats', array( 652 'settings' => 'ats_footer_general_background_position', 653 'label' => __( 'Background Position', 'translation_domain' ), 654 'section' => 'ats_footer_general_section', 655 'type' => 'select', 656 'choices' => $this->choice_background_position(), 657 'default' => 'left top', 658 'priority' => $control_priority++, 659 'transport' => 'auto', 660 'output' => array( 661 array( 662 'element' => '.site-footer', 663 'property' => 'background-position', 664 ), 665 ), 666 ) ); 667 668 Kirki::add_field( 'ats', array( 669 'settings' => 'ats_footer_general_background_attachment', 670 'label' => __( 'Background Attachment', 'translation_domain' ), 671 'section' => 'ats_footer_general_section', 672 'type' => 'select', 673 'choices' => $this->choice_background_attachment(), 674 'default' => '', 675 'priority' => $control_priority++, 676 'transport' => 'auto', 677 'output' => array( 678 array( 679 'element' => '.site-footer', 680 'property' => 'background-attachment', 681 ), 682 ), 683 ) ); 684 685 Kirki::add_field( 'ats', array( 686 'settings' => 'ats_footer_general_background_color', 687 'label' => __( 'Background Color', 'translation_domain' ), 688 'section' => 'ats_footer_general_section', 689 'type' => 'color', 690 'default' => '', 691 'priority' => $control_priority++, 692 'transport' => 'auto', 693 'output' => array( 694 array( 695 'element' => '.site-footer', 696 'property' => 'background-color', 697 ), 698 ), 699 ) ); 700 701 Kirki::add_field( 'ats', array( 702 'type' => 'toggle', 703 'settings' => 'ats_advanced_widgets', 704 'label' => __( 'Advanced Widgets', 'advanced-twenty-seventeen' ), 705 'section' => 'ats_footer_widget_section', 706 'default' => '0', 707 'priority' => $control_priority++, 708 'description' => __( 'Allow to add more widget section in the footer', 'advanced-twenty-seventeen' ), 709 ) ); 710 711 Kirki::add_field( 'ats', array( 712 'type' => 'repeater', 713 'label' => esc_attr__( 'Sections', 'advanced-twenty-seventeen' ), 714 'section' => 'ats_footer_widget_section', 715 'priority' => $control_priority, 716 'row_label' => array( 717 'type' => 'text', 718 'value' => esc_attr__('Widget Section', 'advanced-twenty-seventeen' ), 719 ), 720 'settings' => 'ats_footer_widgets', 721 'default' => array( 722 array( 723 'section_width' => '33%', 724 ), 725 array( 726 'section_width' => '33%', 727 ), 728 array( 729 'section_width' => '33%', 730 ), 731 ), 732 'fields' => array( 733 'section_width' => array( 734 'type' => 'text', 735 'label' => esc_attr__( 'Section Width', 'advanced-twenty-seventeen' ), 736 'default' => '', 737 ), 738 ), 739 'active_callback' => array( 740 array( 741 'setting' => 'ats_advanced_widgets', 742 'operator' => '===', 743 'value' => '1', 744 ), 745 ), 746 ) ); 747 748 Kirki::add_field( 'ats', array( 749 'type' => 'typography', 750 'settings' => 'ats_footer_widget_title', 751 'label' => esc_attr__( 'Widget Title', 'advanced-twenty-seventeen' ), 752 'section' => 'ats_footer_widget_section', 753 'default' => array( 754 'font-family' => 'Libre Franklin', 755 'variant' => '800', 756 'font-size' => '0.6875rem', 757 'letter-spacing' => '0.1818em', 758 'subsets' => array( 'latin-ext' ), 759 'color' => '#222', 760 'text-transform' => 'uppercase', 761 ), 762 'transport' => 'auto', 763 'priority' => $control_priority++, 764 'output' => array( 765 array( 766 'element' => '.site-footer .widget-area h2.widget-title', 767 ), 768 ), 769 ) ); 770 771 Kirki::add_field( 'ats', array( 772 'type' => 'typography', 773 'settings' => 'ats_footer_widget_text', 774 'label' => esc_attr__( 'Widget Text', 'advanced-twenty-seventeen' ), 775 'section' => 'ats_footer_widget_section', 776 'default' => array( 777 'font-family' => 'Libre Franklin', 778 'variant' => '400', 779 'font-size' => '0.875rem', 780 'letter-spacing' => '0em', 781 'subsets' => array( 'latin-ext' ), 782 'color' => '#333', 783 'text-transform' => 'none', 784 ), 785 'transport' => 'auto', 786 'priority' => $control_priority++, 787 'output' => array( 788 array( 789 'element' => '.site-footer .widget-area', 790 ), 791 ), 792 ) ); 793 794 Kirki::add_field( 'ats', array( 795 'type' => 'typography', 796 'settings' => 'ats_footer_widget_link', 797 'label' => esc_attr__( 'Widget Link', 'advanced-twenty-seventeen' ), 798 'section' => 'ats_footer_widget_section', 799 'default' => array( 800 'font-family' => 'Libre Franklin', 801 'variant' => '400', 802 'font-size' => '0.875rem', 803 'letter-spacing' => '0em', 804 'subsets' => array( 'latin-ext' ), 805 'color' => '#333', 806 'text-transform' => 'none', 807 ), 808 'transport' => 'auto', 809 'priority' => $control_priority++, 810 'output' => array( 811 array( 812 'element' => '.site-footer .widget-area a', 813 ), 814 ), 815 ) ); 816 817 Kirki::add_field( 'ats', array( 601 818 'settings' => 'ats_custom_copyright', 602 819 'label' => __( 'Custom Copyright', 'translation_domain' ), … … 606 823 'priority' => $control_priority++, 607 824 'transport' => 'refresh', 825 ) ); 826 827 Kirki::add_field( 'ats', array( 828 'settings' => 'ats_footer_copyright_background_image', 829 'label' => __( 'Background Image', 'translation_domain' ), 830 'section' => 'ats_footer_copyright_section', 831 'type' => 'image', 832 'priority' => $control_priority++, 833 'output' => array( 834 array( 835 'element' => '.site-footer .footer-copyright-container', 836 'property' => 'background-image', 837 ), 838 ), 839 ) ); 840 841 Kirki::add_field( 'ats', array( 842 'settings' => 'ats_footer_copyright_background_repeat', 843 'label' => __( 'Background Repeat', 'translation_domain' ), 844 'section' => 'ats_footer_copyright_section', 845 'type' => 'select', 846 'choices' => $this->choice_background_repeat(), 847 'default' => 'no-repeat', 848 'priority' => $control_priority++, 849 'transport' => 'auto', 850 'output' => array( 851 array( 852 'element' => '.site-footer .footer-copyright-container', 853 'property' => 'background-repeat', 854 ), 855 ), 856 ) ); 857 858 Kirki::add_field( 'ats', array( 859 'settings' => 'ats_footer_copyright_background_position', 860 'label' => __( 'Background Position', 'translation_domain' ), 861 'section' => 'ats_footer_copyright_section', 862 'type' => 'select', 863 'choices' => $this->choice_background_position(), 864 'default' => 'left top', 865 'priority' => $control_priority++, 866 'transport' => 'auto', 867 'output' => array( 868 array( 869 'element' => '.site-footer .footer-copyright-container', 870 'property' => 'background-position', 871 ), 872 ), 873 ) ); 874 875 Kirki::add_field( 'ats', array( 876 'settings' => 'ats_footer_copyright_background_attachment', 877 'label' => __( 'Background Attachment', 'translation_domain' ), 878 'section' => 'ats_footer_copyright_section', 879 'type' => 'select', 880 'choices' => $this->choice_background_attachment(), 881 'default' => '', 882 'priority' => $control_priority++, 883 'transport' => 'auto', 884 'output' => array( 885 array( 886 'element' => '.site-footer .footer-copyright-container', 887 'property' => 'background-attachment', 888 ), 889 ), 890 ) ); 891 892 Kirki::add_field( 'ats', array( 893 'settings' => 'ats_footer_copyright_background_color', 894 'label' => __( 'Background Color', 'translation_domain' ), 895 'section' => 'ats_footer_copyright_section', 896 'type' => 'color', 897 'default' => '', 898 'priority' => $control_priority++, 899 'transport' => 'auto', 900 'output' => array( 901 array( 902 'element' => '.site-footer .footer-copyright-container', 903 'property' => 'background-color', 904 ), 905 ), 906 ) ); 907 908 Kirki::add_field( 'ats', array( 909 'type' => 'typography', 910 'settings' => 'ats_footer_copyright_text', 911 'label' => esc_attr__( 'Copyright Text', 'advanced-twenty-seventeen' ), 912 'section' => 'ats_footer_copyright_section', 913 'default' => array( 914 'font-family' => 'Libre Franklin', 915 'variant' => '400', 916 'font-size' => '0.875rem', 917 'letter-spacing' => '0em', 918 'subsets' => array( 'latin-ext' ), 919 'color' => '#333', 920 'text-transform' => 'none', 921 ), 922 'transport' => 'auto', 923 'priority' => $control_priority++, 924 'output' => array( 925 array( 926 'element' => '.site-footer .site-info', 927 ), 928 ), 929 ) ); 930 931 Kirki::add_field( 'ats', array( 932 'settings' => 'ats_footer_social_color', 933 'label' => __( 'Color', 'advanced-twenty-seventeen' ), 934 'section' => 'ats_footer_social_section', 935 'type' => 'color', 936 'default' => '#767676', 937 'priority' => $control_priority++, 938 'transport' => 'auto', 939 'output' => array( 940 array( 941 'element' => '.social-navigation a', 942 'property' => 'background-color', 943 ), 944 ), 945 ) ); 946 947 Kirki::add_field( 'ats', array( 948 'settings' => 'ats_footer_social_icon_color', 949 'label' => __( 'Icon Color', 'advanced-twenty-seventeen' ), 950 'section' => 'ats_footer_social_section', 951 'type' => 'color', 952 'default' => '#fff', 953 'priority' => $control_priority++, 954 'transport' => 'auto', 955 'output' => array( 956 array( 957 'element' => '.social-navigation a', 958 'property' => 'color', 959 ), 960 ), 961 ) ); 962 963 Kirki::add_field( 'ats', array( 964 'settings' => 'ats_footer_social_color_hover', 965 'label' => __( 'Color on Hover', 'advanced-twenty-seventeen' ), 966 'section' => 'ats_footer_social_section', 967 'type' => 'color', 968 'default' => '#333', 969 'priority' => $control_priority++, 970 'transport' => 'auto', 971 'output' => array( 972 array( 973 'element' => '.social-navigation a:hover, .social-navigation a:focus', 974 'property' => 'background-color', 975 ), 976 ), 977 ) ); 978 979 Kirki::add_field( 'ats', array( 980 'settings' => 'ats_footer_social_icon_color_hover', 981 'label' => __( 'Icon Color on Hover', 'advanced-twenty-seventeen' ), 982 'section' => 'ats_footer_social_section', 983 'type' => 'color', 984 'default' => '#fff', 985 'priority' => $control_priority++, 986 'transport' => 'auto', 987 'output' => array( 988 array( 989 'element' => '.social-navigation a:hover, .social-navigation a:focus', 990 'property' => 'color', 991 ), 992 ), 608 993 ) ); 609 994 … … 683 1068 ); 684 1069 } 1070 1071 public function register_sidebars() { 1072 if ( Kirki::get_option( 'ats', 'ats_advanced_widgets' ) ) { 1073 $widget_sections = Kirki::get_option( 'ats', 'ats_footer_widgets' ); 1074 1075 if ( count( $widget_sections ) > 2 ) { 1076 for ( $i = 3; $i <= count( $widget_sections ); $i++ ) { 1077 1078 register_sidebar( array( 1079 'name' => sprintf( __( 'Footer %d', 'advanced-twenty-seventeen' ), $i ) , 1080 'id' => 'ats-sidebar-' . $i, 1081 'description' => __( 'Add widgets here to appear in your footer.', 'advanced-twenty-seventeen' ), 1082 'before_widget' => '<section id="%1$s" class="widget %2$s">', 1083 'after_widget' => '</section>', 1084 'before_title' => '<h2 class="widget-title">', 1085 'after_title' => '</h2>', 1086 ) ); 1087 1088 } 1089 } 1090 } 1091 1092 } 685 1093 } 686 1094 -
advanced-twenty-seventeen/trunk/readme.txt
r1559152 r1562791 5 5 Requires at least: 4.7 6 6 Tested up to: 4.7 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 21 21 * Custom styles 22 22 * Custom code: Allow to add custom HTML like Google Analytics, Facebook Pixel, ... 23 24 [youtube https://www.youtube.com/watch?v=6qmxeD6x6PY] 23 25 24 26 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.