[ 'type' => 'group-field', 'section' => 'footer_copyright_element_section', 'priority' => 5, 'tabs' => [ 'desktop' => [ 'nicename' => esc_html__( '> 1200px', 'bizness' ), 'preview' => 'desktop', 'active_tab' => true, 'controls' => [ 'footer_copyright_sep_1', 'footer_copyright_content', 'footer_copyright_sep_2', 'footer_copyright_container_padding', 'footer_copyright_container_margin' ] ], 'tablet' => [ 'nicename' => esc_html__( '> 768px', 'bizness' ), 'preview' => 'tablet', 'active_tab' => false, 'controls' => [ 'footer_copyright_sep_2', 'footer_copyright_container_md_padding', 'footer_copyright_container_md_margin' ] ], 'mobile' => [ 'nicename' => esc_html__( '< 576px', 'bizness' ), 'preview' => 'mobile', 'active_tab' => false, 'controls' => [ 'footer_copyright_sep_2', 'footer_copyright_container_sm_padding', 'footer_copyright_container_sm_margin' ] ] ], ], 'footer_copyright_sep_1' => [ 'type' => 'custom', 'section' => 'footer_copyright_element_section', 'default' => '

' . esc_html__( 'CONTENT SETTING', 'bizness' ) . '

', 'priority' => 10 ], 'footer_copyright_content' => [ 'type' => 'editor', 'label' => esc_html__( 'Copyright', 'bizness' ), 'description' => esc_html__( 'You can insert some arbitrary HTML code tags: {current_year}, {site_title} and {theme_author}', 'bizness' ), 'section' => 'footer_copyright_element_section', 'default' => __( 'Copyright © {current_year} {site_title} - Powered by {theme_author}', 'bizness' ), 'priority' => 10, 'partial_refresh' => [ 'footer_copyright_content' => [ 'selector' => '.site-footer', 'render_callback' => 'bizness_footer_main', ], ], ], 'footer_copyright_sep_2' => [ 'type' => 'custom', 'section' => 'footer_copyright_element_section', 'default' => '

' . esc_html__( 'CONTAINER SETTING', 'bizness' ) . '

', 'priority' => 10 ], 'footer_copyright_container_padding' => [ 'type' => 'dimensions', 'label' => esc_html__( 'Padding', 'bizness' ), 'description' => esc_html__( 'Set container padding.', 'bizness' ), 'section' => 'footer_copyright_element_section', 'priority' => 10, 'default' => [ 'padding-top' => '', 'padding-bottom' => '', 'padding-left' => '', 'padding-right' => '', ], 'choices' => [ 'labels' => [ 'padding-top' => esc_html__( 'Top', 'bizness' ), 'padding-bottom' => esc_html__( 'Bottom', 'bizness' ), 'padding-left' => esc_html__( 'Left', 'bizness' ), 'padding-right' => esc_html__( 'Right', 'bizness' ), ], ], 'transport' => 'auto', 'output' => [ [ 'choice' => 'padding-top', 'property' => 'padding-top', 'element' => '.site-footer .footer-copyright-inner', ], [ 'choice' => 'padding-bottom', 'property' => 'padding-bottom', 'element' => '.site-footer .footer-copyright-inner', ], [ 'choice' => 'padding-left', 'property' => 'padding-left', 'element' => '.site-footer .footer-copyright-inner', ], [ 'choice' => 'padding-right', 'property' => 'padding-right', 'element' => '.site-footer .footer-copyright-inner', ], ], ], 'footer_copyright_container_md_padding' => [ 'type' => 'dimensions', 'label' => esc_html__( 'Padding', 'bizness' ), 'description' => esc_html__( 'Set container padding.', 'bizness' ), 'section' => 'footer_copyright_element_section', 'priority' => 10, 'default' => [ 'padding-top' => '', 'padding-bottom' => '', 'padding-left' => '', 'padding-right' => '', ], 'choices' => [ 'labels' => [ 'padding-top' => esc_html__( 'Top', 'bizness' ), 'padding-bottom' => esc_html__( 'Bottom', 'bizness' ), 'padding-left' => esc_html__( 'Left', 'bizness' ), 'padding-right' => esc_html__( 'Right', 'bizness' ), ], ], 'transport' => 'auto', 'output' => [ [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'padding-top', 'property' => 'padding-top', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'padding-bottom', 'property' => 'padding-bottom', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'padding-left', 'property' => 'padding-left', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'padding-right', 'property' => 'padding-right', 'element' => '.site-footer .footer-copyright-inner', ], ], ], 'footer_copyright_container_sm_padding' => [ 'type' => 'dimensions', 'label' => esc_html__( 'Padding', 'bizness' ), 'description' => esc_html__( 'Set container padding.', 'bizness' ), 'section' => 'footer_copyright_element_section', 'priority' => 10, 'default' => [ 'padding-top' => '', 'padding-bottom' => '', 'padding-left' => '', 'padding-right' => '', ], 'choices' => [ 'labels' => [ 'padding-top' => esc_html__( 'Top', 'bizness' ), 'padding-bottom' => esc_html__( 'Bottom', 'bizness' ), 'padding-left' => esc_html__( 'Left', 'bizness' ), 'padding-right' => esc_html__( 'Right', 'bizness' ), ], ], 'transport' => 'auto', 'output' => [ [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'padding-top', 'property' => 'padding-top', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'padding-bottom', 'property' => 'padding-bottom', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'padding-left', 'property' => 'padding-left', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'padding-right', 'property' => 'padding-right', 'element' => '.site-footer .footer-copyright-inner', ], ], ], 'footer_copyright_container_margin' => [ 'type' => 'dimensions', 'label' => esc_html__( 'Margin', 'bizness' ), 'description' => esc_html__( 'Set container margin.', 'bizness' ), 'section' => 'footer_copyright_element_section', 'priority' => 10, 'default' => [ 'margin-top' => '', 'margin-bottom' => '', 'margin-left' => '', 'margin-right' => '', ], 'choices' => [ 'labels' => [ 'margin-top' => esc_html__( 'Top', 'bizness' ), 'margin-bottom' => esc_html__( 'Bottom', 'bizness' ), 'margin-left' => esc_html__( 'Left', 'bizness' ), 'margin-right' => esc_html__( 'Right', 'bizness' ), ], ], 'transport' => 'auto', 'output' => [ [ 'choice' => 'margin-top', 'property' => 'margin-top', 'element' => '.site-footer .footer-copyright-inner', ], [ 'choice' => 'margin-bottom', 'property' => 'margin-bottom', 'element' => '.site-footer .footer-copyright-inner', ], [ 'choice' => 'margin-left', 'property' => 'margin-left', 'element' => '.site-footer .footer-copyright-inner', ], [ 'choice' => 'margin-right', 'property' => 'margin-right', 'element' => '.site-footer .footer-copyright-inner', ], ], ], 'footer_copyright_container_md_margin' => [ 'type' => 'dimensions', 'label' => esc_html__( 'Margin', 'bizness' ), 'description' => esc_html__( 'Set container margin.', 'bizness' ), 'section' => 'footer_copyright_element_section', 'priority' => 10, 'default' => [ 'margin-top' => '', 'margin-bottom' => '', 'margin-left' => '', 'margin-right' => '', ], 'choices' => [ 'labels' => [ 'margin-top' => esc_html__( 'Top', 'bizness' ), 'margin-bottom' => esc_html__( 'Bottom', 'bizness' ), 'margin-left' => esc_html__( 'Left', 'bizness' ), 'margin-right' => esc_html__( 'Right', 'bizness' ), ], ], 'transport' => 'auto', 'output' => [ [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'margin-top', 'property' => 'margin-top', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'margin-bottom', 'property' => 'margin-bottom', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'margin-left', 'property' => 'margin-left', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 768px)', 'choice' => 'margin-right', 'property' => 'margin-right', 'element' => '.site-footer .footer-copyright-inner', ], ], ], 'footer_copyright_container_sm_margin' => [ 'type' => 'dimensions', 'label' => esc_html__( 'Margin', 'bizness' ), 'description' => esc_html__( 'Set container margin.', 'bizness' ), 'section' => 'footer_copyright_element_section', 'priority' => 10, 'default' => [ 'margin-top' => '', 'margin-bottom' => '', 'margin-left' => '', 'margin-right' => '', ], 'choices' => [ 'labels' => [ 'margin-top' => esc_html__( 'Top', 'bizness' ), 'margin-bottom' => esc_html__( 'Bottom', 'bizness' ), 'margin-left' => esc_html__( 'Left', 'bizness' ), 'margin-right' => esc_html__( 'Right', 'bizness' ), ], ], 'transport' => 'auto', 'output' => [ [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'margin-top', 'property' => 'margin-top', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'margin-bottom', 'property' => 'margin-bottom', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'margin-left', 'property' => 'margin-left', 'element' => '.site-footer .footer-copyright-inner', ], [ 'media_query' => '@media (max-width: 576px)', 'choice' => 'margin-right', 'property' => 'margin-right', 'element' => '.site-footer .footer-copyright-inner', ], ], ], ]; foreach ( $fields as $field_id => $field_args ) { // Settings $field_args['settings'] = str_replace( '-', '_', $field_id ); Kirki::add_field( 'bizness', $field_args ); }