function shortcode_blog_carousel($atts, $content = null) { extract(shortcode_atts(array('title' => 'Recent News', 'type' => 'blog_cat', 'counts' => '16', 'cats' => '', 'posts' => '', 'order' => 'DESC', 'orderby' => 'date', 'auto' => 'false', 'speed' => '800', 'pause' => '5000', 'move_slides' => '2'), $atts)); $id = twoot_get_frontend_func('rand_num', 5); if (!in_array($type, array('blog_cat', 'blog_tag'), true)) { return $html = '<div class="the-not-posts">' . esc_attr__('Hi, please check the type option, the current type is not match!', 'Twoot_Toolkit') . '</div>'; } switch ($type) { case 'blog_cat': $taxonomy = 'category'; break; case 'blog_tag': $taxonomy = 'post_tag'; break; } $q = new Twoot_Template_Carousel(array('counts' => $counts, 'cats' => $cats, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => 'post', 'taxonomy' => $taxonomy)); $html = '<div class="the-carousel-list the-blog-list">'; $html .= '<h5 class="carousel-title">' . $title . '</h5>'; $html .= '<ul id="post-carousel-' . $id . '" class="clearfix">'; $html .= $q->carousel(); $html .= '</ul>'; $html .= '</div>'; $html .= twoot_generator('carousel_script', $id, $auto, $speed, $pause, $move_slides, $tag = 'b'); return $html; }
function shortcode_product_carousel($atts, $content = null) { extract(shortcode_atts(array('title' => 'Recent Products', 'type' => 'product_cat', 'counts' => '16', 'cats' => '', 'posts' => '', 'order' => 'DESC', 'orderby' => 'date', 'auto' => 'false', 'speed' => '800', 'pause' => '5000', 'move_slides' => '4'), $atts)); global $woocommerce; $id = twoot_get_frontend_func('rand_num', 5); if (!in_array($type, array('product_cat', 'product_tag'), true)) { return $html = '<div class="the-not-posts">' . esc_attr__('Hi, please check the type option, the current type is not match!', 'Twoot_Toolkit') . '</div>'; } // Get Query $query = new Twoot_Query(array('counts' => $counts, 'cats' => $cats, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => 'product', 'taxonomy' => $type)); $products = new WP_Query($query->do_template_query()); if ($products->have_posts()) { $html = '<div class="the-carousel-list the-product-list">'; $html .= '<h5 class="carousel-title">' . $title . '</h5>'; $html .= '<ul id="post-carousel-' . $id . '" class="products clearfix">'; while ($products->have_posts()) { $products->the_post(); $html .= twoot_generator('load_template', 'loop-product-carousel'); } wp_reset_query(); $html .= '</ul>'; $html .= '</div>'; $html .= twoot_generator('carousel_script', $id, $auto, $speed, $pause, $move_slides, $tag = 'd'); } else { $html = '<div class="the-not-posts">' . esc_attr__('Hi, please check the type option, the current type is not match!', 'Twoot_Toolkit') . '</div>'; } return $html; }
function shortcode_featured_product_carousel($atts, $content = null) { extract(shortcode_atts(array('title' => 'Featrued Products', 'counts' => '16', 'order' => 'DESC', 'orderby' => 'date', 'auto' => 'false', 'speed' => '800', 'pause' => '5000', 'move_slides' => '4'), $atts)); global $woocommerce; $id = twoot_get_frontend_func('rand_num', 5); $query_args = array('posts_per_page' => $counts, 'order' => $order, 'orderby' => $orderby, 'post_status' => 'publish', 'post_type' => 'product', 'no_found_rows' => 1); $query_args['meta_query'] = $woocommerce->query->get_meta_query(); $query_args['meta_query'][] = array('key' => '_featured', 'value' => 'yes'); $products = new WP_Query($query_args); if ($products->have_posts()) { $html = '<div class="the-carousel-list the-product-list">'; $html .= '<h5 class="carousel-title">' . $title . '</h5>'; $html .= '<ul id="post-carousel-' . $id . '" class="products clearfix">'; while ($products->have_posts()) { $products->the_post(); $html .= twoot_generator('load_template', 'loop-product-carousel'); } wp_reset_query(); $html .= '</ul>'; $html .= '</div>'; $html .= twoot_generator('carousel_script', $id, $auto, $speed, $pause, $move_slides, $tag = 'd'); } else { $html = '<div class="the-not-posts">' . esc_attr__('Hi, please check the type option, the current type is not match!', 'Twoot_Toolkit') . '</div>'; } return $html; }
function shortcode_latest_blog($atts, $content = null) { extract(shortcode_atts(array('title' => 'Latest Blog', 'top_counts' => '1', 'last_counts' => '3', 'cats' => '', 'posts' => ''), $atts)); global $post; // Get Query $top_query = new Twoot_Query(array('counts' => $top_counts, 'cats' => $cats, 'posts' => $posts, 'order' => 'DESC', 'orderby' => 'date', 'post_type' => 'post', 'taxonomy' => 'category')); $last_query = new Twoot_Query(array('counts' => $last_counts + 1, 'cats' => $cats, 'posts' => $posts, 'order' => 'DESC', 'orderby' => 'date', 'post_type' => 'post', 'taxonomy' => 'category')); $do_top_query = new WP_Query($top_query->do_template_query()); $do_last_query = new WP_Query($last_query->do_template_query()); $count = 0; $html = '<div class="shortcode-latest-blog">'; $html .= '<h5 class="sub-title">' . $title . '</h5>'; $html .= '<div class="outer clearfix">'; $html .= '<div class="the-top-loop column six">'; $html .= '<div class="inner">'; $html .= '<ul>'; while ($do_top_query->have_posts()) { $do_top_query->the_post(); $do_not_duplicate[] = $post->ID; $html .= '<li class="post-item clearfix">'; $html .= twoot_generator('load_template', 'loop-top-latest-blog'); $html .= '</li>'; } $html .= '</ul>'; $html .= '</div>'; $html .= '</div>'; wp_reset_query(); $html .= '<div class="the-last-loop column six">'; $html .= '<div class="inner">'; $html .= '<ul>'; while ($do_last_query->have_posts()) { $do_last_query->the_post(); if (in_array($post->ID, $do_not_duplicate)) { continue; } // Num class $count++; $num_class = $do_last_query->post_count % $count == 0 ? 'odd' : 'even'; $html .= '<li class="post-item ' . $num_class . ' clearfix">'; $html .= twoot_generator('load_template', 'loop-last-latest-blog'); $html .= '</li>'; } $html .= '</ul>'; $html .= '</div>'; $html .= '</div>'; wp_reset_query(); $html .= '</div>'; $html .= '</div>'; return $html; }
function shortcode_portfolio_carousel($atts, $content = null) { extract(shortcode_atts(array('title' => 'Recent Works', 'tax' => 'cat', 'counts' => '16', 'cats' => '', 'posts' => '', 'order' => 'DESC', 'orderby' => 'date', 'auto' => 'false', 'speed' => '800', 'pause' => '5000', 'move_slides' => '4'), $atts)); $id = twoot_get_frontend_func('rand_num', 5); if (!in_array($tax, array('cat', 'tag'), true)) { return $html = '<div class="the-not-posts">' . esc_attr__('Hi, please check the taxonomy option, the current tax is not match!', 'Twoot_Toolkit') . '</div>'; } $q = new Twoot_Template_Carousel(array('counts' => $counts, 'cats' => $cats, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => 'portfolio', 'taxonomy' => 'portfolio_' . $tax)); $html = '<div class="the-carousel-list the-portfolio-carousel">'; $html .= '<h5 class="carousel-title section-title">' . $title . '</h5>'; $html .= '<ul id="post-carousel-' . $id . '" class="clearfix">'; $html .= $q->carousel(); $html .= '</ul>'; $html .= '</div>'; $html .= twoot_generator('carousel_script', $id, $auto, $speed, $pause, $move_slides, $tag = 'p'); return $html; }
function shortcode_testimonial_carousel($atts, $content = null) { extract(shortcode_atts(array('counts' => '12', 'posts' => '', 'order' => 'DESC', 'orderby' => 'date', 'auto' => 'true', 'speed' => '800', 'pause' => '5000', 'mode' => 'fade'), $atts)); // Get Query $query = new Twoot_Query(array('counts' => $counts, 'cats' => '', 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => 'testimonial', 'taxonomy' => '')); $do_query = new WP_Query($query->do_template_query()); $html = '<div class="shortcode-testimonials shortcode-testimonial-carousel">'; $html .= '<ul class="testimonial-carousel" data-auto="' . $auto . '" data-speed="' . $speed . '" data-pause="' . $pause . '" data-mode="' . $mode . '">'; while ($do_query->have_posts()) { $do_query->the_post(); $html .= '<li class="testimonial-item clearfix">'; $html .= twoot_generator('load_template', 'loop-testimonial'); $html .= '</li>'; } wp_reset_postdata(); $html .= '</ul>'; $html .= '</div>'; return $html; }
function shortcode_testimonials($atts, $content = null) { extract(shortcode_atts(array('counts' => '5', 'posts' => '', 'order' => 'DESC', 'orderby' => 'date'), $atts)); // Get Query $query = new Twoot_Query(array('counts' => $counts, 'cats' => '', 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => 'testimonial', 'taxonomy' => '')); $do_query = new WP_Query($query->do_template_query()); $html = '<div class="shortcode-testimonials">'; $html .= '<ul>'; while ($do_query->have_posts()) { $do_query->the_post(); $html .= '<li class="testimonial-item clearfix">'; $html .= twoot_generator('load_template', 'loop-testimonial'); $html .= '</li>'; } wp_reset_postdata(); $html .= '</ul>'; $html .= '</div>'; return $html; }
/** * Carousel * @since 1.0 * @updated 1.0 * */ public function carousel() { extract($this->atts); $loop = $post_type == 'portfolio' ? 'portfolio' : 'blog'; // Get Query $query = new Twoot_Query(array('counts' => $counts, 'cats' => $cats, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => $post_type, 'taxonomy' => $taxonomy)); $do_query = new WP_Query($query->do_template_query()); $this->entries = $do_query; // Check if it has posts if (empty($this->entries) || empty($this->entries->posts)) { return; } // Output HTML $html = ''; while ($this->entries->have_posts()) { $this->entries->the_post(); $html .= '<li class="post-item column">'; $html .= twoot_generator('load_template', 'loop-' . $loop . '-carousel'); $html .= '</li>'; } wp_reset_query(); return $html; }
function widget($args, $instance) { extract($args, EXTR_SKIP); $title = apply_filters('widget_title', $instance['title']); $icons = twoot_generator('icons'); $current_icons = twoot_get_frontend_func('opt', 'opt', 'widget_social_icons'); $all_icons = array('behance', 'dribbble', 'facebook', 'flickr', 'fivehundredpx', 'gplus', 'linkedin', 'instagram', 'pinterest', 'rss', 'soundcloud', 'tumblr', 'twitter', 'vimeo', 'youtube'); echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } echo '<div class="social-icons-wrap clearfix">'; if (is_array($current_icons) && !empty($current_icons)) { foreach ($current_icons as $current_icon) { if (in_array($current_icon, $all_icons, true)) { if ($icons[$current_icon]) { echo '<a href="' . $icons[$current_icon] . '" class="' . $current_icon . '" rel="external"><i class="icon icon-' . $current_icon . '"></i></a>'; } } } } echo '</div>'; echo $after_widget; }
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ $gallery_id = twoot_get_frontend_func('meta', 'gallery_id'); echo twoot_generator('post_image', $gallery_id, 940, 450, true, true);
* @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ get_header(); ?> <div class="site-content container pt pb clearfix"> <article id="primary-wrapper" class="twelve"> <div class="inner"> <?php echo twoot_generator('page_title', 'archive'); ?> <?php $q = new Twoot_Template_Grid(array('columns' => twoot_get_frontend_func('opt', 'opt', 'portfolio_column'), 'counts' => twoot_get_frontend_func('opt', 'opt', 'portfolio_counts'), 'order' => 'DESC', 'orderby' => 'date', 'filter' => 'no', 'paging' => 'yes', 'post_type' => 'portfolio')); echo $q->grid(); ?> </div> </article> <!--end #primary--> </div> <!--end #content--> <?php get_footer();
?> <figure class="featured-image img-preload img-hover"> <a href="<?php echo $link; ?> " title="<?php the_title_attribute(); ?> "> <?php echo twoot_get_frontend_func('resize_thumbnail', get_post_thumbnail_id(), get_the_title(), 460, 335, true); ?> <div class="overlay"></div> </a> <?php echo twoot_generator('zoom', $type, 'carousel'); ?> </figure> <?php } ?> <header class="item-head"> <?php echo get_the_term_list(get_the_ID(), 'portfolio_cat', '<div class="cats meta">', ', ', '</div>'); ?> <h3 class="title"><a href="<?php echo $link; ?> " title="<?php the_title_attribute(); ?>
while (have_posts()) { the_post(); ?> <li class="post-item"> <?php echo twoot_generator('load_template', 'loop-blog-default'); ?> </li> <?php } ?> </ul> </div> <?php echo twoot_generator('pagination'); ?> <?php } else { ?> <div class="the-not-posts"><?php esc_attr_e('Sorry, there is no posts in the current categories, please add some items in the dashboard!', 'Twoot'); ?> </div> <?php } ?>
/** * Post * @since 1.0 * @updated 1.0 * */ public function post() { extract($this->atts); // Get Query $query = new Twoot_Query(array('counts' => $counts, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => $post_type, 'taxonomy' => $taxonomy)); $do_query = new WP_Query($query->do_related_query()); $this->entries = $do_query; // Check if it has posts if (empty($this->entries) || empty($this->entries->posts)) { return; } // Output HTML $html = '<div class="related-posts pt mt">'; $html .= '<h5 class="sub-title">' . $title . '</h5>'; $html .= '<div class="outer">'; $html .= '<ul class="clearfix">'; while ($this->entries->have_posts()) { $this->entries->the_post(); $html .= '<li class="item column six">'; $html .= '<div class="inner clearfix">'; $html .= twoot_generator('load_template', 'loop-related-posts'); $html .= '</div>'; $html .= '</li>'; } wp_reset_query(); $html .= '</ul>'; $html .= '</div>'; $html .= '</div>'; return $html; }
?> <span class="date-link"> <?php printf(__('On: <a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>', 'Twoot'), esc_url(get_permalink()), esc_attr(get_the_time()), get_the_time(get_option('date_format'))); ?> </span> <?php edit_post_link(__('Edit', 'Twoot'), '<span class="edit-link">', '</span>'); ?> </header> <article class="entry-content clearfix"> <?php echo twoot_generator('load_template', 'format-' . $format); ?> <?php echo twoot_generator('post_excerpt', 300, true, '...', __('Continue reading »', 'Twoot')); ?> </article> <footer class="entry-meta"> <?php if ($tags_list = get_the_tag_list('', __(', ', 'Twoot'))) { ?> <span class="tags-link"> <?php printf(__('Tags: %1$s', 'Twoot'), $tags_list); ?> </span> <?php } ?> </footer>
</header> <!--end #logo--> <header class="site-menu"> <section class="container"> <div class="inner non-responsive clearfix"> <?php echo twoot_generator('menu'); ?> <?php if (twoot_get_checked_func('woo_activated')) { echo twoot_woo_generator('mini_cart'); } ?> </div> <?php echo twoot_generator('responsive_menu'); ?> </section> </header> <!--end #menu--> </div> <!--end #header--> <div class="clear"></div> <?php $slider_id = twoot_get_frontend_func('meta', 'slideshow'); if ($slider_id && is_page()) { echo do_shortcode('[layerslider id="' . $slider_id . '"]'); }
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ $type = twoot_get_frontend_func('meta', 'video_player'); $url = twoot_get_frontend_func('meta', 'video_url'); $embed = twoot_get_frontend_func('meta', 'video_code'); echo twoot_generator('post_video', $type, $url, $embed, null, null);
?> </div> <?php } ?> </div> </section> </footer> <!--end #copyright--> </div> </div><!--end #warpper--> <?php wp_footer(); echo twoot_generator('retina_logo'); ?> <?php if ($date = trim(twoot_get_frontend_func('opt', 'opt', 'coming_soon_date'))) { ?> <script type="text/javascript"> jQuery(document).ready( function() { jQuery('.countdown').countdown({ 'date' : '<?php echo $date; ?> ', 'format': 'on' }); });
function widget($args, $instance) { extract($args, EXTR_SKIP); global $post; $title = apply_filters('widget_title', $instance['title']); $counts = $instance['counts']; $cats = $instance['cats']; $posts = $instance['posts']; $orderby = $instance['orderby']; $order = $instance['order']; // Get Query $query = new Twoot_Query(array('counts' => $counts, 'cats' => $cats, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => 'portfolio', 'taxonomy' => 'portfolio_cat')); $do_query = new WP_Query($query->do_template_query()); ?> <?php echo $before_widget; ?> <?php if ($title) { echo $before_title . $title . $after_title; } ?> <ul> <?php while ($do_query->have_posts()) { $do_query->the_post(); ?> <li class="clearfix<?php if (!has_post_thumbnail()) { echo ' has-not-thumbnail'; } ?> "> <?php if (has_post_thumbnail()) { ?> <figure class="featured-image img-preload img-hover post-image"> <a href="<?php the_permalink(); ?> "><?php echo get_the_post_thumbnail($post->ID, 'thumbnail'); ?> <div class="overlay"></div> </a> </figure> <?php } ?> <section class="post-entry"> <div class="title"><a href="<?php the_permalink(); ?> " title="<?php printf(esc_attr__('Permalink to %s', 'Twoot_Toolkit'), the_title_attribute('echo=0')); ?> "><?php the_title(); ?> </a></div> <div class="desc"><?php echo twoot_generator('the_excerpt', 40, true, '...'); ?> </div> </section> </li> <?php } wp_reset_postdata(); ?> </ul> <?php echo $after_widget; ?> <?php }
/** * * Replace WooCommerce Default Pagination with Get Pagination */ function woo_pagination() { echo twoot_generator('pagination'); }
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ $gallery_id = twoot_get_frontend_func('meta', 'gallery_id'); echo twoot_generator('post_image', $gallery_id, 620, 350, true, true);
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ $url = twoot_get_frontend_func('meta', 'soundcloud_url'); $embed = twoot_get_frontend_func('meta', 'audio_code'); echo twoot_generator('post_audio', $url, $embed, 166);
<div class="inner"> <div class="post-blog"> <div class="post-item"> <h3 class="entry-title"><?php the_title(); ?> </h3> <header class="entry-meta"> <?php edit_post_link(__('Edit', 'Twoot'), '<span class="edit-link">', '</span>'); ?> </header> <article class="entry-content clearfix"> <?php echo twoot_generator('load_template', 'format-' . $format); ?> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . esc_attr__('Pages:', 'Twoot'), 'after' => '</div>')); ?> </article> <footer class="entry-meta clearfix"> <?php if ($tags_list = get_the_tag_list('', __(', ', 'Twoot'))) { ?> <span class="tags-link"> <?php printf(__('Tags: %1$s', 'Twoot'), $tags_list);
?> <figure class="featured-image img-preload img-hover"> <a href="<?php echo $link; ?> " title="<?php the_title_attribute(); ?> "> <?php echo twoot_get_frontend_func('resize_thumbnail', get_post_thumbnail_id(), get_the_title(), 460, 335, true); ?> <div class="overlay"></div> </a> <?php echo twoot_generator('zoom', $type, 'gallery'); ?> </figure> <?php } ?> <header class="item-head"> <?php echo get_the_term_list(get_the_ID(), 'portfolio_cat', '<div class="cats meta">', ', ', '</div>'); ?> <h3 class="title"><a href="<?php echo $link; ?> " title="<?php the_title_attribute(); ?>
/** * Left Grid * @since 1.0 * @updated 1.0 * */ public function left_grid() { extract($this->atts); // Loop switch ($post_type) { case 'portfolio': $loop = 'portfolio'; break; case 'post': $loop = 'blog'; break; case 'product': $loop = 'product'; break; } // Check if the woo has actived if (!twoot_get_checked_func('woo_activated') && $post_type == 'product') { return $html = '<div class="the-not-posts">' . esc_attr__('Hi, please make sure that you have installed the plugin:woocommerce.', 'Twoot') . '</div>'; } // ul & li class $ul_class = $post_type == 'product' ? ' products outer' : ''; $li_class = $post_type == 'product' ? 'item product-item' : 'item'; // Get Query $query = new Twoot_Query(array('counts' => $counts, 'cats' => $cats, 'posts' => $posts, 'order' => $order, 'orderby' => $orderby, 'post_type' => $post_type, 'taxonomy' => $taxonomy)); $do_query = is_page() || is_singular() ? new WP_Query($query->do_template_query()) : new WP_Query($query->do_global_query()); $this->entries = $do_query; // Check if it has posts if (empty($this->entries) || empty($this->entries->posts)) { return $html = '<div class="the-not-posts">' . esc_attr__('Sorry, there is no posts in the current categories, please add some items in the dashboard!', 'Twoot') . '</div>'; } // Check if it's 4 columns if ($columns == 4) { return $html = '<div class="the-not-posts">' . esc_attr__('Sorry, the left grid layout do not support the 4 columns.', 'Twoot') . '</div>'; } // Set the columns switch ($columns) { case 2: $grid = 'six'; break; case 3: $grid = 'four'; break; } // Output HTML $html = '<div class="the-grid-list left-grid outer clearfix">'; $html .= '<div class="column three">' . $this->filter_terms_menu($this->entries->posts, $this->atts) . '</div>'; $html .= '<div class="column nine">'; $html .= '<ul class="filter-items clearfix' . $ul_class . '">'; while ($this->entries->have_posts()) { $this->entries->the_post(); //Get terms class $terms_class = $this->filter_terms_class(get_the_ID(), $this->atts); $html .= '<li class="' . $li_class . ' column ' . $grid . ' ' . $terms_class . '">'; $html .= '<div class="inner">'; $html .= twoot_generator('load_template', 'loop-' . $loop . '-grid'); $html .= '</div>'; $html .= '</li>'; } $html .= '</ul>'; $html .= '</div>'; $html .= '</div>'; wp_reset_query(); $html .= $paging == 'yes' ? twoot_generator('pagination', $this->entries) : ''; return $html; }
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ $gallery_id = twoot_get_frontend_func('meta', 'gallery_id'); echo twoot_generator('post_slider', $gallery_id, 620, 350, true, true);
echo twoot_generator('pagination', $do_query); ?> <?php } else { ?> <div class="the-not-posts"><?php esc_attr_e('Sorry, there is no posts in for your query.', 'Twoot'); ?> </div> <?php } ?> </div> </article> <!--end #primary--> <?php if ($layout == 'right') { echo twoot_generator('sidebar', $widget, $layout); } ?> </div> <!--end #content--> <?php get_footer();
<?php echo twoot_generator('pagination', $do_query); ?> <?php } else { ?> <div class="the-not-posts"><?php esc_attr_e('Sorry, there is no posts in for your query.', 'Twoot'); ?> </div> <?php } ?> </div> </article> <!--end #primary--> <?php echo twoot_generator('sidebar', 'search', 'right'); ?> </div> <!--end #content--> <?php get_footer();
//echo twoot_get_frontend_func('resize_thumbnail', get_post_thumbnail_id(), get_the_title(), 460, 335, true); ?> <?php the_post_thumbnail(array(460, 335)); ?> <div class="overlay"></div> </a> </figure> <?php } ?> <header class="item-head item-head-blog"> <div class="date"><?php echo get_the_time(get_option('date_format')); ?> </div> <h3 class="title"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h3> <div class="desc"><?php echo twoot_generator('the_excerpt', 90, true, '...'); ?> </div> </header>
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ echo twoot_generator('sidebar', 'blog', 'right');