<!-- Place this tag in your head or just before your close body tag. -->
<script src="https://apis.google.com/js/platform.js" async defer></script>

<!-- Place this tag where you want the widget to render. -->
<div class="tm-widget tm-widget-google-plus <?php echo esc_attr( $badge );?>" data-tm-width="<?php $width_value = ($width) ? $width : '300'; echo esc_attr( $width_value );?>" data-href="<?php echo esc_url( $url );?>" data-theme="<?php echo esc_attr( $theme );?>" data-layout="<?php echo esc_attr( $layout );?>" data-showcoverphoto="<?php $showcoverphoto_value = ( $showcoverphoto ) ? esc_attr($showcoverphoto) : 'false'; echo esc_attr( $showcoverphoto_value );?>" data-rel="publisher"></div>