social.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- Social -->
  2. <?php
  3. if (!defined('ABSPATH')) exit;
  4. if (isset($theme_options['theme_social_disable'])) return;
  5. $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
  6. ?>
  7. <table cellpadding="5" align="center">
  8. <tr>
  9. <?php if (!empty($theme_options['theme_facebook'])) { ?>
  10. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  11. <a href="<?php echo esc_attr($theme_options['theme_facebook']) ?>"><img src="<?php echo $social_icon_url ?>/facebook.png"><br>Facebook</a>
  12. </td>
  13. <?php } ?>
  14. <?php if (!empty($theme_options['theme_twitter'])) { ?>
  15. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  16. <a href="<?php echo esc_attr($theme_options['theme_twitter']) ?>"><img src="<?php echo $social_icon_url ?>/twitter.png"><br>Twitter</a>
  17. </td>
  18. <?php } ?>
  19. <?php if (!empty($theme_options['theme_googleplus'])) { ?>
  20. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  21. <a href="<?php echo esc_attr($theme_options['theme_googleplus']) ?>"><img src="<?php echo $social_icon_url ?>/googleplus.png"><br>Google+</a>
  22. </td>
  23. <?php } ?>
  24. <?php if (!empty($theme_options['theme_pinterest'])) { ?>
  25. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  26. <a href="<?php echo esc_attr($theme_options['theme_pinterest']) ?>"><img src="<?php echo $social_icon_url ?>/pinterest.png"><br>Pinterest</a>
  27. </td>
  28. <?php } ?>
  29. <?php if (!empty($theme_options['theme_linkedin'])) { ?>
  30. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  31. <a href="<?php echo esc_attr($theme_options['theme_linkedin']) ?>"><img src="<?php echo $social_icon_url ?>/linkedin.png"><br>LinkedIn</a>
  32. </td>
  33. <?php } ?>
  34. <?php if (!empty($theme_options['theme_tumblr'])) { ?>
  35. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  36. <a href="<?php echo esc_attr($theme_options['theme_tumblr']) ?>"><img src="<?php echo $social_icon_url ?>/tumblr.png"><br>Tumblr</a>
  37. </td>
  38. <?php } ?>
  39. <?php if (!empty($theme_options['theme_youtube'])) { ?>
  40. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  41. <a href="<?php echo esc_attr($theme_options['theme_youtube']) ?>"><img src="<?php echo $social_icon_url ?>/youtube.png"><br>Youtube</a>
  42. </td>
  43. <?php } ?>
  44. <?php if (!empty($theme_options['theme_soundcloud'])) { ?>
  45. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  46. <a href="<?php echo esc_attr($theme_options['theme_soundcloud']) ?>"><img src="<?php echo $social_icon_url ?>/soundcloud.png"><br>SoundCloud</a>
  47. </td>
  48. <?php } ?>
  49. <?php if (!empty($theme_options['theme_instagram'])) { ?>
  50. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  51. <a href="<?php echo esc_attr($theme_options['theme_instagram']) ?>"><img src="<?php echo $social_icon_url ?>/instagram.png"><br>Instagram</a>
  52. </td>
  53. <?php } ?>
  54. <?php if (!empty($theme_options['theme_vimeo'])) { ?>
  55. <td style="text-align: center; vertical-align: top" align="center" valign="top">
  56. <a href="<?php echo esc_attr($theme_options['theme_vimeo']) ?>"><img src="<?php echo $social_icon_url ?>/vimeo.png"><br>Vimeo</a>
  57. </td>
  58. <?php } ?>
  59. </tr>
  60. </table>