File: /disk001/machen/www/support/wp-content/themes/wp-moose/inc/customizer/sections/footer.php
<?php
if ( !function_exists( 'wp_moose_register_footer_options' ) ) {
/**
* Add footer options and controls.
*
* @param \WP_Customize_Manager $wp_customize
* @param string $section_id
* @param int $priority
*/
function wp_moose_register_footer_options( $wp_customize, $section_id, $priority = 100 )
{
$wp_customize->add_section( $section_id, array(
'title' => esc_html__( 'Footer Settings', 'wp-moose' ),
'panel' => '',
'priority' => $priority,
) );
wp_moose_go_to_upsell(
$wp_customize,
$section_id,
'wp_moose_footer_go_to_upsell',
esc_html__( 'Want More Footer Options? See Moose Pro', 'wp-moose' )
);
wp_moose_register_options( $wp_customize, array(
'name' => 'wp_moose_copyright_text',
'label' => esc_html__( 'Copyright Text', 'wp-moose' ),
'section' => $section_id,
'type' => 'text',
) );
wp_moose_register_options( $wp_customize, array(
'name' => 'wp_moose_footer_style',
'label' => esc_html__( 'Footer Style', 'wp-moose' ),
'type' => 'select',
'section' => $section_id,
'choices' => wp_moose_get_footer_style_options(),
) );
wp_moose_register_options( $wp_customize, array(
'name' => 'wp_moose_show_to_top',
'label' => esc_html__( 'Show To Top Button', 'wp-moose' ),
'section' => $section_id,
'custom_control' => Moose_Switch_Customize_Control::class,
) );
}
}
if ( !function_exists( 'get_wp_moose_footer_style' ) ) {
/**
* Return css class for footer
*
* @return string
*/
function get_wp_moose_footer_style()
{
return wp_moose_get_footer_style_css( get_wp_moose_option( 'wp_moose_footer_style' ) );
}
}
if ( !function_exists( 'wp_moose_footer_style' ) ) {
/**
* Output css class for footer
*/
function wp_moose_footer_style()
{
echo get_wp_moose_footer_style() ;
}
}