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

PHP nectar_love函数代码示例

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

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



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

示例1: the_time

        the_time('d');
        ?>
</span>
						<?php 
        $options = get_option('salient');
        if (!empty($options['display_full_date']) && $options['display_full_date'] == 1) {
            echo '<span class="year">' . get_the_time('Y') . '</span>';
        }
    }
    ?>
				</div><!--/date-->
				
				<div class="nectar-love-wrap">
					<?php 
    if (function_exists('nectar_love')) {
        nectar_love();
    }
    ?>
				</div><!--/nectar-love-wrap-->	
							
			</div><!--/post-meta-->
			
		<?php 
}
?>
		
		<div class="content-inner">
			
			<?php 
if (has_post_thumbnail()) {
    if (!is_single()) {
开发者ID:Quartermain,项目名称:strategic,代码行数:31,代码来源:entry.php


示例2: the_time

                    the_time('F d, Y');
                    ?>
												</li>
											</ul><!--sharing-->
									
										<?php 
                }
            }
            ?>
								
								
								<?php 
            // portfolio social sharting icons
            if (!empty($options['portfolio_social']) && $options['portfolio_social'] == 1) {
                echo '<div class="nectar-social sharing">';
                echo '<span class="n-shortcode">' . nectar_love('return') . '</span>';
                //facebook
                if (!empty($options['portfolio-facebook-sharing']) && $options['portfolio-facebook-sharing'] == 1) {
                    echo "<a class='facebook-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-facebook'></i> <span class='count'></span></a>";
                }
                //twitter
                if (!empty($options['portfolio-twitter-sharing']) && $options['portfolio-twitter-sharing'] == 1) {
                    echo "<a class='twitter-share nectar-sharing' href='#' title='" . __('Tweet this', NECTAR_THEME_NAME) . "'> <i class='icon-twitter'></i> <span class='count'></span></a>";
                }
                //google plus
                if (!empty($options['portfolio-google-plus-sharing']) && $options['portfolio-google-plus-sharing'] == 1) {
                    echo "<a class='google-plus-share nectar-sharing-alt' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-google-plus'></i> <span class='count'> " . GetGooglePlusShares(get_permalink($post->ID)) . " </span></a>";
                }
                //linkedIn
                if (!empty($options['portfolio-linkedin-sharing']) && $options['portfolio-linkedin-sharing'] == 1) {
                    echo "<a class='linkedin-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-linkedin'></i> <span class='count'> </span></a>";
开发者ID:ryuqing,项目名称:cake,代码行数:31,代码来源:single-portfolio.php


示例3: nectar_page_header


//.........这里部分代码省略.........
										<span class="meta-date date updated"><?php 
                        echo get_the_date();
                        ?>
</span>
									<?php 
                    }
                    ?>
									<span class="meta-category"><?php 
                    the_category(', ');
                    ?>
</span>
									<span class="meta-comment-count"><a href="<?php 
                    comments_link();
                    ?>
"><?php 
                    comments_number(__('No Comments', NECTAR_THEME_NAME), __('One Comment ', NECTAR_THEME_NAME), __('% Comments', NECTAR_THEME_NAME));
                    ?>
</a></span>
								
								</div><!--/single-below-header-->
								
								<div id="single-meta" data-sharing="<?php 
                    echo !empty($options['blog_social']) && $options['blog_social'] == 1 ? '1' : '0';
                    ?>
">
									<ul>
		
										<?php 
                    if (empty($options['blog_social']) || $options['blog_social'] == 0) {
                        ?>
											   	
											   	<li>
											   		<?php 
                        echo '<span class="n-shortcode">' . nectar_love('return') . '</span>';
                        ?>
											   	</li>
												<li>
													<?php 
                        echo get_the_date();
                        ?>
												</li>
										
										<?php 
                    }
                    ?>
			
									</ul>
									
									<?php 
                    if (!empty($options['blog_social']) && $options['blog_social'] == 1) {
                        echo '<div class="nectar-social">';
                        echo '<span class="n-shortcode">' . nectar_love('return') . '</span>';
                        //facebook
                        if (!empty($options['blog-facebook-sharing']) && $options['blog-facebook-sharing'] == 1) {
                            echo "<a class='facebook-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-facebook'></i> <span class='count'></span></a>";
                        }
                        //twitter
                        if (!empty($options['blog-twitter-sharing']) && $options['blog-twitter-sharing'] == 1) {
                            echo "<a class='twitter-share nectar-sharing' href='#' title='" . __('Tweet this', NECTAR_THEME_NAME) . "'> <i class='icon-twitter'></i> <span class='count'></span></a>";
                        }
                        //google plus
                        if (!empty($options['blog-google-plus-sharing']) && $options['blog-google-plus-sharing'] == 1) {
                            echo "<a class='google-plus-share nectar-sharing-alt' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-google-plus'></i> <span class='count'> " . GetGooglePlusShares(get_permalink($post->ID)) . " </span></a>";
                        }
                        //linkedIn
                        if (!empty($options['blog-linkedin-sharing']) && $options['blog-linkedin-sharing'] == 1) {
开发者ID:ryuqing,项目名称:cake,代码行数:67,代码来源:functions.php


示例4: nectar_page_header


//.........这里部分代码省略.........
										<span class="meta-date date updated"><?php 
                        echo get_the_date();
                        ?>
</span>
									<?php 
                    }
                    ?>
									<span class="meta-category"><?php 
                    the_category(', ');
                    ?>
</span>
									<span class="meta-comment-count"><a href="<?php 
                    comments_link();
                    ?>
"><?php 
                    comments_number(__('No Comments', NECTAR_THEME_NAME), __('One Comment ', NECTAR_THEME_NAME), __('% Comments', NECTAR_THEME_NAME));
                    ?>
</a></span>
								
								</div><!--/single-below-header-->
								
								<div id="single-meta" data-sharing="<?php 
                    echo !empty($options['blog_social']) && $options['blog_social'] == 1 ? '1' : '0';
                    ?>
">
									<ul>
		
										<?php 
                    if (empty($options['blog_social']) || $options['blog_social'] == 0) {
                        ?>
											   	
											   	<li>
											   		<?php 
                        echo '<span class="n-shortcode">' . nectar_love('return') . '</span>';
                        ?>
											   	</li>
												<li>
													<?php 
                        echo get_the_date();
                        ?>
												</li>
										
										<?php 
                    }
                    ?>
			
									</ul>
									
									<?php 
                    if (!empty($options['blog_social']) && $options['blog_social'] == 1) {
                        echo '<div class="nectar-social">';
                        echo '<span class="n-shortcode">' . nectar_love('return') . '</span>';
                        //facebook
                        if (!empty($options['blog-facebook-sharing']) && $options['blog-facebook-sharing'] == 1) {
                            echo "<a class='facebook-share nectar-sharing' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-facebook'></i> <span class='count'></span></a>";
                        }
                        //twitter
                        if (!empty($options['blog-twitter-sharing']) && $options['blog-twitter-sharing'] == 1) {
                            echo "<a class='twitter-share nectar-sharing' href='#' title='" . __('Tweet this', NECTAR_THEME_NAME) . "'> <i class='icon-twitter'></i> <span class='count'></span></a>";
                        }
                        //google plus
                        if (!empty($options['blog-google-plus-sharing']) && $options['blog-google-plus-sharing'] == 1) {
                            echo "<a class='google-plus-share nectar-sharing-alt' href='#' title='" . __('Share this', NECTAR_THEME_NAME) . "'> <i class='icon-google-plus'></i> <span class='count'> " . GetGooglePlusShares(get_permalink($post->ID)) . " </span></a>";
                        }
                        //linkedIn
                        if (!empty($options['blog-linkedin-sharing']) && $options['blog-linkedin-sharing'] == 1) {
开发者ID:AntonioColeman,项目名称:Clairvoyant,代码行数:67,代码来源:functions.php


示例5: nectar_portfolio_processing


//.........这里部分代码省略.........
                } else {
                    echo '<a href="' . $featured_image[0] . '"';
                    if (!empty($project_image_caption)) {
                        echo 'title="' . $project_image_caption . '"';
                    }
                    echo 'class="pretty_photo">' . __("View Larger", NECTAR_THEME_NAME) . '</a> ';
                }
                if ($lightbox_only != 'true') {
                    echo '<a href="' . $the_project_link . '">' . __("More Details", NECTAR_THEME_NAME) . '</a>';
                }
                ?>
									    
									</div><!--/vert-center-->
								</div>
							</div><!--work-item-->
							
							<div class="work-meta">
								<h4 class="title"><?php 
                the_title();
                ?>
</h4>
								
								<?php 
                if (!empty($project_excerpt)) {
                    echo '<p>' . $project_excerpt . '</p>';
                } elseif (!empty($options['portfolio_date']) && $options['portfolio_date'] == 1) {
                    echo '<p>' . get_the_date() . '</p>';
                }
                ?>
								
							</div>
							<div class="nectar-love-wrap">
								<?php 
                if (function_exists('nectar_love')) {
                    nectar_love();
                }
                ?>
							</div><!--/nectar-love-wrap-->	
						
						<?php 
            } else {
                if ($project_style == '2') {
                    ?>
							
							<div class="work-item style-2">
								
								<?php 
                    $thumb_size = !empty($masonry_item_sizing) ? $masonry_item_sizing : 'portfolio-thumb';
                    //custom thumbnail
                    $custom_thumbnail = get_post_meta($post->ID, '_nectar_portfolio_custom_thumbnail', true);
                    if (!empty($custom_thumbnail)) {
                        echo '<img class="custom-thumbnail" src="' . $custom_thumbnail . '" alt="' . get_the_title() . '" />';
                    } else {
                        if (has_post_thumbnail()) {
                            echo get_the_post_thumbnail($post->ID, $thumb_size, array('title' => ''));
                        } else {
                            switch ($thumb_size) {
                                case 'wide':
                                    $no_image_size = 'no-portfolio-item-wide.jpg';
                                    break;
                                case 'tall':
                                    $no_image_size = 'no-portfolio-item-tall.jpg';
                                    break;
                                case 'regular':
                                    $no_image_size = 'no-portfolio-item-tiny.jpg';
                                    break;
开发者ID:nignjatov,项目名称:TaxiDev,代码行数:67,代码来源:shortcode-processing.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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