share btn hook added
This commit is contained in:
parent
87c517705a
commit
a06cbf2ab4
|
@ -1011,9 +1011,11 @@ if (!function_exists('mep_social_share')) {
|
|||
function mep_social_share(){
|
||||
?>
|
||||
<ul class='mep-social-share'>
|
||||
<?php do_action('mep_before_social_share_list',get_the_id()); ?>
|
||||
<li> <a data-toggle="tooltip" title="" class="facebook" onclick="window.open('https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>','Facebook','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" data-original-title="Share on Facebook"><i class="fa fa-facebook"></i></a></li>
|
||||
<li><a data-toggle="tooltip" title="" class="twitter" onclick="window.open('https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>','Twitter share','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>" data-original-title="Twittet it"><i class="fa fa-twitter"></i></a></li>
|
||||
</ul>
|
||||
<li><a data-toggle="tooltip" title="" class="twitter" onclick="window.open('https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>','Twitter share','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>" data-original-title="Twittet it"><i class="fa fa-twitter"></i></a></li>
|
||||
<?php do_action('mep_after_social_share_list',get_the_id()); ?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -3201,3 +3203,5 @@ function mep_get_price_including_tax( $event, $price, $args = array() ) {
|
|||
}
|
||||
return apply_filters( 'woocommerce_get_price_including_tax', $return_price, $qty, $product );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<div class="mep-event-meta">
|
||||
<?php _e(mep_get_label($post_id, 'mep_share_text', 'Share This Event:'), 'mage-eventpress'); ?>
|
||||
<ul class='mep-social-share'>
|
||||
<?php do_action('mep_before_social_share_list',get_the_id()); ?>
|
||||
<li> <a data-toggle="tooltip" title="" class="facebook" onclick="window.open('https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>','Facebook','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" data-original-title="Share on Facebook"><i class="fa fa-facebook"></i></a></li>
|
||||
<li><a data-toggle="tooltip" title="" class="twitter" onclick="window.open('https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>','Twitter share','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>" data-original-title="Twittet it"><i class="fa fa-twitter"></i></a></li>
|
||||
<?php do_action('mep_after_social_share_list',get_the_id()); ?>
|
||||
</ul>
|
||||
</div>
|
Loading…
Reference in New Issue