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


PHP sharing_display函数代码示例

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


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

示例1: cg_share_icons

function cg_share_icons()
{
    remove_filter('the_content', 'sharing_display', 19);
    remove_filter('the_excerpt', 'sharing_display', 19);
    if (function_exists('sharing_display')) {
        echo sharing_display('', true);
    }
}
开发者ID:narendra-addweb,项目名称:MyImmoPix,代码行数:8,代码来源:woocommerce-config.php

示例2: jetpack_woocommerce_social_share_icons

function jetpack_woocommerce_social_share_icons()
{
    if (function_exists('sharing_display')) {
        remove_filter('the_content', 'sharing_display', 19);
        remove_filter('the_excerpt', 'sharing_display', 19);
        echo sharing_display();
    }
}
开发者ID:kanei,项目名称:vantuch.cz,代码行数:8,代码来源:woocommerce.php

示例3: recipe_hero_output_jetpack_sharing_buttons

 function recipe_hero_output_jetpack_sharing_buttons()
 {
     if (function_exists('sharing_display')) {
         sharing_display('', true);
     }
     if (class_exists('Jetpack_Likes')) {
         $custom_likes = new Jetpack_Likes();
         echo $custom_likes->post_likes('');
     }
 }
开发者ID:emzo,项目名称:Recipe-Hero,代码行数:10,代码来源:rh-templates-supports-functions.php

示例4: sharedaddy_code

    /**
     * Output share code.
     *
     * @access public
     * @return void
     */
    function sharedaddy_code()
    {
        global $post;
        if ($this->enabled == 'yes' && function_exists('sharing_display')) {
            ?>
<div class="social"><?php 
            echo sharing_display();
            ?>
</div><?php 
        }
    }
开发者ID:rongandat,项目名称:sallumeh,代码行数:17,代码来源:class-wc-sharedaddy.php

示例5: affwp_sharing_display

/**
 * Load ShareDaddy buttons
 *
 * @since 1.0
*/
function affwp_sharing_display()
{
    if (function_exists('sharing_display')) {
        echo sharing_display();
    }
    ?>
	<?php 
    /* <script src="http://managewp.org/share.js" data-type="small" data-title="" data-url=""></script>
     */
    ?>
	<?php 
}
开发者ID:companyjuice,项目名称:theme,代码行数:17,代码来源:sharing.php

示例6: output

 public function output()
 {
     global $post;
     if (!function_exists('sharing_display')) {
         return;
     }
     $buttons = sharing_display('');
     if ('' == $buttons) {
         return;
     }
     echo $buttons;
 }
开发者ID:Josizzle,项目名称:VisitLift,代码行数:12,代码来源:class-jetpack.php

