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

PHP hb_options函数代码示例

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

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



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

示例1: hb_styles_setup

/**
 * @package WordPress
 * @subpackage Highend
 */
function hb_styles_setup()
{
    // Enqueue Responsive Style if selected from the Theme Options
    if (hb_options('hb_responsive')) {
        wp_register_style('hb_responsive', get_template_directory_uri() . '/css/responsive.css');
        wp_enqueue_style('hb_responsive');
    }
    // IcoMoon
    wp_register_style('hb_icomoon', get_template_directory_uri() . '/css/icomoon.css');
    wp_enqueue_style('hb_icomoon');
}
开发者ID:phupx,项目名称:genco,代码行数:15,代码来源:theme-styles.php


示例2: hb_woocommerce_output_content_wrapper_end

function hb_woocommerce_output_content_wrapper_end()
{
    global $post;
    $sidebar_layout = vp_metabox('layout_settings.hb_page_layout_sidebar');
    $sidebar_name = vp_metabox('layout_settings.hb_choose_sidebar');
    if (isset($_REQUEST['layout']) && !empty($_REQUEST['layout'])) {
        $sidebar_layout = $_REQUEST['layout'];
        $sidebar_name = hb_options('hb_woo_choose_sidebar');
    } else {
        if (is_single()) {
            $sidebar_layout = hb_options('hb_woo_sp_layout_sidebar');
            $sidebar_name = hb_options('hb_woo_sp_choose_sidebar');
        } else {
            $sidebar_layout = hb_options('hb_woo_layout_sidebar');
            $sidebar_name = hb_options('hb_woo_choose_sidebar');
        }
    }
    ?>
						</div>
						<?php 
    if ($sidebar_layout != 'fullwidth') {
        ?>
						<!-- BEGIN .hb-sidebar -->
						<div class="col-3  hb-equal-col-height hb-sidebar">
							<?php 
        if ($sidebar_name && function_exists('dynamic_sidebar')) {
            dynamic_sidebar($sidebar_name);
        }
        ?>
						</div>
						<!-- END .hb-sidebar -->
						<?php 
    }
    ?>
					</div>
				</div>
			</div>
		</div>
	<?php 
}
开发者ID:phupx,项目名称:genco,代码行数:40,代码来源:hb-woocommerce.php


示例3:

}
?>

                        <?php 
if ($header_layout_class != 'nav-type-2' && $header_layout_class != 'nav-type-2 centered-nav') {
    ?>
                        </div>
                        <!-- END .container or .container-wide -->
                        <?php 
}
?>
            </div>
            <!-- END #header-inner-bg -->

            <?php 
if (hb_options('hb_enable_sticky_shop_button') && class_exists('Woocommerce')) {
    global $woocommerce;
    $cart_url = $woocommerce->cart->get_cart_url();
    $cart_count = $woocommerce->cart->cart_contents_count;
    ?>
            <a href="<?php 
    echo $cart_url;
    ?>
" id="sticky-shop-button"><i class="hb-moon-cart-checkout"></i><span><?php 
    echo $cart_count;
    ?>
</span></a>
            <?php 
}
?>
开发者ID:amit0773,项目名称:manaslake,代码行数:30,代码来源:header-navigation.php


示例4: _e

        }
    } else {
        if (is_singular('faq')) {
            _e('Frequenly Asked Questions', 'hbthemes');
        } else {
            if (is_singular('hb_testimonials')) {
                _e('Testimonial', 'hbthemes');
            } else {
                if (is_search()) {
                    _e('Search Results ', 'hbthemes');
                } else {
                    if (class_exists('bbPress') && bbp_is_forum_archive()) {
                        _e('Forums ', 'hbthemes');
                    } else {
                        if (is_archive()) {
                            echo hb_options('hb_archives_title');
                        } else {
                            if (vp_metabox('general_settings.hb_page_title_h1', null, $post_id)) {
                                echo vp_metabox('general_settings.hb_page_title_h1', null, $post_id);
                            } else {
                                the_title();
                            }
                        }
                    }
                }
            }
        }
    }
}
?>
			</h1>
开发者ID:amit0773,项目名称:manaslake,代码行数:31,代码来源:header-page-title.php


示例5: printf

</a><?php 
        if ($cat_count > 0) {
            echo ', ';
        }
        ?>
			
		<?php 
    }
    ?>
		<span class="text-sep">|</span>
	<?php 
}
?>
	
	<?php 
