本文整理汇总了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()) {
示例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>";
示例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) {
示例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) {
示例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;