示例#1
0
function mango_add_social_share()
{
    global $post, $mango_settings;
    $current_page_id = mango_current_page_id();
    $show = true;
    $show = get_post_meta($current_page_id, 'mango_page_social_share', true) ? get_post_meta($current_page_id, 'mango_page_social_share', true) : true;
    if ($show === 'hide') {
        return;
    }
    if ($show === true) {
        if (isset($mango_settings['mango_social_share']) && is_array($mango_settings['mango_social_share']) && in_array($post->post_type, $mango_settings['mango_social_share'])) {
            return;
        }
    }
    if (function_exists("wpfai_social") && get_option('wpfai') != '' && $show) {
        if ($post->post_type == 'portfolio') {
            ?>
<li><?php 
        }
        ?>
            <div class="share-box">
                <span
                    class="share-label"><?php 
        echo htmlspecialchars_decode(esc_textarea($mango_settings['mango_social_share_label']));
        ?>
</span>

                <div class="social-icons">
                    <?php 
        $content = wpfai_social();
        echo str_replace("wpfai-link", "social-icon", $content);
        ?>
                </div>
            </div>
            <?php 
        if ($post->post_type == 'portfolio') {
            ?>
</li><?php 
        }
        ?>
        <?php 
    }
}
示例#2
0
    while (have_posts()) {
        the_post();
        ?>
				<div class = "blogCopy clearfix">
					<?php 
        the_title('<h3>', '</h3>');
        ?>
					<p class="blogDate"><?php 
        the_date();
        ?>
 <em> in </em> <em><?php 
        the_category(' ');
        ?>
</em></p>
					<?php 
        echo wpfai_social();
        ?>
					<?php 
        the_content();
        ?>
					<h6 class="nextPrev"><?php 
        previous_post('&larr; %', '', 'yes');
        ?>
</h6>
					<h6 class="nextPrev"><?php 
        next_post('% &rarr; ', '', 'yes');
        ?>
</h6>
				</div>
				<div id="mc_embed_signup" class="signupBlog">
					<form action="http://rachelschipper.us6.list-manage.com/subscribe/post?u=d78540946610421bce1e2e4e3&amp;id=f38c5c10d3" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>