$position = '';
$repeat = '';
$bgatt = '';
$background_color = '';
$background_img ='';
if( is_single() || is_page() ){
$settings = meta::get_meta( $post -> ID , 'settings' );
if( ( isset( $settings['post_bg'] ) && !empty( $settings['post_bg'] ) ) || ( isset( $settings['color'] ) && !empty( $settings['color'] ) ) ){
if( isset( $settings['post_bg'] ) && !empty( $settings['post_bg'] ) ){
$background_img = "background-image: url('" . $settings['post_bg'] . "');";
}
if( isset( $settings['color'] ) && !empty( $settings['color'] ) ){
$background_color = "background-color: " . $settings['color'] . "; ";
}
if( isset( $settings['position'] ) && !empty( $settings['position'] ) ){
$position = 'background-position: '. $settings['position'] . ';';
}
if( isset( $settings['repeat'] ) && !empty( $settings['repeat'] ) ){
$repeat = 'background-repeat: '. $settings['repeat'] . ';';
}
if( isset( $settings['attachment'] ) && !empty( $settings['attachment'] ) ){
$bgatt = 'background-attachment: '. $settings['attachment'] . ';';
}
}else{
if(get_background_image() == '' && get_bg_image() != ''){
if(get_bg_image() != 'pattern.none.png'){
$background_img = 'background-image: url('.get_template_directory_uri().'/lib/images/pattern/'.get_bg_image().');';
}else{
$background_img = '';
}
/*if day or night images are set then we will add 'background-attachment:fixed' */
if(strpos(get_bg_image(),'.jpg')){
$background_img .= ' background-attachment:fixed';
}
}else{
$background_img = '';
}
if(get_content_bg_color() != ''){
$background_color = "background-color: " . get_content_bg_color() . "; ";
}
}
}else{
if(get_background_image() == '' && get_bg_image() != ''){
if(get_bg_image() != 'pattern.none.png'){
$background_img = 'background-image: url('.get_template_directory_uri().'/lib/images/pattern/'.get_bg_image().');';
}else{
$background_img = '';
}
/*if day or night images are set then we will add 'background-attachment:fixed' */
if(strpos(get_bg_image(),'.jpg')){
$background_img .= ' background-attachment:fixed;';
}
}else{
$background_img = '';
}
if(get_content_bg_color() != ''){
$background_color = "background-color: " . get_content_bg_color() . "; ";
}
if( strlen( get_background_image() ) ){
$background_img = '';
}
if( strlen( get_background_color() ) ){
$background_color = '';
}
}
$bgimage = get_background_image();
if ((options::get_value( 'styling' , 'background_position_100' ) == 'yes') && (!empty($bgimage)) && (get_theme_mod('background_repeat', 'repeat') == 'no-repeat') && get_theme_mod('background_attachment', 'fixed') == 'fixed') {
if(isset( $settings['post_bg'] ) && $settings['repeat'] == "no-repeat"){
$position_100 = 'background-size: cover; -moz- background-size: cover; -webkit-background-size: cover;';
}else if(isset( $settings['post_bg'] ) && $settings['repeat'] != "no-repeat"){
$position_100 = '';
}else {
$position_100 = 'background-size: cover; -moz- background-size: cover; -webkit-background-size: cover;';
}
} else {
$position_100 = '';
}
$clean_view_port_width = str_replace('%', '', str_replace('px', '', $view_posrt_width));
global $post, $the_gallery_id;
$additional_body_class = ' layout-'.$clean_view_port_width . ' '. $single_gallery . ' ' .get_posts_gallery_type($the_gallery_id) . ' ';
if ( get_option( 'woocommerce_demo_store' ) == 'yes' ){
$additional_body_class .= ' woocommerce-demo-store-notice ';
}
if(isset($current_template -> id)){
$additional_body_class .= ' ' . 'template_' . $current_template -> id; // add the template ID as class
}
if(options::get_value( 'styling' , 'use_black_version' ) == 'yes') {
$additional_body_class .= ' black_version ';
}
?>
Arriving in Japan!
Upon my arrival in Japan I was amazed to see this wedding. So I took my camera out and shot many photographs to remember my time here.Upon my arrival in Japan I was amazed to see this wedding. So I took my camera out and shot many photographs to remember my time here.Upon my arrival in Japan I was amazed to see this wedding. So I took my camera out and shot many photographs to remember my time here.Upon my arrival in Japan I was amazed to see this wedding. So I took my camera out and shot many photographs to remember my time here.Upon my arrival in Japan I was amazed to see this wedding. So I took my camera out and shot many photographs to remember my time here.