'; echo '
'. esc_html__( 'Thank you for choosing Blog Mantra ! Now you can visit our welcome page.', 'blog-mantra' ) .'
'; echo ''. esc_html__( 'Get Started with Blog Mantra', 'blog-mantra' ) .'
'; echo ''; } /** * Filter the excerpt "read more" string. * * @param string $more "Read more" excerpt string. * @return string (Maybe) modified "read more" excerpt string. */ function blog_mantra_excerpt_more( $more ) { return '…'; } add_filter( 'excerpt_more', 'blog_mantra_excerpt_more' ); /** * Filter the except length to 20 words. * * @param int $length Excerpt length. * @return int (Maybe) modified excerpt length. */ function blog_mantra_custom_excerpt_length( $length ) { return 36; } if ( ! is_admin() ) { add_filter( 'excerpt_length', 'blog_mantra_custom_excerpt_length', 999 ); } /** * Function to check widget status */ if ( ! function_exists( 'blog_mantra_widget_count' ) ) : function blog_mantra_widget_count( $sidebar_names ){ $status = 0; foreach ($sidebar_names as $sidebar) { if( is_active_sidebar( $sidebar )){ $status = $status+1; } } return $status; } endif; /** * Function for owlcarousel dynamic slideSpeed and autoplayTimeout */ function blog_mantra_load_owl_scripts() { $theme_options = blog_mantra_theme_options(); wp_localize_script( 'blog-mantra-custom', 'blog_mantra_script_vars', array( 'autoPlaySpeed' => absint($theme_options['slider_transition_duration']*1000), 'autoplayTimeout' => absint($theme_options['slider_transition_delay']*1000), ) ); } add_action('wp_enqueue_scripts', 'blog_mantra_load_owl_scripts');