Wrap Social Buttons in Divs
-
Hi Blair,
Firstly awesome plugin. Love the simplicity and the fact it works for custom post types.
Would you please consider wrapping all the social buttons in a div with a class so that developers can add css to their theme to tweak the layout?
Specifically Pinterest and Google+
Something like this would rock:
social-maven/app/views/buttons/googleplus.php
<?php if(!defined('ABSPATH')) {die('You are not allowed to call this page directly.');} ?> <strong><div class="g-plusone"></strong> <g:plusone size="<?php echo esc_html($layout); ?>" annotation="<?php echo esc_html($annotation); ?>" href="<?php echo esc_html($url); ?>"></g:plusone> <strong></div><!--./g-plusone--></strong>
social-maven/app/views/buttons/pinterest.php
<?php if(!defined('ABSPATH')) {die('You are not allowed to call this page directly.');} ?> <strong><div class="pintrest"></strong> <a href="//pinterest.com/pin/create/button/?url=<?php echo urlencode(esc_html($url)); ?>&media=<?php echo urlencode(esc_html($media)); ?>&description=<?php echo esc_html($description); ?>" class="pin-it-button" count-layout="<?php echo esc_html($layout); ?>"><?php _e('Pin It', 'social-maven'); ?></a><strong></div><!--./pinterest--></strong> <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
Thanks
Nick
- The topic ‘Wrap Social Buttons in Divs’ is closed to new replies.