<?php
if ( $this->admin_image_div_callback
) { call_user_func( $this->admin_image_div_callback
);
} else { $background_styles = '';
$bgcolor =
get_background_color();
if ( $bgcolor ) { $background_styles .= 'background-color: #' .
$bgcolor . ';';
} $background_image_thumb =
get_background_image();
if ( $background_image_thumb ) { $background_image_thumb =
esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb',
str_replace( '%', '%%',
$background_image_thumb ) ) ) );
$background_position_x =
get_theme_mod( 'background_position_x',
get_theme_support( 'custom-background', 'default-position-x'
) );
$background_position_y =
get_theme_mod( 'background_position_y',
get_theme_support( 'custom-background', 'default-position-y'
) );
$background_size =
get_theme_mod( 'background_size',
get_theme_support( 'custom-background', 'default-size'
) );
$background_repeat =
get_theme_mod( 'background_repeat',
get_theme_support( 'custom-background', 'default-repeat'
) );
$background_attachment =
get_theme_mod( 'background_attachment',
get_theme_support( 'custom-background', 'default-attachment'
) );
// Background-image URL must be single quote, see below.
$background_styles .= " background-image: url('
$background_image_thumb');"
. " background-size:
$background_size;"
.