'; /* * Include the Home Page After Slider Section Ad Template. */ ?>
name; ?>

'post', 'category_name' => $admela_cat1name, 'orderby'=> $admela_postorder, 'posts_per_page'=>$admela_cat1postcnt, 'ignore_sticky_posts' => 1, ); $admela_cat1_query = new WP_Query($admela_cat1args); $loop_counter = 0; global $post; if ( $admela_cat1_query->have_posts() ) : while ( $admela_cat1_query->have_posts() ) : $admela_cat1_query->the_post(); /* Start Posts */ $admela_fwidth = '264'; $admela_fheight = '176'; $admela_thumb = get_post_thumbnail_id(); $admela_imgurl = wp_get_attachment_url( $admela_thumb,'full'); //get img URL $admela_image = admela_autoresize( $admela_imgurl, $admela_fwidth, $admela_fheight, true ); //resize & crop img $admela_ytdimg = get_post_meta($post->ID, '_admela_featured_videourl', true); $admela_youtube_matchexp = "/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i"; $admela_vimeomatchexp = "/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/"; $admela_souncloudmatchexp = "%(?:https?://)(?:www\.)?soundcloud\.com/([\-a-z0-9_]+/[\-a-z0-9_]+)%im"; $admela_framename = "iframe"; if(($admela_ytdimg == "") && ($admela_image == "")){ $admela_sliderwotimg = 'admela_sliderwotimg'; } else { $admela_sliderwotimg = ''; } $loop_counter++; if(admela_get_option('admela_lyt1ct1sn1pstad_act') != false){ if(($loop_counter == $admela_cat1pslpcnt)){ ?>
>
",$admela_ytdimg); echo wp_kses_stripslashes($admela_yuvid); } elseif(preg_match($admela_vimeomatchexp , $admela_ytdimg)) { $admela_vimeovideos = preg_replace( $admela_vimeomatchexp ,"<".esc_attr($admela_framename)." width=\"".absint($admela_fwidth)."\" height=\"".absint($admela_fheight)."\" src=\"//player.vimeo.com/video/$3\" allowfullscreen>",$admela_ytdimg); echo wp_kses_stripslashes($admela_vimeovideos); } elseif(preg_match( $admela_souncloudmatchexp , $admela_ytdimg)) { $admela_souncloudsng = preg_replace( $admela_souncloudmatchexp ,'<'.esc_attr($admela_framename).' width="'.absint($admela_fwidth).'" height="'.absint($admela_fheight).'" scrolling="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/$1&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">',$admela_ytdimg); echo wp_kses_stripslashes($admela_souncloudsng); } } elseif(($admela_image != "") && ($admela_ytdimg == "")) { ?> <?php esc_html_e('img','admela'); ?> '; endif; break; case 'chat': if ($admela_getpostfmt == 'chat'): echo ''; endif; break; case 'audio': if ($admela_getpostfmt == 'audio'): echo ''; endif; break; case 'gallery': if ($admela_getpostfmt == 'gallery'): echo ''; endif; break; case 'video': if ($admela_getpostfmt == 'video'): echo ''; endif; break; case 'image': if ($admela_getpostfmt == 'image'): echo ''; endif; break; case 'link': if ($admela_getpostfmt == 'link'): echo ''; endif; break; case 'quote': if ($admela_getpostfmt == 'quote'): echo ''; endif; break; case 'status': if ($admela_getpostfmt == 'status'): echo ''; endif; break; default: echo ''; } ?>
',''); ?>
name; ?>

'post', 'category_name' => $admela_cat2name, 'orderby'=> $admela_postorder2, 'posts_per_page'=>$admela_cat2postcnt, 'ignore_sticky_posts' => 1, ); $admela_cat2_query = new WP_Query($admela_cat2args); $loop_counter = 0; global $post; if ( $admela_cat2_query->have_posts() ) : while ( $admela_cat2_query->have_posts() ) : $admela_cat2_query->the_post(); /* Start Posts */ $admela_fwidth = '264'; $admela_fheight = '176'; $admela_thumb = get_post_thumbnail_id(); $admela_imgurl = wp_get_attachment_url( $admela_thumb,'full'); //get img URL $admela_image = admela_autoresize( $admela_imgurl, $admela_fwidth, $admela_fheight, true ); //resize & crop img $admela_ytdimg = get_post_meta($post->ID, '_admela_featured_videourl', true); $admela_youtube_matchexp = "/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i"; $admela_vimeomatchexp = "/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/"; $admela_souncloudmatchexp = "%(?:https?://)(?:www\.)?soundcloud\.com/([\-a-z0-9_]+/[\-a-z0-9_]+)%im"; $admela_framename = "iframe"; if(($admela_ytdimg == "") && ($admela_image == "") && (!empty($admela_exturl) == '')){ $admela_sliderwotimg = 'admela_sliderwotimg'; } else { $admela_sliderwotimg = ''; } $loop_counter++; if(admela_get_option('admela_lyt1ct2sn2pstad_act') != false){ if(($loop_counter == $admela_cat2pslpcnt)){ ?>
>
",$admela_ytdimg); echo wp_kses_stripslashes($admela_yuvid); } elseif(preg_match($admela_vimeomatchexp , $admela_ytdimg)) { $admela_vimeovideos = preg_replace( $admela_vimeomatchexp ,"<".esc_attr($admela_framename)." width=\"".absint($admela_fwidth)."\" height=\"".absint($admela_fheight)."\" src=\"//player.vimeo.com/video/$3\" allowfullscreen>",$admela_ytdimg); echo wp_kses_stripslashes($admela_vimeovideos); } elseif(preg_match( $admela_souncloudmatchexp , $admela_ytdimg)) { $admela_souncloudsng = preg_replace( $admela_souncloudmatchexp ,'<'.esc_attr($admela_framename).' width="'.absint($admela_fwidth).'" height="'.absint($admela_fheight).'" scrolling="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/$1&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">',$admela_ytdimg); echo wp_kses_stripslashes($admela_souncloudsng); } } elseif(($admela_image != "") && ($admela_ytdimg == "")) { ?> <?php esc_html_e('img','admela'); ?>
',''); ?>
name; ?>

'post', 'category_name' => $admela_cat3name, 'orderby'=> $admela_postorder3, 'posts_per_page'=>$admela_cat3postcnt, 'ignore_sticky_posts' => 1, ); $admela_cat3_query = new WP_Query($admela_cat3args); $loop_counter = 0; global $post; if ( $admela_cat3_query->have_posts() ) : while ( $admela_cat3_query->have_posts() ) : $admela_cat3_query->the_post(); /* Start Posts */ $admela_fwidth = '264'; $admela_fheight = '176'; $admela_thumb = get_post_thumbnail_id(); $admela_imgurl = wp_get_attachment_url( $admela_thumb,'full'); //get img URL $admela_image = admela_autoresize( $admela_imgurl, $admela_fwidth, $admela_fheight, true ); //resize & crop img $admela_ytdimg = get_post_meta($post->ID, '_admela_featured_videourl', true); $admela_youtube_matchexp = "/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i"; $admela_vimeomatchexp = "/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/"; $admela_souncloudmatchexp = "%(?:https?://)(?:www\.)?soundcloud\.com/([\-a-z0-9_]+/[\-a-z0-9_]+)%im"; $admela_framename = "iframe"; if(($admela_ytdimg == "") && ($admela_image == "") && (!empty($admela_exturl) == '')){ $admela_sliderwotimg = 'admela_sliderwotimg'; } else { $admela_sliderwotimg = ''; } $loop_counter++; if(admela_get_option('admela_lyt1ct3sn3pstad_act') != false){ if(($loop_counter == $admela_cat3pslpcnt)){ ?>
>
",$admela_ytdimg); echo wp_kses_stripslashes($admela_yuvid); } elseif(preg_match($admela_vimeomatchexp , $admela_ytdimg)) { $admela_vimeovideos = preg_replace( $admela_vimeomatchexp ,"<".esc_attr($admela_framename)." width=\"".absint($admela_fwidth)."\" height=\"".absint($admela_fheight)."\" src=\"//player.vimeo.com/video/$3\" allowfullscreen>",$admela_ytdimg); echo wp_kses_stripslashes($admela_vimeovideos); } elseif(preg_match( $admela_souncloudmatchexp , $admela_ytdimg)) { $admela_souncloudsng = preg_replace( $admela_souncloudmatchexp ,'<'.esc_attr($admela_framename).' width="'.absint($admela_fwidth).'" height="'.absint($admela_fheight).'" scrolling="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/$1&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">',$admela_ytdimg); echo wp_kses_stripslashes($admela_souncloudsng); } } elseif(($admela_image != "") && ($admela_ytdimg == "")) { ?> <?php esc_html_e('img','admela'); ?>
',''); ?>

ID, '_admela_featured_videourl', true); $admela_youtube_matchexp = "/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i"; $admela_vimeomatchexp = "/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/"; $admela_souncloudmatchexp = "%(?:https?://)(?:www\.)?soundcloud\.com/([\-a-z0-9_]+/[\-a-z0-9_]+)%im"; $admela_framename = "iframe"; if(($admela_ytdimg == "") && ($admela_image == "") && (!empty($admela_exturl) == '')){ $admela_sliderwotimg = 'admela_sliderwotimg'; } else { $admela_sliderwotimg = ''; } if(($admela_counter == $admela_lyt1ltpst1pcnt)){ get_template_part('tempad-parts/lay1latestpst','ad1'); } if(($admela_counter == $admela_lyt1ltpst2pcnt)){ get_template_part('tempad-parts/lay1latestpst','ad2'); } /* * Include the Post-Format-specific template for the content. */ ?>
>
",$admela_ytdimg); echo wp_kses_stripslashes($admela_yuvid); } elseif(preg_match($admela_vimeomatchexp , $admela_ytdimg)) { $admela_vimeovideos = preg_replace( $admela_vimeomatchexp ,"<".esc_attr($admela_framename)." width=\"".absint($admela_fwidth)."\" height=\"".absint($admela_fheight)."\" src=\"//player.vimeo.com/video/$3\" allowfullscreen>",$admela_ytdimg); echo wp_kses_stripslashes($admela_vimeovideos); } elseif(preg_match( $admela_souncloudmatchexp , $admela_ytdimg)) { $admela_souncloudsng = preg_replace( $admela_souncloudmatchexp ,'<'.esc_attr($admela_framename).' width="'.absint($admela_fwidth).'" height="'.absint($admela_fheight).'" scrolling="no" src="https://w.soundcloud.com/player/?url=https://soundcloud.com/$1&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true">',$admela_ytdimg); echo wp_kses_stripslashes($admela_souncloudsng); } } elseif(($admela_image != "") && ($admela_ytdimg == "")) { ?> <?php esc_html_e('img','admela'); ?>
'; endif; break; case 'chat': if ($admela_getpostfmt == 'chat'): echo ''; endif; break; case 'audio': if ($admela_getpostfmt == 'audio'): echo ''; endif; break; case 'gallery': if ($admela_getpostfmt == 'gallery'): echo ''; endif; break; case 'video': if ($admela_getpostfmt == 'video'): echo ''; endif; break; case 'image': if ($admela_getpostfmt == 'image'): echo ''; endif; break; case 'link': if ($admela_getpostfmt == 'link'): echo ''; endif; break; case 'quote': if ($admela_getpostfmt == 'quote'): echo ''; endif; break; case 'status': if ($admela_getpostfmt == 'status'): echo ''; endif; break; default: echo ''; } ?>
',''); ?>

'

', 'link_before' => '', 'link_after' => '', 'pagelink' => '' . esc_html__( 'Page', 'admela' ) . ' %', 'separator' => ', ', ) ); ?>

'; //site-main get_footer();