示例7: output

    public function output()
    {
        global $post;
        if (!function_exists('sharing_display')) {
            return;
        }
        $buttons = sharing_display('');
        if ('' == $buttons) {
            return;
        }
        $sharer = new Sharing_Service();
        $global = $sharer->get_global_options();
        $sharing = '';
        $sharing .= sprintf('<a href="#share-%d" class="popup-trigger"><i class="ion-share"></i> %s</a>', $post->ID, __('Share', 'listify'));
        $sharing .= sprintf('<div class="popup share-popup" id="share-%1$d">
				<h3 class="popup-title">%2$s</h3>
				%3$s
			</div>', $post->ID, $global['sharing_label'], $buttons);
        echo $sharing;
    }
开发者ID:abdullahrahim,项目名称:shadighar,代码行数:20,代码来源:class-jetpack-share.php

示例8: white_div_end

    function white_div_end()
    {
        if (function_exists('sharing_display')) {
            echo sharing_display();
        } else {
            $this->fallback_sharing();
        }
        if (class_exists('Jetpack_Likes') && is_callable(array('Jetpack_Likes', 'init'))) {
            $likes = Jetpack_Likes::init();
            echo $likes->post_likes('');
        }
        ?>
		</div><!-- .white_box -->
		<?php 
    }
开发者ID:jtsternberg,项目名称:JTSternberg-Photos-Theme,代码行数:15,代码来源:functions.php

示例9: ocin_lite_single_product_wrap_end_summary

/**
 * HTML wrap end for Single page summary
 */
function ocin_lite_single_product_wrap_end_summary()
{
    ?>
		<div class="variations_button_entry">
            <?php 
    woocommerce_template_single_add_to_cart();
    ?>
        </div>
	</div><!-- /entry -->
	<div class="summary-bottom">
        <div class="woocommerce-variation-add-to-cart variations_button">
			<div class="quantity">
				<input type="number" size="4" class="input-text qty text" title="Qty" value="1" name="quantity" min="1" step="1">
			</div>
			<button class="single_add_to_cart_button button alt" type="submit"><?php 
    esc_html_e('Add to cart', 'ocin-lite');
    ?>
</button>
		</div>

        <div class="social-share">
        	<?php 
    if (function_exists('sharing_display')) {
        sharing_display('', true);
    }
    ?>
        </div>
    </div>
	<?php 
}
开发者ID:nicoandrade,项目名称:Ocin-Lite,代码行数:33,代码来源:woocommerce_support.php

示例10: before_post_content

function before_post_content($content)
{
    if (function_exists('sharing_display')) {
        return sharing_display('', true) . $content;
    }
}
开发者ID:joshrogersdesign,项目名称:genesis-swank-sass,代码行数:6,代码来源:functions.php

示例11: wcb_print_sharing

/**
 * Rewinds the loop and prints ShareDaddy output for the first post.
 */
function wcb_print_sharing()
{
    rewind_posts();
    if (have_posts()) {
        the_post();
        if (function_exists('sharing_display')) {
            echo sharing_display();
        }
    }
}
开发者ID:RobStino,项目名称:wordcamp-sunshine-coast,代码行数:13,代码来源:functions.php

示例12: bench_site_toolbar

function bench_site_toolbar()
{
    echo '<div id="tm-toolbar" class="uk-visible-large" style="display:none;">';
    if (function_exists('sharing_display')) {
        echo '<div id="tm-jetpack-share-mini" class="uk-align-right uk-hidden-small">';
        echo sharing_display('', false);
        echo '</div>';
    }
    echo '<div class="back-to-top"><a href="#top" title="Click to go back to top" data-uk-smooth-scroll><i class="uk-icon-arrow-up"></i></a></div>';
    echo '</div>';
}
开发者ID:kkthemes,项目名称:bench-wordpress-theme,代码行数:11,代码来源:helpers.php

示例13: widget

    public function widget($args, $instance)
    {
        global $post;
        echo $args['before_widget'];
        $action_items = 0;
        $action_reviews = false;
        $action_bookmarks = false;
        $action_sharing = false;
        if (comments_open() && class_exists('PixReviewsPlugin')) {
            $action_reviews = true;
            $action_items++;
        }
        global $job_manager_bookmarks;
        if (method_exists($job_manager_bookmarks, 'bookmark_form')) {
            $action_bookmarks = true;
            $action_items++;
        }
        if (function_exists('sharing_display')) {
            $action_sharing = true;
            $action_items++;
        }
        ?>

		<div class="single-action-buttons<?php 
        if (1 == $action_items) {
            echo '  has--one-action';
        }
        ?>
">
			<?php 
        if (true == $action_reviews) {
            ?>

				<a href="#respond" class="action  action--review">
				<span class="action__icon">

					<?php 
            get_template_part('assets/svg/write-a-review-icon-svg');
            ?>

				</span>
					<span class="action__text"><?php 
            esc_html_e('Write a review', 'listable');
            ?>
</span>
					<span class="action__text--mobile"><?php 
            esc_html_e('Review', 'listable');
            ?>
</span>
				</a>

				<?php 
        }
        if (true == $action_bookmarks) {
            $job_manager_bookmarks->bookmark_form();
        }
        if (true == $action_sharing) {
            ?>

				<div class="action  action--share  tooltip-container">
					<a href="#" class="tooltip-trigger  js-tooltip-trigger">
						<span class="action__icon">
							<?php 
            get_template_part('assets/svg/share-icon-svg');
            ?>
						</span>
						<span class="action__text"><?php 
            esc_html_e('Share', 'listable');
            ?>
</span>
						<span class="action__text--mobile"><?php 
            esc_html_e('Share', 'listable');
            ?>
</span>
					</a>

					<?php 
            sharing_display('', true);
            ?>

				</div><!-- .action.action--share.tooltip-container -->

			<?php 
        }
        ?>

		</div><!-- .single-action-buttons -->

		<?php 
        echo $args['after_widget'];
    }
开发者ID:swaroop42,项目名称:RockRose,代码行数:91,代码来源:widgets.php

示例14: social_sharing

 function social_sharing($tip_direction = 'top')
 {
     if (function_exists('sharing_display')) {
         echo sharing_display();
         return '';
     }
     $vibe_extras = vibe_extras::init();
     return $vibe_extras->social_sharing($tip_direction);
 }
开发者ID:inetbiz,项目名称:wordpress-lms,代码行数:9,代码来源:extras.php

示例15: aaron_portfolio_footer

 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function aaron_portfolio_footer()
 {
     if (get_theme_mod('aaron_hide_meta') == "") {
         echo '<footer class="entry-footer">';
         global $post;
         echo '<a href="' . esc_url(home_url('/portfolio/')) . '"><b>' . __('Portfolio', 'aaron') . '</b></a><br/><br/>';
         //the_terms( $id, $taxonomy, $before, $sep, $after );
         echo the_terms($post->ID, 'jetpack-portfolio-type', '<span class="jetpack-portfolio-type">' . __('Project Type: ', 'aaron'), ', ', '</span>');
         echo the_terms($post->ID, 'jetpack-portfolio-tag', '<span class="tags-links">' . __('Project Tags: ', 'aaron'), ', ', '</span>');
         /* translators: % is the post title */
         edit_post_link(sprintf(__('Edit %s', 'aaron'), get_the_title()), '<span class="edit-link"><i aria-hidden="true"></i>', '</span>');
         /* Display jetpack's share if it's active*/
         if (function_exists('sharing_display')) {
             echo sharing_display();
         }
         /* Display jetpack's like  if it's active */
         if (class_exists('Jetpack_Likes')) {
             $aaron_custom_likes = new Jetpack_Likes();
             echo $aaron_custom_likes->post_likes('');
         }
         echo '</footer><!-- .entry-footer -->';
     }
 }
开发者ID:samfu1994,项目名称:personalWeb,代码行数:26,代码来源:template-tags.php


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