'; } else { if(isset($ascend['home_page_title'])) { $home_page_title = $ascend['home_page_title']; } else { $home_page_title = 'Welcome to [site-name]'; } if(!empty($home_page_title)) { $home_page_title = str_replace('[site-name]',get_bloginfo('name'),$home_page_title); } } if(isset($ascend['home_page_sub_title'])) { $bsub = $ascend['home_page_sub_title']; } else { $bsub = '[site-tagline]'; } if(!empty($bsub)) { $bsub = str_replace('[site-tagline]',get_bloginfo('description'),$bsub); } if(isset($ascend['home_page_title_parallax']) && $ascend['home_page_title_parallax'] == '1') { $b_parallax = 'kad-ascend-parallax'; } else { $b_parallax = ''; } if(isset($ascend['home_page_title_align']) && !empty($ascend['home_page_title_align'])) { $talign = 'text-align:'.$ascend['home_page_title_align']; } else { $talign = ''; } if(isset($ascend['home_page_title_height'])) { $titleheight = 'height:'.$ascend['home_page_title_height'].'px;'; } else { $titleheight = ''; } if(!empty($ascend['home_page_title_color'])) { $tcolor = 'color:'.$ascend['home_page_title_color'].';'; } else { $tcolor = ''; } if(!empty($ascend['home_page_subtitle_color'])) { $scolor = 'color:'.$ascend['home_page_subtitle_color'].';'; } else { $scolor = ''; } if(!empty($ascend['home_page_title_max_size'])) { $title_data = $ascend['home_page_title_max_size']; } else { if(isset($ascend['single_header_title_size'])){ $title_data = $ascend['single_header_title_size']; } else { $title_data = '70'; } } if(!empty($ascend['home_page_title_min_size'])) { $title_small_data = $ascend['home_page_title_min_size']; } else { if(isset($ascend['single_header_title_size_small'])){ $title_small_data = $ascend['single_header_title_size_small']; } else { $title_small_data = '30'; } } if(!empty($ascend['home_page_subtitle_max_size'])) { $subtitle_data = $ascend['home_page_subtitle_max_size']; } else { if(isset($ascend['single_header_subtitle_size'])){ $subtitle_data = $ascend['single_header_subtitle_size']; } else { $subtitle_data = '40'; } } if(!empty($ascend['home_page_subtitle_min_size'])) { $subtitle_small_data = $ascend['home_page_subtitle_min_size']; } else { if(isset($ascend['single_header_subtitle_size_small'])){ $subtitle_small_data = $ascend['single_header_subtitle_size_small']; } else { $subtitle_small_data = '20'; } } if(!empty($ascend['home_pagetitle_background']['background-image'])) { $bg_img = 'url('.$ascend['home_pagetitle_background']['background-image'].')'; $bg_repeat = 'background-repeat: ' . $ascend['home_pagetitle_background']['background-repeat'].';'; $bg_size = 'background-size: ' .$ascend['home_pagetitle_background']['background-size'].';'; $bg_position = 'background-position: ' .$ascend['home_pagetitle_background']['background-position'].';'; $bg_attachment = 'background-attachment: ' .$ascend['home_pagetitle_background']['background-attachment'].';'; } else { $bg_img = ''; $bg_repeat = ''; $bg_size = ''; $bg_position = ''; $bg_attachment = ''; } if(!empty($ascend['home_pagetitle_background']['background-color'])) { $bgcolor = $ascend['home_pagetitle_background']['background-color']; } else { $bgcolor = ''; } if(!empty($bgcolor) || !empty($bg_img)) { $bg_style = 'background:'.$bgcolor.' '.$bg_img.';'; } else { $bg_style = ''; } ?>