Last active
November 30, 2017 16:51
-
-
Save zkmark/f1fa42c47d7ed4569870ccc47204a244 to your computer and use it in GitHub Desktop.
Social Icons Kirki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//section_footer_social_icons | |
Kirki::add_section( 'section_footer_social_icons', array( | |
'title' => esc_attr__( 'Iconos Sociales Footer', 'sage' ), | |
'description' => esc_attr__( 'Iconos Sociales Footer', 'sage' ), | |
'panel' => 'panel_footer', | |
'priority' => 160, | |
)); | |
//settings | |
Kirki::add_field( 'theme_config_id', array( | |
'type' => 'text', | |
'settings' => 'footer_social_icons_title', | |
'label' => __( 'Titulo de iconos de redes sociales', 'textdomain' ), | |
'section' => 'section_footer_social_icons', | |
'default' => esc_attr__( 'Sociales', 'sage' ), | |
'priority' => 10, | |
) ); | |
Kirki::add_field( 'theme_config_id', array( | |
'type' => 'select', | |
'settings' => 'footer_social_icons_position', | |
'label' => __( 'Posicion de los Iconos de Redes Sociales', 'sage' ), | |
'section' => 'section_footer_social_icons', | |
'default' => 'center', | |
'priority' => 10, | |
'multiple' => 1, | |
'choices' => array( | |
'left' => esc_attr__( 'Izquierda', 'sage' ), | |
'center' => esc_attr__( 'Centro', 'sage' ), | |
'right' => esc_attr__( 'Derecha', 'sage' ), | |
), | |
) ); | |
Kirki::add_field( 'theme_config_id', array( | |
'type' => 'repeater', | |
'label' => esc_attr__( 'Iconos de Redes Sociales', 'sage' ), | |
'section' => 'section_footer_social_icons', | |
'priority' => 10, | |
'row_label' => array( | |
'type' => 'text', | |
'value' => esc_attr__('Red social ', 'sage' ), | |
), | |
'settings' => 'footer_social_icons', | |
'fields' => array( | |
'link_text' => array( | |
'type' => 'text', | |
'label' => esc_attr__( 'Icono o texto de http://fontawesomeio/icons', 'sage' ), | |
'description' => esc_attr__( 'Agrega el texto o icono de fontawesome', 'sage' ), | |
'default' => '', | |
), | |
'link_url' => array( | |
'type' => 'text', | |
'label' => esc_attr__( 'Link URL', 'sage' ), | |
'description' => esc_attr__( 'Url del Sitio', 'sage' ), | |
'default' => '', | |
), | |
), | |
'default' => array( | |
array( | |
'link_text' => esc_attr__( '<i class="fa fa-twitter"></i>', 'sage' ), | |
'link_url' => 'https://twittercom', | |
), | |
array( | |
'link_text' => esc_attr__( '<i class="fa fa-facebook"></i>', 'sage' ), | |
'link_url' => 'https://facebookcom', | |
), | |
array( | |
'link_text' => esc_attr__( '<i class="fa fa-google"></i>', 'sage' ), | |
'link_url' => 'https://plusgooglecom', | |
), | |
) | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment