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


PHP lip_love_it_link函数代码示例

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


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

示例1: lip_display_love_link

function lip_display_love_link($content)
{
    global $lip_options, $post;
    // only show the link when user is logged in and on a singular page
    if (is_singular()) {
        // setup the Love It link text
        if (isset($lip_options['love_it_text']) && $lip_options['love_it_text'] != '') {
            $link_text = $lip_options['love_it_text'];
        } else {
            $link_text = __('Love It', 'love_it');
        }
        // setup the Already Loved This text
        if (isset($lip_options['already_loved']) && $lip_options['already_loved'] != '') {
            $already_loved = $lip_options['already_loved'];
        } else {
            $already_loved = __('You have loved this', 'love_it');
        }
        $link = lip_love_it_link($post->ID, $link_text, $already_loved, false);
        // append our "Love It" link to the item content.
        if (isset($lip_options['post_position']) && $lip_options['post_position'] == 'top') {
            $content = $link . $content;
        } else {
            $content = $content . $link;
        }
    }
    return $content;
}
开发者ID:adams0917,项目名称:woocommerce_eht,代码行数:27,代码来源:display-functions.php

示例2: marketify_li_love_link

/**
 * Manually output the link where we want it
 */
function marketify_li_love_link()
{
    global $post;
    if (!is_object($post)) {
        return;
    }
    if (class_exists('Love_It_Pro')) {
        echo lip_love_it_link($post->ID, '', '');
    } else {
        echo li_love_link();
    }
}
开发者ID:evinw,项目名称:project_3dBP,代码行数:15,代码来源:love-it.php

示例3: sf_gallery_share

    function sf_gallery_share()
    {
        $image = wp_get_attachment_url(get_post_thumbnail_id());
        $share_text = apply_filters('sf_post_share_text', __("Share this", "swiftframework"));
        ?>
            <div class="gallery-share">
                <div class="article-divider"></div>
                <div class="article-share" data-buttontext="<?php 
        echo esc_attr($share_text);
        ?>
"
                     data-image="<?php 
        echo esc_url($image);
        ?>
"></div>
                <?php 
        if (function_exists('lip_love_it_link')) {
            lip_love_it_link(get_the_ID(), true, 'text');
        }
        ?>
            </div>
        <?php 
    }
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:23,代码来源:single-gallery.php

示例4: lip_display_love_link

function lip_display_love_link($content)
{
    global $lip_options, $post;
    if (is_singular()) {
        if (isset($lip_options['love_it_text']) && $lip_options['love_it_text'] != '') {
            $link_text = $lip_options['love_it_text'];
        } else {
            //			$link_text = __('Love It', 'love_it');
            $link_text = 'Like This';
        }
        if (isset($lip_options['already_loved']) && $lip_options['already_loved'] != '') {
            $already_loved = $lip_options['already_loved'];
        } else {
            $already_loved = __('You have already liked this', 'love_it');
        }
        $link = lip_love_it_link($post->ID, $link_text, $already_loved, false);
        if (isset($lip_options['post_position']) && $lip_options['post_position'] == 'top') {
            $content = $link . $content;
        } else {
            $content = $content . $link;
        }
    }
    return $content;
}
开发者ID:moscarar,项目名称:cityhow,代码行数:24,代码来源:display-functions.php

示例5: sf_get_post_item


