Esempio n. 1
1
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>';
}
				<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 
 /** @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;
 }
Esempio n. 4
0
        ?>
<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 
}
?>
Esempio n. 5
0
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'));
}
Esempio n. 6
0
?>
</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()) {
Esempio n. 7
0
function ca_social_shares()
{
    echo '<section id="social-wrap">';
    if (function_exists('ADDTOANY_SHARE_SAVE_KIT')) {
        ADDTOANY_SHARE_SAVE_KIT();
    }
    echo '</section>';
}
Esempio n. 8
0
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>';
    }
}
Esempio n. 9
0
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>';
}