>
post_content, $matches); if( (is_array($matches)) && (isset($matches[3])) && ( ($matches[2] == 'video') || ('audio' == $post_format)) && (isset($matches[2]))) { $video = $matches[0]; echo do_shortcode($video); $content = preg_replace('/'.$pattern.'/s', '', $content); } else if( (!empty( $meta_video )) ) { echo do_shortcode($meta_video); } // gallery post type } else if( 'gallery' == $post_format) { $pattern = '\\[' .'(\\[?)' ."(gallery)" .'(?![\\w-])' .'(' .'[^\\]\\/]*' .'(?:' .'\\/(?!\\])' .'[^\\]\\/]*' .')*?' .')' .'(?:' .'(\\/)' .'\\]' .'|' .'\\]' .'(?:' .'(' .'[^\\[]*+' .'(?:' .'\\[(?!\\/\\2\\])' .'[^\\[]*+' .')*+' .')' .'\\[\\/\\2\\]' .')?' .')' .'(\\]?)'; preg_match('/'.$pattern.'/s', $post->post_content, $matches); if( (is_array($matches)) && (isset($matches[3])) && ($matches[2] == 'gallery') && (isset($matches[2]))) { $ids = (shortcode_parse_atts($matches[3])); if(is_array($ids) && isset($ids['ids'])) $ids = $ids['ids']; echo wp_kses( get_post_gallery(), wp_kses_allowed_html( 'post' ) ); $content = preg_replace('/'.$pattern.'/s', '', $content); } } else { if(has_post_thumbnail()){ $thumbnail_url = get_the_post_thumbnail_url(); $thumbnail_id = get_post_thumbnail_id(); }else{ if($deep_options['deep_no_image']){ $no_image_src = isset( $deep_options['deep_no_image_src']['url'] ) ? $deep_options['deep_no_image_src']['url'] : DEEP_ASSETS_URL . 'images/no_image.jpg'; echo ''.get_the_title().''; } } } } ?>