', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'craft_blog_pingback_header' ); /** * Social Media Link * * @since 1.0.0 */ if ( ! function_exists( 'craft_blog_social_media_link' ) ){ function craft_blog_social_media_link() { $get_social_media_icons = get_theme_mod( 'craft_blog_social_media_icons', '' ); $get_decode_social_media = json_decode( $get_social_media_icons ); if( !empty( $get_decode_social_media ) ) { echo '
'; } } } add_action( 'craft_blog_social_media', 'craft_blog_social_media_link', 5 ); /** * Footer Copyright Information * * @since 1.0.0 */ if ( ! function_exists( 'craft_blog_footer_copyright' ) ){ function craft_blog_footer_copyright() { $copyright = get_theme_mod( 'craft_blog_footer_section_options' ); if( !empty( $copyright ) ) { echo esc_html ( apply_filters( 'craft_blog_copyright_text', $copyright ) ); } else { echo esc_html( apply_filters( 'craft_blog_copyright_text', $content = esc_html__('Copyright © ','craft-blog') . date( 'Y' ) . ' ' . get_bloginfo( 'name' ) .' - ' ) ); } printf( ' WordPress Theme : By %1$s', ''.esc_html__('Sparkle Themes','craft-blog').'' ); } } add_action( 'craft_blog_copyright', 'craft_blog_footer_copyright', 5 ); /** * Posts format declaration function. * * @since 1.0.0 */ if( ! function_exists( 'craft_blog_post_format_media' ) ) : function craft_blog_post_format_media( $postformat ) { $layout = get_theme_mod( 'craft_blog_blog_display_layout_options', 'grid-rsidebar' ); if( is_singular( ) ){ $imagesize = 'post-thumbnail'; }else{ if( !empty( $layout ) && $layout == 'list-rsidebar' ){ $imagesize = 'craft-blog-list-post'; }else{ $imagesize = 'post-thumbnail'; } } if( $postformat == "gallery" ) { $gallery = get_post_gallery( get_the_ID(), false ); $gallery_attachment_ids = explode( ',', $gallery['ids'] ); if( is_array( $gallery ) ){ ?>