if (comments_open() && hb_options('hb_blog_enable_comments')) {
    ?>
		<span class="comment-container minor-meta">
			<a href="<?php 
    the_permalink();
    ?>
#comments" class="comments-link" title="<?php 
    printf(__("Comment on %s", "hbthemes"), get_the_title());
    ?>
">
				<?php 
    comments_number(__('0 comments', 'hbthemes'), __('1 comment', 'hbthemes'), __('% comments', 'hbthemes'));
    ?>
 
			</a>
		</span>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:post-description.php


示例6: get_post_thumbnail_id

        ?>
]
							jQuery.prettyPhoto.open(api_images,api_titles,api_descriptions);
						});

		        });
			</script>
		</div>
		<?php 
        break;
    default:
        ?>
		<?php 
        // get featured image
        $thumb = get_post_thumbnail_id();
        $image_height = hb_options('hb_blog_image_height');
        $image_width = 1140;
        $full_image = wp_get_attachment_image_src($thumb, 'full', false);
        if (vp_metabox('layout_settings.hb_page_layout_sidebar')) {
            $image_width = 832;
        }
        $image = hb_resize($thumb, '', $image_width, $image_height, true);
        if ($image) {
            ?>
		<div class="featured-image">
			<a data-title="<?php 
            the_title();
            ?>
" href="<?php 
            echo $full_image[0];
            ?>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:single-featured-format.php


示例7: array

<?php

if (!hb_options('hb_staff_enable_related_posts')) {
    return;
}
$current_item_cats = wp_get_object_terms(get_the_ID(), 'team_categories', array('fields' => 'slugs'));
$related_items = new WP_Query(array('posts_per_page' => 4, 'post_type' => 'team', 'orderby' => 'rand', 'post__not_in' => array(get_the_ID()), 'tax_query' => array(array('taxonomy' => 'team_categories', 'field' => 'slug', 'terms' => $current_item_cats))));
if ($related_items->have_posts()) {
    ?>
<!-- BEGIN .portfolio-related-fw -->
<div class="fw-section with-border portfolio-related-fw">
	<div class="row">
		<div class="col-12">
			<h4 class="hb-heading hb-center-heading alt-color-1"><span><?php 
    _e('Meet More Team Members', 'hbthemes');
    ?>
</span></h4>
		</div>
	</div>

	<!-- BEGIN .related-portfolio-items -->
	<div class="row related-members">
	<?php 
    while ($related_items->have_posts()) {
        $related_items->the_post();
        ?>
		<?php 
        $thumb = get_post_thumbnail_id();
        $image = hb_resize($thumb, '', 270, 270, true);
        if ($image) {
            ?>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:team-related-items.php


示例8: woocommerce_get_page_id

    if (function_exists('is_shop') && is_shop()) {
        if (function_exists('woocommerce_get_page_id')) {
            $post_id = woocommerce_get_page_id('shop');
            $is_shop = true;
        }
    }
}
?>

<!-- BEGIN #slider-section -->
<div id="slider-section" class="clearfix">
	<?php 
if (is_singular('portfolio')) {
    $header_layout = vp_metabox('portfolio_layout_settings.hb_portfolio_header_layout');
    if ($header_layout == 'default') {
        $header_layout = hb_options('hb_portfolio_content_layout');
    }
    if ($header_layout == 'totalfullwidth') {
        get_template_part('includes/portfolio', 'featured-content');
    }
} else {
    if (is_page() || is_singular('team') || $is_shop) {
        if ($is_shop) {
            $section_type = vp_metabox('featured_section.hb_featured_section_options', null, $post_id);
            $thumb = get_post_thumbnail_id($post_id);
            $rev_slider = vp_metabox('featured_section.hb_rev_slider', null, $post_id);
            $layer_slider = vp_metabox('featured_section.hb_layer_slider', null, $post_id);
            $video_link = vp_metabox('featured_section.hb_page_video', null, $post_id);
        } else {
            $section_type = vp_metabox('featured_section.hb_featured_section_options');
            $thumb = get_post_thumbnail_id();
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:header-slider-section.php


示例9: array

<?php

if (!hb_options('hb_portfolio_enable_related_posts')) {
    return;
}
$current_item_cats = wp_get_object_terms(get_the_ID(), 'portfolio_categories', array('fields' => 'slugs'));
$related_items = new WP_Query(array('posts_per_page' => 4, 'post_type' => 'portfolio', 'orderby' => 'rand', 'post__not_in' => array(get_the_ID()), 'tax_query' => array(array('taxonomy' => 'portfolio_categories', 'field' => 'slug', 'terms' => $current_item_cats))));
if ($related_items->have_posts()) {
    ?>
<!-- BEGIN .portfolio-related-fw -->
<div class="fw-section with-border portfolio-related-fw">
	<div class="row">
		<div class="col-12">
			<h4 class="hb-heading hb-center-heading alt-color-1"><span><?php 
    _e('Related Projects', 'hbthemes');
    ?>
</span></h4>
		</div>
	</div>

	<!-- BEGIN .related-portfolio-items -->
	<div class="row related-portfolio-items columns-4">
	<?php 
    while ($related_items->have_posts()) {
        $related_items->the_post();
        ?>
		<?php 
        $thumb = get_post_thumbnail_id();
        $image = hb_resize($thumb, '', 289, 216, true);
        if ($image) {
            ?>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:portfolio-related-items.php


示例10: dynamic_sidebar

    if (is_active_sidebar('hb-side-section-sidebar')) {
        dynamic_sidebar('hb-side-section-sidebar');
    } else {
        echo '<p class="aligncenter" style="margin-top:30px;">';
        _e('Please add widgets to this widgetized area ("Side Panel Section") in Appearance > Widgets.', 'hbthemes');
        echo '</p>';
    }
    ?>
	</div>
<?php 
}
?>


<?php 
if (hb_options('hb_search_style') == 'hb-modern-search') {
    ?>
	<!-- BEGIN #fancy-search -->
	<div id="modern-search-overlay">
		<a href="#" class="hb-modern-search-close"><i class="hb-icon-x"></i></a>

		<div class="table-middle hb-modern-search-content">
			<p><?php 
    _e('Type and press Enter to search', 'hbthemes');
    ?>
</p>

			<form method="get" id="hb-modern-form" action="<?php 
    echo home_url('/');
    ?>
" novalidate="" autocomplete="off">
开发者ID:KKRTEAM,项目名称:cis_admq,代码行数:31,代码来源:footer.php


示例11: get_header

/**
 * @package WordPress
 * @subpackage Highend
 */
get_header();
?>

<!-- BEGIN #main-content -->
<div id="main-content">
	<div class="container">
	
		<?php 
$sidebar_layout = hb_options('hb_page_layout_sidebar');
$sidebar_name = hb_options('hb_choose_sidebar');
$pagination_style = hb_options('hb_pagination_style');
?>

		<div class="row <?php 
echo $sidebar_layout;
?>
 main-row">

			<div id="page-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
			
开发者ID:phupx,项目名称:genco,代码行数:29,代码来源:index.php


示例12: hb_print_likes

            ?>

					<?php 
            if (hb_options('hb_blog_enable_likes')) {
                ?>
					<div class="float-right">
					<?php 
                echo hb_print_likes(get_the_ID());
                ?>
					</div>
					<?php 
            }
            ?>

					<?php 
            if (hb_options('hb_blog_enable_share')) {
                ?>
					<div class="float-right">
						<?php 
                get_template_part('includes/hb', 'share');
                ?>
					</div>
					<!-- END .float-right -->
					<?php 
            }
            ?>
				</section>
				<?php 
        }
        ?>
开发者ID:phupx,项目名称:genco,代码行数:30,代码来源:single-gallery.php


示例13: get_template_part

                ?>
					</div>
					<!-- END .float-right -->
					<?php 
            }
            ?>
				</section>
				<?php 
        }
        ?>

				<?php 
        if (hb_options('hb_blog_author_info') && is_singular('post')) {
            get_template_part('includes/post', 'author-info');
        }
        if (hb_options('hb_blog_enable_related_posts')) {
            get_template_part('includes/post', 'related-articles');
        }
        ?>

			</div>
			<!-- END #single-blog-wrapper -->
			<?php 
        if (!is_attachment()) {
            if (comments_open()) {
                comments_template();
            }
        }
        ?>

		</div>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:single.php


示例14: hb_scheme_styles

    function hb_scheme_styles()
    {
        $focus_hex_color = "#00aeef";
        $color_value = hb_options('hb_scheme_chooser');
        if (isset($_GET['focus_color'])) {
            $color_value = $_GET['focus_color'];
        }
        if (hb_options('hb_color_manager_type') == 'hb_color_manager_schemes') {
            if ($color_value == 'minimal_red') {
                $focus_hex_color = "#c0392b";
            } else {
                if ($color_value == 'minimal_green') {
                    $focus_hex_color = "#27ae60";
                } else {
                    if ($color_value == 'minimal_pink') {
                        $focus_hex_color = "#F07FB2";
                    } else {
                        if ($color_value == 'minimal_yellow') {
                            $focus_hex_color = "#f1c40f";
                        } else {
                            if ($color_value == 'minimal_orange') {
                                $focus_hex_color = "#e67e22";
                            } else {
                                if ($color_value == 'minimal_purple') {
                                    $focus_hex_color = "#8e44ad";
                                } else {
                                    if ($color_value == 'minimal_grey') {
                                        $focus_hex_color = "#7f8c8d";
                                    } else {
                                        if ($color_value == 'minimal_blue_alt' || $color_value == 'business_blue') {
                                            $focus_hex_color = "#2980b9";
                                        } else {
                                            if ($color_value == 'dark_elegance') {
                                                $focus_hex_color = "#1BCBD1";
                                            } else {
                                                if ($color_value == 'minimal_green_alt') {
                                                    $focus_hex_color = "#a0ce4e";
                                                } else {
                                                    if ($color_value == 'orchyd') {
                                                        $focus_hex_color = "#E8BF56";
                                                    } else {
                                                        $focus_hex_color = "#00aeef";
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            set_focus_color($focus_hex_color);
        } else {
            if (hb_options('hb_color_manager_type') == 'hb_color_manager_color_customizer') {
                if (get_theme_mod('hb_focus_color_setting')) {
                    $focus_hex_color = get_theme_mod('hb_focus_color_setting');
                } else {
                    $focus_hex_color = "00aeef";
                }
                set_focus_color($focus_hex_color);
            }
        }
        ?>
		<style type="text/css">
		<?php 
        echo '
		::selection { background:' . $focus_hex_color . '; color:#FFF; }
		::-moz-selection { background:' . $focus_hex_color . '; color:#FFF; }

		a:hover, .user-entry a, 
		.widget_calendar tbody a,
		#header-bar a:hover,
		.minimal-skin #main-nav > li a:hover,
		#header-inner.stuck .second-skin #main-nav > li > a:hover,
		.minimal-skin #main-nav li.current-menu-item > a,
		.minimal-skin #main-nav li.sfHover > a, 
		.minimal-skin #main-nav > li.current-menu-ancestor > a,
		#close-fancy-search,
		article.search-entry a.search-thumb:hover,
		.map-info-section .minimize-section:hover,
		.hb-blog-small h3.title a:hover,
		.post-header .post-meta-info a:hover,
		.post-content h2.title a,
		.like-holder:hover i,
		.comments-holder:hover i,
		.share-holder:hover i,
		.comments-holder a:hover,
		.hb-blog-grid .comments-holder:hover, 
		.hb-blog-grid .like-holder:hover,
		.most-liked-list li:hover .like-count,
		.simple-read-more:hover,
		.team-member-box:hover .team-member-name,
		.testimonial-author .testimonial-company:hover,
		.close-modal:hover,
		.hb-tabs-wrapper .nav-tabs li.active a,
		.hb-icon,
		.hb-logout-box small a:hover,
		.hb-gallery-sort li.hb-dd-header:hover strong,
//.........这里部分代码省略.........
开发者ID:phupx,项目名称:genco,代码行数:101,代码来源:scheme.php


示例15: paginate_comments_links

$comments_pagination = paginate_comments_links(array('prev_text' => '<i class="icon-angle-left"></i>', 'next_text' => '<i class="icon-angle-right"></i>', 'echo' => false));
if ($comments_pagination) {
    ?>
      <div class="pagination">
        <?php 
    echo $comments_pagination;
    ?>
      </div>
    <?php 
}
?>

<?php 
if (comments_open()) {
    $required_text = null;
    $additional_text = hb_options('hb_comment_form_text');
    if ($additional_text != '') {
        $additional_text = '<h5 class="aligncenter">' . $additional_text . '</h5>';
    }
    $args = array('id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __('Leave a Reply', 'hbthemes') . $additional_text, 'title_reply_to' => __('Leave a Reply to %s', 'hbthemes') . $additional_text, 'cancel_reply_link' => __('Cancel Reply', 'hbthemes'), 'label_submit' => __('Submit Comment', 'hbthemes'), 'comment_field' => '<p><textarea class="required requiredField" name="comment" id="comment" cols="55" rows="10" tabindex="67"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.', 'hbthemes'), wp_login_url(apply_filters('the_permalink', get_permalink()))) . '</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>', 'hbthemes'), admin_url('profile.php'), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink()))) . '</p>', 'comment_notes_before' => '', 'comment_notes_after' => '<div class="clearfix"></div>', 'fields' => apply_filters('comment_form_default_fields', array('author' => '<div class="form-col"> 
          <input class="required requiredField" type="text" name="author" id="author" placeholder="' . __('Name (Required)', 'hbthemes') . '" size="22" tabindex="64" value="' . esc_attr($commenter['comment_author']) . '"/>
        </div>', 'email' => '<div class="form-col"> 
        <input class="required requiredField email" type="text" name="email" id="email" placeholder="' . __('Email (Required)', 'hbthemes') . '" size="22" tabindex="65" value="' . esc_attr($commenter['comment_author_email']) . '"/>
      </div>', 'url' => '<div class="form-col clear-r-padding"> 
            <input type="text" name="url" id="url" placeholder="' . __('Website', 'hbthemes') . '" size="22" tabindex="66" value="' . esc_attr($commenter['comment_author_url']) . '" />
          </div>')));
    comment_form($args);
}
// if you delete this the sky will fall on your head
function hb_format_comment($comment, $args, $depth)
{
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:comments.php


示例16: get_header

/**
 * @package WordPress
 * @subpackage Highend
 */
get_header();
?>
<!-- BEGIN #main-content -->
<div id="main-content"<?php 
echo $main_content_style;
?>
>
	<div class="container">
	<?php 
$sidebar_layout = hb_options('hb_page_layout_sidebar');
$sidebar_name = hb_options('hb_choose_sidebar');
?>
		<div class="row <?php 
echo $sidebar_layout;
?>
 main-row">

		<?php 
if (have_posts()) {
    ?>
			<div id="page-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
开发者ID:phupx,项目名称:genco,代码行数:30,代码来源:taxonomy-team_categories.php


示例17: the_title

?>
"><?php 
the_title();
?>
</a></h3>
			<?php 
$size = sizeof(get_the_terms($post->ID, 'product_cat'));
?>
			<div class="woo-cats"><?php 
echo $product->get_categories(', ', '<span class="hb-woo-shop-cats">' . _n('', '', $size, 'woocommerce') . ' ', '</span>');
?>
</div>
		</div>

		<?php 
if (hb_options('hb_woo_enable_likes')) {
    echo hb_print_likes(get_the_ID());
}
?>

	</div>

	<?php 
/**
 * woocommerce_after_shop_loop_item_title hook
 *
 * @hooked woocommerce_template_loop_rating - 5
 * @hooked woocommerce_template_loop_price - 10
 */
do_action('woocommerce_after_shop_loop_item_title');
?>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:content-product.php


示例18: hb_print_likes

										<!-- BEGIN .float-left -->
										<div class="float-left">
										<?php 
                            echo hb_print_likes(get_the_ID());
                            ?>
										<!--<div class="like-holder like-button" id="like-60" title="Like this project!" >
											<i class="hb-moon-heart"></i>1,235</div><!-->
										</div>
										<!-- END .float-left -->
									<?php 
                        }
                        ?>


									<?php 
                        if (hb_options('hb_portfolio_enable_share')) {
                            ?>
									<!-- BEGIN .float-right -->	
									<div class="float-right">
										<?php 
                            get_template_part('includes/hb', 'share');
                            ?>
									</div>
									<!-- END .float-right -->
									<?php 
                        }
                        ?>

								</div>
								<!-- END .single-shares -->
								<?php 
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:single-portfolio.php


示例19: widget

    function widget($args, $instance)
    {
        extract($args);
        $title = $instance['title'];
        $username = $instance['username'];
        $skin = $instance['skin'];
        $count = isset($instance['count']) ? (int) $instance['count'] : 1;
        $consumer_key = hb_options('hb_twitter_consumer_key');
        $consumer_secret = hb_options('hb_twitter_consumer_secret');
        $access_token = hb_options('hb_twitter_access_token');
        $access_token_secret = hb_options('hb_twitter_access_token_secret');
        if ($count < 1 || !$count) {
            $count = 1;
        }
        if ($count > 30) {
            $count = 30;
        }
        if ($consumer_key && $consumer_secret && $access_token && $access_token_secret) {
            echo $before_widget;
            if ($title) {
                echo $before_title . $title . $after_title;
            }
            $transName = 'hbthemes_tweets_' . $args['widget_id'];
            $cacheTime = 10;
            delete_transient($transName);
            if (false === ($twitterData = get_transient($transName))) {
                // require the twitter auth class
                @(require_once 'twitteroauth/twitteroauth.php');
                $twitterConnection = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);
                $twitterData = $twitterConnection->get('statuses/user_timeline', array('screen_name' => $username, 'count' => $count, 'exclude_replies' => false));
                if ($twitterConnection->http_code != 200) {
                    $twitterData = get_transient($transName);
                }
                set_transient($transName, $twitterData, 30 * $cacheTime);
            }
            $twitter = get_transient($transName);
            if ($twitter && is_array($twitter)) {
                ?>

					<div id="tweets_<?php 
                echo $args['widget_id'];
                ?>
">
						<ul class="hb-tweet-list <?php 
                echo $skin;
                ?>
">
							<?php 
                foreach ($twitter as $tweet) {
                    ?>
							<li>
								<span class="tweet-text">
								<?php 
                    $latestTweet = $tweet->text;
                    $latestTweet = preg_replace('/http:\\/\\/([a-z0-9_\\.\\-\\+\\&\\!\\#\\~\\/\\,]+)/i', '&nbsp;<a href="http://$1" target="_blank">http://$1</a>&nbsp;', $latestTweet);
                    $latestTweet = preg_replace('/@([a-z0-9_]+)/i', '&nbsp;<a href="http://twitter.com/$1" target="_blank">@$1</a>&nbsp;', $latestTweet);
                    echo $latestTweet;
                    ?>
								</span>
								<?php 
                    $twitterTime = strtotime($tweet->created_at);
                    $timeAgo = hb_time_ago($twitterTime);
                    ?>
							</li>
							<span class="tweet-time"><a href="http://twitter.com/<?php 
                    echo $tweet->user->screen_name;
                    ?>
/statuses/<?php 
                    echo $tweet->id_str;
                    ?>
"><i class="hb-moon-twitter"></i><?php 
                    echo $timeAgo;
                    ?>
</a></span>
							<?php 
                }
                ?>
						</ul>
					</div>

					<p><?php 
                _e('Follow ', 'hbthemes');
                ?>
<a href="http://twitter.com/<?php 
                echo $tweet->user->screen_name;
                ?>
" target="_blank">@<?php 
                echo $tweet->user->screen_name;
                ?>
</a></p>
		<?php 
                echo $after_widget;
            }
        } else {
            echo '<p>' . __('[Twitter Widget Error] You need to authenticate your Twitter App first. Go to Highend Options > Social Links. <a href="http://documentation.hb-themes.com/highend/#twitter">Read the documentation</a> to find out more.', 'hbthemes') . '</p>';
        }
    }
开发者ID:phupx,项目名称:genco,代码行数:97,代码来源:widget-twitter.php


示例20: the_permalink

if (hb_options('hb_share_reddit')) {
    ?>
			<li><a class="reddit-share" onclick="popWindow('http://reddit.com/submit?url=<?php 
    the_permalink();
    ?>
&amp;title=<?php 
    the_title();
    ?>
','Reddit','500','400')" title="Reddit" rel="tooltip" data-placement="right"><i class="hb-moon-reddit"></i></a>
			</li>
			<?php 
}
?>

			<?php 
if (hb_options('hb_share_email')) {
    ?>
			<li><a class="email-share" href="mailto:?subject=<?php 
    echo get_bloginfo('title') . ' - ';
    the_title();
    ?>
&amp;body=<?php 
    the_permalink();
    ?>
" target="_blank" title="Email" rel="tooltip" data-placement="right"><i class="hb-moon-envelop"></i></a></li>
			<?php 
}
?>
		</ul>

	</div>
开发者ID:phupx,项目名称:genco,代码行数:31,代码来源:hb-share.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP hb_resize函数代码示例发布时间:2022-05-15
下一篇:
PHP have_ruleint_access函数代码示例发布时间: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