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 } }
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('← %', '', 'yes'); ?> </h6> <h6 class="nextPrev"><?php next_post('% → ', '', 'yes'); ?> </h6> </div> <div id="mc_embed_signup" class="signupBlog"> <form action="http://rachelschipper.us6.list-manage.com/subscribe/post?u=d78540946610421bce1e2e4e3&id=f38c5c10d3" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>