?> <li> <!-- Story --> <div class="hover"> <div class="share"> <p><?php _e('SHARE', 'aletheme'); ?> :</p> <ul> <li class="facebook"><a href="<?php echo ale_get_share('fb'); ?> " onclick="window.open(this.href, 'Share on Facebook', 'width=600,height=300'); return false"></a></li> <li class="twitter"><a href="<?php echo ale_get_share('twi'); ?> " onclick="window.open(this.href, 'Share on Twitter', 'width=600,height=300'); return false"></a></li> <li class="mail"><a href="mailto:?subject=<?php the_title(); ?> &body=<?php the_content(); ?> " ></a></li> </ul> </div> <div class="content"> <p class="read"><?php _e('CLICK HERE TO READ STORY', 'aletheme'); ?>
if (ale_get_option('social_sharing')) { ?> <div class="righticonstext"> <?php _e('Share this post:', 'aletheme'); ?> </div> <div class="righticonsbuttons"> <a href="<?php echo ale_get_share('fb'); ?> " class="fbicon" onclick="window.open(this.href, 'Share on Facebook', 'width=600,height=300'); return false">Facebook</a> <a href="<?php echo ale_get_share('twi'); ?> " class="twiicon" onclick="window.open(this.href, 'Share on Twitter', 'width=600,height=300'); return false">Twitter</a> <a href="<?php echo ale_get_share('goglp'); ?> " class="gooplus" onclick="window.open(this.href, 'Share on Google+', 'width=600,height=300'); return false">Google+</a> </div> <?php } ?> </div> </div> <?php comments_template(); } ?> </section>
/** * Display share options * * @param string $type */ function ale_share($type = 'fb') { echo ale_get_share($type); }