content-page.php000064400000000657147200226150007650 0ustar00
thumbnail-video.php000064400000006433147200226150010351 0ustar00run_shortcode($match[0]); $musicnight_post_settings['content'] = substr($content, strlen($match[0])); }else{ $musicnight_post_settings['content'] = $content; } if ( !empty($post_format_data) ){ echo '
' . $post_format_data . '
'; }else{ $k_post_option = json_decode(get_post_meta($post->ID, 'post-option', true), true); $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? $musicnight_theme_option['thumbnail-size']: $musicnight_post_settings['thumbnail-size']; //Get Thumbnail Width and Height $musicnight_img_size = musicnight_get_video_size($thumbnail_size); $musicnight_width = $musicnight_img_size['width']; $musicnight_height = $musicnight_img_size['height']; // Get Slider Images $k_post_option['slider'] = (empty($k_post_option['slider']))? ' ': $k_post_option['slider']; $raw_slider_data = musicnight_decode_stopbackslashes($k_post_option['slider']); $filter_slider_data = json_decode(musicnight_stripslashes($raw_slider_data), true); //Get Media Type Selected $k_post_option['post_media_type'] = (empty($k_post_option['post_media_type']))? ' ': $k_post_option['post_media_type']; if(!empty($k_post_option['musicnight_video'])){ echo '
' . musicnight_get_video($k_post_option['musicnight_video'],$thumbnail_size).'
'; } } } } musicnight_fetch_post_format_video();content-widget.php000064400000002076147200226150010214 0ustar00
>

post_content); if(preg_match('#\[gallery[^\]]+]#', $content, $match)){ if( is_single() ){ $post_format_data = do_shortcode(get_post_gallery()); }else{ preg_match('#\[gallery.+columns\s?=\s?\"([^\"]+).+]#', $match[0], $match2); if(empty($match2)){ preg_match('#\[gallery.+ids\s?=\s?\"([^\"]+).+]#', $match[0], $match2); } if(is_numeric($match2[1])){ $post_format_data = ''; }else{ $post_format_data = musicnight_get_bx_slider(explode(',', $match2[1]), array('size'=>$musicnight_post_settings['thumbnail-size'])); } } $musicnight_post_settings['content'] = substr($content, strlen($match[0])); }else{ $musicnight_post_settings['content'] = $content; } if ( !empty($post_format_data) ){ echo ''; }else{ $musicnight_post_option = musicnight_decode_stopbackslashes(get_post_meta(get_the_ID(), 'post-option', true )); if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? $musicnight_theme_option['musicforest-post-thumbnail-size']: $musicnight_post_settings['thumbnail-size']; // Get Slider Images $musicnight_post_option['slider'] = (empty($musicnight_post_option['slider']))? ' ': $musicnight_post_option['slider']; $raw_slider_data = musicnight_decode_stopbackslashes($musicnight_post_option['slider']); $filter_slider_data = json_decode(musicnight_stripslashes($raw_slider_data), true); if(isset($filter_slider_data) && $filter_slider_data != ''){ echo '
'; echo musicnight_get_slider( $filter_slider_data, $thumbnail_size, 'bxslider' ); echo '
'; } } } } musicnight_fetch_post_format_gallery();thumbnail.php000064400000010463147200226150007243 0ustar00ID, 'post-option', true), true); if(is_single() && isset($musicnight_theme_option['force-thumbnail-size']) && $musicnight_theme_option['force-thumbnail-size'] == 'enable' ){ $thumbnail_size = (empty($musicnight_theme_option['recommended-thumbnail-size']))? $musicnight_post_settings['thumbnail-size']: $musicnight_theme_option['recommended-thumbnail-size']; }else{ $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? 'full': $musicnight_post_settings['thumbnail-size']; } //Get Thumbnail Width and Height $musicnight_img_size = musicnight_get_video_size($thumbnail_size); $musicnight_width = $musicnight_img_size['width']; $musicnight_height = $musicnight_img_size['height']; // Get Slider Images $k_post_option['slider'] = (empty($k_post_option['slider']))? ' ': $k_post_option['slider']; $raw_slider_data = musicnight_decode_stopbackslashes($k_post_option['slider']); $filter_slider_data = json_decode(musicnight_stripslashes($raw_slider_data), true); //Get Media Type Selected $k_post_option['post_media_type'] = (empty($k_post_option['post_media_type']))? ' ': $k_post_option['post_media_type']; //Condition for Audio, Video, Slider if($k_post_option['post_media_type'] == 'audio'){ if(isset($k_post_option['musicnight_audio']) && strpos($k_post_option['musicnight_audio'],'soundcloud')){ echo '
' . do_shortcode('[soundcloud url="'.esc_url($k_post_option['musicnight_audio']).'" comments="yes" auto_play="no" color="#ff7700" width="100%" height="'.esc_attr($musicnight_height).'px"][/soundcloud]') . '
'; }else{ $musicnight_get_image = musicnight_get_image(get_post_thumbnail_id(), esc_attr($thumbnail_size), true); if(!empty($musicnight_get_image)){ echo '
'; if( is_single() ){ echo musicnight_get_image(get_post_thumbnail_id(), $thumbnail_size, true); echo '
' . do_shortcode('[audio mp3="'.$k_post_option['musicnight_audio'].'"][/audio]') . '
'; }else{ $temp_option = json_decode(get_post_meta(get_the_ID(), 'post-option', true), true); echo musicnight_get_image(get_post_thumbnail_id(), $thumbnail_size,true); if(isset($k_post_option['musicnight_audio'])){ echo '
' . do_shortcode('[audio mp3="'.$k_post_option['musicnight_audio'].'"][/audio]') . '
'; } } echo '
'; }else{ echo '
' . do_shortcode('[audio mp3="'.$k_post_option['musicnight_audio'].'"][/audio]') . '
'; } } }else if($k_post_option['post_media_type'] == 'video'){ echo '
' . musicnight_get_video($k_post_option['musicnight_video'],$thumbnail_size).'
'; }else if($k_post_option['post_media_type'] == 'slider'){ echo musicnight_get_slider( $filter_slider_data, esc_attr($thumbnail_size), 'flexslider' ); }else{ $musicnight_get_image = musicnight_get_image(get_post_thumbnail_id(), esc_attr($thumbnail_size), true); if(!empty($musicnight_get_image)){ echo '
'; if( is_single() ){ echo musicnight_get_image(get_post_thumbnail_id(), esc_attr($thumbnail_size), true); }else{ $temp_option = json_decode(get_post_meta(get_the_ID(), 'post-option', true), true); echo musicnight_get_image(get_post_thumbnail_id(), esc_attr($thumbnail_size)); } echo '
'; } } } } } musicnight_fetch_post_format_thumbnail();content-full.php000064400000012745147200226150007677 0ustar00 ''){ $title_num_fetch = $musicnight_post_settings['title-num-fetch']; }else{ $title_num_fetch = 100; } $musicnight_post_option = musicnight_decode_stopbackslashes(get_post_meta(get_the_ID(), 'post-option', true )); if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } $musicnight_icon = ''; if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'audio'){ $musicnight_icon = 'fa fa-bullhorn'; }else if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'video'){ $musicnight_icon = 'fa fa-video-camera'; }else if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'slider'){ $musicnight_icon = 'fa fa-television'; }else{ $musicnight_icon = 'fa fa-picture-o'; } $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? $musicnight_theme_option['musicforest-post-thumbnail-size']: $musicnight_theme_option['thumbnail-size']; $musicnight_thumbnail_id = get_post_thumbnail_id( get_the_ID() ); $musicnight_thumbnail = wp_get_attachment_image_src( $musicnight_thumbnail_id , 'full' ); $format = get_post_format( get_the_ID() ); ?>
>
''){ ?>
''){ ?>
'; echo musicnight_content_filter($musicnight_post_settings['content'], true); wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); echo '
'; }else if( $musicnight_post_settings['num-excerpt'] != 0 ){ echo musicnight_content_filter(get_the_excerpt()); echo ''.esc_attr__('See More','music-night').''; } ?>
post-functions.php000064400000001552147200226150010252 0ustar00thumbnail-audio.php000064400000010266147200226150010343 0ustar00' . $post_format_data . ''; }else{ global $post; $k_post_option = json_decode(get_post_meta($post->ID, 'post-option', true), true); if(!isset($musicnight_theme_option['musicforest-post-thumbnail-size'])){ $musicnight_theme_option['musicforest-post-thumbnail-size'] = 'full'; } $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? $musicnight_theme_option['musicforest-post-thumbnail-size']: $musicnight_post_settings['thumbnail-size']; //Get Thumbnail Width and Height $musicnight_img_size = musicnight_get_video_size($thumbnail_size); $musicnight_width = $musicnight_img_size['width']; $musicnight_height = $musicnight_img_size['height']; // Get Slider Images $k_post_option['slider'] = (empty($k_post_option['slider']))? ' ': $k_post_option['slider']; $raw_slider_data = musicnight_decode_stopbackslashes($k_post_option['slider']); $filter_slider_data = json_decode(musicnight_stripslashes($raw_slider_data), true); //Get Media Type Selected $k_post_option['post_media_type'] = (empty($k_post_option['post_media_type']))? ' ': $k_post_option['post_media_type']; if(!empty($k_post_option['musicnight_audio'])){ if(strpos($k_post_option['musicnight_audio'],'soundcloud')){ echo '
' . do_shortcode('[soundcloud url="'.esc_url($k_post_option['musicnight_audio']).'" comments="yes" auto_play="no" color="#ff7700" width="100%" height="'.esc_attr($musicnight_height).'px"][/soundcloud]') . '
'; }else{ $musicnight_get_image = musicnight_get_image(get_post_thumbnail_id(), esc_attr($thumbnail_size), true); if(!empty($musicnight_get_image)){ echo '
'; if( is_single() ){ echo musicnight_get_image(get_post_thumbnail_id(), $thumbnail_size, true); echo '
' . do_shortcode('[audio mp3="'.$k_post_option['musicnight_audio'].'"][/audio]') . '
'; }else{ $temp_option = json_decode(get_post_meta(get_the_ID(), 'post-option', true), true); echo musicnight_get_image(get_post_thumbnail_id(), $thumbnail_size,true); echo '
' . do_shortcode('[audio mp3="'.$k_post_option['musicnight_audio'].'"][/audio]') . '
'; if( is_sticky() ){ echo '
'; echo ''; echo esc_html__('Sticky Post', 'music-night'); echo '
'; } } echo '
'; }else{ if(!empty($k_post_option['musicnight_audio'])){ echo '
' . do_shortcode('[audio mp3="'.$k_post_option['musicnight_audio'].'"][/audio]') . '
'; } } } } } } } musicnight_fetch_post_format_audio();thumbnail-image.php000064400000002443147200226150010322 0ustar00|^#', $content, $match)){ $post_format_data = $match[0]; $musicnight_post_settings['content'] = substr($content, strlen($match[0])); }else if(preg_match('#^https?://\S+#', $content, $match)){ $post_format_data = musicnight_get_image($match[0], 'full', true); $musicnight_post_settings['content'] = substr($content, strlen($match[0])); }else{ $musicnight_post_settings['content'] = $content; } if ( !empty($post_format_data) ){ echo '
'; echo esc_attr($post_format_data); if( !is_single() && is_sticky() ){ echo '
'; echo ''; echo esc_html__('Sticky Post', 'music-night'); echo '
'; } echo '
'; echo '
'; } } } musicnight_fetch_post_format_image();content-quote.php000064400000002374147200226150010067 0ustar00#', $content, $match)){ $post_format_data = musicnight_content_filter($match[0]); $content = substr($content, strlen($match[0])); } ?>
>
#', $content, $match)){ $post_format_data = $match[1]; $content = substr($content, strlen($match[0])); }else if(preg_match('#^https?://\S+#', $content, $match)){ $post_format_data = $match[0]; $content = substr($content, strlen($match[0])); } if( !is_single() ){ global $musicnight_post_settings,$musicnight_theme_option; if($musicnight_post_settings['num-excerpt'] < 0) global $more; $more = 0; }else{ global $musicnight_post_settings, $musicnight_theme_option; } if(!isset($musicnight_post_settings['title-num-fetch']) && empty($musicnight_post_settings['title-num-fetch'])){ $musicnight_post_settings['title-num-fetch'] = '21'; } ?>
>
''){ ?> '; }else if( $musicnight_post_settings['num-excerpt'] != 0 ){ echo '

' . esc_attr(get_the_excerpt()) . '

'; } ?>
>
content-grid.php000064400000013002147200226150007645 0ustar00 ''){ $title_num_fetch = $musicnight_post_settings['title-num-fetch']; }else{ $title_num_fetch = 100; } $musicnight_post_option = musicnight_decode_stopbackslashes(get_post_meta(get_the_ID(), 'post-option', true )); if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } $musicnight_icon = ''; if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'audio'){ $musicnight_icon = 'fa fa-bullhorn'; }else if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'video'){ $musicnight_icon = 'fa fa-video-camera'; }else if(isset($musicnight_post_option['post_media_type']) && $musicnight_post_option['post_media_type'] == 'slider'){ $musicnight_icon = 'fa fa-television'; }else{ $musicnight_icon = 'fa fa-picture-o'; } $thumbnail_size = (empty($musicnight_post_settings['thumbnail-size']))? $musicnight_theme_option['musicforest-post-thumbnail-size']: $musicnight_theme_option['thumbnail-size']; $musicnight_thumbnail_id = get_post_thumbnail_id( get_the_ID() ); $musicnight_thumbnail = wp_get_attachment_image_src( $musicnight_thumbnail_id , 'full' ); $format = get_post_format( get_the_ID() ); ?>
>
''){ ?>
'; echo musicnight_content_filter($musicnight_post_settings['content'], true); wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '' ) ); echo '
'; }else if( $musicnight_post_settings['num-excerpt'] != 0 ){ echo musicnight_content_filter(get_the_excerpt()); echo ''.esc_attr__('See More','music-night').''; if(isset($blog_share) && $blog_share == 'yes'){ ?>
content.php000064400000002230147200226150006723 0ustar00