'panel',
# Theme Option > Footer Options
'section' => array(
'id' => 'footer',
'title' => esc_html__( 'Footer Options','rarebiz' ),
),
# Theme Option > Header > settings
'fields' => array(
array(
'id' => 'footer-bg-image',
'label' => esc_html__( 'Background Image', 'rarebiz' ),
'type' => 'image',
),
array(
'id' => 'layout-footer',
'label' => esc_html__( 'Footer Layout', 'rarebiz' ),
'description' => esc_html__( 'Add widget to display in footer.', 'rarebiz' ),
'type' => 'radio-image',
'default' => '4',
'choices' => array(
'1' => array(
'label' => esc_html__( 'One widget', 'rarebiz' ),
'url' => false,
'svg' => ''
),
'2' => array(
'label' => esc_html__( 'Two widget', 'rarebiz' ),
'url' => false,
'svg' => ''
),
'3' => array(
'label' => esc_html__( 'Thee widget', 'rarebiz' ),
'url' => false,
'svg' => ''
),
'4' => array(
'label' => esc_html__( 'Four widget', 'rarebiz' ),
'url' => false,
'svg' => ''
)
)
),
array(
'id' => 'footer-copyright-text',
'label' => esc_html__( 'Copyright Text', 'rarebiz' ),
'default' => esc_html__( 'Copyright © All right reserved', 'rarebiz' ),
'type' => 'editor',
)
)
));
}
# use widgets_init hook as we need default value of layout-footer while registering sidebar.
# init hook is too late
add_action( 'widgets_init', 'rarebiz_footer_options' );