* * In this files there is a collection of a functions useful for the core * of the framework. * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ $span_image = yit_get_sidebar_layout() == 'sidebar-no' ? 5 : 4; $span_text = yit_get_sidebar_layout() == 'sidebar-no' ? 6 : 5; if( !yit_get_option( '404-custom' ) ) : ?> <div class="border-bold"> <div class="border"> <div class="border-img"> <img class="error-404-image group" src="<?php echo get_template_directory_uri() ?>/images/404.png" title="<?php _e( 'Error 404', 'yit' ); ?>" alt="404" /> </div> </div> </div> <div class="error-404-text group left-text"> <h1><?php echo __( 'WHOOPS, OUR BAD...', 'yit' ); ?></h1> <p><?php echo __( 'The page you requested was not found, and we have a fine guess why.<br /><br />- If you typed the URL directly, please make sure the spelling is correct.<br />- If you clicked on a link to get here, the link is outdated.', 'yit' ); ?></p> </div> <div class="error-404-text group right-text">
* http://www.gnu.org/licenses/gpl-3.0.txt */ /* Template Name: Archive */ get_header(); do_action( 'yit_before_primary' ) ?> <!-- START PRIMARY --> <div id="primary" class="<?php yit_sidebar_layout() ?>"> <div class="container group"> <div class="row"> <?php do_action( 'yit_before_content' ) ?> <!-- START CONTENT --> <div id="content-archives" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 8 ?> content group"> <?php do_action( 'yit_archives' ) ?> </div> <!-- END CONTENT --> <?php do_action( 'yit_after_content' ) ?> <?php get_sidebar() ?> <?php do_action( 'yit_after_sidebar' ) ?> </div> </div> </div> <!-- END PRIMARY --> <?php do_action( 'yit_after_primary' ); get_footer() ?>
<div id="primary" class="<?php yit_sidebar_layout(); ?> "> <?php masterslider(5); ?> <div class="container group"> <div class="row"> <?php do_action('yit_before_content'); ?> <!-- START CONTENT --> <div id="content-home" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9; ?> content group"> <?php do_action('yit_loop_page'); comments_template(); ?> </div> <!-- END CONTENT --> <?php do_action('yit_after_content'); ?> <?php get_sidebar();
<?php /** * Content Wrappers */ $is_full_width = (bool) (yit_get_sidebar_layout() == 'sidebar-no'); ?> <!-- START CONTENT --> <div id="content-shop" class="span<?php echo $is_full_width ? 12 : 9; ?> content group">
/** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ global $more; remove_action('the_content_more_link', 'yit_simple_read_more_classes'); $sticky_shown = false; $sidebar_layout = yit_get_sidebar_layout(); ?> <div class="row"> <!-- START SECTION BLOG --> <div class="section blog margin-bottom span<?php echo $sidebar_layout == 'sidebar-no' ? 12 : 9; ?> "> <?php //Separated code for a better organization of the code if (!empty($title)) { yit_string('<h2 class="title">', yit_decode_title($title), '</h2>'); } if (!empty($description)) { yit_string('<p class="description">', $description, '</p>'); }
$website = ''; if ($siteurl != ''): if ($label != ''): $website = '<a class="website" href="' . esc_url($siteurl) . '">' . $label . '</a>'; else: $website = '<a class="website" href="' . esc_url($siteurl) . '">' . $siteurl . '</a>'; endif; else: $website = '<span class="website">' . $label . '</span>'; endif; $thumb = (get_the_post_thumbnail( null, 'thumb-testimonial' )) ? 'testimonial-thumb' : ''; ?> <article id="post-<?php echo $item_id ?>" class="hentry-post group testimonial-post internal-post"> <div class="post_content group"> <div class="testimonial-page span<?php echo yit_get_sidebar_layout() != 'sidebar-no' ? 9 : 12 ?>"> <div class="testimonial-text-full <?php echo $thumb; ?>"> <blockquote><?php wpautop( the_content() ); ?></blockquote> <?php if (has_post_thumbnail()) : ?> <div class="thumbnail"> <?php yit_image( "size=thumb-testimonial" );//echo get_the_post_thumbnail( null, 'thumb-testimonial' ); ?> </div> <?php endif; ?> </div> <div class="testimonial-name"><?php echo the_title('<p class="name">', '</p>',false) . $website; ?></div> </div> </div> </article> </div>
<?php /** * Sidebar * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ get_sidebar('shop'); ?> <div class="product-extra span<?php echo (yit_get_sidebar_layout() != 'sidebar-no') ? 9 : 12 ?>"> <?php do_action('woocommerce_after_sidebar'); ?> </div> </div> </div> </div>
} // Exit if accessed directly global $product, $woocommerce, $woocommerce_loop; $upsells = $product->get_upsells(); if (sizeof($upsells) == 0) { return; } $meta_query = WC()->query->get_meta_query(); $args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array($product->id), 'meta_query' => $meta_query); $products = new WP_Query($args); $woocommerce_loop['columns'] = $columns; if ($products->have_posts()) { ?> <div class="upsells products span<?php echo yit_get_sidebar_layout() == 'sidebar-no' || $style == 'layout-2' ? 12 : 9; ?> "> <h2><?php _e('You may also like…', 'woocommerce'); ?> </h2> <?php woocommerce_product_loop_start(); ?> <?php while ($products->have_posts()) { $products->the_post();
* If you want to overload this in a child theme then you can * define yit_comment() and that will be used instead. */ wp_list_comments(array('type' => 'comment', 'callback' => 'yit_comment')); ?> </ol> </div> <?php // Are there comments to navigate through? if (get_comment_pages_count() > 1 && get_option('page_comments')) { do_action('yit_comments_navigation'); } ?> <?php do_action('yit_trackbacks'); } //have_comments() $commenter = wp_get_current_commenter(); if (is_user_logged_in()) { $email_author = get_the_author_meta('user_email'); } else { $email_author = $commenter['comment_author_email']; } $req = get_option('require_name_email'); $aria_req = $req ? " aria-required='true'" : ''; $url_avatar = get_template_directory_uri() . '/images/noavatar.png'; $fields = array('author' => '<p class="comment-form-author span' . (yit_get_sidebar_layout() == 'sidebar-no' ? 4 : 3) . '"><!--<label for="author">' . __('Name', 'yit') . '</label><i class="icon-user"></i>-->' . '<input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' placeholder="' . __('Name', 'yit') . '" /></p>', 'email' => '<p class="comment-form-email span' . (yit_get_sidebar_layout() == 'sidebar-no' ? 4 : 3) . '"><!--<label for="email">' . __('Email', 'yit') . '</label><i class="icon-envelope"></i>-->' . '<input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' placeholder="' . __('E-Mail', 'yit') . '" /></p>', 'url' => '<p class="comment-form-url span' . (yit_get_sidebar_layout() == 'sidebar-no' ? 4 : 3) . '"><!--<label for="url">' . __('Website', 'yit') . '</label><i class="icon-globe"></i>-->' . '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" placeholder="' . __('Website', 'yit') . '" /></p>'); $comment_args = array('fields' => apply_filters('comment_form_default_fields', $fields), 'comment_field' => '<p class="comment-form-comment"><!--<label for="comment">' . __('Your comment', 'yit') . '</label><i class="icon-pencil"></i>--><textarea id="comment" name="comment" cols="45" rows="8" placeholder="' . __('Comment', 'yit') . '"></textarea></p><div class="clear"></div>', 'must_log_in' => '<p class="must-log-in">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'yit'), wp_login_url(apply_filters('the_permalink', get_permalink(get_the_ID())))) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'yit'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink(get_the_ID())))) . '</p>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'id_form' => 'commentform', 'id_submit' => 'commentsubmit', 'title_reply' => __('Leave a Reply', 'yit'), 'title_reply_to' => __('Leave a Reply to %s', 'yit'), 'cancel_reply_link' => __('Cancel reply', 'yit'), 'label_submit' => __('POST COMMENT', 'yit')); comment_form($comment_args);
$url = yit_get_post_meta( get_the_ID(), '_format_audio' ); $iframe = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_iframe' ); $show_artwork = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_artwork' ); $show_comments = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_comments' ); $auto_play = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_autoplay' ); $color = yit_get_post_meta( get_the_ID(), '_format_audio_color' ); echo do_shortcode( '[soundcloud iframe="' . $iframe . '" url="' . $url . '" show_artwork="' . $show_artwork . '" show_comments="' . $show_comments . '" auto_play="' . $auto_play . '" color="' . $color . '" width="0" ]' ); ?> </div> <div class="clear"></div> <?php endif ?> <!-- post content --> <div class="the-content single group span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9 ?>"><?php if ( is_category() || is_archive() || is_search() ) { if( is_category() ) { if( yit_get_option( 'posts-categories' ) == 'excerpt' ) : the_excerpt(); else : the_content( yit_get_option( 'readmore-categories' ) ); endif; } elseif( is_archive() ) { if( yit_get_option( 'posts-archives' ) == 'excerpt' ) : the_excerpt(); else : the_content( yit_get_option( 'readmore-archives' ) ); endif; } elseif( is_search() ) { if( yit_get_option( 'posts-searches' ) == 'excerpt' ) : the_excerpt(); else : the_content( yit_get_option( 'readmore-searches' ) ); endif; } } else { the_content( yit_get_option('blog-read-more-text') ); } if( yit_get_option( 'blog-show-tags' ) ) : the_tags( '<p class="tags">' . __( 'Tags: ', 'yit' ), ', ', '</p>' ); endif; ?></div> <?php endif ?>
<?php /** * Content wrappers * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ ?> <div id="primary" class="<?php yit_sidebar_layout(); ?> "> <div class="container group"> <div class="row"> <?php do_action('yit_before_content'); ?> <!-- START CONTENT --> <div id="content-shop" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' && !is_single() ? 12 : (yit_get_option('shop-sidebar-width') == '2' ? 10 : 9); ?> content group">
/** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ $args = array('post_type' => 'services', 'posts_per_page' => $items); $services = new WP_Query($args); $postsPerRow = yit_get_sidebar_layout() != 'sidebar-no' ? 4 : 6; $i = 0; if ($services->have_posts()) { global $wp_query, $post, $more; ?> <div class="section services"> <?php if (!empty($title)) { yit_string('<h3 class="title">', $title, '</h3>'); } ?> <?php if (!empty($description)) { yit_string('<p class="description">', $description, '</p>'); } ?>
function yit_size_images_style() { $content_width = yit_get_sidebar_layout() == 'sidebar-no' ? 1170 : 870; $margin = 30 / $content_width * 100; // 30px $margin_thumbnails = 8 / $content_width * 100; // 8px $images_container_w = yit_shop_single_w() / $content_width * 100; $thumbnails_container_w = $content_width - (yit_shop_single_w() + 30) - $margin_thumbnails; ?> <style type="text/css"> ul.products li.product.list .product-wrapper { padding-left:<?php echo yit_shop_catalog_w() + 30 + 7 + 2; ?> px; } ul.products li.product.list .product-wrapper a.thumb { margin-left:-<?php echo yit_shop_catalog_w() + 30 + 7 + 2; ?> px; width: <?php echo yit_shop_catalog_w(); ?> px; } .single-product.woocommerce div.product.product-layout-1 div.images { width:<?php echo $images_container_w; ?> %; } .single-product.woocommerce div.product.product-layout-1 div.images .thumbnails { width:<?php echo $thumbnails_container_w / yit_shop_single_w() * 100; ?> %; } .single-product.woocommerce div.product.product-layout-1 div.summary { width:<?php echo 100 - $images_container_w - $margin; ?> %; } </style> <?php }
else $sc_special_offers = '[show_products per_page="' . $per_page . '" category="0" show="onsale" orderby="' . $orderby . '" order="' . $order . '" layout="default" ]'; } ?> </ul> <div class="border-box group"> <div id="must-have" class="panel group"><?php echo do_shortcode( $sc_must_have ); ?></div> <div id="best-seller" class="panel group"><?php echo do_shortcode( $sc_best_seller ); ?></div> <div id="special-offers" class="panel group"><?php echo do_shortcode( $sc_special_offers ); ?></div> </div> </div> <script type="text/javascript" charset="utf-8"> <?php global $woocommerce_loop; $content_width = yit_get_sidebar_layout() == 'sidebar-no' ? 1170 : 870; $product_width = yit_shop_small_w() + 10 + 2; // 10 = padding & 2 = border $c = floor( $content_width / $product_width ); $columns = $c; $woocommerce_loop['columns'] = $columns; ?> jQuery(function($){ var carouFredSel; var carouFredSelOptions = { responsive: false, auto: true, items: <?php echo empty( $woocommerce_loop['columns'] ) ? 0 : $woocommerce_loop['columns'] ?>, circular: true, infinite: true,
/** * Retrieve the sidebar layout settings for the current post. * * @return string * @see yit_get_sidebar_layout * @since 1.0.0 */ function yit_sidebar_layout() { echo yit_get_sidebar_layout(); }
if (isset($category) && $category != '') { $ids = explode(',', $category); $ids = array_map('trim', $ids); if (in_array('0', $ids)) { $ids = ''; } } if (is_array($ids)) { $args = array('post_type' => 'faq', 'posts_per_page' => -1, 'tax_query' => array(array('taxonomy' => 'category-faq', 'field' => 'id', 'terms' => $ids))); } else { $args = array('post_type' => 'faq', 'posts_per_page' => -1); } $faq = new WP_Query($args); $args = array('taxonomy' => 'category-faq', 'title_li' => '', 'include' => $ids); $cat = get_categories($args); $cols = 'span' . yit_get_sidebar_layout() == 'sidebar-no' ? 12 : apply_filters('yit_with_sidebar_columns', 9); if (!$faq->have_posts()) { return false; } ?> <?php /* if ($cat && strcmp($filter, 'yes') == 0) : ?> <div class="row"><ul class="filters faq"> <li class="all"><a href="#all" data-option-value="*" class="all active"><div class="prepend"></div><?php _e('All Categories', 'yit') ?></a></li> <?php foreach ($cat as $c) : echo '<li><a href="#' . $c->slug . '" data-option-value=".' . $c->slug . '">' . $c->name . '</a></li>'; endforeach ?> </ul></div> <?php endif */
<?php /** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ $class = yit_get_sidebar_layout() == 'sidebar-no' ? yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) || yit_get_option( 'blog-show-author' ) ? ' width11' : ' width12' : ' width8'; ?> <div class="thumbnail<?php echo $class ?>"> <!-- post meta --> <div> <?php yit_string( "<blockquote class=\"post-title\"><a href=\"" . get_permalink() . "\">", get_the_content(), "</a><cite>" . get_the_title() . "</cite></blockquote>" ) ?> </div> </div> <div class="clear"></div>
} else { $website = '<a class="website" href="' . esc_url($siteurl) . '">' . $siteurl . '</a>'; } } else { $website = '<span class="website">' . $label . '</span>'; } $thumb = get_the_post_thumbnail(null, 'thumb-testimonial') ? 'testimonial-thumb' : ''; ?> <div id="post-<?php echo $item_id; ?> " class="hentry-post group testimonial-post internal-post"> <div class="post_content group"> <div class="testimonial-page span<?php echo yit_get_sidebar_layout() != 'sidebar-no' ? 9 : 12; ?> "> <div class="testimonial-text-full <?php echo $thumb; ?> "> <blockquote><?php wpautop(the_content()); ?> </blockquote> <?php if (get_the_post_thumbnail(null, 'thumb-testimonial')) { ?> <div class="thumbnail"> <?php
wp_reset_query(); $args = array('post_type' => 'testimonial'); $args['posts_per_page'] = isset($items) && $items != '' ? $items : -1; if (isset($cat) && !empty($cat)) { $cat = array_map('trim', explode(',', $cat)); $args['tax_query'] = array(array('taxonomy' => 'category-testimonial', 'field' => 'id', 'terms' => $cat)); } $tests = new WP_Query($args); if (!$tests->have_posts()) { return false; } ?> <?php $i = 0; $row = yit_get_sidebar_layout() == 'sidebar-no' ? 4 : 3; while ($tests->have_posts()) { $tests->the_post(); if ($i == 0 || $i % $row == 0) { echo '<div class="row">'; } $fulltext = ''; $text = strcmp(yit_get_option('text-type-testimonials'), 'content') == 0 ? get_the_content() : get_the_excerpt(); $title = yit_get_option('link-testimonials') ? the_title('<a href="' . get_permalink() . '" class="name">', '</a>', false) : the_title('<p class="name">', '</p>', false); $label = yit_get_post_meta(get_the_ID(), '_site-label'); $siteurl = yit_get_post_meta(get_the_ID(), '_site-url'); $smallquote = yit_get_post_meta(get_the_ID(), '_small-quote'); $website = ''; if ($siteurl != '') { if ($label != '') { $website = '<a class="website" href="' . esc_url($siteurl) . '">' . $label . '</a>';
* * 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(); do_action( 'yit_before_primary' ) ?> <!-- START PRIMARY --> <div id="primary" class="<?php yit_sidebar_layout() ?>"> <div class="container group"> <div class="row"> <?php do_action( 'yit_before_content' ) ?> <!-- START CONTENT --> <div id="content-index" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9 ?> content group"> <?php do_action( 'yit_404' ) ?> </div> <!-- END CONTENT --> <?php do_action( 'yit_after_content' ) ?> <?php get_sidebar() ?> <?php do_action( 'yit_after_sidebar' ) ?> </div> </div> </div> <!-- END PRIMARY --> <?php do_action( 'yit_after_primary' ); get_footer();
* http://www.gnu.org/licenses/gpl-3.0.txt */ /* Template Name: Contact */ get_header(); do_action( 'yit_before_primary' ) ?> <!-- START PRIMARY --> <main id="primary" class="<?php yit_sidebar_layout() ?>"> <div class="container group"> <div class="row"> <?php do_action( 'yit_before_content' ) ?> <!-- START CONTENT --> <div id="content-page" class="span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9 ?> content group contact-page"> <?php do_action( 'yit_loop_page' ); comments_template(); ?> </div> <!-- END CONTENT --> <?php do_action( 'yit_after_content' ) ?> <?php get_sidebar() ?> <?php do_action( 'yit_after_sidebar' ) ?> <!-- START EXTRA CONTENT --> <?php do_action( 'yit_extra_content' ) ?>
<div class="multistep_step span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9 ?>" id="multistep_step4" data-step="4"> <div id="order_review" class="box_style woocommerce-checkout-review-order"> <h3><?php _e('Payment Method', 'yit'); ?></h3> <?php woocommerce_checkout_payment(); ?> <input type="submit" class="button prev" name="login" value="<?php echo $label_step4; ?>" data-next="<?php echo $next_step4;?>" data-alternativelabel="<?php echo $alter_label_step4?>" /> <input type="submit" class="button next" name="login" value="<?php _e('Order Review →', 'yit'); ?>" data-next="5" /> <div class="clear"></div> </div> </div> <!-- step 5 --> <div class="multistep_step span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9 ?>" id="multistep_step5" data-step="5"> <div class="box_style"> <h3 id="order_review_heading"><?php _e('Your order', 'yit'); ?></h3> <?php do_action('woocommerce_checkout_order_review'); ?> <?php $checkout = WC()->checkout(); ?> <?php do_action( 'woocommerce_before_order_notes', $checkout ); ?> <?php if ( get_option( 'woocommerce_enable_order_comments' ) != 'no' ) : ?> <h3><?php _e('Additional Information', 'yit'); ?></h3> <?php foreach ($checkout->checkout_fields['order'] as $key => $field) : ?> <?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?>
$woocommerce_loop['li_class'][] = 'product'; $woocommerce_loop['li_class'][] = 'group'; $woocommerce_loop['li_class'][] = $woocommerce_loop['view']; $woocommerce_loop['li_class'][] = $woocommerce_loop['layout']; if ( yit_get_option('shop-view-show-border') ) { $woocommerce_loop['li_class'][] = 'with-border'; } // width of each product for the grid $content_width = yit_get_sidebar_layout() == 'sidebar-no' ? 1170 : 870; if ( isset( $yit_is_feature_tab ) && $yit_is_feature_tab ) $content_width -= 300; $product_width = yit_shop_small_w() + 10 + 2; // 10 = padding & 2 = border $is_span = false; if ( get_option('woocommerce_responsive_images') == 'yes' ) { $is_span = true; if ( yit_get_sidebar_layout() == 'sidebar-no' ) { if ( $product_width >= 0 && $product_width < 120 ) { $woocommerce_loop['li_class'][] = 'span1'; $woocommerce_loop['columns'] = 12; } elseif ( $product_width >= 120 && $product_width < 220 ) { $woocommerce_loop['li_class'][] = 'span2'; $woocommerce_loop['columns'] = 6; } elseif ( $product_width >= 220 && $product_width < 320 ) { $woocommerce_loop['li_class'][] = 'span3'; $woocommerce_loop['columns'] = 4; } elseif ( $product_width >= 320 && $product_width < 470 ) { $woocommerce_loop['li_class'][] = 'span4'; $woocommerce_loop['columns'] = 3; } elseif ( $product_width >= 470 && $product_width < 620 ) { $woocommerce_loop['li_class'][] = 'span6'; $woocommerce_loop['columns'] = 2; } else $is_span = false; } else { if ( $product_width >= 0 && $product_width < 150 ) { $woocommerce_loop['li_class'][] = 'span1'; $woocommerce_loop['columns'] = 9; } elseif ( $product_width >= 150 && $product_width < 620 ) { $woocommerce_loop['li_class'][] = 'span3'; $woocommerce_loop['columns'] = 3; } else $is_span = false; } } else {
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'yit' ); ?> </label> </p> <p class="form-row"> <?php wp_nonce_field( 'woocommerce-login' ) ?> <input type="hidden" name="redirect" value="<?php echo get_permalink(wc_get_page_id('checkout')) ?>" /> <input type="submit" class="button" name="login" value="<?php _e('Login', 'yit'); ?>" /> <a class="lost_password" href="<?php echo esc_url( wp_lostpassword_url( home_url() ) ); ?>"><?php _e('Lost Password?', 'yit'); ?></a> </p> </form> </div> <div class="step1_create_account span<?php echo yit_get_sidebar_layout() == 'sidebar-no' ? 6 : 9 ?>"> <h3><?php printf( __('<span>First time on %s?</span> Create an account.', 'yit'), yit_decode_title(get_bloginfo())); ?></h3> <form method="post" class="register"> <?php if ( get_option( 'woocommerce_registration_generate_username' ) == 'no' ) : ?> <p class="form-row form-row-first"> <label for="reg_username"><?php _e('Username', 'yit'); ?> <span class="required">*</span></label> <input type="text" class="input-text" name="username" id="reg_username" value="<?php if (isset($_POST['username'])) echo esc_attr($_POST['username']); ?>" /> </p> <p class="form-row form-row-last"> <?php else : ?>
/** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ $post_classes = 'hentry-post group blog-bazar row'; $span = yit_get_sidebar_layout() == 'sidebar-no' ? 12 : 9; if( yit_get_option( 'blog-post-formats-list' ) ) { $post_classes .= ' post-formats-on-list'; } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( $post_classes ); ?>> <!-- post featured & title --> <?php $post_format = get_post_format() == '' ? 'standard' : get_post_format(); $post_format = yit_get_option( 'blog-post-formats-list' ) && get_post_format() != '' ? get_post_format() : $post_format; yit_get_template( 'blog/bazar/post-formats/' . $post_format . '.php' ); ?>
<?php /** * Order details * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ global $woocommerce; $order = new WC_Order($order_id); $span_size = 'span' . (yit_get_sidebar_layout() == 'sidebar-no' ? 4 : 3); ?> <h2><?php _e('Order Details', 'yit'); ?> </h2> <table class="shop_table order_details"> <thead> <tr> <th class="product-name"><?php _e('Product', 'yit'); ?> </th> <th class="product-total"><?php _e('Total', 'yit'); ?> </th> </tr> </thead> <tfoot>
* Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ $args = array('post_type' => 'post', 'posts_per_page' => $items); if (isset($category) && !empty($category)) { $args['category_name'] = $category; } $size_thumbnail = yit_get_sidebar_layout() != 'sidebar-no' ? 'section_blog_sidebar' : 'section_blog'; $blog = new WP_Query($args); $post_number = 0; if ($blog->have_posts()) { global $wp_query, $post, $more; ?> <div class="section blog"> <?php if (!empty($title)) { yit_string('<h3 class="title">', $title, '</h3>'); } if (!empty($description)) { yit_string('<p class="description">', $description, '</p>'); } $i = $sticked = $already_tsicked = 0; while ($blog->have_posts()) {
/** * Features tab shortcode * * @return string * @since 1.0.0 */ public function print_tab($name_or_id, $echo = true) { global $yit_is_feature_tab; $yit_is_feature_tab = true; $this->current_featurestab = is_int($name_or_id) ? $name_or_id : yit_post_id_from_slug($name_or_id, 'featurestab'); $tab_id = yit_post_slug_from_id($this->current_featurestab); $fields = $this->get('fields'); if (!is_array($fields) or empty($fields)) { return null; } $features_label = ''; $features_content = ''; $i = 0; foreach ($fields as $id => $field) { $current = !$i ? 'current-feature' : ''; $the_label = '<li class="features-tab-' . $i . ' ' . $current . '">'; if (!empty($field['icon'])) { $the_label .= '<img src="' . $field['icon'] . '" title="' . $field['title'] . '" alt="' . $field['title'] . '" />'; } $the_label .= $field['title']; $the_label .= '</li>'; $the_content = '<div class="features-tab-content features-tab-' . $i . ' ' . $current . '">' . yit_addp($field['content']) . '</div>'; $features_label .= $the_label; $features_content .= $the_content; $i++; } $without_sidebar = yit_get_sidebar_layout() == 'sidebar-no' ? 'without-sidebar' : ''; $html = '<div class="row">'; $html .= '<div id="features-tab-' . $name_or_id . '" class="features-tab-container group span' . (yit_get_sidebar_layout() == 'sidebar-no' ? '12' : '9') . ' margin-bottom">'; $html .= '<div class="row">'; $html = apply_filters('yit_before_features_tab_menu', $html); $html .= '<ul class="features-tab-labels span3">' . $features_label . '</ul>'; $html .= '<div class="features-tab-wrapper span' . (yit_get_sidebar_layout() == 'sidebar-no' ? '9' : '6') . '">' . $features_content . '</div>'; $html = apply_filters('yit_after_features_tab_content', $html); $html .= '</div>'; $html .= '</div>'; $html .= '</div>'; if ($echo) { echo $html; } return $html; $yit_is_feature_tab = false; }
/** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ yit_get_template( 'blog/big-ribbon/post-formats/standard.php' ); $span = yit_get_sidebar_layout() == 'sidebar-no' ? yit_get_option( 'blog-show-date' ) || yit_get_option( 'blog-show-comments' ) ? 11 : 12 : 8; if( is_single() || yit_get_option( 'blog-post-formats-list' ) ) : ?> <div class="soundcloud-frame span<?php echo $span ?>"> <?php $url = yit_get_post_meta( get_the_ID(), '_format_audio' ); $iframe = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_iframe' ); $show_artwork = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_artwork' ); $show_comments = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_comments' ); $auto_play = ( bool ) yit_get_post_meta( get_the_ID(), '_format_audio_autoplay' ); $color = yit_get_post_meta( get_the_ID(), '_format_audio_color' ); echo do_shortcode( '[soundcloud iframe="' . $iframe . '" url="' . $url . '" show_artwork="' . $show_artwork . '" show_comments="' . $show_comments . '" auto_play="' . $auto_play . '" color="' . $color . '"]' ); ?> </div>
* Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes 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 */ $var['posts_per_page'] = -1; yit_get_model('portfolio')->shortcode_atts = $var; yit_set_portfolio_loop($portfolio); $postsPerRow = yit_get_sidebar_layout() != 'sidebar-no' ? 4 : 6; $thumbSize = yit_get_sidebar_layout() != 'sidebar-no' ? 'section_portfolio_sidebar' : 'section_portfolio'; $i = 0; $item_selected = 0; ?> <div class="section portfolio"> <?php if (!empty($title)) { yit_string('<h3 class="title">', $title, '</h3>'); } ?> <?php if (!empty($description)) { yit_string('<p class="description">', $description, '</p>'); } ?>