//.........这里部分代码省略.........
                            $post_item .= '<h3 itemprop="name headline">' . $post_title . '</h3>';
                        }
                    }
                }
                if (sf_theme_opts_name() == "sf_atelier_options") {
                    if ($show_details == "yes") {
                        $post_item .= sf_get_post_details($postID);
                    }
                    if ($show_excerpt == "yes" && $post_format != "quote") {
                        $post_item .= '<div class="excerpt" itemprop="description">' . $post_excerpt . '</div>';
                    }
                    if ($show_read_more == "yes") {
                        if ($download_button) {
                            if ($download_shortcode != "") {
                                $post_item .= do_shortcode($download_shortcode);
                            } else {
                                $post_item .= '<a href="' . wp_get_attachment_url($download_file) . '" class="download-button read-more-button">' . $download_text . '</a>';
                            }
                        }
                        $post_item .= '<a class="read-more-button" href="' . get_permalink() . '">' . __("Read more", "swiftframework") . '</a>';
                    }
                    if ($show_details == "yes") {
                        $post_item .= '<div class="comments-likes">';
                        if (comments_open()) {
                            $post_item .= '<div class="comments-wrapper"><a href="' . $post_permalink . '#comment-area">
	                        <svg version="1.1" class="comments-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	                        	 width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
	                        <path fill="none" class="stroke" stroke="#252525" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
	                        	M13.958,24H2.021C1.458,24,1,23.541,1,22.975V2.025C1,1.459,1.458,1,2.021,1h25.957C28.542,1,29,1.459,29,2.025v20.949
	                        	C29,23.541,28.542,24,27.979,24H21v5L13.958,24z"/>
	                        </svg>
	                        <span>' . $post_comments . '</span></a></div>';
                        }
                        if (function_exists('lip_love_it_link')) {
                            $post_item .= lip_love_it_link(get_the_ID(), false);
                        }
                        $post_item .= '</div>';
                    }
                } else {
                    if ($show_excerpt == "yes" && $post_format != "quote") {
                        $post_item .= '<div class="excerpt" itemprop="description">' . $post_excerpt . '</div>';
                    }
                    if ($show_details == "yes") {
                        $post_item .= sf_get_post_details($postID);
                        $post_item .= '<div class="comments-likes">';
                        if (comments_open()) {
                            $post_item .= '<div class="comments-wrapper"><a href="' . $post_permalink . '#comment-area">' . $comments_icon . '<span>' . $post_comments . '</span></a></div>';
                        }
                        if (function_exists('lip_love_it_link')) {
                            $post_item .= lip_love_it_link($postID, false);
                        }
                        $post_item .= '</div>';
                    }
                }
                $post_item .= '</div>';
                // MINI STYLING
            } else {
                if ($blog_type == "mini") {
                    $post_item .= '<div class="mini-blog-item-wrap clearfix">';
                    if ($post_format == "quote" || $post_format == "link") {
                        $post_item .= '<div class="mini-alt-wrap">';
                    } else {
                        $post_item .= $item_figure;
                    }
                    $post_item .= '<div class="blog-details-wrap clearfix">';
                    if ($show_title == "yes" && $post_format != "quote" && $post_format != "link") {
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:67,代码来源:sf-post-formats.php

示例6: sf_get_standard_post

    function sf_get_standard_post($postID, $thumb_type, $fullwidth, $show_title, $show_excerpt, $show_details, $show_read_more, $content_output, $excerpt_length)
    {
        global $sf_options;
        $single_author = $sf_options['single_author'];
        $remove_dates = $sf_options['remove_dates'];
        // Get Post Object
        $post_object = sf_build_post_object($postID, $content_output, $excerpt_length);
        // Link config
        $post_links_match_thumb = false;
        if (isset($sf_options['post_links_match_thumb'])) {
            $post_links_match_thumb = $sf_options['post_links_match_thumb'];
        }
        $post_permalink_config = 'href="' . $post_object['permalink'] . '" class="link-to-post"';
        if ($post_links_match_thumb) {
            $link_config = sf_post_item_link();
            $post_permalink_config = $link_config['config'];
        }
        // Variable setup
        $post_item = "";
        $comments_icon = apply_filters('sf_comments_icon', '<i class="ss-chat"></i>');
        $link_icon = apply_filters('sf_link_icon', '<i class="ss-link"></i>');
        $sticky_icon = apply_filters('sf_sticky_icon', '<i class="ss-bookmark"></i>');
        // THUMBNAIL MEDIA TYPE SETUP
        $item_figure = "";
        if ($thumb_type != "none") {
            $item_figure .= sf_post_thumbnail("timeline", $fullwidth);
        }
        // DETAILS SETUP
        $item_details = "";
        if ($single_author && !$remove_dates) {
            $item_details .= '<div class="blog-item-details">' . sprintf(__('In %1$s on <time datetime="%2$s">%3$s</time>', 'swiftframework'), $post_object['categories'], $post_object['date_str'], $post_object['date']) . '</div>';
        } else {
            if (!$remove_dates) {
                $item_details .= '<div class="blog-item-details">' . sprintf(__('<span class="author">By <a href="%2$s" rel="author" itemprop="author">%1$s</a></span> in %3$s on <time datetime="%4$s">%5$s</time>', 'swiftframework'), $post_object['author'], get_author_posts_url(get_the_author_meta('ID')), $post_object['categories'], $post_object['date_str'], $post_object['date']) . '</div>';
            } else {
                if (!$single_author) {
                    $item_details .= '<div class="blog-item-details">' . sprintf(__('<span class="author">By <a href="%2$s" rel="author" itemprop="author">%1$s</a></span> in %3$s', 'swiftframework'), $post_object['author'], get_author_posts_url(get_the_author_meta('ID')), $post_object['categories']) . '</div>';
                }
            }
        }
        // Open output
        if (sf_theme_opts_name() == "sf_atelier_options" && $show_details == "yes") {
            $post_item .= '<div class="side-details">';
            if (!$remove_dates) {
                $post_date_month = get_the_date('M');
                $post_date_day = get_the_date('d');
                $post_date_year = get_the_date('Y');
                $post_item .= '<div class="side-post-date narrow-date-block" itemprop="datePublished"><span class="month">' . $post_date_month . '</span><span class="day">' . $post_date_day . '</span><span class="year">' . $post_date_year . '</span></div>';
            }
            if (comments_open()) {
                $post_item .= '<div class="comments-wrapper narrow-date-block"><a href="' . $post_object['permalink'] . '#comment-area">
	    		    <svg version="1.1" class="comments-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	    		    	 width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
	    		    <path fill="none" class="stroke" stroke="#252525" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
	    		    	M13.958,24H2.021C1.458,24,1,23.541,1,22.975V2.025C1,1.459,1.458,1,2.021,1h25.957C28.542,1,29,1.459,29,2.025v20.949
	    		    	C29,23.541,28.542,24,27.979,24H21v5L13.958,24z"/>
	    		    </svg>
	    		    <span>' . $post_object['comments'] . '</span></a></div>';
            }
            if (function_exists('lip_love_it_link')) {
                $post_item .= lip_love_it_link(get_the_ID(), false, '', 'narrow-date-block');
            }
            $post_item .= '</div>';
            $post_item .= '<div class="post-content-wrap">';
        }
        $post_item .= $item_figure;
        if ($item_figure == "") {
            $post_item .= '<div class="standard-post-content no-thumb clearfix">';
            // open standard-post-content
        } else {
            $post_item .= '<div class="standard-post-content clearfix">';
            // open standard-post-content
        }
        if ($show_title == "yes" && $post_object['format'] != "link" && $post_object['format'] != "quote") {
            $post_item .= '<h1 itemprop="name headline"><a ' . $post_permalink_config . '>' . $post_object['title'] . '</a></h1>';
        }
        if ($show_details == "yes" && $post_object['format'] != "quote" && $post_object['format'] != "link") {
            if (sf_theme_opts_name() == "sf_atelier_options") {
                if (!$single_author) {
                    $post_item .= '<div class="blog-item-details">' . sprintf(__('<span class="author">By <a href="%2$s" rel="author" itemprop="author">%1$s</a></span> in %3$s', 'swiftframework'), $post_object['author'], get_author_posts_url(get_the_author_meta('ID')), $post_object['categories']) . '</div>';
                }
            } else {
                $post_item .= $item_details;
            }
        }
        if ($show_excerpt == "yes") {
            $post_item .= '<div class="excerpt" itemprop="description">' . $post_object['excerpt'] . '</div>';
        } else {
            if ($post_object['format'] == "quote") {
                $post_item .= '<div class="quote-excerpt heading-font" itemprop="description">' . $post_object['excerpt'] . '</div>';
            } else {
                if ($post_object['format'] == "link") {
                    $post_item .= '<div class="link-excerpt heading-font" itemprop="description">' . $link_icon . $post_object['excerpt'] . '</div>';
                }
            }
        }
        if (is_sticky()) {
            $post_item .= '<div class="sticky-post-icon">' . $sticky_icon . '</div>';
        }
        if ($post_object['download_button']) {
//.........这里部分代码省略.........
开发者ID:arobbins,项目名称:spellestate,代码行数:101,代码来源:sf-post-formats.php

示例7: lip_love_it_link

        echo $post_permalink;
        ?>
'#comment-area"><?php 
        echo $comments_icon;
        ?>
<span><?php 
        echo $post_comments;
        ?>
</span></a></div>
					<?php 
    }
    ?>
					
					<?php 
    if (function_exists('lip_love_it_link')) {
        echo lip_love_it_link($post_id, false);
    }
    ?>
					
				</div>
				
			<?php 
}
?>
		
		</div>
	
	<?php 
if ($post_format == "quote" || $post_format == "link") {
    ?>
	
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:30,代码来源:post-mini.php

示例8: sf_portfolio_social_links

    function sf_portfolio_social_links()
    {
        global $post;
        $page_title = get_the_title();
        $page_permalink = get_the_permalink();
        $media_type = $media_image = '';
        $use_thumb_content = sf_get_post_meta($post->ID, 'sf_thumbnail_content_main_detail', true);
        if ($use_thumb_content) {
            $media_type = sf_get_post_meta($post->ID, 'sf_thumbnail_type', true);
            $media_image = rwmb_meta('sf_thumbnail_image', 'type=image&size=full');
        } else {
            $media_type = sf_get_post_meta($post->ID, 'sf_detail_type', true);
            $media_image = rwmb_meta('sf_detail_image', 'type=image&size=full');
        }
        foreach ($media_image as $detail_image) {
            $media_image_url = $detail_image['url'];
            $share_image_url = $media_image_url;
            break;
        }
        if (!$media_image) {
            $media_image = get_post_thumbnail_id();
            $media_image_url = wp_get_attachment_url($media_image, 'full');
            $share_image_url = $media_image_url;
        }
        ?>
			<div class="share-links clearfix">
				<ul class="bar-styling">
					<li class="sf-love">
						<div class="comments-likes">
						<?php 
        if (function_exists('lip_love_it_link')) {
            echo lip_love_it_link(get_the_ID(), '<i class="ss-heart"></i>', '<i class="ss-heart"></i>', false);
        }
        ?>
						</div>
					</li>
				    <li class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php 
        echo $page_permalink;
        ?>
" class="product_share_facebook" onclick="javascript:window.open(this.href,
				      '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;"><i class="fa-facebook"></i></a></li>
				    <li class="twitter"><a href="https://twitter.com/share?url=<?php 
        echo $page_permalink;
        ?>
&text=<?php 
        echo urlencode(get_the_title());
        ?>
" onclick="javascript:window.open(this.href,
				      '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=260,width=600');return false;" class="product_share_twitter"><i class="fa-twitter"></i></a></li>   
				    <li class="google-plus"><a href="https://plus.google.com/share?url=<?php 
        echo $page_permalink;
        ?>
" onclick="javascript:window.open(this.href,
				      '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa-google-plus"></i></a></li>
				    <?php 
        if ($share_image_url != "") {
            ?>
				    <li class="pinterest"><a href="//pinterest.com/pin/create/button/?url=<?php 
            echo $page_permalink;
            ?>
&media=<?php 
            echo $share_image_url;
            ?>
&description=<?php 
            echo $page_title;
            ?>
" onclick="javascript:window.open(this.href,
				      '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600');return false;" class="product_share_pinterest"><i class="fa-pinterest"></i></a></li>
				    <?php 
        } else {
            ?>
				    <li class="pinterest"><a href="//pinterest.com/pin/create/button/?url=<?php 
            echo $page_permalink;
            ?>
&description=<?php 
            echo $page_title;
            ?>
" onclick="javascript:window.open(this.href,
				      '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600');return false;" class="product_share_pinterest"><i class="fa-pinterest"></i></a></li>
				    <?php 
        }
        ?>
				    <li class="mail"><a href="mailto:?subject=<?php 
        echo urlencode(get_the_title());
        ?>
&body=<?php 
        echo strip_tags(get_the_excerpt());
        ?>
 <?php 
        $page_permalink;
        ?>
" class="product_share_email"><i class="ss-mail"></i></a></li>
				</ul>						
			</div>
		<?php 
    }
开发者ID:part-up,项目名称:blog,代码行数:96,代码来源:sf-portfolio-detail.php

示例9: content


//.........这里部分代码省略.........
             $thumb_lightbox_image = rwmb_meta('sf_thumbnail_link_image', 'type=image&size=large');
             $thumb_lightbox_video_url = sf_get_post_meta($post->ID, 'sf_thumbnail_link_video_url', true);
             $thumb_lightbox_video_url = sf_get_embed_src($thumb_lightbox_video_url);
             $thumb_lightbox_img_url = wp_get_attachment_url($thumb_lightbox_image, 'full');
             $link_config = "";
             if ($thumb_link_type == "link_to_url") {
                 $link_config = 'href="' . $thumb_link_url . '" class="link-to-url"';
                 $item_icon = "ss-link";
             } else {
                 if ($thumb_link_type == "link_to_url_nw") {
                     $link_config = 'href="' . $thumb_link_url . '" class="link-to-url" target="_blank"';
                     $item_icon = "ss-link";
                 } else {
                     if ($thumb_link_type == "lightbox_thumb") {
                         $link_config = 'href="' . $thumb_img_url . '" class="view"';
                         $item_icon = "ss-view";
                     } else {
                         if ($thumb_link_type == "lightbox_image") {
                             $lightbox_image_url = '';
                             foreach ($thumb_lightbox_image as $image) {
                                 $lightbox_image_url = $image['full_url'];
                             }
                             $link_config = 'href="' . $lightbox_image_url . '" class="view"';
                             $item_icon = "ss-view";
                         } else {
                             if ($thumb_link_type == "lightbox_video") {
                                 $link_config = 'data-video="' . $thumb_lightbox_video_url . '" href="#" class="fw-video-link"';
                                 $item_icon = "ss-video";
                             } else {
                                 $link_config = 'href="' . $post_permalink . '" class="link-to-post"';
                                 $item_icon = "ss-navigateright";
                             }
                         }
                     }
                 }
             }
             $items .= '<li itemscope class="recent-post ' . $item_class . ' clearfix">';
             $items .= '<figure class="animated-overlay overlay-alt">';
             if ($thumb_type == "video") {
                 $video = sf_video_embed($thumb_video, 270, 202);
                 $items .= $video;
             } else {
                 if ($thumb_type == "slider") {
                     $items .= '<div class="flexslider thumb-slider"><ul class="slides">';
                     foreach ($thumb_gallery as $image) {
                         $alt = $image['alt'];
                         if (!$alt) {
                             $alt = $image['title'];
                         }
                         $items .= "<li><a '.{$link_config}.'><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$alt}' /></a></li>";
                     }
                     $items .= '</ul></div>';
                 } else {
                     if ($thumb_img_url == "" && $thumb_type != "none") {
                         $thumb_img_url = "default";
                     }
                     $image = sf_aq_resize($thumb_img_url, 420, 315, true, false);
                     if ($image) {
                         $items .= '<img itemprop="image" src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" alt="' . $item_title . '" />';
                         $items .= '<a ' . $link_config . '></a>';
                         $items .= '<figcaption><div class="thumb-info thumb-info-alt">';
                         $items .= '<i class="' . $item_icon . '"></i>';
                         $items .= '</div></figcaption>';
                     }
                 }
             }
             $items .= '</figure>';
             $items .= '<div class="details-wrap">';
             $items .= '<h5><a href="' . $post_permalink . '">' . $item_title . '</a></h5>';
             if ($excerpt_length != "0") {
                 $items .= '<div class="excerpt">' . $post_excerpt . '</div>';
             }
             $items .= '</div>';
             $items .= '<div class="post-item-details clearfix">';
             $items .= '<span class="post-date">' . $post_date . '</span>';
             $items .= '<div class="comments-likes">';
             if (comments_open()) {
                 $items .= '<a href="' . $post_permalink . '#comment-area"><i class="ss-chat"></i><span>' . $post_comments . '</span></a> ';
             }
             if (function_exists('lip_love_it_link')) {
                 $items .= lip_love_it_link(get_the_ID(), '<i class="ss-heart"></i>', '<i class="ss-heart"></i>', false);
             }
             $items .= '</div>';
             $items .= '</div>';
             $items .= '</li>';
         }
         wp_reset_query();
         $items .= '</ul>';
     }
     $el_class = $this->getExtraClass($el_class);
     $width = spb_translateColumnWidthToSpan($width);
     $output .= "\n\t" . '<div class="spb_recent_posts_widget spb_content_element ' . $width . $el_class . '">';
     $output .= "\n\t\t" . '<div class="spb_wrapper recent-posts-wrap">';
     $output .= $title != '' ? "\n\t\t\t" . '<h3 class="spb-heading"><span>' . $title . '</span></h3>' : '';
     $output .= "\n\t\t\t\t" . $items;
     $output .= "\n\t\t" . '</div> ' . $this->endBlockComment('.spb_wrapper');
     $output .= "\n\t" . '</div> ' . $this->endBlockComment($width);
     $output = $this->startRow($el_position) . $output . $this->endRow($el_position);
     return $output;
 }
开发者ID:nhatnam1102,项目名称:wp-content,代码行数:101,代码来源:recent-posts.php

示例10: sf_post_info


//.........这里部分代码省略.........
            <?php 
        if ($author_info) {
            ?>
                <div class="post-info clearfix">
            <?php 
        } else {
            ?>
                <div class="post-info post-info-fw clearfix">
            <?php 
        }
        ?>

                <?php 
        if ($author_info) {
            ?>
                    <div class="author-info-wrap clearfix">
                        <div class="author-avatar"><?php 
            if (function_exists('get_avatar')) {
                echo get_avatar(get_the_author_meta('ID'), '140');
            }
            ?>
</div>
                        <div class="author-bio">
                            <div class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person"><h3
                                    class="vcard author"><span itemprop="name" class="fn"><?php 
            echo esc_attr($author_name);
            ?>
</span>
                                </h3></div>
                            <div class="author-bio-text">
                            	<?php 
            the_author_meta('description');
            ?>
                            	<?php 
            echo sprintf(__('<a href="%2$s" class="author-more-link">More by %1$s <i class="fa-long-arrow-right"></i></a>', 'swiftframework'), $author_name, $author_url);
            ?>
                            </div>
                        </div>
                    </div>
                <?php 
        }
        ?>

                <div class="post-details-wrap">

                	<?php 
        echo sf_social_share();
        ?>

		        	<?php 
        if (has_tag()) {
            ?>
		                <div class="tags-wrap">
		                	<span class="tags-title"><?php 
            _e("Tags", "swiftframework");
            ?>
</span>
		                	<ul class="wp-tag-cloud"><?php 
            the_tags('<li>', '</li><li>', '</li>');
            ?>
</ul>
		                </div>
		            <?php 
        }
        ?>

					<div class="comments-likes">
	                	<?php 
        if (comments_open()) {
            ?>
	                        <div class="comments-wrapper">
		                        <a href="#comment-area" class="smooth-scroll-link">
			                        <svg version="1.1" class="comments-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
			                        	 width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
			                        <path fill="none" class="stroke" stroke="#252525" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="
			                        	M13.958,24H2.021C1.458,24,1,23.541,1,22.975V2.025C1,1.459,1.458,1,2.021,1h25.957C28.542,1,29,1.459,29,2.025v20.949
			                        	C29,23.541,28.542,24,27.979,24H21v5L13.958,24z"/>
			                        </svg>
			                        <span><?php 
            echo $post_comments;
            ?>
</span>
		                        </a>
	                        </div>
	                    <?php 
        }
        ?>

	                    <?php 
        if (function_exists('lip_love_it_link')) {
            lip_love_it_link(get_the_ID(), true, 'text');
        }
        ?>
	                </div>

		        </div>

			</div>
        <?php 
    }
开发者ID:shimion,项目名称:wishlistshimion,代码行数:101,代码来源:sf-theme-functions.php

示例11: lip_love_it_link

    }
    ?>
</li>											
				</ul>
			</div><!--/guide details-->
		</div><!--/widget copy-->
	</div><!-- widget-side-->
	
	<div class="widget-side" style="padding-top:1.25em !important;">						
		<div class="widget-copy">
			<div class="guide-details">
<?php 
    if (lip_user_has_loved_post($current_user->ID, $post->ID)) {
        echo '<a id="likedthis" title="See your other Likes" href="' . $app_url . '/author/' . $current_user->user_login . '" class="likedthis nhline">You like this</a>';
    } else {
        lip_love_it_link();
    }
    // Turn off when working locally - only works hosted
    echo '<div class="jetpack-guide-single">';
    echo sharing_display();
    echo '</div>';
    ?>
				<br/><a class="nhline" href="#leavecomment" title="Add Your Comment">Add a Comment</a>
			</div><!--/ guide details-->
		</div>
	</div><!-- widget-side-->

	<div class="widget-side">			
		<h5 class="widget-title">Explore More In</h5>			
		<div class="widget-copy">
			<div class="guide-details">				
开发者ID:moscarar,项目名称:cityhow,代码行数:31,代码来源:sidebar-blog-single.php

示例12: sf_galleries


//.........这里部分代码省略.........
         $post_excerpt = '';
         if ($custom_excerpt != '') {
             $post_excerpt = sf_custom_excerpt($custom_excerpt, $excerpt_length);
         } else {
             $post_excerpt = sf_excerpt($excerpt_length);
         }
         $post_terms = get_the_terms($post->ID, 'gallery-category');
         $term_slug = " ";
         if (!empty($post_terms)) {
             foreach ($post_terms as $post_term) {
                 $term_slug = $term_slug . $post_term->slug . ' ';
             }
         }
         /* COLUMN VARIABLE CONFIG
            ================================================== */
         $item_class = "";
         if ($columns == "1") {
             $item_class = "col-sm-12 ";
         } else {
             if ($columns == "2") {
                 $item_class = "col-sm-6 ";
             } else {
                 if ($columns == "3") {
                     $item_class = "col-sm-4 ";
                 } else {
                     if ($columns == "4") {
                         $item_class = "col-sm-3 ";
                     } else {
                         if ($columns == "5") {
                             $item_class = "col-sm-sf-5 ";
                         }
                     }
                 }
             }
         }
         /* DISPLAY TYPE CONFIG
            ================================================== */
         if ($display_type == "masonry" || $display_type == "masonry-gallery") {
             $item_class .= "masonry-item masonry-gallery-item";
         } else {
             if ($display_type == "gallery") {
                 $item_class .= "gallery-item ";
             } else {
                 $item_class .= "standard ";
             }
         }
         /* LINK TYPE CONFIG
            ================================================== */
         $gallery_id = rand(0, 10000);
         $item_link = sf_gallery_item_link($link_type, $gallery_id);
         /* ITEM OUTPUT
            ================================================== */
         $gallery_items_output .= '<li itemscope itemtype="http://schema.org/CreativeWork" data-id="id-' . $count . '" class="clearfix gallery-item ' . $item_class . ' ' . $term_slug . '">' . "\n";
         /* THUMBNAIL CONFIG
            ================================================== */
         if ($thumb_type != "none") {
             $gallery_items_output .= sf_gallery_thumbnail($display_type, $link_type, $columns, $gutters, $count, $gallery_id);
         }
         if ($display_type != "gallery" && $display_type != "masonry-gallery") {
             $gallery_items_output .= '<div class="gallery-item-details">' . "\n";
             if ($show_title == "yes") {
                 $gallery_items_output .= '<div class="comments-likes">';
                 if (function_exists('lip_love_it_link')) {
                     $gallery_items_output .= lip_love_it_link(get_the_ID(), false);
                 }
                 $gallery_items_output .= '</div>';
                 $gallery_items_output .= '<h3 class="gallery-item-title" itemprop="name headline"><a href="' . get_permalink() . '">' . $item_title . '</a></h3>' . "\n";
             }
             if ($show_subtitle == "yes" && $item_subtitle) {
                 $gallery_items_output .= '<h5 class="gallery-subtitle" itemprop="name alternativeHeadline">' . $item_subtitle . '</h5>' . "\n";
             }
             if ($show_excerpt == "yes") {
                 $gallery_items_output .= '<div class="gallery-item-excerpt" itemprop="description">' . $post_excerpt . '</div>' . "\n";
             }
             $gallery_items_output .= '</div>' . "\n";
         }
         if ($item_link["script"] != "") {
             $gallery_items_output .= $item_link["script"];
         }
         $gallery_items_output .= '</li>' . "\n";
         $count++;
     }
     wp_reset_query();
     wp_reset_postdata();
     $gallery_items_output .= '</ul>' . "\n";
     /* PAGINATION OUTPUT
        ================================================== */
     if ($pagination == "yes") {
         if ($display_type == "masonry" || $display_type == "masonry-gallery") {
             $gallery_items_output .= '<div class="pagination-wrap masonry-pagination">';
         } else {
             $gallery_items_output .= '<div class="pagination-wrap">';
         }
         $gallery_items_output .= pagenavi($galleries_items);
         $gallery_items_output .= '</div>';
     }
     /* FUNCTION OUTPUT
        ================================================== */
     return $gallery_items_output;
 }
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:101,代码来源:sf-galleries.php

