'ABeeZee', 'Abel' => 'Abel', 'Abril+Fatface' => 'Abril Fatface', 'Aldrich' => 'Aldrich', 'Alegreya:400,400italic,700,900' => 'Alegreya', 'Alex+Brush' => 'Alex Brush', 'Alfa+Slab+One' => 'Alfa Slab One', 'Amaranth:400,400italic,700' => 'Amaranth', 'Andada' => 'Andada', 'Anton' => 'Anton', 'Archivo+Black' => 'Archivo Black', 'Archivo+Narrow:400,400italic,700' => 'Archivo Narrow', 'Arimo:400,400italic,700' => 'Arimo', 'Arvo:400,400italic,700' => 'Arvo', 'Asap:400,400italic,700' => 'Asap', 'Bangers' => 'Bangers', 'BenchNine:400,700' => 'BenchNine', 'Bevan' => 'Bevan', 'Bitter:400,400italic,700' => 'Bitter', 'Bree+Serif' => 'Bree Serif', 'Cabin:400,400italic,500,600,700' => 'Cabin', 'Cabin+Condensed:400,500,600,700' => 'Cabin Condensed', 'Cantarell:400,400italic,700' => 'Cantarell', 'Carme' => 'Carme', 'Cherry+Cream+Soda' => 'Cherry Cream Soda', 'Cinzel:400,700,900' => 'Cinzel', 'Comfortaa:400,300,700' => 'Comfortaa', 'Cookie' => 'Cookie', 'Covered+By+Your+Grace' => 'Covered By Your Grace', 'Crete+Round:400,400italic' => 'Crete Round', 'Crimson+Text:400,400italic,600,700' => 'Crimson Text', 'Cuprum:400,400italic' => 'Cuprum', 'Dancing+Script:400,700' => 'Dancing Script', 'Didact+Gothic' => 'Didact Gothic', 'Droid+Sans:400,700' => 'Droid Sans', 'Dosis:400,300,600,800' => 'Dosis', 'Droid+Serif:400,400italic,700' => 'Droid Serif', 'Economica:400,700,400italic' => 'Economica', 'Expletus+Sans:400,400i,700,700i' => 'Expletus Sans', 'EB+Garamond' => 'EB Garamond', 'Exo:400,300,400italic,600,800' => 'Exo', 'Exo+2:400,300,400italic,600,700,900' => 'Exo 2', 'Fira+Sans:400,500' => 'Fira Sans', 'Fjalla+One' => 'Fjalla One', 'Francois+One' => 'Francois One', 'Fredericka+the+Great' => 'Fredericka the Great', 'Fredoka+One' => 'Fredoka One', 'Fugaz+One' => 'Fugaz One', 'Great+Vibes' => 'Great Vibes', 'Handlee' => 'Handlee', 'Hammersmith+One' => 'Hammersmith One', 'Hind:400,300,600,700' => 'Hind', 'Inconsolata:400,700' => 'Inconsolata', 'Indie+Flower' => 'Indie Flower', 'Inter:wght@400;500;700' => 'Inter', 'Istok+Web:400,400italic,700' => 'Istok Web', 'Josefin+Sans:400,600,700,400italic' => 'Josefin Sans', 'Josefin+Slab:400,400italic,700,600' => 'Josefin Slab', 'Jura:400,300,500,600' => 'Jura', 'Karla:400,400italic,700' => 'Karla', 'Kaushan+Script' => 'Kaushan Script', 'Kreon:400,300,700' => 'Kreon', 'Lateef' => 'Lateef', 'Lato:400,300,400italic,900,700' => 'Lato', 'Libre+Baskerville:400,400italic,700' => 'Libre Baskerville', 'Libre+Franklin:400,600' => 'Libre Franklin', 'Limelight' => 'Limelight', 'Lobster' => 'Lobster', 'Lobster+Two:400,700,700italic' => 'Lobster Two', 'Lora:400,400italic,700,700italic' => 'Lora', 'Maven+Pro:400,500,700,900' => 'Maven Pro', 'Merriweather:400,400italic,300,900,700' => 'Merriweather', 'Merriweather+Sans:400,400italic,700,800' => 'Merriweather Sans', 'Monda:400,700' => 'Monda', 'Montserrat:400,400i,500,700' => 'Montserrat', 'Muli:400,300italic,300' => 'Muli', 'News+Cycle:400,700' => 'News Cycle', 'Noticia+Text:400,400italic,700' => 'Noticia Text', 'Noto+Sans:400,400italic,700' => 'Noto Sans', 'Noto+Serif:400,400italic,700' => 'Noto Serif', 'Nunito:400,300,700' => 'Nunito', 'Old+Standard+TT:400,400italic,700' => 'Old Standard TT', 'Open+Sans:300,400,400italic,600,700' => 'Open Sans', 'Open+Sans+Condensed:300,300italic,700' => 'Open Sans Condensed', 'Oswald:400,300,700' => 'Oswald', 'Oxygen:400,300,700' => 'Oxygen', 'Pacifico' => 'Pacifico', 'Passion+One:400,700,900' => 'Passion One', 'Pathway+Gothic+One' => 'Pathway Gothic One', 'Patua+One' => 'Patua One', 'Poiret+One' => 'Poiret One', 'Pontano+Sans' => 'Pontano Sans', 'Poppins:400,400i,700,700i' => 'Poppins', 'Play:400,700' => 'Play', 'Playball' => 'Playball', 'Playfair+Display:400,400i,700,700i' => 'Playfair Display', 'PT+Sans:400,400italic,700' => 'PT Sans', 'PT+Sans+Caption:400,700' => 'PT Sans Caption', 'PT+Sans+Narrow:400,700' => 'PT Sans Narrow', 'PT+Serif:400,400italic,700' => 'PT Serif', 'Quattrocento+Sans:400,700,400italic' => 'Quattrocento Sans', 'Questrial' => 'Questrial', 'Quicksand:400,700' => 'Quicksand', 'Raleway:400,300,500,600,700,900' => 'Raleway', 'Righteous' => 'Righteous', 'Roboto:400,700' => 'Roboto', 'Roboto+Condensed:400,300,400italic,700' => 'Roboto Condensed', 'Roboto+Slab:400,300,700' => 'Roboto Slab', 'Rokkitt:400,700' => 'Rokkitt', 'Ropa+Sans:400,400italic' => 'Ropa Sans', 'Russo+One' => 'Russo One', 'Sanchez:400,400italic' => 'Sanchez', 'Satisfy' => 'Satisfy', 'Shadows+Into+Light' => 'Shadows Into Light', 'Sigmar+One' => 'Sigmar One', 'Signika:400,300,700' => 'Signika', 'Six+Caps' => 'Six Caps', 'Slabo+27px' => 'Slabo 27px', 'Source+Sans+Pro:400,400i,700,700i' => 'Source Sans Pro', 'Source+Serif+Pro:400,700' => 'Source Serif Pro', 'Squada+One' => 'Squada One', 'Tangerine:400,700' => 'Tangerine', 'Tinos:400,400italic,700' => 'Tinos', 'Titillium+Web:400,300,400italic,700,900' => 'Titillium Web', 'Ubuntu:400,400italic,500,700' => 'Ubuntu', 'Ubuntu+Condensed' => 'Ubuntu Condensed', 'Varela+Round' => 'Varela Round', 'Vollkorn:400,400italic,700' => 'Vollkorn', 'Voltaire' => 'Voltaire', 'Yanone+Kaffeesatz:400,300,700' => 'Yanone Kaffeesatz', ) ); return $options; } endif; /* Check if is WooCommerce is active */ if ( ! function_exists( 'blog_tale_is_wc_active' ) ) : /** * Check WooCommerce Status * * @since 1.0.0 * * return boolean true/false */ function blog_tale_is_wc_active() { return class_exists( 'WooCommerce' ) ? true : false; } endif; /* Get placeholder image for back-end*/ if ( ! function_exists( 'be_placeholder_img_src' ) ) : /** * Get placeholder image * * @since 1.0.0 * */ function be_placeholder_img_src() { $src = get_template_directory_uri() . '/assets/images/placeholder.png'; return apply_filters( 'blog_tale_placeholder_img_src', $src ); } endif; /* Change default excerpt length */ if ( ! function_exists( 'blog_tale_excerpt_length' ) ) : /** * Change excerpt Length. * * @since 1.0.0 */ function blog_tale_excerpt_length($excerpt_length) { if( is_admin() && !wp_doing_ajax() ){ return $excerpt_length; } $excerpt_length = blog_tale_get_option('excerpt_length'); return absint($excerpt_length); } endif; add_filter( 'excerpt_length', 'blog_tale_excerpt_length', 999 ); /* Modify Excerpt Read More text */ if ( ! function_exists( 'blog_tale_excerpt_more' ) ) : /** * Modify Excerpt Read More text. * * @since 1.0.0 */ function blog_tale_excerpt_more($more) { if(is_admin()){ return $more; } return '...'; } endif; add_filter('excerpt_more', 'blog_tale_excerpt_more'); /* Get Page layout */ if ( ! function_exists( 'blog_tale_get_page_layout' ) ) : /** * Get Page Layout based on the post meta or customizer value * * @since 1.0.0 * * @return string Page Layout. */ function blog_tale_get_page_layout() { global $post; $page_layout = ''; /*Fetch for homepage*/ if( is_front_page() && is_home()){ $page_layout = blog_tale_get_option('home_page_layout'); return $page_layout; }elseif ( is_front_page() ) { $page_layout = blog_tale_get_option('home_page_layout'); return $page_layout; }elseif ( is_home() ) { $page_layout_meta = get_post_meta( get_option( 'page_for_posts' ), 'blog_tale_page_layout', true ); if(!empty($page_layout_meta)){ return $page_layout_meta; }else{ $page_layout = blog_tale_get_option('global_sidebar_layout'); return $page_layout; } } /**/ /*Fetch from Post Meta*/ if ( $post && is_singular() ) { $page_layout = get_post_meta( $post->ID, 'blog_tale_page_layout', true ); } /*Fetch from customizer*/ if(empty($page_layout)){ $page_layout = blog_tale_get_option('global_sidebar_layout'); } return $page_layout; } endif; if ( ! function_exists( 'blog_tale_get_all_image_sizes' ) ) : /** * Returns all image sizes available. * * @since 1.0.0 * * @param bool $for_choice True/False to construct the output as key and value choice * @return array Image Size Array. */ function blog_tale_get_all_image_sizes( $for_choice = false ) { global $_wp_additional_image_sizes; $sizes = array(); if( true == $for_choice ){ $sizes['no-image'] = __( 'No Image', 'blog-tale' ); } foreach ( get_intermediate_image_sizes() as $_size ) { if ( in_array( $_size, array('thumbnail', 'medium', 'large') ) ) { $width = get_option( "{$_size}_size_w" ); $height = get_option( "{$_size}_size_h" ); if( true == $for_choice ){ $sizes[$_size] = ucfirst($_size) . ' (' . $width . 'x' . $height . ')'; }else{ $sizes[ $_size ]['width'] = $width; $sizes[ $_size ]['height'] = $height; $sizes[ $_size ]['crop'] = (bool) get_option( "{$_size}_crop" ); } } elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) { $width = $_wp_additional_image_sizes[ $_size ]['width']; $height = $_wp_additional_image_sizes[ $_size ]['height']; if( true == $for_choice ){ $sizes[$_size] = ucfirst($_size) . ' (' . $width . 'x' . $height . ')'; }else{ $sizes[ $_size ] = array( 'width' => $width, 'height' => $height, 'crop' => $_wp_additional_image_sizes[ $_size ]['crop'], ); } } } if( true == $for_choice ){ $sizes['full'] = __( 'Full Image', 'blog-tale' ); } return $sizes; } endif; if ( ! function_exists( 'blog_tale_get_header_layouts' ) ) : /** * Returns header layout options. * * @since 1.0.0 * * @return array Options array. */ function blog_tale_get_header_layouts() { $options = apply_filters( 'blog_tale_header_layouts', array( 'header_style_1' => array( 'url' => get_template_directory_uri().'/assets/images/header1.png', 'label' => esc_html__( 'Header Style 1', 'blog-tale' ), ), 'header_style_2' => array( 'url' => get_template_directory_uri().'/assets/images/header2.png', 'label' => esc_html__( 'Header Style 2', 'blog-tale' ), ) ) ); return $options; } endif; if ( ! function_exists( 'blog_tale_get_footer_layouts' ) ) : /** * Returns footer layout options. * * @since 1.0.0 * * @return array Options array. */ function blog_tale_get_footer_layouts() { $options = apply_filters( 'blog_tale_footer_layouts', array( 'footer_layout_1' => array( 'url' => get_template_directory_uri().'/assets/images/footer-col-4.png', 'label' => esc_html__( 'Four Columns', 'blog-tale' ), ), 'footer_layout_2' => array( 'url' => get_template_directory_uri().'/assets/images/footer-col-3.png', 'label' => esc_html__( 'Three Columns', 'blog-tale' ), ), 'footer_layout_3' => array( 'url' => get_template_directory_uri().'/assets/images/footer-col-2.png', 'label' => esc_html__( 'Two Columns', 'blog-tale' ), ) ) ); return $options; } endif; if ( ! function_exists( 'blog_tale_get_general_layouts' ) ) : /** * Returns general layout options. * * @since 1.0.0 * * @return array Options array. */ function blog_tale_get_general_layouts() { $options = apply_filters( 'blog_tale_general_layouts', array( 'left-sidebar' => array( 'url' => get_template_directory_uri().'/assets/images/left_sidebar.png', 'label' => esc_html__( 'Left Sidebar', 'blog-tale' ), ), 'right-sidebar' => array( 'url' => get_template_directory_uri().'/assets/images/right_sidebar.png', 'label' => esc_html__( 'Right Sidebar', 'blog-tale' ), ), 'no-sidebar' => array( 'url' => get_template_directory_uri().'/assets/images/no_sidebar.png', 'label' => esc_html__( 'No Sidebar', 'blog-tale' ), ), ) ); return $options; } endif; if ( ! function_exists( 'blog_tale_get_archive_layouts' ) ) : /** * Returns archive layout options. * * @since 1.0.0 * * @return array Options array. */ function blog_tale_get_archive_layouts() { $options = apply_filters( 'blog_tale_archive_layouts', array( 'archive_style_2' => array( 'url' => get_template_directory_uri().'/assets/images/full_column.png', 'label' => esc_html__( 'Full Column', 'blog-tale' ), ), 'archive_style_3' => array( 'url' => get_template_directory_uri().'/assets/images/double_column.png', 'label' => esc_html__( 'Double Column', 'blog-tale' ), ), ) ); return $options; } endif; if ( ! function_exists( 'blog_tale_get_home_post_layouts' ) ) : /** * Returns home post layout options. * * @since 1.0.0 * * @return array Options array. */ function blog_tale_get_home_post_layouts() { $options = apply_filters( 'blog_tale_home_post_layouts', array( 'archive_style_2' => array( 'url' => get_template_directory_uri().'/assets/images/full_column.png', 'label' => esc_html__( 'Full Column', 'blog-tale' ), ), 'archive_style_3' => array( 'url' => get_template_directory_uri().'/assets/images/double_column.png', 'label' => esc_html__( 'Double Column', 'blog-tale' ), ) ) ); return $options; } endif; if ( ! function_exists( 'blog_tale_header_styles' ) ) : /** * Display classes and inline style to the Blog Tale header. * * @uses get_header_image() * @since 1.0.0 */ function blog_tale_header_styles() { $is_header_image = get_header_image(); $header_bg_image = ''; if ( $is_header_image ) { $header_bg_image = 'url(' . esc_url( $is_header_image ) . ')'; } $classes = ''; $final_styles = $styles = array(); if ( '' !== $header_bg_image ) { $classes = 'be-site-brand-wrap'; $styles['background-image'] = $header_bg_image; } $classes = apply_filters( 'blog_tale_header_classes', $classes ); $styles = apply_filters( 'blog_tale_header_styles', $styles ); foreach ( $styles as $style => $value ) { $final_styles[] = esc_attr( $style . ': ' . $value . '; ' ); } if(!empty($final_styles) || !empty($classes)){ echo 'class="'.esc_attr($classes).'" style="'.join('', $final_styles).'"'; } } endif; if ( ! function_exists( 'blog_tale_top_bar' ) ) : /** * Display top bar * * @since 1.0.0 * */ function blog_tale_top_bar() { ?>
'top-menu', 'container_class' => 'top-navigation', 'fallback_cb' => false, 'depth' => 1, 'menu_class' => false ) ); } endif; if ( ! function_exists( 'blog_tale_social_menu' ) ) : /** * Display social menu. * * @since 1.0.0 * */ function blog_tale_social_menu() { if(has_nav_menu('social-menu')){ ?>

the_title_attribute( array( 'echo' => false, ) ), ) ); ?>
term_id, 'category_color', true); if($color){ $style = "background-color:".esc_attr($color); } ?> cat_name);?>
'', ) ); if($read_more){ if($excerpt_read_more_text){ ?>
'', ) ); if($read_more){ if($excerpt_read_more_text){ ?>
'publish', 'post_type' => 'post', 'paged' => $paged, ); $latest_posts = new WP_Query($posts_args); if($latest_posts->have_posts()): set_query_var('archive_style', $front_blog_style); ?>
have_posts()):$latest_posts->the_post(); get_template_part('template-parts/content', get_post_type()); endwhile; $front_page_pagination_type = blog_tale_get_option('front_page_pagination_type'); if('numeric' == $front_page_pagination_type){ $big = 999999999; $links = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, $paged ), 'total' => $latest_posts->max_num_pages, 'prev_text' => _x( 'Previous', 'previous set of posts', 'blog-tale' ), 'next_text' => _x( 'Next', 'next set of posts', 'blog-tale' ), ) ); if ( $links ) { $pagination_align = blog_tale_get_option( 'home_numeric_pagination_align' ); ?>
ID; $related_posts_text = blog_tale_get_option('related_posts_text'); $no_of_related_posts = absint(blog_tale_get_option('no_of_related_posts')); $category_ids = array(); $categories = get_the_category($post_id); if(!empty($categories)) { foreach($categories as $cat){ $category_ids[] = $cat->term_id; } } if(!empty($category_ids)){ $related_posts_args = array( 'category__in' => $category_ids, 'post_type' => 'post', 'post__not_in' => array($post_id), 'posts_per_page' => $no_of_related_posts, 'ignore_sticky_posts' => 1, ); $related_posts_query = new WP_Query($related_posts_args); if($related_posts_query->have_posts()){ $related_author_col = 'be-single-col-'.blog_tale_get_option('related_author_col'); ?> ID; $author_posts_text = blog_tale_get_option('author_posts_text'); $no_of_author_posts = absint(blog_tale_get_option('no_of_author_posts')); $author_posts_args = array( 'author' => get_the_author_meta('ID'), 'post_type' => 'post', 'post__not_in' => array($post_id), 'posts_per_page' => $no_of_author_posts, 'ignore_sticky_posts' => 1, ); $author_posts_query = new WP_Query($author_posts_args); if ($author_posts_query->have_posts()) { $related_author_col = 'be-single-col-'.blog_tale_get_option('related_author_col'); ?>
have_posts()):$author_posts_query->the_post(); ?>
the_title_attribute(array( 'echo' => false, )), )); ?>

$image['thumbnail_src'], 'small' => $image['low_resolution'], 'original' => $image['standard_resolution'], 'link' => $node['link'], ); $first = false; } /*do not set an empty transient - should help catch private or empty accounts*/ if (!empty($instagram)) { if($enable_insta_cache && $insta_cache_time >= 1){ set_transient('be-instagram-' . sanitize_title_with_dashes($access_token), $instagram, apply_filters('blog_tale_instagram_cache_time', HOUR_IN_SECONDS * absint($insta_cache_time))); } } /**/ } if (!empty($instagram) && isset($instagram['images'])) { $instagram['images'] = array_slice($instagram['images'], 0, $slice); return $instagram; } else { return new WP_Error('no_images', esc_html__('Instagram did not return any images.', 'blog-tale')); } } endif; /* Display posts for masonry layout*/ if ( ! function_exists( 'blog_tale_masonry_post' ) ) : /** * Get Masonry Posts * * @since 1.0.0 * * @param $image_sizes array Array of image sizes * @param $counter int post item counter * @param $first_post_style string First Post style * @param $img_index int Image Index Counter * */ function blog_tale_masonry_post( &$image_sizes, $counter, $first_post_style = '', &$img_index){ /*If first post is enabled reduce counter by one*/ $masonry_item_counter = $counter; if(!empty($first_post_style)){ $masonry_item_counter = $counter - 1; } /*Declare the modulus as per number of image sizes*/ $modulus_count = count($image_sizes); ?>
>
', '' );?>
1) $opacity = 1.0; $output = 'rgba('.implode(",",$rgb).','.$opacity.')'; } else { $output = 'rgb('.implode(",",$rgb).')'; } //Return rgb(a) color string return $output; } endif;