当前位置: 首页>>代码示例>>PHP>>正文


PHP yit_get_sidebar_layout函数代码示例

本文整理汇总了PHP中yit_get_sidebar_layout函数的典型用法代码示例。如果您正苦于以下问题:PHP yit_get_sidebar_layout函数的具体用法?PHP yit_get_sidebar_layout怎么用?PHP yit_get_sidebar_layout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了yit_get_sidebar_layout函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: yit_get_sidebar_layout

 * 
 * 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 <info@yithemes.com>
 *
 * 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">
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:404.php

示例2: get_header

 * 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() ?>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:archives.php

示例3: yit_sidebar_layout

    <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();
开发者ID:VitaliyProdan,项目名称:wp_shop,代码行数:31,代码来源:full-width.php

示例4:

<?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">
开发者ID:jayeshnair,项目名称:ctp,代码行数:12,代码来源:wrapper-start.php

示例5: remove_action

/**
 * Your Inspiration Themes
 * 
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <info@yithemes.com>
 *
 * 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>');
}
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:section-blog.php

示例6: esc_url

						$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>
	        
开发者ID:simonsays88,项目名称:costa,代码行数:30,代码来源:testimonial.php

示例7: get_sidebar

<?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>
开发者ID:simonsays88,项目名称:costa,代码行数:18,代码来源:sidebar.php

示例8: WC

}
// 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&hellip;', 'woocommerce');
    ?>
</h2>

        <?php 
    woocommerce_product_loop_start();
    ?>

            <?php 
    while ($products->have_posts()) {
        $products->the_post();
开发者ID:VitaliyProdan,项目名称:wp_shop,代码行数:31,代码来源:up-sells.php

示例9: wp_list_comments

     * 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);
开发者ID:allyeastman,项目名称:studio-sapphire,代码行数:31,代码来源:markup.php

示例10: yit_get_post_meta

         $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 ?>
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:audio.php

示例11: yit_sidebar_layout

<?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">
开发者ID:zgomotos,项目名称:Bazar,代码行数:24,代码来源:wrapper-start.php

示例12: array

/**
 * Your Inspiration Themes
 * 
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <info@yithemes.com>
 *
 * 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>');
    }
    ?>
开发者ID:eugenehiggins,项目名称:wellnessrx,代码行数:30,代码来源:section-services.php

示例13: yit_size_images_style

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 
}
开发者ID:VitaliyProdan,项目名称:wp_shop,代码行数:37,代码来源:woocommerce.php

示例14: do_shortcode

				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,
开发者ID:simonsays88,项目名称:costa,代码行数:31,代码来源:products_tabs.php

示例15: yit_sidebar_layout

 /**
  * 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();
 }
开发者ID:allyeastman,项目名称:studio-sapphire,代码行数:11,代码来源:functions-template.php


注:本文中的yit_get_sidebar_layout函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。