• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP yit_get_sidebar_layout函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了yit_get_sidebar_layout函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 <[email protected]>
 *
 * 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 <[email protected]>
 *
 * 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 <[email protected]>
 *
 * 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


示例16: explode

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 */
开发者ID:zgomotos,项目名称:Bazar,代码行数:31,代码来源:faq.php


示例17: yit_get_sidebar_layout

<?php
/**
 * Your Inspiration Themes
 * 
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <[email protected]>
 *
 * 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>      
开发者ID:simonsays88,项目名称:costa,代码行数:24,代码来源:quote.php


示例18: esc_url

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


示例19: wp_reset_query

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>';
开发者ID:gloomyghost,项目名称:Tip-Top-Art,代码行数:30,代码来源:testimonials.php


示例20: get_header

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP yit_get_template函数代码示例发布时间:2022-05-23
下一篇:
PHP yit_get_post_meta函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap