function widget($args, $instance) { global $is_IE; ?> <div class="search-block-large widget"> <form method="get" action="<?php echo home_url(); ?> /"> <button class="search-button" type="submit" value="<?php if (!$is_IE) { _eti('Search', 'tie'); } ?> "><i class="fa fa-search"></i></button> <input type="text" id="s" name="s" value="<?php _eti('Search'); ?> " onfocus="if (this.value == '<?php _eti('Search'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _eti('Search'); ?> ';}" /> </form> </div><!-- .search-block /--> <?php }
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); if (function_exists('icl_t')) { $text_code = icl_t(THEME_NAME, 'widget_content_' . $this->id, $instance['text_code']); } else { $text_code = $instance['text_code']; } $feedburner = $instance['feedburner']; echo $before_widget; echo $before_title; echo $title; echo $after_title; echo '<div class="widget-feedburner-counter"> <p>' . do_shortcode($text_code) . '</p>'; ?> <form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $feedburner; ?> ', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"> <input class="feedburner-email" type="text" name="email" value="<?php _eti('Enter your e-mail address'); ?> " onfocus="if (this.value == '<?php _eti('Enter your e-mail address'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _eti('Enter your e-mail address'); ?> ';}"> <input type="hidden" value="<?php echo $feedburner; ?> " name="uri"> <input type="hidden" name="loc" value="en_US"> <input class="feedburner-subscribe" type="submit" name="submit" value="<?php _eti('Subscribe'); ?> "> </form> </div> <?php echo $after_widget; }
$tags = wp_get_post_tags($post->ID); $tags_ids = array(); foreach($tags as $individual_tag) $tags_ids[] = $individual_tag->term_id; $args=array('post__not_in' => array($post->ID),'posts_per_page'=> $related_no , 'tag__in'=> $tags_ids, 'no_found_rows' => 1 ); } else{ $categories = get_the_category($post->ID); $category_ids = array(); foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id; $args=array('post__not_in' => array($post->ID),'posts_per_page'=> $related_no , 'category__in'=> $category_ids, 'no_found_rows' => 1 ); } $related_query = new wp_query( $args ); if( $related_query->have_posts() ) : $count=0;?> <section id="related_posts"> <div class="block-head"> <h3><?php _eti( 'Related Articles' , 'tie' ); ?></h3><div class="stripe-line"></div> </div> <div class="post-listing"> <?php while ( $related_query->have_posts() ) : $related_query->the_post(); $do_not_duplicate[] = get_the_ID(); ?> <div <?php tie_post_class('related-item'); ?>> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( 'tie-medium' ); ?> <span class="fa overlay-icon"></span> </a> </div><!-- post-thumbnail /--> <?php endif; ?> <h3><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h3> <p class="post-meta"><?php tie_get_time() ?></p> </div>
} if (!$effect) { $effect = 'fade'; } if (!$speed || $speed == ' ' || !is_numeric($speed)) { $speed = 750; } if (!$timeout || $timeout == ' ' || !is_numeric($timeout)) { $timeout = 3500; } ?> <div class="clear"></div> <div id="breaking-news" class="breaking-news"> <span class="breaking-news-title"><i class="fa fa-bolt"></i> <span><?php _eti('Breaking News', 'tie'); ?> </span></span> <?php if ($query != 'custom') { if ($query == 'tag') { $tags = explode(',', $tag); foreach ($tags as $tag) { $theTagId = get_term_by('name', $tag, 'post_tag'); if ($fea_tags) { $sep = ' , '; } $fea_tags .= $sep . $theTagId->slug; } $args = array('tag' => $fea_tags, 'posts_per_page' => $number, 'no_found_rows' => 1);
echo htmlspecialchars_decode($footer_one); ?> </div> </div> <div class="clear"></div> </div><!-- .Container --> </div><!-- .Footer bottom --> </div><!-- .inner-Wrapper --> </div><!-- #Wrapper --> </div><!-- .Wrapper-outer --> <?php if (tie_get_option('footer_top')) { ?> <div id="topcontrol" class="fa fa-angle-up" title="<?php _eti('Scroll To Top'); ?> "></div> <?php } ?> <div id="fb-root"></div> <?php wp_footer(); ?> <script lang="javascript"> (function() {var _h1= document.getElementsByTagName('title')[0] || false; var product_name = ''; if(_h1){product_name= _h1.textContent || _h1.innerText;}var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.src = '//live.vnpgroup.net/js/web_client_box.php?hash=68e5dbd05248df2548bc8b6b1fffc03e&data=eyJzc29faWQiOjQ0MDY2MiwiaGFzaCI6IjUzZjhlM2UzZTBmZTBhYmQ3YjRhZGI1NDhjMmJmZjBiIn0-&pname='+product_name; var s = document.getElementsByTagName('script');s[0].parentNode.insertBefore(ga, s[0]);})();
<div class="entry"> <p><?php _eti('Apologies, but the page you requested could not be found. Perhaps searching will help.'); ?> </p> <div class="search-block-large"> <form method="get" action="<?php echo home_url(); ?> /"> <button class="search-button" type="submit" value="<?php if (!$is_IE) { _eti('Search', 'tie'); } ?> "><i class="fa fa-search"></i></button> <input type="text" id="s" name="s" value="<?php _eti('Search'); ?> " onfocus="if (this.value == '<?php _eti('Search'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _eti('Search'); ?> ';}" /> </form> </div><!-- .search-block /--> </div> </div>
</form> </div><!-- .search-block /--> </div><!-- .entry /--> <?php $original_post = $post; $args = array('posts_per_page' => 4, 'no_found_rows' => 1); $related_query = new wp_query($args); if ($related_query->have_posts()) { $count = 0; ?> <section id="related_posts"> <div class="block-head"> <h3><?php _eti('Check Also'); ?> </h3><div class="stripe-line"></div> </div> <div class="post-listing"> <?php while ($related_query->have_posts()) { $related_query->the_post(); ?> <div <?php tie_post_class('related-item'); ?> > <?php if (function_exists("has_post_thumbnail") && has_post_thumbnail()) { ?>
function tie_custom_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li class="comment pingback"> <p><?php _eti('Pingback:'); ?> <?php comment_author_link(); edit_comment_link(__ti('Edit'), ' '); ?> </p> <?php }
} ?> <?php if (tie_get_option('share_pinterest')) { ?> <li><a href="http://pinterest.com/pin/create/button/?url=<?php echo $post_link; ?> &description=<?php the_title(); ?> &media=<?php echo tie_thumb_src('slider'); ?> " class="social-pinterest" rel="external" target="_blank"><i class="fa fa-pinterest"></i> <span><?php _eti('Pinterest'); ?> </span></a></li> <?php } ?> </ul> <?php } else { ?> <script> window.___gcfg = {lang: 'en-US'}; (function (w, d, s) { function go() { var js, fjs = d.getElementsByTagName(s)[0], load = function (url, id) { if (d.getElementById(id)) {
} else { $categories = get_the_category($post->ID); $category_ids = array(); foreach ($categories as $individual_category) { $category_ids[] = $individual_category->term_id; } $args = array('post__not_in' => array($post->ID), 'posts_per_page' => $related_no, 'category__in' => $category_ids, 'no_found_rows' => 1); } $related_query = new wp_query($args); if ($related_query->have_posts()) { $count = 0; ?> <section id="related_posts"> <div class="block-head"> <h3><?php _eti('Related Articles', 'tie'); ?> </h3><div class="stripe-line"></div> </div> <div class="post-listing"> <?php while ($related_query->have_posts()) { $related_query->the_post(); $do_not_duplicate[] = get_the_ID(); ?> <div <?php tie_post_class('related-item'); ?> > <?php if (function_exists("has_post_thumbnail") && has_post_thumbnail()) {
function tie_breadcrumbs() { if (tie_get_option('breadcrumbs')) { $delimiter = '<span class="delimiter">'; $delimiter .= tie_get_option('breadcrumbs_delimiter') ? tie_get_option('breadcrumbs_delimiter') : '»'; $delimiter .= '</span>'; $before = '<span class="current">'; $after = '</span>'; if (!is_home() && !is_front_page() || is_paged()) { echo '<div xmlns:v="http://rdf.data-vocabulary.org/#" id="crumbs">'; global $post; $homeLink = home_url(); echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" class="crumbs-home" href="' . $homeLink . '">' . __ti('Home') . '</a></span> ' . $delimiter . ' '; if (is_category()) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); $thisCat = $cat_obj->term_id; $thisCat = get_category($thisCat); $parentCat = get_category($thisCat->parent); if ($thisCat->parent != 0) { if (!is_wp_error($cat_code = get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '))) { $cat_code = str_replace('<a', '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title"', $cat_code); echo $cat_code = str_replace('</a>', '</a></span>', $cat_code); } } echo $before . '' . single_cat_title('', false) . '' . $after; } elseif (is_day()) { echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></span> ' . $delimiter . ' '; echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '">' . get_the_time('F') . '</a></span> ' . $delimiter . ' '; echo $before . get_the_time('d') . $after; } elseif (is_month()) { echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></span> ' . $delimiter . ' '; echo $before . get_the_time('F') . $after; } elseif (is_year()) { echo $before . get_the_time('Y') . $after; } elseif (is_single() && !is_attachment()) { if (get_post_type() != 'post') { $post_type = get_post_type_object(get_post_type()); $slug = $post_type->rewrite; echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a></span> ' . $delimiter . ' '; echo $before . get_the_title() . $after; } else { $cat = get_the_category(); $cat = $cat[0]; if (!empty($cat)) { if (!is_wp_error($cat_code = get_category_parents($cat, TRUE, ' ' . $delimiter . ' '))) { $cat_code = str_replace('<a', '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title"', $cat_code); echo $cat_code = str_replace('</a>', '</a></span>', $cat_code); } } echo $before . get_the_title() . $after; } } elseif (is_page() && !$post->post_parent || function_exists('bp_current_component') && bp_current_component()) { echo $before . get_the_title() . $after; } elseif (is_search()) { echo $before; printf(__ti('Search Results for: %s'), get_search_query()); echo $after; } elseif (!is_single() && !is_page() && get_post_type() != 'post') { $post_type = get_post_type_object(get_post_type()); echo $before . $post_type->labels->singular_name . $after; } elseif (is_attachment()) { $parent = get_post($post->post_parent); $cat = get_the_category($parent->ID); $cat = $cat[0]; echo '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></span> ' . $delimiter . ' '; echo $before . get_the_title() . $after; } elseif (is_page() && $post->post_parent) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '<span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a></span>'; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); foreach ($breadcrumbs as $crumb) { echo $crumb . ' ' . $delimiter . ' '; } echo $before . get_the_title() . $after; } elseif (is_tag()) { echo $before; printf(__ti('Tag Archives: %s'), single_tag_title('', false)); echo $after; } elseif (is_author()) { global $author; $userdata = get_userdata($author); echo $before; echo $userdata->display_name; echo $after; } elseif (is_404()) { echo $before; _eti('Not Found'); echo $after; } if (get_query_var('paged')) { if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ' ('; } echo __ti('page') . ' ' . get_query_var('paged'); if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()) { echo ')'; } } echo '</div>'; } } wp_reset_query(); }
$tags = get_tags(); if ($tags) { foreach ($tags as $tag) { echo '<li><a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a></li> '; } } ?> </ul> </div> <!-- end .sitemap-col --> <div class="sitemap-col<?php echo ' last'; ?> "> <h2><?php _eti('Authors'); ?> </h2> <ul id="sitemap-authors" ><?php wp_list_authors('optioncount=1&exclude_admin=0'); ?> </ul> </div> <!-- end .sitemap-col --> </div> <!-- end #sitemap --> <?php edit_post_link(__ti('Edit'), '<span class="edit-link">', '</span>'); ?> </div><!-- .entry /-->
$loop_layout = tie_get_option('search_layout'); ?> <?php get_template_part('loop'); ?> <?php if ($wp_query->max_num_pages > 1) { tie_pagenavi(); } ?> <?php } else { ?> <div id="post-0" class="post not-found post-listing"> <div class="entry"> <p><?php _eti('Sorry, but nothing matched your search criteria. Please try again with some different keywords.'); ?> </p> </div> </div> <?php } ?> </div> <?php get_sidebar(); get_footer();
<div id="post-0" class="post not-found post-listing"> <h1 class="post-title"><?php _eti( 'Not Found' ); ?></h1> <div class="entry"> <p><?php _eti( 'Apologies, but the page you requested could not be found. Perhaps searching will help.' ); ?></p> <div class="search-block-large"> <form method="get" action="<?php echo home_url(); ?>/"> <button class="search-button" type="submit" value="<?php if( !$is_IE ) _eti( 'Search' , 'tie' ) ?>"><i class="fa fa-search"></i></button> <input type="text" id="s" name="s" value="<?php _eti( 'Search' ) ?>" onfocus="if (this.value == '<?php _eti( 'Search' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _eti( 'Search' ) ?>';}" /> </form> </div><!-- .search-block /--> </div> </div>
<div class="container"> <?php if( tie_get_option( 'nav_logo' ) ): ?> <a class="main-nav-logo" title="<?php bloginfo('name'); ?>" href="<?php echo home_url(); ?>/"> <img src="<?php echo tie_get_option( 'nav_logo' ) ?>" width="195" height="54" alt="<?php bloginfo('name'); ?>"> </a> <?php endif ?> <?php wp_nav_menu( array( 'container_class' => 'main-menu', 'theme_location' => 'primary', 'walker' => new tie_mega_menu_walker(), 'fallback_cb'=> false) ); ?> <?php if(tie_get_option( 'random_article' )): ?> <a href="<?php echo home_url(); ?>/?tierand=1" class="random-article ttip" title="<?php _eti( 'Random Article' ) ?>"><i class="fa fa-random"></i></a> <?php endif ?> <?php if( tie_get_option( 'shopping_cart' ) && function_exists( 'is_woocommerce' ) ): global $woocommerce; ?> <a class="tie-cart ttip" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _eti( 'View your shopping cart' ); ?>"><span class="shooping-count-outer"><?php if( isset( $woocommerce->cart->cart_contents_count ) && ( $woocommerce->cart->cart_contents_count != 0 ) ){ ?><span class="shooping-count"><?php echo $woocommerce->cart->cart_contents_count ?></span><?php } ?><i class="fa fa-shopping-cart"></i></span></a> <?php endif ?> </div> </nav><!-- .main-nav /--> <?php endif; ?> </header><!-- #header /--> <?php get_template_part( 'framework/parts/breaking-news' ); // Get Breaking News template ?> <?php tie_banner('banner_below_header' , '<div class="e3lan e3lan-below_header">' , '</div>' ); ?> <?php $sidebar = ''; if( tie_get_option( 'sidebar_pos' ) == 'left' ) $sidebar = ' sidebar-left'; if( is_singular() || ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) ){
<section class="cat-box woocommerce-box woocommerce clear"> <div class="cat-box-title"> <h2><?php if (function_exists('icl_t')) { echo icl_t(THEME_NAME, 'wpml-' . $page_builder_id . '-' . $block['boxid'], $title); } else { echo $title; } ?> </h2> <div class="stripe-line"></div> </div> <div class="cat-box-content"> <ul class="products"> <?php if ($loop->have_posts()) { while ($loop->have_posts()) { $loop->the_post(); woocommerce_get_template_part('content', 'product'); } } else { _eti('No products found'); } wp_reset_postdata(); ?> </ul><!--/.products--> <div class="clear"></div> </div><!-- .cat-box-content /--> </section> <?php }
$loop_layout = tie_get_option('search_layout'); ?> <?php get_template_part('loop'); ?> <?php if ($wp_query->max_num_pages > 1) { tie_pagenavi(); } ?> <?php } else { ?> <div id="post-0" class="post not-found post-listing"> <div class="entry"> <p><?php _eti('Không có kết quả tìm kiếm nào phù hợp. Bạn hãy thử tìm với một từ khoá khác.'); ?> </p> </div> </div> <?php } ?> </div> <?php get_sidebar(); get_footer();
<div class="clear"></div> <div class="footer-bottom"> <div class="container"> <div class="alignright"> <?php $footer_vars = array('%year%' , '%site%' , '%url%'); $footer_val = array( date('Y') , get_bloginfo('name') , home_url() ); $footer_two = str_replace( $footer_vars , $footer_val , tie_get_option( 'footer_two' )); echo htmlspecialchars_decode( $footer_two );?> </div> <?php if( tie_get_option('footer_social') ) tie_get_social( true , false, 'ttip-none' ); ?> <div class="alignleft"> <?php $footer_one = str_replace( $footer_vars , $footer_val , tie_get_option( 'footer_one' )); echo htmlspecialchars_decode( $footer_one );?> </div> <div class="clear"></div> </div><!-- .Container --> </div><!-- .Footer bottom --> </div><!-- .inner-Wrapper --> </div><!-- #Wrapper --> </div><!-- .Wrapper-outer --> <?php if( tie_get_option('footer_top') ): ?> <div id="topcontrol" class="fa fa-angle-up" title="<?php _eti( 'Scroll To Top' ); ?>"></div> <?php endif; ?> <div id="fb-root"></div> <?php wp_footer();?> </body> </html>
?> <div class="page-head"> <h1 class="page-title"> <?php printf(__ti('Tag Archives: %s'), '<span>' . single_tag_title('', false) . '</span>'); ?> </h1> <?php if (tie_get_option('tag_rss')) { $tag_id = get_query_var('tag_id'); ?> <a class="rss-cat-icon tooltip" title="<?php _eti('Feed Subscription'); ?> " href="<?php echo get_term_feed_link($tag_id, 'post_tag', "rss2"); ?> "><i class="fa fa-rss"></i></a> <?php } ?> <div class="stripe-line"></div> <?php if (tie_get_option('tag_desc')) { $tag_description = tag_description(); if (!empty($tag_description)) {
_eti('Random Article'); ?> "><i class="fa fa-random"></i></a> <?php } ?> <?php if (tie_get_option('shopping_cart') && function_exists('is_woocommerce')) { global $woocommerce; ?> <a class="tie-cart ttip" href="<?php echo $woocommerce->cart->get_cart_url(); ?> " title="<?php _eti('View your shopping cart'); ?> "><span class="shooping-count-outer"><?php if (isset($woocommerce->cart->cart_contents_count) && $woocommerce->cart->cart_contents_count != 0) { ?> <span class="shooping-count"><?php echo $woocommerce->cart->cart_contents_count; ?> </span><?php } ?> <i class="fa fa-shopping-cart"></i></span></a> <?php } ?>
} elseif (is_month()) { ?> <?php printf(__ti('Monthly Archives: <span>%s</span>'), get_the_date('F Y')); ?> <?php } elseif (is_year()) { ?> <?php printf(__ti('Yearly Archives: <span>%s</span>'), get_the_date('Y')); ?> <?php } else { ?> <?php _eti('Blog Archives'); ?> <?php } ?> </h2> <div class="stripe-line"></div> </div> <?php rewind_posts(); get_template_part('loop'); ?> <?php if ($wp_query->max_num_pages > 1) {
global $product, $woocommerce_loop; $posts_per_page = $columns = 3; $related = $product->get_related($posts_per_page); if (sizeof($related) == 0) { return; } $args = apply_filters('woocommerce_related_products_args', array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $related, 'post__not_in' => array($product->id))); $products = new WP_Query($args); $woocommerce_loop['columns'] = $columns; if ($products->have_posts()) { ?> <div class="related products"> <h2><?php _eti('Related Products'); ?> </h2> <?php woocommerce_product_loop_start(); ?> <?php while ($products->have_posts()) { $products->the_post(); ?> <?php wc_get_template_part('content', 'product'); ?>
if (!empty($get_meta["tie_banner_below"][0])) { echo '<div class="e3lan e3lan-post">' . do_shortcode(htmlspecialchars_decode($get_meta["tie_banner_below"][0])) . '</div>'; } else { tie_banner('banner_below', '<div class="e3lan e3lan-post">', '</div>'); } } ?> <?php if (tie_get_option('post_authorbio') && empty($get_meta["tie_hide_author"][0]) || isset($get_meta["tie_hide_related"][0]) && $get_meta["tie_hide_author"][0] == 'no') { ?> <section id="author-box"> <div class="block-head"> <h3><?php _eti('About'); ?> <?php the_author(); ?> </h3><div class="stripe-line"></div> </div> <div class="post-listing"> <?php tie_author_box(); ?> </div> </section><!-- #author-box --> <?php } ?>
function widget($args, $instance) { global $post; extract($args); wp_reset_query(); if (is_single()) { $no_of_posts = $instance['no_of_posts']; $see_all = $instance['see_all']; $authorID = get_the_author_meta('ID'); $args = array('author' => $authorID, 'post__not_in' => array($post->ID), 'posts_per_page' => $no_of_posts, 'no_found_rows' => 1); $my_query = new wp_query($args); if ($my_query->have_posts()) { echo $before_widget; echo $before_title; printf(__ti('By %s'), get_the_author()); echo $after_title; ?> <ul> <?php while ($my_query->have_posts()) { $my_query->the_post(); ?> <li><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title(); ?> "><?php the_title(); ?> </a></li> <?php } ?> </ul> <?php if ($see_all) { ?> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?> "> <?php _eti('All Posts'); ?> (<?php echo count_user_posts($authorID); ?> )</a> <?php } ?> <?php wp_reset_query(); echo $after_widget; } } }
$cat = tie_get_option('breaking_cat' ); $tag = tie_get_option('breaking_tag' ); $breaking_custom = tie_get_option('breaking_custom'); $number = tie_get_option('breaking_number'); $effect = tie_get_option('breaking_effect'); $speed = tie_get_option('breaking_speed' ); $timeout = tie_get_option('breaking_time' ); if( !$number || $number == ' ' || !is_numeric($number) ) $number = 5; if( !$effect ) $effect = 'fade'; if( !$speed || $speed == ' ' || !is_numeric($speed)) $speed = 750 ; if( !$timeout || $timeout == ' ' || !is_numeric($timeout)) $timeout = 3500; ?> <div class="clear"></div> <div id="breaking-news" class="breaking-news"> <span class="breaking-news-title"><i class="fa fa-bolt"></i> <span><?php _eti( 'Breaking News' , 'tie') ; ?></span></span> <?php if( $query != 'custom' ): if( $query == 'tag' ){ $sep = ''; $tags = explode (',' , $tag ); foreach ($tags as $tag){ $theTagId = get_term_by( 'name', $tag, 'post_tag' ); if( !empty( $fea_tags ) ) $sep = ' , '; $fea_tags .= $sep . $theTagId->slug; } $args = array('tag' => $fea_tags, 'posts_per_page'=> $number, 'no_found_rows' => 1 ); }else{ $args = array('category__in' => $cat, 'posts_per_page'=> $number, 'no_found_rows' => 1 ); }
</div><!-- .post-inner --> </article><!-- .post-listing --> <?php if( tie_get_option( 'post_tags' ) ) the_tags( '<p class="post-tag">'.__ti( 'Tags ' ) ,' ', '</p>'); ?> <?php //Below Post Banner if( empty( $get_meta["tie_hide_below"][0] ) ){ if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="e3lan e3lan-post">' .do_shortcode( htmlspecialchars_decode($get_meta["tie_banner_below"][0]) ) .'</div>'; else tie_banner('banner_below' , '<div class="e3lan e3lan-post">' , '</div>' ); } ?> <?php if( ( tie_get_option( 'post_authorbio' ) && empty( $get_meta["tie_hide_author"][0] ) ) || ( isset( $get_meta["tie_hide_related"][0] ) && $get_meta["tie_hide_author"][0] == 'no' ) ): ?> <section id="author-box"> <div class="block-head"> <h3><?php _eti( 'About' ) ?> <?php the_author() ?> </h3><div class="stripe-line"></div> </div> <div class="post-listing"> <?php tie_author_box() ?> </div> </section><!-- #author-box --> <?php endif; ?> <?php if( tie_get_option( 'post_nav' ) ): ?> <div class="post-navigation"> <div class="post-previous"><?php previous_post_link( '%link', '<span>'. __ti( 'Previous' ).'</span> %title' ); ?></div> <div class="post-next"><?php next_post_link( '%link', '<span>'. __ti( 'Next' ).'</span> %title' ); ?></div> </div><!-- .post-navigation --> <?php endif; ?>
<li><a href="http://www.facebook.com/sharer.php?u=<?php echo $post_link; ?>" class="social-facebook" rel="external" target="_blank"><i class="fa fa-facebook"></i> <span><?php _eti( 'Facebook' );?></span></a></li> <?php endif; ?> <?php if( tie_get_option( 'share_tweet' ) ): ?> <li><a href="https://twitter.com/intent/tweet?text=<?php echo $post_title; ?><?php if( tie_get_option( 'share_twitter_username' )) echo ' via %40'.tie_get_option( 'share_twitter_username' ); ?>&url=<?php echo $post_link; ?>" class="social-twitter" rel="external" target="_blank"><i class="fa fa-twitter"></i> <span><?php _eti( 'Twitter' );?></span></a></li> <?php endif; ?> <?php if( tie_get_option( 'share_google' ) ): ?> <li><a href="https://plusone.google.com/_/+1/confirm?hl=en&url=<?php echo $post_link; ?>&name=<?php echo $post_title; ?>" class="social-google-plus" rel="external" target="_blank"><i class="fa fa-google-plus"></i> <span><?php _eti( 'Google +' );?></span></a></li> <?php endif; ?> <?php if( tie_get_option( 'share_stumble' ) ): ?> <li><a href="http://www.stumbleupon.com/submit?url=<?php echo $post_link; ?>&title=<?php echo $post_title;?>" class="social-stumble" rel="external" target="_blank"><i class="fa fa-stumbleupon"></i> <span><?php _eti( 'Stumbleupon' );?></a></span></li> <?php endif; ?> <?php if( tie_get_option( 'share_linkdin' ) ): ?> <li><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo $post_link; ?>&title=<?php echo $post_title; ?>" class="social-linkedin" rel="external" target="_blank"><i class="fa fa-linkedin"></i> <span><?php _eti( 'LinkedIn' );?></span></a></li> <?php endif; ?> <?php if( tie_get_option( 'share_pinterest' ) ): ?> <li><a href="http://pinterest.com/pin/create/button/?url=<?php echo $post_link; ?>&description=<?php echo $post_title; ?>&media=<?php echo tie_thumb_src( 'slider' ); ?>" class="social-pinterest" rel="external" target="_blank"><i class="fa fa-pinterest"></i> <span><?php _eti( 'Pinterest' );?></span></a></li> <?php endif; ?> </ul> <?php else: ?> <script> window.___gcfg = {lang: 'en-US'}; (function(w, d, s) { function go(){ var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) { if (d.getElementById(id)) {return;} js = d.createElement(s); js.src = url; js.id = id; fjs.parentNode.insertBefore(js, fjs); }; load('//connect.facebook.net/en/all.js#xfbml=1', 'fbjssdk' ); load('https://apis.google.com/js/plusone.js', 'gplus1js');
get_currentuserinfo(); if ($user_ID) { ?> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . __ti('Pages:'), 'after' => '</div>')); ?> <?php } else { ?> <p><?php _eti('You must be logged in to view this page.'); ?> </p> <?php } ?> <?php tie_login_form($login_only = true); ?> <?php edit_post_link(__ti('Edit'), '<span class="edit-link">', '</span>'); ?> </div><!-- .entry /--> </div><!-- .post-inner -->
</a></h2> <?php get_template_part('framework/parts/meta-blocks'); ?> <div class="entry"> <p><?php tie_excerpt_home(); ?> </p> <a class="more-link" href="<?php the_permalink(); ?> "><?php _eti('Read More »'); ?> </a> </div> </li><!-- .first-news --> <?php } else { ?> <li <?php tie_post_class('other-news'); ?> > <?php if (function_exists("has_post_thumbnail") && has_post_thumbnail() && empty($block['thumb_small'])) { ?>
$args=array('post__not_in' => $do_not_duplicate ,'posts_per_page'=> $check_also_no , 'tag__in'=> $tags_ids, 'no_found_rows' => 1 ); } else{ $categories = get_the_category($post->ID); $category_ids = array(); foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id; $args=array('post__not_in' => $do_not_duplicate ,'posts_per_page'=> $check_also_no , 'category__in'=> $category_ids, 'no_found_rows' => 1 ); } $check_also_query = new wp_query( $args ); if( $check_also_query->have_posts() ) :?> <section id="check-also-box" class="post-listing check-also-<?php echo $check_also_position?>"> <a href="#" id="check-also-close"><i class="fa fa-close"></i></a> <div class="block-head"> <h3><?php _eti( 'Check Also' ); ?></h3> </div> <?php while ( $check_also_query->have_posts() ) : $check_also_query->the_post()?> <div <?php tie_post_class( 'check-also-post' ); ?>> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( 'tie-medium' ); ?> <span class="fa overlay-icon"></span> </a> </div><!-- post-thumbnail /--> <?php endif; ?> <h2 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <p><?php tie_excerpt_home() ?></p> </div>