<header<?php if ($disable_other_projects) { echo ' class="other-projects-disabled"'; } ?> > <h3><?php _e('Like this project?', 'gp'); ?> </h3> <div class="feedback-buttons"><?php $args = array('class' => 'btn-appreciate', 'title' => __('Appreciate', 'gp'), 'title_after' => __('Appreciated', 'gp')); gp_appreciate($post->ID, $args); $args = array('id' => 'sharrre-project', 'data-buttons-title' => array(__('Share this project', 'gp'))); $sharrre = gp_get_social_share($args); if ($sharrre) { ?> <span class="choice"><span><?php _e('Or', 'gp'); ?> </span></span><?php echo $sharrre; } ?> </div> </header><?php } // end of Like this project? if (!$disable_other_projects) { ?>
/** * Share widget that is located in the footer. */ function gp_footer_social_share() { $args = array('id' => 'sharrre-footer', 'data-buttons-title' => __('Share this page', 'gp')); $html = gp_get_social_share($args); if ($html) { echo $html; } }