v7‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT is_home ) { $exclude_cat_ids = cs_get_option('theme_exclude_categories'); if($exclude_cat_ids) { foreach( $exclude_cat_ids as $exclude_cat_id ) { $exclude_from_blog[] = '-'. $exclude_cat_id; } $query->set('cat', implode(',', $exclude_from_blog)); } } return $query; } add_filter('pre_get_posts', 'saaspot_vt_excludeCat'); } /* Include Default value for dropdown in contact form7*/ function saaspot_wpcf7_form_elements($html) { $text = 'Choose'; $html = str_replace('---', $text , $html); return $html; } add_filter('wpcf7_form_elements', 'saaspot_wpcf7_form_elements'); /* Excerpt Length */ class SaaSpotExcerpt { // Default length (by WordPress) public static $length = 55; // Output: saaspot_excerpt('short'); public static $types = array( 'short' => 25, 'regular' => 55, 'long' => 100 ); /** * Sets the length for the excerpt, * then it adds the WP filter * And automatically calls the_excerpt(); * * @param string $new_length * @return void * @author Baylor Rae' */ public static function length($new_length = 55) { SaaSpotExcerpt::$length = $new_length; add_filter('excerpt_length', 'SaaSpotExcerpt::new_length'); SaaSpotExcerpt::output(); } // Tells WP the new length public static function new_length() { if( isset(SaaSpotExcerpt::$types[SaaSpotExcerpt::$length]) ) return SaaSpotExcerpt::$types[SaaSpotExcerpt::$length]; else return SaaSpotExcerpt::$length; } // Echoes out the excerpt public static function output() { the_excerpt(); } } // Custom Excerpt Length if( ! function_exists( 'saaspot_excerpt' ) ) { function saaspot_excerpt($length = 55) { SaaSpotExcerpt::length($length); } } if ( ! function_exists( 'saaspot_new_excerpt_more' ) ) { function saaspot_new_excerpt_more( $more ) { return '...'; } add_filter('excerpt_more', 'saaspot_new_excerpt_more'); } /* Tag Cloud Widget - Remove Inline Font Size */ if( ! function_exists( 'saaspot_vt_tag_cloud' ) ) { function saaspot_vt_tag_cloud($tag_string){ return preg_replace("/style='font-size:.+pt;'/", '', $tag_string); } add_filter('wp_generate_tag_cloud', 'saaspot_vt_tag_cloud', 10, 3); } /* Password Form */ if( ! function_exists( 'saaspot_vt_password_form' ) ) { function saaspot_vt_password_form( $output ) { $output = str_replace( 'type="submit"', 'type="submit" class=""', $output ); return $output; } add_filter('the_password_form' , 'saaspot_vt_password_form'); } /* Maintenance Mode */ if( ! function_exists( 'saaspot_vt_maintenance_mode' ) ) { function saaspot_vt_maintenance_mode(){ $maintenance_mode_page = cs_get_option( 'maintenance_mode_page' ); $enable_maintenance_mode = cs_get_option( 'enable_maintenance_mode' ); if ( isset($enable_maintenance_mode) && ! empty( $maintenance_mode_page ) && ! is_user_logged_in() ) { get_template_part('layouts/post/content', 'maintenance'); exit; } } add_action( 'wp', 'saaspot_vt_maintenance_mode', 1 ); } /* Widget Layouts */ if ( ! function_exists( 'saaspot_vt_footer_widgets' ) ) { function saaspot_vt_footer_widgets() { $output = ''; $footer_widget_layout = cs_get_option('footer_widget_layout'); if( $footer_widget_layout ) { switch ( $footer_widget_layout ) { case 1: $widget = array('piece' => 1, 'class' => 'col-md-12'); break; case 2: $widget = array('piece' => 2, 'class' => 'col-md-6'); break; case 3: $widget = array('piece' => 3, 'class' => 'col-md-4'); break; case 4: $widget = array('piece' => 4, 'class' => 'col-md-3 col-sm-6'); break; case 5: $widget = array('piece' => 3, 'class' => 'col-md-3', 'layout' => 'col-md-6', 'queue' => 1); break; case 6: $widget = array('piece' => 3, 'class' => 'col-md-3', 'layout' => 'col-md-6', 'queue' => 2); break; case 7: $widget = array('piece' => 3, 'class' => 'col-md-3', 'layout' => 'col-md-6', 'queue' => 3); break; case 8: $widget = array('piece' => 4, 'class' => 'col-md-2', 'layout' => 'col-md-6', 'queue' => 1); break; case 9: $widget = array('piece' => 4, 'class' => 'col-md-2', 'layout' => 'col-md-6', 'queue' => 4); break; case 10: $widget = array('piece' => 5, 'class' => 'col-xl-2 col-md-4', 'layout' => 'col-xl-3 col-md-4', 'queue' => 2, 'layout_two' => 'col-xl-3 col-md-4', 'queue_two' => 5); break; default : $widget = array('piece' => 4, 'class' => 'col-md-3'); break; } for( $i = 1; $i < $widget["piece"]+1; $i++ ) { if(isset( $widget["queue_two"] ) && $widget["queue_two"] == $i ){ $widget_cls = ( isset( $widget["queue_two"] ) && $widget["queue_two"] == $i ) ? $widget["layout_two"] : ''; $widget_class = ''; } else { $widget_class = ( isset( $widget["queue"] ) && $widget["queue"] == $i ) ? $widget["layout"] : $widget["class"]; $widget_cls = ''; } $output .= '
'; ob_start(); if (is_active_sidebar('footer-'. $i)) { dynamic_sidebar( 'footer-'. $i ); } $output .= ob_get_clean(); $output .= '
'; } } return $output; } } if( ! function_exists( 'saaspot_vt_top_bar' ) ) { function saaspot_vt_top_bar() { $out = ''; if ( ( cs_get_option( 'top_left' ) || cs_get_option( 'top_right' ) ) ) { $out .= '
'; $out .= saaspot_vt_top_bar_modules( 'left' ); $out .= saaspot_vt_top_bar_modules( 'right' ); $out .= '
'; } return $out; } } /* WP Link Pages */ if ( ! function_exists( 'saaspot_wp_link_pages' ) ) { function saaspot_wp_link_pages() { $defaults = array( 'before' => '', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'separator' => ' ', 'pagelink' => '%', 'echo' => 1 ); wp_link_pages( $defaults ); } } /* Author Info */ if ( ! function_exists( 'saaspot_author_info' ) ) { function saaspot_author_info() { if (get_the_author_meta( 'url' )) { $author_url = get_author_posts_url( get_the_author_meta( 'ID' ) ); $website_url = get_the_author_meta( 'url' ); $target = 'target="_blank"'; } else { $author_url = get_author_posts_url( get_the_author_meta( 'ID' ) ); $website_url = get_author_posts_url( get_the_author_meta( 'ID' ) ); $target = ''; } // variables $author_text = cs_get_option('author_text'); $author_text = $author_text ? $author_text : esc_html__( 'Author', 'saaspot' ); $author_content = get_the_author_meta( 'description' ); if ($author_content) { ?>
>

< id="comment-">

comment_approved == '0' ) : ?>
''. esc_html__('Reply','saaspot') .' ', 'before' => '', 'class' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
ID : 0; $saaspot_id = ( is_home() ) ? get_option( 'page_for_posts' ) : $saaspot_id; $saaspot_id = ( saaspot_is_woocommerce_shop() ) ? wc_get_page_id( 'shop' ) : $saaspot_id; $saaspot_meta = get_post_meta( $saaspot_id, 'page_type_metabox', true ); if ($saaspot_meta && (!is_archive() || saaspot_is_woocommerce_shop())) { $custom_title = $saaspot_meta['page_custom_title']; if ($custom_title) { $custom_title = $custom_title; } elseif(post_type_archive_title()) { post_type_archive_title(); } else { $custom_title = ''; } } else { $custom_title = ''; } /** * For strings with necessary HTML, use the following: * Note that I'm only including the actual allowed HTML for this specific string. * More info: https://codex.wordpress.org/Function_Reference/wp_kses */ $allowed_title_area_tags = array( 'a' => array( 'href' => array(), ), 'span' => array( 'class' => array(), ) ); if( $custom_title && !is_search()) { echo esc_html($custom_title); } elseif ( is_home() ) { bloginfo('description'); } elseif ( is_search() ) { printf( esc_html__( 'Search Results for %s', 'saaspot' ), '' . get_search_query() . '' ); } elseif ( is_category() || is_tax() ){ single_cat_title(); } elseif ( is_tag() ){ single_tag_title(esc_html__('Posts Tagged: ', 'saaspot')); } elseif ( is_archive() ){ if ( is_day() ) { printf( wp_kses( __( 'Archive for %s', 'saaspot' ), $allowed_title_area_tags ), get_the_date()); } elseif ( is_month() ) { printf( wp_kses( __( 'Archive for %s', 'saaspot' ), $allowed_title_area_tags ), get_the_date( 'F, Y' )); } elseif ( is_year() ) { printf( wp_kses( __( 'Archive for %s', 'saaspot' ), $allowed_title_area_tags ), get_the_date( 'Y' )); } elseif ( is_author() ) { printf( wp_kses( __( 'Posts by: %s', 'saaspot' ), $allowed_title_area_tags ), get_the_author_meta( 'display_name', $wp_query->post->post_author )); } elseif( saaspot_is_woocommerce_shop() ) { echo esc_html($custom_title); } elseif ( is_post_type_archive() ) { post_type_archive_title(); } else { esc_html_e( 'Archives', 'saaspot' ); } } else { the_title(); } } } /** * Pagination Function */ if ( ! function_exists( 'saaspot_default_paging_nav' ) ) { function saaspot_default_paging_nav($nav_query = NULL) { if ( function_exists('wp_pagenavi')) { echo '
'; wp_pagenavi(); echo '
'; } else { global $wp_query; $big = 999999999; $current = max( 1, get_query_var('paged') ); $total = ($nav_query != NULL) ? $nav_query->max_num_pages : $wp_query->max_num_pages; if($wp_query->max_num_pages == '1' ) {} else {echo '';} echo '
'; echo paginate_links( array( 'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?paged=%#%', 'prev_text' => '', 'next_text' => ' ', 'current' => $current, 'total' => $total, 'type' => 'list' )); echo '
'; if($wp_query->max_num_pages == '1' ) {} else {echo '';} } } } if ( ! function_exists( 'saaspot_paging_nav' ) ) { function saaspot_paging_nav($numpages = '', $pagerange = '', $paged='') { if (empty($pagerange)) { $pagerange = 2; } if (empty($paged)) { $paged = 1; } else { $paged = $paged; } if ($numpages == '') { global $wp_query; $numpages = $wp_query->max_num_pages; if(!$numpages) { $numpages = 1; } } global $wp_query; $big = 999999999; if($wp_query->max_num_pages != '1' ) { ?>
str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?paged=%#%', 'prev_text' => '', 'next_text' => '', 'current' => $paged, 'total' => $numpages, 'type' => 'list' )); ?>
max_num_pages; if(!$numpages) { $numpages = 1; } } $big = 999999999; ?>
str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'format' => '?page=%#%', 'prev_text' => '', 'next_text' => '', 'current' => $paged, 'total' => $numpages, 'type' => 'list' )); ?>
query_vars['post_type'] === 'team' ) $query->query_vars['posts_per_page'] = $team_limit; } } if ( post_type_exists( 'job' ) ) { if ( is_post_type_archive('job') ) { $job_limit = cs_get_option('job_limit'); $job_limit = $job_limit ? $job_limit : '6'; if ( $query->query_vars['post_type'] === 'job' ) $query->query_vars['posts_per_page'] = $job_limit; } } if ( post_type_exists( 'apps' ) ) { if ( is_post_type_archive('apps') ) { $apps_limit = cs_get_option('apps_limit'); $apps_limit = $apps_limit ? $apps_limit : '6'; if ( $query->query_vars['post_type'] === 'apps' ) $query->query_vars['posts_per_page'] = $apps_limit; } if (is_tax('apps_category')) { $apps_limit = cs_get_option('apps_limit'); $apps_limit = $apps_limit ? $apps_limit : '6'; $query->set('posts_per_page', $apps_limit); } } return $query; } add_filter( 'pre_get_posts', 'saaspot_custom_posts_per_page' ); if( ! function_exists( 'saaspot_reading_time_default' ) ) { function saaspot_reading_time_default() { global $reading_time_post_types, $reading_time_shortcodes; $update_options = array( 'label' => 'Reading Time: ', 'postfix' => 'minutes', 'postfix_singular' => 'minute', 'wpm' => '300', 'before_content' => false, 'before_excerpt' => false, 'exclude_images' => false, 'post_types' => $reading_time_post_types, 'include_shortcodes' => $reading_time_shortcodes, ); update_option( 'rt_reading_time_options', $update_options ); } add_action( 'after_switch_theme', 'saaspot_reading_time_default' ); } if( ! function_exists( 'saaspot_reading_time_default_after' ) ) { function saaspot_reading_time_default_after() { global $reading_time_post_types, $reading_time_shortcodes; $update_options = array( 'label' => 'Reading Time: ', 'postfix' => 'minutes', 'postfix_singular' => 'minute', 'wpm' => '300', 'before_content' => false, 'before_excerpt' => false, 'exclude_images' => false, 'post_types' => $reading_time_post_types, 'include_shortcodes' => $reading_time_shortcodes, ); update_option( 'rt_reading_time_options', $update_options ); } add_action( 'pt-ocdi/after_content_import_execution', 'saaspot_reading_time_default_after' ); }