本文整理汇总了PHP中ADDTOANY_SHARE_SAVE_KIT函数的典型用法代码示例。如果您正苦于以下问题:PHP ADDTOANY_SHARE_SAVE_KIT函数的具体用法?PHP ADDTOANY_SHARE_SAVE_KIT怎么用?PHP ADDTOANY_SHARE_SAVE_KIT使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ADDTOANY_SHARE_SAVE_KIT函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: A2A_SHARE_SAVE_shortcode
function A2A_SHARE_SAVE_shortcode($attributes)
{
extract(shortcode_atts(array('url' => 'something', 'title' => 'something else'), $attributes));
$linkname = isset($attributes['title']) ? $attributes['title'] : false;
$linkurl = isset($attributes['url']) ? $attributes['url'] : false;
$output_later = TRUE;
return '<div class="addtoany_shortcode">' . ADDTOANY_SHARE_SAVE_KIT(compact('linkname', 'linkurl', 'output_later')) . '</div>';
}
示例2: ADDTOANY_SHARE_SAVE_KIT
<div class="clearfix"></div>
<br>
<?php
if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
?>
<div class="text-center social-share">
<h3>Compartilhe</h3>
<br>
<?php
//ADDTOANY_SHARE_SAVE_KIT();
?>
<?php
if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
echo '<div class="addtoany_list_container">';
ADDTOANY_SHARE_SAVE_KIT(array('linkname' => "Acesse Setorial de" . substr($original_post->post_title, 4) . " " . show_text_state_by_uf($uf), 'linkurl' => wp_get_shortlink($original_post->ID)));
echo '</div>';
}
?>
</div>
<?php
}
?>
<?php
$post = $original_post;
?>
<div class="clearfix"></div>
<?php
示例3: widget
/** @see WP_Widget::widget */
function widget($args = array(), $instance)
{
global $A2A_SHARE_SAVE_plugin_url_path;
$defaults = array('before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '');
$args = wp_parse_args($args, $defaults);
extract($args);
$title = apply_filters('widget_title', $instance['title']);
echo $before_widget;
if ($title) {
echo $before_title . $title . $after_title;
}
ADDTOANY_SHARE_SAVE_KIT(array("use_current_page" => TRUE));
echo $after_widget;
}
示例4: ca_social_shares
function ca_social_shares()
{
echo '<section id="social-wrap">';
if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
ADDTOANY_SHARE_SAVE_KIT();
}
echo '</section>';
}
示例5: ADDTOANY_SHARE_SAVE_KIT
?>
<div id="citation"><?php
echo $citation;
?>
</div><div id="empty"></div><?php
}
?>
<?php
/*$turl = getTinyUrl(get_permalink($post->ID));
echo 'TinyURL for this post: <a href="'.$turl.'">'.$turl.'</a><br>'; */
?>
<?php
if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
ADDTOANY_SHARE_SAVE_KIT();
}
?>
</div>
<div class="post-meta"><?php
the_tags('<p>', ' ', '</p>');
?>
</div>
</div>
<?php
comments_template();
?>
<?php
}
?>
示例6: A2A_SHARE_SAVE_shortcode
function A2A_SHARE_SAVE_shortcode($attributes)
{
extract(shortcode_atts(array('url' => 'something', 'title' => 'something else'), $attributes));
$linkname = isset($attributes['title']) ? $attributes['title'] : FALSE;
$linkurl = isset($attributes['url']) ? $attributes['url'] : FALSE;
$output_later = TRUE;
return ADDTOANY_SHARE_SAVE_KIT(compact('linkname', 'linkurl', 'output_later'));
}
示例7: get_the_author_meta
?>
</h1>
<div class="story-meta">
<?php
echo 'By ' . get_the_author_meta('display_name', $post->post_author) . '<br />';
echo the_category(' | ') . ' - ';
echo get_page_count($post->ID) + 1 . ' pages';
?>
</div>
<br />
<div class="story-social">
<?php
if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
ADDTOANY_SHARE_SAVE_KIT(array('use_current_page' => true));
}
?>
<?php
if (function_exists('wpfp_link')) {
wpfp_link();
}
?>
</div>
</div>
<div class="post-content scrollview">
<?php
/* display thumbnail if there is one, display default image if error is returned */
if (has_post_thumbnail()) {
示例8: pna_social_priorize
function pna_social_priorize($pergunta_id, $pergunta)
{
if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
echo '<div class="addtoany_list_container">';
ADDTOANY_SHARE_SAVE_KIT(array('linkname' => $pergunta, 'linkurl' => (is_ssl() ? 'https://' : 'http://') . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI']));
echo '</div>';
}
}
示例9: A2A_SHARE_SAVE_shortcode
function A2A_SHARE_SAVE_shortcode($attributes)
{
extract(shortcode_atts(array('url' => 'something', 'title' => 'something else', 'media' => '', 'buttons' => ''), $attributes));
$linkname = isset($attributes['title']) ? $attributes['title'] : false;
$linkurl = isset($attributes['url']) ? $attributes['url'] : false;
$linkmedia = !empty($attributes['media']) ? $attributes['media'] : false;
$buttons = !empty($buttons) ? explode(',', $buttons) : array();
$output_later = true;
return '<div class="addtoany_shortcode">' . ADDTOANY_SHARE_SAVE_KIT(compact('linkname', 'linkurl', 'linkmedia', 'output_later', 'buttons')) . '</div>';
}