PluginProbe
Social Share Buttons / 1.20
Social Share Buttons v1.20
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
share-button / admin / review_notice.php

review_notice.php in Social Share Buttons 1.20, at admin/review_notice.php

73 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace mbSocial;
3 defined('ABSPATH') or die('No direct access permitted');
4
5 ?>
6 <script language='javascript'>
7 jQuery(document).ready(function($) {
8
9 $('.maxsocial-notice [data-action]').on('click', mb_review_init_ajax);
10
11 function mb_review_init_ajax (e)
12 {
13 e.preventDefault;
14
15 var new_status = $(e.target).data('action');
16 mb_review_ajax(new_status);
17 }
18
19 function mb_review_ajax(new_status)
20 {
21 var url = '<?php echo admin_url( 'admin-ajax.php' ) ?>';
22 var data = {
23 action: 'maxajax',
24 plugin_action: 'mbsocial_review_notice_status',
25 status : new_status,
26 nonce: '<?php echo wp_create_nonce('maxajax') ?>',
27 };
28
29 $.ajax({
30 method: "POST",
31 url: url,
32 data: data,
33 success: function (res)
34 {
35 mb_review_done();
36 },
37
38 });
39
40 }
41
42 function mb_review_done()
43 {
44 $('.maxsocial-notice').fadeOut();
45
46 }
47
48 }); /* END OF JQUERY */
49 </script>
50
51 <style>
52 .maxsocial-notice { height: 180px; clear:both; }
53 .maxsocial-notice .mb-notice { height: auto; display: inline-block; }
54 </style>
55
56 <div class="updated notice maxsocial-notice maxbuttons-notice">
57 <div class='review-logo'><img src="<?php echo mbSocial()->get_plugin_url() ?>images/mbsocial-icon-128.png"></div>
58 <div class='mb-notice'>
59 <p class='title'><?php _e("We need your rating!","maxbuttons"); ?></p>
60 <p><?php _e("Your rating is the simplest way to support MaxButtons Social Buttons. We really appreciate it!","mbsocial"); ?></p>
61
62 <p><strong><?php _e('Missing Something?', 'mbsocial'); ?></strong> <?php printf(__('Write on the %ssupport forum%s, we love feedback!', 'mbsocial'), '<a href="https://wordpress.org/support/plugin/share-button" target="_blank">','</a>'); ?></p>
63
64 <ul class="review-notice-links">
65 <li> <span class="dashicons dashicons-yes"></span><a data-action='off' href="javascript:void(0)"><?php _e("I've already left a review","mbsocial"); ?></a></li>
66 <li><span class="dashicons dashicons-calendar-alt"></span><a data-action='later' href="javascript:void(0)"><?php _e("Maybe Later","mbsocial"); ?></a></li>
67 <li><span class="dashicons dashicons-external"></span><a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/share-button?filter=5#postform"><?php _e("Sure! I'd love to!","mbsocial"); ?></a></li>
68 </ul>
69 </div>
70 <a class="dashicons dashicons-dismiss close-mb-notice" href="javascript:void(0)" data-action='off'></a>
71
72 </div>
73