function eff_latest_videos_sc($order, $title, $count) { ?> <!--Crousel--> <div class="block rcrousel"> <div class="block_title"> <div class="title_bg"><h2><a href="#"><?php echo $title; ?> </a></h2></div> <a href="#" class="lv_next">next</a> <a href="#" class="lv_prev">prev</a> <span></span> </div> <section class="section_box"> <div class="content_inner"> <div class="crousel_style1_lv"> <div class="crousel1_lv"> <?php query_posts(array('showposts' => $count, 'meta_key' => 'eff_article_type', 'meta_value' => 'video', 'orderby' => $order)); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="lv_item"> <div class="post_thumb"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('thumbnail'); $Fimg = aq_resize($img, 125, 93, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img src="<?php echo eff_post_image(); ?> " width="125" height="93" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img src="<?php echo eff_post_image(); ?> " width="125" height="93" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img src="<?php echo eff_post_image(); ?> " width="125" height="93" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2><a href="<?php the_permalink(); ?> " rel="bookmark"><?php short_title(40); ?> </a></h2> <span class="post_meta"><?php the_time('F d, Y'); ?> </span> </div> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </div> </div> </div> </section> </div> <!--Crousel--> <script> jQuery(document).ready(function($) { //latest vids wrap var vids = $(".lv_item"); for(var i = 0; i < vids.length; i+=4) { vids.slice(i, i+4).wrapAll('<div class="four_items"></div>'); } //Crousel Style1 $('.crousel1_lv').cycle({ prev: '.lv_prev', next: '.lv_next', slideExpr: '.four_items', slideResize: 0, pause: 1, easing: 'swing', <?php if (is_rtl()) { ?> fx: 'scrollRight', <?php } else { ?> fx: 'scrollHorz', <?php } ?> cleartype: true, cleartypeNoBg: true, speed: <?php echo eff_option('lv_speed'); ?> , <?php if (eff_option('lv_auto') != false) { ?> timeout:<?php echo eff_option('lv_auto_time'); ?> , <?php } else { ?> timeout:0, <?php } ?> }); }); </script> <?php }
$query = new WP_Query($args); while ($query->have_posts()) { $query->the_post(); echo '<div class="sticky-post">'; echo '<div class="cat-title">'; echo '<p><a href="' . get_category_link(2) . '">News</a></p>'; echo '</div>'; echo '<a href="' . esc_url(get_permalink()) . '" class="visible-lg">'; the_post_thumbnail('medium-width'); echo '</a>'; echo '<a href="' . esc_url(get_permalink()) . '" class="hidden-lg">'; the_post_thumbnail('full-width'); echo '</a>'; echo '<div class="description">'; echo '<div class="title">'; echo '<a href="' . esc_url(get_permalink()) . '">' . short_title("...", 8) . '</a>'; echo '</div>'; echo '<small class="author"><i>'; the_author(); echo '</i></small>'; echo '<small class="date"><i>'; the_time('F j, Y'); echo '</i></small>'; custom_excerpt('semi_medium_excerpt_length', 'ellipsis'); echo '<a href="' . esc_url(get_permalink()) . '" class="readmore text-center">Read More ›</a>'; echo '</div>'; echo '</div>'; } wp_reset_query(); } ?>
} ?> <h2> <a href="<?php the_permalink(); ?> " id="post-<?php the_ID(); ?> " title="<?php printf(__('%s', 'max-magazine'), the_title_attribute('echo=0')); ?> " rel="bookmark"> <?php echo short_title($get_the_ID); ?> </a> </h2> <div class="post-meta" > <span class='views'> <?php echo '<strong>' . get_PostViews(get_the_ID()), '</strong> Visualizzazioni' . ''; ?> </span> </div> </div><!--right--> </div><!--post image-->
$project_url = get_post_meta($post->ID, 'themnific_project_url', true); $project_description = get_post_meta($post->ID, 'themnific_project_description', true); ?> <div class="item_carousel item_height2"> <div class="imgwrap"> <div class="cats2"> <h3><a href="<?php the_permalink(); ?> "><?php echo short_title('...', 8); ?> </a></h3> <?php $terms_of_post = get_the_term_list($post->ID, 'categories', '', ' • ', ' ', ''); echo $terms_of_post; ?> </div> <a href="<?php the_permalink(); ?> ">
" > <?php the_post_thumbnail('mag', array('class' => "grayscale grayscale-fade")); ?> </a> <?php } ?> <h4><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo tmnf_icon(); ?> <?php echo short_title('...', 12); ?> </a></h4> <?php tmnf_meta_date(); ?> </div>
?> </h2> </div> <ul> <?php query_posts(array('showposts' => 10)); if (have_posts()) { while (have_posts()) { the_post(); ?> <li> <a href="<?php the_permalink(); ?> "><?php short_title(40); ?> </a> </li> <?php } ?> <?php } else { ?> <!-- Else in here --> <?php } ?> <?php wp_reset_query();
function mom_ajax_search() { // stay away from bad guys $nonce = $_POST['nonce']; if (!wp_verify_nonce($nonce, 'ajax-nonce')) { die('Nope!'); } $posts_query = new WP_Query(array('s' => $_POST['term'], 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 5)); if ($posts_query->have_posts()) { ?> <h4 class="search-results-title"><?php _e('Posts', 'framework'); ?> </h4> <?php // The Loop while ($posts_query->have_posts()) { $posts_query->the_post(); ?> <a href="<?php the_permalink(); ?> " <?php post_class('ajax-search-item'); ?> > <?php if (mom_post_image() != false) { mom_post_image_full('search-thumb'); } else { ?> <span class="post_format"></span> <?php } if (is_rtl()) { ?> <h2><?php short_title(30); ?> </h2> <?php } else { ?> <h2><?php short_title(25); ?> </h2> <?php } ?> <span><?php the_time('F j, Y'); ?> </span> </a> <?php } //end while } wp_reset_postdata(); $pages_query = new WP_Query(array('s' => $_POST['term'], 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => 5)); if ($pages_query->have_posts()) { ?> <h4 class="search-results-title"><?php _e('Pages', 'framework'); ?> </h4> <?php // The Loop while ($pages_query->have_posts()) { $pages_query->the_post(); ?> <a href="<?php the_permalink(); ?> " <?php post_class('ajax-search-item'); ?> > <?php if (mom_post_image() != false) { mom_post_image_full('search-thumb'); } else { ?> <span class="post_format"></span> <?php } if (is_rtl()) { ?> <h2><?php short_title(30); ?> </h2> <?php } else { ?> <h2><?php short_title(25); ?> </h2> <?php } ?> <span><?php the_time('F j, Y'); ?> </span> </a> <?php } //end while } wp_reset_postdata(); exit; }
function widget($args, $instance) { extract($args); /* User-selected settings. */ $title = apply_filters('widget_title', $instance['title']); $orderby = $instance['orderby']; $count = $instance['count']; /* Before widget (defined by themes). */ echo $before_widget; /* Title of widget (before and after defined by themes). */ if ($title) { echo $before_title . $title . $after_title; } global $post; ?> <?php if ($orderby == 'Popular') { ?> <ul class="post_list"> <?php query_posts(array("ignore_sticky_posts" => 1, 'showposts' => $count, "orderby" => "comment_count")); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li> <div class="post_thumb"> <?php if (eff_post_image() == false) { } else { ?> <a href="<?php the_permalink(); ?> "> <?php $thumb = eff_post_image(); $ntImage = aq_resize($thumb, 50, 50, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img src="<?php echo $ntImage; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> <?php } ?> </a> </div> <h2><a href="<?php the_permalink(); ?> "><?php short_title(35); ?> </a></h2> <span class="post_meta"><?php the_time('F d, Y'); ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a></span> </li> <?php } ?> <?php } else { ?> <!-- Else in here --> <?php } ?> <?php wp_reset_query(); ?> </ul> <?php } elseif ($orderby == 'Random') { ?> <ul class="post_list"> <?php query_posts(array("ignore_sticky_posts" => 1, 'showposts' => $count, "orderby" => "rand")); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li> <div class="post_thumb"> <?php if (eff_post_image() == false) { } else { ?> <a href="<?php the_permalink(); ?> "> <?php $thumb = eff_post_image(); $ntImage = aq_resize($thumb, 50, 50, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img src="<?php echo $ntImage; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> <?php } ?> </a> </div> <h2><a href="<?php the_permalink(); ?> "><?php short_title(35); ?> </a></h2> <span class="post_meta"><?php the_time('F d, Y'); ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a></span> </li> <?php } ?> <?php } else { ?> <!-- Else in here --> <?php } ?> <?php wp_reset_query(); ?> </ul> <?php } elseif ($orderby == 'Recent') { ?> <ul class="post_list"> <?php query_posts(array("ignore_sticky_posts" => 1, 'showposts' => $count)); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li> <div class="post_thumb"> <?php if (eff_post_image() == false) { } else { ?> <a href="<?php the_permalink(); ?> "> <?php $thumb = eff_post_image(); $ntImage = aq_resize($thumb, 50, 50, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img src="<?php echo $ntImage; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> <?php } ?> </a> </div> <h2><a href="<?php the_permalink(); ?> "><?php short_title(35); ?> </a></h2> <span class="post_meta"><?php the_time('F d, Y'); ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a></span> </li> <?php } ?> <?php } else { ?> <!-- Else in here --> <?php } ?> <?php wp_reset_query(); ?> </ul> <?php } ?> <?php /* After widget (defined by themes). */ echo $after_widget; }
function widget($args, $instance) { extract($args); $title = $instance['title']; $post_type = 'all'; $categories = $instance['categories']; $posts = $instance['posts']; echo $before_widget; ?> <?php $post_types = get_post_types(); unset($post_types['page'], $post_types['attachment'], $post_types['revision'], $post_types['nav_menu_item']); if ($post_type == 'all') { $post_type_array = $post_types; } else { $post_type_array = $post_type; } ?> <h2 class="widget widget-single inn"><a href="<?php echo esc_url(get_category_link($categories)); ?> "><?php echo esc_html($title); ?> </a></h2> <?php $recent_posts = new WP_Query(array('showposts' => $posts, 'cat' => $categories)); ?> <ul> <?php while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="fblock"> <?php if (has_post_thumbnail()) { ?> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('tabs', array('title' => "")); ?> </a> <?php } ?> <h3><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php echo tmnf_icon(); ?> <?php echo short_title('...', 11); ?> </a></h3> <p class="meta"> <?php the_time(get_option('date_format')); ?> • <?php comments_popup_link(__('Comments (0)', 'themnific'), __('Comments (1)', 'themnific'), __('Comments (%)', 'themnific')); ?> </p> </li> <?php } ?> </ul> <?php echo $after_widget; }
function widget($args, $instance) { global $wpdb; extract($args); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title']); $tab1 = $instance['tab1']; $tab2 = $instance['tab2']; $tab3 = $instance['tab3']; $tab4 = $instance['tab4']; /* Before widget (defined by themes). */ /* Display the widget title if one was input (before and after defined by themes). */ //Randomize tab order in a new array $tab = array(); ?> <div class="widget"> <section class="section_widget"> <div id="tabs_widget"> <ul class="tabs_widget_head"> <li><a href="#tab_popular"><?php _e('Popular', 'framework'); ?> </a></li> <li><a href="#tab_recent"><?php _e('Recent', 'framework'); ?> </a></li> <li><a href="#tab_comments"><?php _e('Comments', 'framework'); ?> </a></li> </ul> <div id="tab_popular" class="tabs_widget_content"> <div> <ul> <?php query_posts(array("ignore_sticky_posts" => 1, 'showposts' => 4, "orderby" => "comment_count")); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li> <div> <div class="post_thumb2"> <a href="<?php the_permalink(); ?> "> <?php $thumb = eff_post_image(); $ntImage = aq_resize($thumb, 80, 68, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img src="<?php echo eff_post_image(); ?> " width="85" height="68" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img src="<?php echo eff_post_image(); ?> " width="85" height="68" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img src="<?php echo eff_post_image(); ?> " width="85" height="68" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img src="<?php echo $ntImage; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> </div> <h2><a href="<?php the_permalink(); ?> "><?php short_title(50); ?> </a></h2> <span class="post_meta"><?php the_time('F d, Y'); ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a></span></span> </li> <?php } ?> <?php } else { ?> <!-- Else in here --> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </div> <div id="tab_recent" class="tabs_widget_content"> <div> <ul> <?php query_posts(array("ignore_sticky_posts" => 1, 'showposts' => 4)); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li> <div> <div class="post_thumb2"> <a href="<?php the_permalink(); ?> "> <?php $thumb = eff_post_image(); $ntImage = aq_resize($thumb, 80, 72, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img src="<?php echo eff_post_image(); ?> " width="80" height="68" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img src="<?php echo eff_post_image(); ?> " width="80" height="68" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img src="<?php echo eff_post_image(); ?> " width="80" height="68" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img src="<?php echo $ntImage; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> </div> <h2><a href="<?php the_permalink(); ?> "><?php short_title(50); ?> </a></h2> <span class="post_meta"><?php the_time('F d, Y'); ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a></span></span> </li> <?php } ?> <?php } else { ?> <!-- Else in here --> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </div> <div id="tab_comments" class="tabs_widget_content"> <div> <ul> <?php global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved, comment_type, comment_author_url, SUBSTRING(comment_content,1,70) AS com_excerpt FROM {$wpdb->comments} LEFT OUTER JOIN {$wpdb->posts} ON ({$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 4"; $comments = $wpdb->get_results($sql); foreach ($comments as $comment) { ?> <li> <div> <a href="<?php echo get_permalink($comment->ID); ?> #comment-<?php echo $comment->comment_ID; ?> " title="<?php echo strip_tags($comment->comment_author); ?> <?php _e('on ', 'framework'); echo $comment->post_title; ?> "> <?php echo get_avatar($comment, '72', $default = eff_option('custom_gravatar')); ?> </a> </div> <h2><a href="<?php echo get_permalink($comment->ID); ?> #comment-<?php echo $comment->comment_ID; ?> " title="<?php echo strip_tags($comment->comment_author); ?> <?php _e('on ', 'framework'); echo $comment->post_title; ?> "><?php echo strip_tags($comment->comment_author); ?> : <?php $excerpt = $comment->com_excerpt; echo wp_html_excerpt($excerpt, 75); ?> ... </a></h2> </li> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </div> </div> </section> </div> <?php /* After widget (defined by themes). */ }
<div id="da-slider" class="da-slider"> <?php $args = array('post_type' => 'product', 'posts_per_page' => 10, 'product_cat' => 'Appliances', 'orderby' => 'rand'); $loop = new WP_Query($args); while ($loop->have_posts()) { $loop->the_post(); global $product; ?> <div class="da-slide"> <h2><?php echo short_title('...', 3); ?> </h2> <p><?php echo apply_filters('woocommerce_short_description', $post->post_excerpt); ?> </p> <a class="da-link" href="<?php echo get_permalink($loop->post->ID); ?> " title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?> ">더보기</a> <div class="da-img woocommerce"> <?php woocommerce_show_product_sale_flash($post, $product); ?> <?php if (has_post_thumbnail($loop->post->ID)) {
<?php /* * Default Template For Post */ echo '<div class="col-md-5">'; echo '<a href="' . esc_url(get_permalink()) . '" class="visible-lg visible-lg2">'; the_post_thumbnail('square-thumbnail'); echo '</a>'; echo '<a href="' . esc_url(get_permalink()) . '" class="hidden-lg hidden-lg2">'; the_post_thumbnail('full-width'); echo '</a>'; echo '</div>'; echo '<div class="col-md-7 alm-content">'; echo '<div class="content">'; echo '<h2 class="entry-title"> <a href="' . esc_url(get_permalink()) . '">' . short_title("...", 15) . '</a></h2>'; ?> <?php echo '<small class="author"><i>'; the_author(); echo '</i></small>'; ?> <!--/ The Date --> <small class="date" style="margin-left:-4px;"> <i> <?php the_time('F j, Y'); ?> </i> </small>
</p> <ul> <?php $query = new WP_Query(array('posts_per_page' => $count, 'post__in' => $db_posts, 'orderby' => 'post__in', 'no_found_rows' => true, 'cache_results' => false, 'ignore_sticky_posts' => 1)); update_post_thumbnail_cache($query); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); ?> <li itemscope="" itemtype="http://schema.org/Article"> <a href="<?php the_permalink(); ?> " itemprop="url"> <h2 itemprop="name"><?php short_title(47); ?> </h2> <div class="entry-meta"> <time class="entry-date" datetime="<?php the_time('c'); ?> " itemprop="dateCreated"><?php the_time('Y/m/d'); ?> </time> <div class="author-link"> <?php _e('by ', 'framework'); ?> <a itemprop="author" href="<?php
function eff_news_box($num) { ?> <?php $display = eff_option('nb' . $num . '_display'); $cat = eff_option('nb' . $num . '_category'); $tag = eff_option('nb' . $num . '_tag'); $title = eff_option('nb' . $num . '_title'); $style = eff_option('nb' . $num . '_style'); $posts = eff_option('nb' . $num . '_posts'); $eln = eff_option('nb' . $num . '_num'); $tl = eff_option('nb' . $num . '_tl'); $dateformat = eff_option('hp_date_format'); $hpcomment = eff_option('hp_comment'); global $wpdb; $tag_ID = $wpdb->get_var("SELECT * FROM " . $wpdb->terms . " WHERE `name` = '" . $tag . "'"); ?> <?php if ($display == 'cat') { $nb_title = get_cat_name($cat); $nb_link = get_category_link($cat); } elseif ($display == 'tag') { $nb_title = $tag; $nb_link = get_tag_link($tag_ID); } else { $nb_title = $title; $nb_link = ''; } ?> <?php if ($style == 'style2') { ?> <!--News Box 2--> <div class="block cat_<?php echo $cat; ?> "> <div class="block_title"> <div class="title_bg"> <h2><a href="<?php echo $nb_link; ?> "><?php echo $nb_title; ?> </a></h2></div> <span></span> </div> <section class="section_box"> <div class="news_box2"> <div class="first_news" itemscope="" itemtype="http://schema.org/Article"> <?php if ($display == 'cat') { query_posts(array('showposts' => 1, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => 1, 'tag' => $tag)); } else { query_posts(array('showposts' => 1)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="post_thumb"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('newsbox2'); $Fimg = aq_resize($img, 277, 153, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="153" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="153" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="153" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a href="<?php the_permalink(); ?> " itemprop="url" rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> <meta itemprop="interactionCount" content="<?php comments_number('UserComments: 0', 'UserComments: 1', 'UserComments: %'); ?> "> <?php $rt_enable = get_post_meta($post->ID, 'eff_enable_review', true); $rt_style = get_post_meta($post->ID, 'eff_review_style', true); $percent_score = get_post_meta($post->ID, 'eff_rt_final_score', true); $points_score = get_post_meta($post->ID, 'eff_rt_final_score_po', true); $stars_score = get_post_meta($post->ID, 'eff_rt_final_score_stars', true); if ($rt_enable) { if ($rt_style == 'stars') { echo '<span class="rt_nb_rev rt_nb_star"><span class="rt_stars_post" title="' . $percent_score . '%"> <span class="rt_stars_post_rate" style="width:' . $percent_score . '%;"></span> </span></span>'; } if ($rt_style == 'percent') { echo '<span class="rt_nb_rev" title="' . $percent_score . '"> <span class="percent_post">' . $percent_score . '%</span> </span>'; } if ($rt_style == 'points') { echo '<span class="rt_nb_rev" title="' . $points_score . '"> <span class="percent_post">' . $points_score . '</span> </span>'; } } ?> </span> <p> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $eln); ?> ... </p> <a href="<?php the_permalink(); ?> " class="read_more"><?php _e('Read More »', 'framework'); ?> </a> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </div> <ul> <?php if ($display == 'cat') { query_posts(array('showposts' => $posts, 'offset' => 1, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => $posts, 'offset' => 1, 'tag' => $tag)); } else { query_posts(array('showposts' => $posts, 'offset' => 1)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li itemscope="" itemtype="http://schema.org/Article"> <div class="post_thumb"> <a href="<?php the_permalink(); ?> " rel="bookmark"> <?php $img = eff_post_image('small-thumb'); $Fimg = aq_resize($img, 50, 50, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> " rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> <meta itemprop="interactionCount" content="<?php comments_number('UserComments: 0', 'UserComments: 1', 'UserComments: %'); ?> "> </span> </li> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </section> </div> <!--News Box 2--> <?php } elseif ($style == 'style3') { ?> <!--News Box 3--> <div class="block cat_<?php echo $cat; ?> "> <div class="news_box3"> <div class="block_title"> <div class="title_bg"><h2><a href="<?php echo $nb_link; ?> "><?php echo $nb_title; ?> </a></h2></div> <span></span> </div> <section class="section_box"> <div class="content_inner"> <div class="first_news" itemscope="" itemtype="http://schema.org/Article"> <?php if ($display == 'cat') { query_posts(array('showposts' => 1, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => 1, 'tag' => $tag)); } else { query_posts(array('showposts' => 1)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="post_thumb"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('newsbox3'); $Fimg = aq_resize($img, 250, 143, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="250" height="143" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="250" height="143" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="250" height="143" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> " rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> <?php $rt_enable = get_post_meta($post->ID, 'eff_enable_review', true); $rt_style = get_post_meta($post->ID, 'eff_review_style', true); $percent_score = get_post_meta($post->ID, 'eff_rt_final_score', true); $points_score = get_post_meta($post->ID, 'eff_rt_final_score_po', true); $stars_score = get_post_meta($post->ID, 'eff_rt_final_score_stars', true); if ($rt_enable) { if ($rt_style == 'stars') { echo '<span class="rt_nb_rev rt_nb_star"><span class="rt_stars_post" title="' . $percent_score . '%"> <span class="rt_stars_post_rate" style="width:' . $percent_score . '%;"></span> </span></span>'; } if ($rt_style == 'percent') { echo '<span class="rt_nb_rev" title="' . $percent_score . '"> <span class="percent_post">' . $percent_score . '%</span> </span>'; } if ($rt_style == 'points') { echo '<span class="rt_nb_rev" title="' . $points_score . '"> <span class="percent_post">' . $points_score . '</span> </span>'; } } ?> </span> <p> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $eln); ?> ... </p> <a href="<?php the_permalink(); ?> " class="read_more"><?php _e('Read More »', 'framework'); ?> </a> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </div> </div> <ul> <?php if ($display == 'cat') { query_posts(array('showposts' => $posts, 'offset' => 1, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => $posts, 'offset' => 1, 'tag' => $tag)); } else { query_posts(array('showposts' => $posts, 'offset' => 1)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li itemscope="" itemtype="http://schema.org/Article"> <div class="post_thumb"> <a href="<?php the_permalink(); ?> " rel="bookmark"> <?php $img = eff_post_image('small-thumb'); $Fimg = aq_resize($img, 50, 50, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image"src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a itemprop="url"href="<?php the_permalink(); ?> "><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> </span> </li> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </ul> </section> </div> </div> <!--News Box 3--> <?php } elseif ($style == 'style4') { ?> <!--News Box 4--> <div class="block cat_<?php echo $cat; ?> "> <div class="block_title"> <div class="title_bg"><h2><a href="<?php echo $nb_link; ?> "><?php echo $nb_title; ?> </a></h2></div> <span></span> </div> <section class="section_box"> <div class="news_box4"> <div class="content_inner"> <ul> <?php if ($display == 'cat') { query_posts(array('showposts' => $posts, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => $posts, 'tag' => $tag)); } else { query_posts(array('showposts' => $posts)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li itemscope="" itemtype="http://schema.org/Article"> <div class="post_thumb"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('newsbox2'); $Fimg = aq_resize($img, 277, 153, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="153" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="153" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="153" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> " rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> <?php $rt_enable = get_post_meta($post->ID, 'eff_enable_review', true); $rt_style = get_post_meta($post->ID, 'eff_review_style', true); $percent_score = get_post_meta($post->ID, 'eff_rt_final_score', true); $points_score = get_post_meta($post->ID, 'eff_rt_final_score_po', true); $stars_score = get_post_meta($post->ID, 'eff_rt_final_score_stars', true); if ($rt_enable) { if ($rt_style == 'stars') { echo '<span class="rt_nb_rev rt_nb_star"><span class="rt_stars_post" title="' . $percent_score . '%"> <span class="rt_stars_post_rate" style="width:' . $percent_score . '%;"></span> </span></span>'; } if ($rt_style == 'percent') { echo '<span class="rt_nb_rev" title="' . $percent_score . '"> <span class="percent_post">' . $percent_score . '%</span> </span>'; } if ($rt_style == 'points') { echo '<span class="rt_nb_rev" title="' . $points_score . '"> <span class="percent_post">' . $points_score . '</span> </span>'; } } ?> </span> <p> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $eln); ?> ... </p> <a href="<?php the_permalink(); ?> " class="read_more"><?php _e('Read More »', 'framework'); ?> </a> </li> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </div> </section> </div> <!--News Box 4--> <?php } elseif ($style == 'style5') { ?> <!--News Box 5--> <div class="block cat_<?php echo $cat; ?> "> <div class="block_title"> <div class="title_bg"><h2><a href="<?php echo $nb_link; ?> "><?php echo $nb_title; ?> </a></h2></div> <span></span> </div> <div class="news_box5"> <?php if ($display == 'cat') { query_posts(array('showposts' => $posts, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => $posts, 'tag' => $tag)); } else { query_posts(array('showposts' => $posts)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="section_box_2"> <div class="box5_inner" itemscope="" itemtype="http://schema.org/Article"> <div class="post_thumb2"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('newsbox5'); $Fimg = aq_resize($img, 306, 222, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="306" height="222" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="306" height="222" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="306" height="222" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <div class="box5_content"> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> " rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> <?php $rt_enable = get_post_meta($post->ID, 'eff_enable_review', true); $rt_style = get_post_meta($post->ID, 'eff_review_style', true); $percent_score = get_post_meta($post->ID, 'eff_rt_final_score', true); $points_score = get_post_meta($post->ID, 'eff_rt_final_score_po', true); $stars_score = get_post_meta($post->ID, 'eff_rt_final_score_stars', true); if ($rt_enable) { if ($rt_style == 'stars') { echo '<span class="rt_nb_rev rt_nb_star"><span class="rt_stars_post" title="' . $percent_score . '%"> <span class="rt_stars_post_rate" style="width:' . $percent_score . '%;"></span> </span></span>'; } if ($rt_style == 'percent') { echo '<span class="rt_nb_rev" title="' . $percent_score . '"> <span class="percent_post">' . $percent_score . '%</span> </span>'; } if ($rt_style == 'points') { echo '<span class="rt_nb_rev" title="' . $points_score . '"> <span class="percent_post">' . $points_score . '</span> </span>'; } } ?> </span> <p> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $eln); ?> ... </p> <a href="<?php the_permalink(); ?> " class="read_more"><?php _e('Read More »', 'framework'); ?> </a> </div> </div> </div> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </div> </div> <!--News Box 5--> <?php } else { ?> <!--News Box 1--> <div class="block cat_<?php echo $cat; ?> "> <div class="block_title"> <div class="title_bg"><h2><a href="<?php echo $nb_link; ?> "><?php echo $nb_title; ?> </a></h2></div> <span></span> </div> <section class="section_box"> <div class="news_box1"> <div class="first_news" itemscope="" itemtype="http://schema.org/Article"> <?php if ($display == 'cat') { query_posts(array('showposts' => 1, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => 1, 'tag' => $tag)); } else { query_posts(array('showposts' => 1)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="post_thumb"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('newsbox1'); $Fimg = aq_resize($img, 277, 147, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="147" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="147" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="277" height="147" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> " rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> <?php $rt_enable = get_post_meta($post->ID, 'eff_enable_review', true); $rt_style = get_post_meta($post->ID, 'eff_review_style', true); $percent_score = get_post_meta($post->ID, 'eff_rt_final_score', true); $points_score = get_post_meta($post->ID, 'eff_rt_final_score_po', true); $stars_score = get_post_meta($post->ID, 'eff_rt_final_score_stars', true); if ($rt_enable) { if ($rt_style == 'stars') { echo '<span class="rt_nb_rev rt_nb_star"><span class="rt_stars_post" title="' . $percent_score . '%"> <span class="rt_stars_post_rate" style="width:' . $percent_score . '%;"></span> </span></span>'; } if ($rt_style == 'percent') { echo '<span class="rt_nb_rev" title="' . $percent_score . '"> <span class="percent_post">' . $percent_score . '%</span> </span>'; } if ($rt_style == 'points') { echo '<span class="rt_nb_rev" title="' . $points_score . '"> <span class="percent_post">' . $points_score . '</span> </span>'; } } ?> </span> <p> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $eln); ?> ...<a href="<?php the_permalink(); ?> " class="read_more"><?php _e('Read More »', 'framework'); ?> </a> </p> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </div> <ul> <?php if ($display == 'cat') { query_posts(array('showposts' => $posts, 'offset' => 1, 'cat' => $cat)); } elseif ($display == 'tag') { query_posts(array('showposts' => $posts, 'offset' => 1, 'tag' => $tag)); } else { query_posts(array('showposts' => $posts, 'offset' => 1)); } ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <li itemscope="" itemtype="http://schema.org/Article"> <div class="post_thumb"> <a href="<?php the_permalink(); ?> "> <?php $img = eff_post_image('small-thumb'); $Fimg = aq_resize($img, 50, 50, true); ?> <?php if (strpos(eff_post_image(), 'youtube')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'vimeo')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } elseif (strpos(eff_post_image(), 'dailymotion')) { ?> <img itemprop="image" src="<?php echo eff_post_image(); ?> " width="50" height="50" alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } else { ?> <img itemprop="image" src="<?php echo $Fimg; ?> " alt="<?php the_title(); ?> " title="<?php the_title(); ?> " /> <?php } ?> </a> </div> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> " rel="bookmark"><?php if ($tl == true) { short_title($tl); } else { the_title(); } ?> </a></h2> <span class="post_meta"><?php the_time($dateformat); if ($hpcomment == true) { ?> <a href="<?php the_permalink(); ?> " class="comments"><?php comments_number('(0) Comments', '(1) Comment', '(%) Comments'); ?> </a><?php } ?> </span> </li> <?php } } else { ?> <!--else here--> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </section> </div> <!--News Box 1--> <?php } }
function mom_feature_slider($atts, $content = null) { global $unique_posts; global $do_unique_posts; extract(shortcode_atts(array('id' => '', 'type' => 'def', 'display' => 'latest', 'cats' => '', 'tag' => '', 'specific' => '', 'orderby' => '', 'number_of_posts' => '', 'animation' => '', 'animationin' => '', 'animationout' => '', 'autoplay' => '', 'timeout' => '4000', 'cap' => 'yes', 'exc' => '', 'class' => '', 'num_bullets' => '', 'bullets_event' => ''), $atts)); if ($id == '') { static $id = 75; $id++; } $specific = explode(',', $specific); if ($type == 'cat') { wp_enqueue_script('cycle'); wp_enqueue_script('nicescroll'); } if ($cats == 'Select a Category') { $cats = ''; } if ($tag == 'Select a Tag') { $tag = ''; } $output = get_transient('mom_feature_sliders' . $id . $type . $display . $cats . $tag . $class . $orderby); if ($orderby == 'rand') { $output = false; } if ($output == false) { ob_start(); if ($num_bullets == 'yes') { $class .= ' numbers_bullets'; } if (is_rtl()) { $rtl = 'true'; } else { $rtl = 'false'; } if ($animation == 'fade') { $animationout = 'fadeOut'; $animationin = ''; } elseif ($animation == 'slide') { $animationout = ''; $animationin = ''; } elseif ($animation == 'flip') { $animationout = 'slideOutDown'; $animationin = 'flipInX'; } if ($autoplay == 'no') { $autoplay = 'false'; } else { $autoplay = 'true'; } $post_meta_hp = mom_option('post_meta_hp'); if ($post_meta_hp == 1) { $post_head = mom_option('post_head'); $post_head_date = mom_option('post_head_date'); } else { $post_head = 1; $post_head_date = 1; } ?> <?php if ($type == 'slider2') { ?> <!-- Full width Slider 2 --> <section class="section <?php echo $class; ?> feature_slider_<?php echo $id; ?> "><!--def slider--> <div class="slider2 clearfix"> <!-- slider2 wrap --> <?php if ($display == 'cat') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'cat' => $cats, 'posts_per_page' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'tag') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'tag' => $tag, 'posts_per_page' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'specific') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'post__in' => $specific, 'posts_per_page' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } else { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); if ($unique_posts) { $do_unique_posts[] = get_the_ID(); } ?> <?php if (mom_post_image() != false) { ?> <div class="def-slider-item big-slider2" itemscope="" itemtype="http://schema.org/Article"> <a itemprop="url" href="<?php the_permalink(); ?> "> <?php mom_post_image_full('catslider-thumb'); ?> </a> <?php if ($cap != 'no') { ?> <div class="def-slider-cap"> <div class="def-slider-title"> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> </div> <?php if ($exc != false) { ?> <p class="def-slider-desc"> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $exc); ?> ... </p> <?php } ?> </div> <?php } ?> </div> <?php } ?> <?php } } else { } wp_reset_postdata(); ?> <?php if ($display == 'cat') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'cat' => $cats, 'posts_per_page' => 3, 'offset' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'tag') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'tag' => $tag, 'posts_per_page' => 3, 'offset' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'specific') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'post__in' => $specific, 'posts_per_page' => 3, 'offset' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } else { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'offset' => 2, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } update_post_thumbnail_cache($query); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); if ($unique_posts) { $do_unique_posts[] = get_the_ID(); } ?> <?php if (mom_post_image() != false) { ?> <div class="def-slider-item small-slider2" itemscope="" itemtype="http://schema.org/Article"> <a itemprop="url" href="<?php the_permalink(); ?> "><?php mom_post_image_full('catslider-thumb'); ?> </a> <?php if ($cap != 'no') { ?> <div class="def-slider-cap"> <div class="def-slider-title"> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> </div> <?php if ($exc != false) { ?> <p class="def-slider-desc"> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $exc); ?> ... </p> <?php } ?> </div> <?php } ?> </div> <?php } ?> <?php } } else { } wp_reset_postdata(); ?> </div><!-- slider2 wrap --> </section> <?php } elseif ($type == 'cat') { ?> <section class="section clearfix <?php echo $class; ?> feature_slider_<?php echo $id; ?> feature-cat-slider-wrap"> <div class="fc_nav"> <a class="fc_prev" href="#"><span class="enotype-icon-arrow-left7"></span></a> <a class="fc_next" href="#"><span class="enotype-icon-uniE6D8"></span></a> </div> <div class="cat-slider feature-cat-slider"> <div class="cat-slider-wrap" data-cat_timeout="<?php echo $timeout; ?> "> <?php $parent_posts = ''; if ($display == 'cat') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'cat' => $cats, 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'tag') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'tag' => $tag, 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'specific') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'post__in' => $specific, 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } else { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } update_post_thumbnail_cache($query); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); if ($unique_posts) { $do_unique_posts[] = get_the_ID(); } $parent_posts[] = get_the_ID(); ?> <?php if (mom_post_image() != false) { ?> <div class="cat-slider-item" itemscope="" itemtype="http://schema.org/Article"> <?php $layout = mom_option('main_layout'); $site_width = mom_option('site_width'); $thumb_size = 'catslider1-thumb'; if (strpos($layout, 'both') === false) { $thumb_size = 'catslider-thumb'; if ($site_width == 'wide') { $thumb_size = 'catslider1-thumb'; } } if ($layout == 'fullwidth' && strpos(mom_option('main_layout'), 'both') !== false) { $thumb_size = 'catslider1-thumb'; } ?> <div class="feature-cs-cap"> <?php $category = get_the_category(); if ($category) { $cat_data = get_option("category_" . $category[0]->term_id); $cat_color = isset($cat_data['color']) ? $cat_data['color'] : ''; echo '<div class="cat-label" style="background:' . $cat_color . ';"><a href="' . get_category_link($category[0]->term_id) . '" title="' . sprintf(__("View all posts in %s", 'framework'), $category[0]->name) . '" ' . '>' . $category[0]->name . '</a></div>'; } ?> <h2 itemprop="name"><a href="<?php the_permalink(); ?> " itemprop="url"><?php the_title(); ?> </a></h2> <?php if ($exc != '') { ?> <p class="feature-cs-desc"> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $exc); ?> ... </p> <?php } ?> </div> <a href="<?php the_permalink(); ?> "> <?php echo mom_post_image_full($thumb_size); ?> </a> </div> <?php } } } else { ?> <?php } ?> <?php wp_reset_postdata(); ?> </div> <div class="cat-slider-nav"> <ul> <?php $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $number_of_posts, 'orderby' => 'post__in', 'no_found_rows' => true, 'cache_results' => false, 'post__in' => $parent_posts)); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); if ($unique_posts) { $do_unique_posts[] = get_the_ID(); } ?> <?php if (mom_post_image() != false) { ?> <li itemscope="" itemtype="http://schema.org/Article"> <a href="<?php the_permalink(); ?> " itemprop="url"> <h2 itemprop="name"><?php short_title(47); ?> </h2> <div class="entry-meta"> <time class="entry-date" datetime="<?php the_time('c'); ?> " itemprop="dateCreated"><?php the_time('Y/m/d'); ?> </time> <div class="author-link"> <?php _e('by ', 'framework'); ?> <a itemprop="author" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?> " rel="author"><?php echo get_the_author(); ?> </a> </div> </div> </a> </li> <?php } ?> <?php } } else { ?> <?php } wp_reset_postdata(); ?> </ul> </div> </div> </section> <?php } else { ?> <!-- Default slider --> <section class="section <?php echo $class; ?> feature_slider_<?php echo $id; ?> "><!--def slider--> <div class="def-slider"> <div class="def-slider-wrap momizat-custom-slider" data-srtl="<?php echo $rtl; ?> " data-animate_out='<?php echo $animationout; ?> ' data-animate_in="<?php echo $animationin; ?> " data-autoplay="<?php echo $autoplay; ?> " data-timeout="<?php echo $timeout; ?> " data-bullets_event="<?php echo $bullets_event; ?> "> <?php $count = 1; if ($display == 'cat') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'cat' => $cats, 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'tag') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'tag' => $tag, 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } elseif ($display == 'specific') { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'post__in' => $specific, 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } else { $query = new WP_Query(array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $number_of_posts, 'orderby' => $orderby, 'no_found_rows' => true, 'cache_results' => false, 'post__not_in' => $do_unique_posts)); } update_post_thumbnail_cache($query); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); if ($unique_posts) { $do_unique_posts[] = get_the_ID(); } ?> <?php if (mom_post_image() != false) { ?> <div class="def-slider-item" data-dot="<?php echo $count; ?> " itemscope="" itemtype="http://schema.org/Article"> <a itemprop="url" href="<?php the_permalink(); ?> "> <?php $thumbsize = 'slider-thumb'; if (mom_option('site_width') == 'wide') { $classes = get_body_class(); if (in_array('right-sidebar', $classes) || in_array('left-sidebar', $classes)) { $thumbsize = 'big-thumb-hd'; } } mom_post_image_full($thumbsize); ?> </a> <?php if ($cap != 'no') { ?> <div class="def-slider-cap"> <div class="def-slider-title"> <h2 itemprop="name"><a itemprop="url" href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> </div> <?php if ($exc != false) { ?> <p class="def-slider-desc"> <?php global $post; $excerpt = $post->post_excerpt; if ($excerpt == '') { $excerpt = get_the_content(''); } echo wp_html_excerpt(strip_shortcodes($excerpt), $exc, '...'); ?> </p> <?php } ?> </div> <?php } ?> </div> <?php } ?> <?php $count++; } } else { } wp_reset_postdata(); ?> </div> </div> </section><!--def slider--> <?php } ?> <!-- End Slider type --> <?php $output = ob_get_contents(); ob_end_clean(); set_transient('mom_feature_sliders' . $id . $type . $display . $cats . $tag . $class . $orderby, $output, 60 * 60 * 24); } return $output; }
<?php $posttags = get_the_tags(); $count = 0; $separator = ', '; $output = ''; if (!empty($posttags)) { foreach ($posttags as $posttag) { $count++; if ($count <= 2) { $output .= '<a class="post-tag" href="' . esc_url(get_tag_link($posttag->term_id)) . '" alt="' . esc_attr(sprintf(__('View all posts in %s', 'textdomain'), $posttag->name)) . '">' . esc_html($posttag->name) . '</a>' . $separator; } } echo trim($output, $separator); } ?> </div> <a class="post-title" href="<?php the_permalink(); ?> "><?php echo short_title('...', 70); ?> </a> <a class="tertiaryLink tertiaryLinkDark" role="button" href="<?php the_permalink(); ?> ">Read Article<?php include get_template_directory() . '/images/arrow_link.svg'; ?> </a> </div>
<div class="mag-small"> <a class="meta" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "> <?php echo short_title('...', 15); ?> <?php echo tmnf_icon(); ?> </a> </div>
} else { } ?> <?php } ?> <div class="item_inn tranz"> <h2 class="posttitle"><a href="<?php tmnf_permalink(); ?> "><?php echo short_title('...', 20); ?> </a></h2> <?php tmnf_meta_cat(); tmnf_meta_date(); ?> <div class="clearfix"></div> <p class="teaser"><?php echo themnific_excerpt(get_the_excerpt(), '350'); ?> </p>
" title="<?php the_title(); ?> "> <?php the_post_thumbnail('thumbnail'); ?> </a> </aside> <article> <h3 class="entry-title"> <a href="<?php the_permalink(); ?> "><?php short_title('', '...', true, '25'); ?> </a> </h3> <p><?php the_excerpt(); ?> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><span class="btn blue-btn">Continue Reading »</span></a> </p> </article>
function the_breadcrumb() { if (!is_home()) { echo '<a href="' . home_url() . '">'; echo '<i class="fa fa-home"></i> '; echo "</a> » "; if (is_category() || is_single()) { the_category(', '); if (is_single()) { echo " » "; echo short_title('...', 6); } } elseif (is_page()) { echo the_title(); } } }
the_permalink(); ?> " title="<?php the_title(); ?> "> <?php the_post_thumbnail('large'); ?> </a> <h3 class="entry-title"> <a href="<?php the_permalink(); ?> "><?php short_title('', '', true, '0'); ?> </a> </h3> <p><?php echo substr(get_the_excerpt(), 0, 120); ?> [...]<br> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><span class="btn blue-btn breath">Continue Reading »</span></a> </p>
?> <div class="flexinside"> <div class="container"> <div class="flexinside-inn tranz"> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> <?php tmnf_meta_cat(); tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <p class="teaser tranz"><?php echo themnific_excerpt(get_the_excerpt(), '160');
} else { ?> <div class="container"> <?php if ($intro) { ?> <h2 class="head" style="color:<?php echo $heading_color; ?> ;"><?php echo short_title('...', 9); ?> </h2> <p class="section_text" style="color:<?php echo $heading_color; ?> ;"><?php echo $intro; ?> </p> <div class="hrlineB"></div> <?php } ?>
function block($instance) { extract($instance); $title = $instance['title']; $post_type = 'all'; $categories = $instance['categories']; $post_types = get_post_types(); unset($post_types['page'], $post_types['attachment'], $post_types['revision'], $post_types['nav_menu_item']); if ($post_type == 'all') { $post_type_array = $post_types; } else { $post_type_array = $post_type; } ?> <?php if ($title == "") { } else { ?> <h2 class="widget"><a href="<?php echo get_category_link($categories); ?> "><?php echo esc_attr($title); ?> </a></h2> <?php } ?> </div></div></div> <div class="clearfix"></div> <div class="maso <?php if ($offset == 1) { echo 'nav-offset'; } else { } ?> <?php if ($right_lay == 1) { echo 'right-layout'; } else { } ?> "> <ul class="maso-inn" > <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso1 item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('horiz', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_cat(); tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'offset' => 1, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso2 item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('horiz', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_cat(); tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'offset' => 2, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso3 masosmall item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('small', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'offset' => 3, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso4 masosmall item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('small', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'offset' => 4, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso5 masosmall item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('small', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'offset' => 5, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso6 masosmall item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('vert', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> <?php $recent_posts = new WP_Query(array('showposts' => 1, 'cat' => $categories, 'offset' => 6, 'ignore_sticky_posts' => 1)); while ($recent_posts->have_posts()) { $recent_posts->the_post(); ?> <li class="maso7 masosmall item"> <div class="imgwrap"> <?php echo tmnf_ratings(); ?> <a class="imglink" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> " > <?php the_post_thumbnail('vert', array('class' => "tranz grayscale grayscale-fade")); ?> </a> </div> <div class="masoinside tranz"><span class="bg tranz"></span> <?php tmnf_meta_date(); tmnf_meta_counter(); ?> <div class="clearfix"></div> <h2><a href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 16); ?> </a></h2> </div> </li> <?php } ?> </ul> </div> <div class="container builder woocommerce"><div> <div> <?php wp_reset_query(); ?> <?php }
<?php tmnf_meta_date(); ?> </div> <?php } else { ?> <a class="meta" href="<?php tmnf_permalink(); ?> " title="<?php the_title(); ?> "><?php echo short_title('...', 11); ?> </a> <?php tmnf_meta_date(); ?> <?php } ?> </div>
foreach ($nextPost as $post) { setup_postdata($post); ?> <div class="post-next item tranz"> <small><a class="next" href="<?php the_permalink(); ?> ">Next Story »</a></small> <a href="<?php the_permalink(); ?> "><?php the_post_thumbnail('thumbnail', array('class' => "grayscale grayscale-fade")); ?> </a> <a class="meta" href="<?php the_permalink(); ?> "><?php echo short_title('...', 10); ?> </a> </div> <?php wp_reset_postdata(); } //end foreach } // end if ?> </div>
?> " <?php post_class(); ?> > <div class="feature-thumb"> <p class="icon"> </p> </div> <div class="feature-content"> <h2 class="feature-title"> <a href="<?php the_permalink(); ?> "><?php short_title('...', 45); ?> </a> </h2> <?php the_excerpt(); ?> </div> </div> <?php } } ?> </div> </div>
<?php the_post_thumbnail('tabs', array('title' => "")); ?> </a> <?php } ?> <a class="tab-title" href="<?php the_permalink(); ?> "><?php echo short_title('...', 14); ?> </a> <p class="meta"> <?php the_time(get_option('date_format')); ?> • <?php comments_popup_link(__('Comments (0)', 'themnific'), __('Comments (1)', 'themnific'), __('Comments (%)', 'themnific')); ?> </p>
echo '<div class="bigslider">'; if (has_post_thumbnail()) { the_post_thumbnail(array($defaultoptions['bigslider-thumb-width'], $defaultoptions['bigslider-thumb-height'])); } else { if (isset($defaultbildsrc) && strlen(trim($defaultbildsrc)) > 2) { echo '<img src="' . $defaultbildsrc . '" width="' . $defaultoptions['bigslider-thumb-width'] . '" height="' . $defaultoptions['bigslider-thumb-height'] . '" alt="">'; } else { $randombild = array_rand($defaultbilder_liste, 2); echo '<img src="' . $defaultbilder_liste[$randombild[0]]['src'] . '" width="' . $defaultoptions['bigslider-thumb-width'] . '" height="' . $defaultoptions['bigslider-thumb-height'] . '" alt="">'; } } echo '<div class="caption"><p class="bebas">' . $subtitle . '</p>'; echo "<h3><a href="; the_permalink(); echo ">"; echo short_title('…', $options['teaser-title-words'], $options['teaser-title-maxlength']); echo "</a></h3></div>"; echo "</div>"; } else { echo '<div class="textslider">'; if (has_post_thumbnail()) { the_post_thumbnail(array($defaultoptions['smallslider-thumb-width'], $defaultoptions['smallslider-thumb-height'])); } else { if (isset($defaultbildsrc) && strlen(trim($defaultbildsrc)) > 2) { echo '<img src="' . $defaultbildsrc . '" width="' . $defaultoptions['smallslider-thumb-width'] . '" height="' . $defaultoptions['smallslider-thumb-height'] . '" alt="">'; } else { $randombild = array_rand($defaultbilder_liste, 2); echo '<img src="' . $defaultbilder_liste[$randombild[0]]['src'] . '" width="' . $defaultoptions['smallslider-thumb-width'] . '" height="' . $defaultoptions['smallslider-thumb-height'] . '" alt="">'; } } echo "<h3><a href=";
function tmnf_breadcrumbs() { if (!is_home()) { echo '<a href="' . home_url() . '">'; echo '<i class="icon-home"></i> '; echo "</a> <i class='fa fa-angle-right'></i>\r\n "; if (is_category() || is_single()) { the_category(', '); if (is_single()) { echo " <i class='fa fa-angle-right'></i> "; echo short_title('...', 16); } } elseif (is_page()) { echo the_title(); } } }