$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 '; } ?>

Post format archives:image

  • Maecenas dictum tortor eu est volutpat a faucibus pulvinar blandit

  • aliquet vehicula diam, iaculis pretium lorem lobortis vel. Donec interdum tellus turpis. Duis eget nulla ac nisl malesuada ultrices. Nunc tincidunt convallis consectetur. Nulla in turpis magna. Etiam at nulla mi, vel facilisis ellentesque velit. Praesent ut lacinia sem. Cras tortor nulla, bibendum sed molestie at, ornare et odio. Sed neque urna, sodales quis condimentum vestibulum, placerat quis felis. Vestibulum a magna nisi, vel vehicula risus. Duis convallis turpis ac sapien ullamcorper imperdiet. Quisque in urna elit. Nulla mi nulla, lacinia in vehicula ullamcorper, dapibus at mi. Morbi [...]
  • Sodales mi elementum eget phasellus placerat, quam et vulputate commodo

  • Morbi sed lacus eu leo suscipit ultrices a nec ipsum. Vestibulum pretium fringilla tempor. Vivamus nec eros et turpis tempus pharetra. Donec condimentum lacus ut orci vehicula vitae volutpat turpis sagittis. Etiam et velit nunc, eget accumsan tellus. Sed porttitor porttitor tristique. Fusce pharetra neque eu risus vulputate eu auctor tellus vulputate. Pellentesque magna ligula, rhoncus vel semper vel, venenatis vitae nunc.