示例13: sf_campaign_info

    function sf_campaign_info()
    {
        global $post;
        $campaign = new ATCF_Campaign($post->ID);
        $categories = get_the_term_list($post->ID, 'download_category', '', ', ', '');
        $author = get_user_by('id', $post->post_author);
        ?>

            <div class="author-info-wrap clearfix">
                <div class="author-avatar"><?php 
        if (function_exists('get_avatar')) {
            echo get_avatar(get_the_author_meta('ID'), '140');
        }
        ?>
</div>
                <div class="author-bio">
                    <div class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person"><h3><a
                                itemprop="name"
                                href="<?php 
        echo get_author_posts_url($author->ID, $author->user_nicename);
        ?>
"><?php 
        the_author_meta('display_name');
        ?>
</a>
                        </h3></div>
                    <div class="author-bio-text">
                        <?php 
        the_author_meta('description');
        ?>
                    </div>
                    <?php 
        if ($campaign->contact_email() != "") {
            ?>
                        <a href="mailto:<?php 
            echo sanitize_email($campaign->contact_email());
            ?>
"
                           class="sf-button contact-author accent"><?php 
            _e('Contact Author', 'swiftframework');
            ?>
</a>
                    <?php 
        }
        ?>
                </div>
            </div>

            <div class="campaign-info post-info clearfix">
                <?php 
        if ($categories) {
            ?>
                    <div class="categories-wrap"><?php 
            _e("Categories:", "swiftframework");
            ?>
<span
                            class="categories"><?php 
            echo esc_attr($categories);
            ?>
</span></div>
                <?php 
        }
        ?>
                <?php 
        if (has_tag()) {
            ?>
                    <div class="tags-wrap"><?php 
            _e("Tags:", "swiftframework");
            ?>
<span
                            class="tags"><?php 
            the_tags('');
            ?>
</span></div>
                <?php 
        }
        ?>
                <div class="comments-likes">
                    <?php 
        if (comments_open()) {
            ?>
                        <div class="comments-wrapper"><a href="#comments" class="smooth-scroll-link">
                        	<?php 
            echo apply_filters('sf_comments_icon', '<i class="ss-chat"></i>');
            ?>
<span><?php 
            comments_number(__('0 Comments', 'swiftframework'), __('1 Comment', 'swiftframework'), __('% Comments', 'swiftframework'));
            ?>
</span></a>
                        </div>
                    <?php 
        }
        ?>
                    <?php 
        if (function_exists('lip_love_it_link')) {
            lip_love_it_link(get_the_ID(), true, 'text');
        }
        ?>
                </div>
            </div>
//.........这里部分代码省略.........
开发者ID:shimion,项目名称:wishlistshimion,代码行数:101,代码来源:sf-campaign-detail.php

示例14: sf_post_info


//.........这里部分代码省略.........
                echo get_avatar(get_the_author_meta('ID'), '140');
            }
            ?>
