<?php
$pluginReviewLink = 'http://wordpress.org/support/view/plugin-reviews/cm-answers';
$twitterTweet = rawurlencode('Checkout the CM Answers ( http://wordpress.org/plugins/cm-answers/ hhttps://www.cminds.com/cm-answer-store-page-content/ ) #WordPress #Plugin by @CMPLUGINS');
?>

<div class="cminds_call_to_action">
	<div id="fb-root"></div>
    <div class="inner_box">
        <h3>Share your Appreciation</h3>
        <a target="_blank" href="<?php echo esc_attr($pluginReviewLink); ?>">
            <div class="btn button">
                <div class="dashicons dashicons-share-alt2"></div><span>Submit a review</span>
            </div>
        </a>
        <a target="_blank"  href="http://twitter.com/home/?status=<?php echo esc_attr(urlencode($twitterTweet)) ?>">
            <div class="btn button">
                <div class="dashicons dashicons-twitter"></div><span>Tweet</span>
            </div>
        </a>
        <h3>Stay Up-to-Date</h3>
        <a href="https://twitter.com/CMPLUGINS" class="twitter-follow-button" data-show-count="false" data-size="large" data-dnt="true">Follow @CMPLUGINS</a>
        <script>!function (d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
                if (!d.getElementById(id)) {
                    js = d.createElement(s);
                    js.id = id;
                    js.src = p + '://platform.twitter.com/widgets.js';
                    fjs.parentNode.insertBefore(js, fjs);
                }
            }(document, 'script', 'twitter-wjs');
        </script>

        <div class="g-follow" data-annotation="none" data-height="24" data-href="https://plus.google.com/108513627228464018583" data-rel="publisher"></div>

        <script type="text/javascript">
            (function () {
                var po = document.createElement('script');
                po.type = 'text/javascript';
                po.async = true;
                po.src = 'https://apis.google.com/js/platform.js';
                var s = document.getElementsByTagName('script')[0];
                s.parentNode.insertBefore(po, s);
            })();
        </script>
        
        <script>(function (d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id))
                    return;
                js = d.createElement(s);
                js.id = id;
                js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));</script>

        <div class="fb-like" data-href="https://www.facebook.com/cmplugins" data-width="100" data-layout="button" data-action="like" data-show-faces="true" data-share="true"></div>

        <br/>

        <!-- Begin MailChimp Signup Form -->
        <div id="mc_embed_signup">
            <form action="//cminds.us3.list-manage.com/subscribe/post?u=f48254f757fafba2669ae5918&amp;id=142732cbf9" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
                <div id="mc_embed_signup_scroll">
                    <h3 for="mce-EMAIL">CM Newsletter - coupons, deals, news</h3>
                    <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
                    <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="btn button">
                    <span style="display:inline-block; position: relative"><div class="cmtt_field_help" title="We only send newsletters a couple of times a year. They include great deals, promo codes and information about our new plugins!"></div></span>
                    <!-- real people should not fill this in and expect good things - do not remove this or risk fsorm bot signups-->
                    <div style="position: absolute; left: -5000px;"><input type="text" name="b_f48254f757fafba2669ae5918_142732cbf9" tabindex="-1" value=""></div>
                    <div class="clear"></div>
                </div>
            </form>
        </div>
        <!--End mc_embed_signup-->
        
    </div>
    
    <div class="clear"></div>
</div>

<style type="text/css">
div.cminds_call_to_action{
    display: flex;
    float: right;
    margin: 0;
    margin-top: -40px;
}

div.cminds_call_to_action .inner_box{
    border: 1px solid #e0e0e0;
    padding: 1em;
    margin: 0 auto;
    min-width: 290px;
    background: white;
}

div.cminds_call_to_action a{
    text-decoration: none;
}

div.cminds_settings_description{
    float: left;
    max-width: 55%;
}
div.cminds_call_to_action .inner_box > h3:first-child {margin-top: 0;}
#mc_embed_signup{clear:left; width:400px;}
.fb_iframe_widget{vertical-align: top;line-height: 2em;}
</style>