Hey, I would really appreciate someone's help. I am editing a theme which was constructed using PHP. I have no experience at all with PHP.
The plugin is for printing a PDF of the content on the current page, and it says to insert the following code:
<?php show_printpdf(); ?>
I inserted it into a list tag, so that it is listed beside of my social share icons. The first problems is that There is no icon displaying for the Print-PDF (i havent quite grasped how to include one), but i click on the blank space where the image is supposed to be and the pdf does generate.
- How do I code in an image/icon to show?
- How do I get the PDF to generate in a separate window?
Here is the block of code that I am working with.
<div class="row item-bottom">
<div class="col-md-6">
<ul class="social-share">
<li class="facebook">
<a data-toggle="tooltip" href="#" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('<?php echo osc_item_url(); ?>'), 'facebook-share-dialog', 'height=279, width=575'); return false;" title="<?php echo osc_esc_html( __("Share on Facebook", 'boxer')); ?>"><i class="fa fa-facebook"></i>
</a>
</li>
<li class="twitter">
<a title="<?php echo osc_esc_html( __("Share on Twitter", 'boxer')); ?>" href="https://twitter.com/intent/tweet?text=<?php echo osc_esc_html( osc_item_title() ); ?>&url=<?php echo osc_item_url(); ?>" data-toggle="tooltip" data-original-title="<?php echo osc_esc_html( __("Share on Twitter", 'boxer')); ?>"><i class="fa fa-twitter"></i>
</a>
</li>
<li class="googleplus">
<a title="<?php echo osc_esc_html( __("Share on Google Plus", 'boxer')); ?>" onclick="javascript:window.open(this.href, '','menubar=no,toolbar=no,height=600,width=600');return false;" href="https://plus.google.com/share?url=<?php echo osc_item_url(); ?>" data-toggle="tooltip" data-original-title="<?php echo osc_esc_html( __("Share on Google Plus", 'boxer')); ?>">
<i class="fa fa-google-plus"></i>
</a>
</li>
<li class="sendmail">
<a title="" rel="nofollow" href="<?php echo osc_item_send_friend_url(); ?>" data-toggle="tooltip" data-original-title="<?php echo osc_esc_html( __("Send to a Friend", 'boxer')); ?>">
<i class="fa fa-envelope"></i>
</a>
</li>
<li>
<?php show_printpdf(); ?>
</li>