</div>
                    <div class="author-bio">
                        <div class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person"><h3
                                class="vcard author"><span itemprop="name"
                                                           class="fn"><?php 
            the_author_meta('display_name');
            ?>
</span>
                            </h3></div>
                        <div class="author-bio-text">
                            <?php 
            the_author_meta('description');
            ?>
                        </div>
                    </div>
                </div>
            <?php 
        }
        ?>

            <?php 
        if ($author_info) {
            ?>
                <div class="post-info clearfix">
            <?php 
        } else {
            ?>
                <div class="post-info post-info-fw clearfix">
            <?php 
        }
        ?>

           	<?php 
        if (!$remove_dates) {
            ?>
           		<div class="post-date"><?php 
            echo $post_date;
            ?>
</div>
           	<?php 
        }
        ?>

            <?php 
        if ($post_categories) {
            ?>
                <div class="categories-wrap"><?php 
            _e("Categories:", "swiftframework");
            ?>
<span
                        class="categories"><?php 
            echo $post_categories;
            ?>
</span>
                 </div>
            <?php 
        }
        ?>
            <?php 
        if (has_tag()) {
            ?>
                <div class="tags-wrap"><?php 
            _e("Tags:", "swiftframework");
            ?>
<span
                        class="tags"><?php 
            the_tags('');
            ?>
</span></div>
            <?php 
        }
        ?>
            <div class="comments-likes">
                <?php 
        if (comments_open()) {
            ?>
                    <div class="comments-wrapper"><a href="#comments" class="smooth-scroll-link"><?php 
            echo apply_filters('sf_comments_icon', '<i class="ss-chat"></i>');
            ?>
<span><?php 
            comments_number(__('0 Comments', 'swiftframework'), __('1 Comment', 'swiftframework'), __('% Comments', 'swiftframework'));
            ?>
</span></a>
                    </div>
                <?php 
        }
        ?>
                <?php 
        if (function_exists('lip_love_it_link')) {
            lip_love_it_link(get_the_ID(), true, 'text');
        }
        ?>
            </div>
            </div>

        <?php 
    }
