當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。