Example #1
0
function extra_customizer_register_footer_layout_settings()
{
    return array('footer_columns' => array('label' => __('Column Layout', 'extra'), 'type' => 'select', 'default' => '3', 'sanitize_callback' => 'et_sanitize_footer_column', 'choices' => et_extra_footer_column_choices(), 'value_bind' => array('style' => 'class_toggle', 'selector' => '#footer', 'class' => '_value_bind_to_value', 'format' => 'footer_columns_%value%')));
}
Example #2
0
/**
 * Sanitize footer column
 * @param string
 * @return string|bool
 */
function et_sanitize_footer_column($choosen)
{
    return et_sanitize_key_based_option($choosen, et_extra_footer_column_choices());
}