开发者ID:Infernosaint,项目名称:WPSetupTest2,代码行数:101,代码来源:sf-post-detail.php

示例15: sf_portfolio_items


//.........这里部分代码省略.........
                 }
                 if ($masonry_thumb_size == "wide") {
                     $item_class = 'col-sm-6 size-wide ';
                 } else {
                     if ($masonry_thumb_size == "tall") {
                         $item_class = 'col-sm-3 size-tall ';
                     } else {
                         if ($masonry_thumb_size == "wide-tall") {
                             $item_class = 'col-sm-6 size-wide-tall ';
                         } else {
                             $item_class = 'col-sm-3 size-standard ';
                         }
                     }
                 }
             } else {
                 if ($masonry_thumb_size == "") {
                     $masonry_thumb_size = "standard";
                 }
                 if ($masonry_thumb_size == "wide") {
                     $item_class = 'col-sm-8 size-wide ';
                 } else {
                     if ($masonry_thumb_size == "tall") {
                         $item_class = 'col-sm-4 size-tall ';
                     } else {
                         if ($masonry_thumb_size == "wide-tall") {
                             $item_class = 'col-sm-8 size-wide-tall ';
                         } else {
                             $item_class = 'col-sm-4 size-standard ';
                         }
                     }
                 }
             }
         }
         /* DISPLAY TYPE CONFIG
            ================================================== */
         if ($display_type == "masonry" || $display_type == "masonry-gallery") {
             $item_class .= "masonry-item masonry-gallery-item";
         } else {
             if ($display_type == "gallery") {
                 $item_class .= "gallery-item ";
             } else {
                 if ($display_type == "multi-size-masonry") {
                     $item_class .= "multi-masonry-item ";
                 } else {
                     $item_class .= "standard ";
                 }
             }
         }
         /* LINK TYPE CONFIG
            ================================================== */
         $item_link = sf_portfolio_item_link();
         /* ITEM OUTPUT
            ================================================== */
         $portfolio_items_output .= '<li itemscope itemtype="http://schema.org/CreativeWork" data-id="id-' . $count . '" class="clearfix portfolio-item ' . $item_class . ' ' . $term_slug . '">' . "\n";
         $portfolio_items_output .= apply_filters('sf_before_portfolio_item_thumb', '');
         /* THUMBNAIL CONFIG
            ================================================== */
         if ($thumb_type != "none") {
             $portfolio_items_output .= sf_portfolio_thumbnail($display_type, $masonry_thumb_size, $multi_size_ratio, $columns, $hover_show_excerpt, $excerpt_length, $gutters, $fullwidth);
         }
         $portfolio_items_output .= apply_filters('sf_after_portfolio_item_thumb', '');
         if ($display_type != "gallery" && $display_type != "masonry-gallery" && $display_type != "multi-size-masonry") {
             $portfolio_items_output .= '<div class="portfolio-item-details">' . "\n";
             if ($show_title == "yes") {
                 $portfolio_items_output .= '<div class="comments-likes">';
                 if (function_exists('lip_love_it_link')) {
                     $portfolio_items_output .= lip_love_it_link(get_the_ID(), false);
                 }
                 $portfolio_items_output .= '</div>';
                 $portfolio_items_output .= '<h3 class="portfolio-item-title" itemprop="name headline"><a ' . $item_link['config'] . '>' . $item_title . '</a></h3>' . "\n";
             }
             if ($show_subtitle == "yes" && $item_subtitle) {
                 $portfolio_items_output .= '<h5 class="portfolio-subtitle" itemprop="name alternativeHeadline">' . $item_subtitle . '</h5>' . "\n";
             }
             if ($show_excerpt == "yes") {
                 $portfolio_items_output .= '<div class="portfolio-item-excerpt" itemprop="description">' . $post_excerpt . '</div>' . "\n";
             }
             $portfolio_items_output .= '</div>' . "\n";
         }
         $portfolio_items_output .= '</li>' . "\n";
         $count++;
     }
     wp_reset_query();
     wp_reset_postdata();
     $portfolio_items_output .= '</ul>' . "\n";
     /* PAGINATION OUTPUT
        ================================================== */
     if ($pagination == "yes") {
         if ($display_type == "masonry" || $display_type == "masonry-gallery") {
             $portfolio_items_output .= '<div class="pagination-wrap masonry-pagination">';
         } else {
             $portfolio_items_output .= '<div class="pagination-wrap">';
         }
         $portfolio_items_output .= pagenavi($portfolio_items);
         $portfolio_items_output .= '</div>';
     }
     /* FUNCTION OUTPUT
        ================================================== */
     return $portfolio_items_output;
 }
开发者ID:shimion,项目名称:wishlistshimion,代码行数:101,代码来源:sf-portfolio.php


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