', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'gucherry_blog_pingback_header' ); /** * Social links template */ if( ! function_exists( 'gucherry_blog_social_links_template' ) ) { function gucherry_blog_social_links_template( $position ) { $display_social_links = get_theme_mod( 'gucherry_blog_header_display_social_links', true ); if( $position == 'header' ) { if( $display_social_links == true ) { $facebook_link = get_theme_mod( 'gucherry_blog_social_links_facebook_link' ); $twitter_link = get_theme_mod( 'gucherry_blog_social_links_twitter_link' ); $instagram_link = get_theme_mod( 'gucherry_blog_social_links_instagram_link' ); if( !empty( $facebook_link ) ) { ?>
  • post_content ) ) { $post_blocks = parse_blocks( $post->post_content ); if( $post_blocks ) { foreach( $post_blocks as $block ) { if( $block['blockName'] == 'core/gallery' ) { $gallery_images_ids = $block['attrs']['ids']; break; } } } } else { gucherry_blog_post_thumbnail(); } if( is_array( $gallery_images_ids ) ) { ?>
    post_content ) ) { $post_blocks = parse_blocks( $post->post_content ); if( $post_blocks ) { foreach( $post_blocks as $block ) { if( $block['blockName'] == 'core/quote' ) { $quote_string = $block['innerHTML']; break; } } } } else { gucherry_blog_post_thumbnail(); } if( $quote_string ) { ?>
    0, 'prev_text' => esc_html__( 'Prev', 'gucherry-blog' ), 'next_text' => esc_html__( 'Next', 'gucherry-blog' ), ) ); ?>
    '', ); wp_link_pages( $pages_links_args ); } } /** * Function that defines post navigation. */ if( ! function_exists( 'gucherry_blog_post_navigation' ) ) { function gucherry_blog_post_navigation() { $next_post = get_next_post(); $previous_post = get_previous_post(); ?>