post_content; $vega_wp_frontpage_cta_dark4_content_title = $cta_page->post_title; $vega_wp_frontpage_cta_dark4_content_name = $cta_page->post_name; } $vega_wp_frontpage_cta_dark4_parallax = vega_wp_get_option('vega_wp_frontpage_cta_dark4_parallax'); $vega_wp_frontpage_cta_dark4_bg_image = vega_wp_get_option('vega_wp_frontpage_cta_dark4_bg_image'); $vega_wp_frontpage_cta_dark4_section_id = vega_wp_get_option('vega_wp_frontpage_cta_dark4_section_id'); $class = ''; $style = ''; $parallax_str = ''; if($vega_wp_frontpage_cta_dark4_bg_image == '') $class = esc_attr($vega_wp_curr_bg); else if($vega_wp_frontpage_cta_dark4_parallax != 'Y' && $vega_wp_frontpage_cta_dark4_bg_image != '') $style = 'style="background-image:url(' . esc_url($vega_wp_frontpage_cta_dark4_bg_image) . '); -webkit-background-size:cover; -moz-background-size:cover; -o-background-size:cover; background-size:cover; background-repeat:no-repeat; z-index:0; background-position: center center;"'; else if($vega_wp_frontpage_cta_dark4_parallax == 'Y' && $vega_wp_frontpage_cta_dark4_bg_image != '') { $class = 'parallax-bg'; $parallax_str = 'data-parallax="scroll" data-image-src="' . esc_url($vega_wp_frontpage_cta_dark4_bg_image) . '"'; } ?>
>