array( 'class' => array(), 'href' => array(), 'target' => array(), ), 'div'=>array( 'class' => array(), 'id' => array(), ), 'span'=>array( 'class' => array(), 'id' => array(), ) ); return wp_kses($input,$construction_lite_slider_content); } function construction_lite_Slider_Control(){ $construct_slider_cat = get_theme_mod('construction_lite_slider_cat'); if($construct_slider_cat){ $construct_slider_args = array( 'post_type' => 'post', 'order' => 'DESC', 'posts_per_page' => -1, 'post_status' => 'publish', 'category_name' => $construct_slider_cat ); $construct_slider_query = new WP_Query($construct_slider_args); if($construct_slider_query->have_posts()): ?>
'0', 'exclude' => '1', ) ); $construction_lite_cat_array = array(); $construction_lite_cat_array[''] = __('-- Choose --','construction-lite'); foreach($construction_lite_cat_lists as $construction_lite_cat_list){ $construction_lite_cat_array[$construction_lite_cat_list->slug] = $construction_lite_cat_list->name; } return $construction_lite_cat_array; } function construction_lite_posts_List(){ wp_reset_postdata(); $construction_lite_post_lists = get_posts(array('posts_per_page' => -1)); $construction_lite_post_list_array = array(); $construction_lite_post_list_array[''] = __('-- Choose --','construction-lite'); foreach($construction_lite_post_lists as $construction_lite_post_list){ $construction_lite_post_list_array[$construction_lite_post_list->ID] = $construction_lite_post_list->post_title; } return $construction_lite_post_list_array; } function construction_lite_enable_disable_section(){ $construction_lite_sections = array('about','feature','team','portfolio','blog','cta','shop','testimonial','client'); $construction_lite_enable_sections = array(); foreach($construction_lite_sections as $construction_lite_section){ if(get_theme_mod('construction_lite_'.$construction_lite_section.'_enable')){ $construction_lite_enable_sections[] = array( 'id' => 'construct_'.$construction_lite_section.'_section', 'section' => $construction_lite_section, ); } } return $construction_lite_enable_sections; } function construction_lite_escape_test_title($input){ $pass_array = array( 'span' => array( 'class' => array(), ), ); return wp_kses($input,$pass_array); } function construction_lite_header_social_link(){ $social_link = array('facebook','twitter','youtube','pinterest','instagram','linkedin','googleplus','flickr'); foreach($social_link as $social_links){ $social_links_val = get_theme_mod('construction_lite_'.$social_links.'_link'); if($social_links == 'googleplus'){ if($social_links_val){ echo '