WP ULike - Version 2.0

Version Description

  • Added: New Statistics Page with many useful tools ("Line Charts", "Pie Chart", "Summary Stats" ) :)
  • Added: New Class-based programming :)
  • Added: Custom text option for BP Add Activity (Posts/Comments).
  • Added: Custom template setting for the "Users Like Box".
  • Added: New option to setting the "Number Of Users" in liked box.
  • Added: "Last Posts Liked By Current User" widget.
  • Added: "Most liked activities" widget.
  • Added: Logs menu links in the statistics page.
  • Added: New option for the "only registered users" with selecting login type.
  • Modified: Widgets in one packet.
  • Modified: "Most Liked Users" widget to get data from all the tables (posts/comments/activities).
  • Removed: Some old functions (Such as wp_ulike_reutrn_userID, get_status functions, get_user_data functions, ...)
  • Updated: Plugin FAQ page.
  • Updated: Persian language file. (Thanks Me :))
Download this release

Release Info

Developer alimir
Plugin Icon 128x128 WP ULike
Version 2.0
Comparing to
See all releases

Code changes from version 1.9 to 2.0

admin/about.php CHANGED
@@ -1,157 +1,206 @@
1
  <?php
2
- /**
3
- * WP ULike about page
4
- */
5
-
6
- add_filter('get_avatar', 'remove_photo_class');
7
- function remove_photo_class($avatar) {
8
- return str_replace(' photo', ' gravatar', $avatar);
9
- }
10
 
11
- function wp_ulike_about_page() {
12
- ?>
 
 
 
 
 
 
 
 
 
13
 
14
- <style>
15
- .ulike-badge{
16
- background: url('<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-badge.png') no-repeat scroll center 24px / 150px 150px;
17
- margin: 5px 0px 0px;
18
- padding-top: 120px;
19
- display: inline-block;
20
- height:60px;
21
- width: 150px;
22
- }
23
- .boxstyle {
24
- padding: 1px 12px;
25
- background-color: #FFF;
26
- box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1);
27
- }
28
- .wp_ulike_version {
29
- display: inline-block;
30
- position: absolute;
31
- top: 54px;
32
- left:0;
33
- padding: 5px 10px;
34
- background: #e74c3c;
35
- color: #FFF;
36
- font-size: 13px;
37
- font-weight: normal;
38
- }
39
- <?php if(is_rtl()): ?>
40
- .about-wrap .ulike-badge {
41
- position: absolute;
42
- top: 0px;
43
- left: 0px;
44
- }
45
- <?php else: ?>
46
- .about-wrap .ulike-badge {
47
- position: absolute;
48
- top: 0px;
49
- right: 0px;
50
- }
51
- <?php endif; ?>
52
- </style>
53
 
54
- <div class="wrap about-wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
- <h1><?php echo _e('Welcome to WP ULike','alimir') . ' ' . wp_ulike_get_version(); ?></h1>
57
 
58
- <div class="about-text"><?php echo _e('Thank you for choosing WP ULike! This version is our leanest and most powerful version yet.', 'alimir') ; ?><br />
59
- <a target="_blank" href="http://preview.alimir.ir/wp-ulike-plugin/"> <?php _e('Visit our homepage','alimir'); ?></a>
60
- </div>
61
- <div class="ulike-badge"></div>
62
-
63
- <h2 class="nav-tab-wrapper">
64
- <a class="nav-tab <?php if(!isset($_GET["credit"])) echo 'nav-tab-active'; ?>" href="admin.php?page=wp-ulike-about"><?php echo _e('Getting Started','alimir'); ?></a>
65
- <a class="nav-tab <?php if(isset($_GET["credit"])) echo 'nav-tab-active'; ?>" href="admin.php?page=wp-ulike-about&credit=true"><?php echo _e('Credits','alimir'); ?></a>
66
- <a target="_blank" class="nav-tab" href="https://wordpress.org/support/plugin/wp-ulike"><?php echo _e('Support','alimir'); ?></a>
67
- <a target="_blank" class="nav-tab" href="https://wordpress.org/plugins/wp-ulike/faq/"><?php echo _e('FAQ','alimir'); ?></a>
68
- <a target="_blank" class="nav-tab" href="https://wordpress.org/support/view/plugin-reviews/wp-ulike"><?php echo _e('Reviews','alimir'); ?></a>
69
- <a target="_blank" class="nav-tab" href="http://preview.alimir.ir/contact/"><?php echo _e('Contact','alimir'); ?></a>
70
- </h2>
71
-
72
- <?php if(!isset($_GET["credit"])): ?>
73
-
74
- <div class="changelog">
75
- <img class="about-overview-img" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-banner.png" alt="WP ULike" />
76
- </div>
77
-
78
- <hr />
79
-
80
- <div class="changelog">
81
- <h2 class="about-headline-callout"><?php echo _e('Novelty Of WP ULike','alimir'); ?></h2>
82
 
83
- <div class="feature-section col two-col">
84
- <div>
85
- <h4><?php echo _e('Most Liked Comments','alimir'); ?> <div class="wp_ulike_version">WP ULike 1.9</div></h4>
86
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/most-liked-comments-widget.jpg" alt="WP ULike" />
87
- </div>
88
 
89
- <div class="last-feature">
90
- <h4><?php echo _e('Logging Method','alimir'); ?> <div class="wp_ulike_version">WP ULike 1.9</div></h4>
91
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/loggin-method-option.jpg" alt="WP ULike" />
92
- </div>
93
- </div>
 
 
 
 
 
94
 
95
- <div class="feature-section col two-col">
 
 
 
 
 
 
 
96
 
97
- <div>
98
- <h4><?php echo _e('New options in logs pages','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4>
99
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/logs-pages-options.jpg" alt="WP ULike" />
100
- </div>
 
 
 
 
 
 
 
101
 
102
- <div class="last-feature">
103
- <h4><?php echo _e('New setting panel','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.8</small></h4>
104
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-setting.png" alt="WP ULike" />
105
- </div>
 
106
 
107
- </div>
108
-
109
- <div class="feature-section col three-col">
110
- <div>
111
- <h4><?php echo _e('Better coding on plugin files','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.8</small></h4>
112
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-coding.png" alt="WP ULike" />
113
- </div>
114
-
115
- <div>
116
- <h4><?php echo _e('Buddypress likes support','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.7</small></h4>
117
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/activity-likes.png" alt="WP ULike" />
118
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
- <div class="last-feature">
121
- <h4><?php echo _e('Likes logs support','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.7</small></h4>
122
- <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/likes-logs.png" alt="WP ULike" />
 
123
  </div>
124
- </div>
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  </div>
127
-
128
- <?php else: ?>
129
-
130
- <p class="about-description"><?php echo _e('WP ULike is created by many love and time. Enjoy it :)','alimir'); ?></p>
131
- <h4 class="wp-people-group"><?php echo _e('Project Leaders','alimir'); ?></h4>
132
- <ul class="wp-people-group">
133
- <li class="wp-person" id="wp-person-alimirzaei">
134
- <a href="http://about.alimir.ir"><?php echo get_avatar( 'info@alimir.ir', 64 ); ?></a>
135
- <a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a>
136
- <span class="title"><?php echo _e('Project Lead & Developer','alimir'); ?></span>
137
- </li>
138
- </ul>
139
-
140
- <h4 class="wp-people-group"><?php _e('Translations','alimir'); ?></h4>
141
- <ul>
142
- <li>English</li>
143
- <li>Persian</li>
144
- <li>France</li>
145
- <li>Chinese (Thanks "Changmeng Hu" AND "CMHello")</li>
146
- <li>Chinese Tradition (Thanks Arefly)</li>
147
- <li>Dutch (Thanks Joey)</li>
148
- </ul>
149
-
150
- <h4 class="wp-people-group"><?php _e('Like this plugin?','alimir'); ?></h4>
151
- <div class="boxstyle"><p><strong><?php _e('Show your support by Rating 5 Star in <a href="http://wordpress.org/plugins/wp-ulike"> Plugin Directory reviews</a>','alimir'); ?></strong></p></div>
152
-
153
- <?php endif; ?>
154
-
155
- </div>
156
- <?php
157
- }
1
  <?php
 
 
 
 
 
 
 
 
2
 
3
+ /**
4
+ * remove photo class from gravatar
5
+ *
6
+ * @author Alimir
7
+ * @since 1.7
8
+ * @return String
9
+ */
10
+ add_filter('get_avatar', 'remove_photo_class');
11
+ function remove_photo_class($avatar) {
12
+ return str_replace(' photo', ' gravatar', $avatar);
13
+ }
14
 
15
+ /**
16
+ * Create WP ULike About page
17
+ *
18
+ * @author Alimir
19
+ * @since 1.7
20
+ * @updated 2.0
21
+ * @return String
22
+ */
23
+ function wp_ulike_about_page() {
24
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
+ <style>
27
+ .ulike-badge{
28
+ background: url('<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-badge.png') no-repeat scroll center 24px / 95px 95px #F3643A;
29
+ color: #fff;
30
+ font-size: 14px;
31
+ text-align: center;
32
+ font-weight: 600;
33
+ margin: 5px 0px 0px;
34
+ padding-top: 120px;
35
+ height: 40px;
36
+ display: inline-block;
37
+ width: 150px;
38
+ text-rendering: optimizelegibility;
39
+ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
40
+ }
41
+ .boxstyle {
42
+ padding: 1px 12px;
43
+ background-color: #FFF;
44
+ box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1);
45
+ }
46
+ .wp_ulike_version {
47
+ display: inline-block;
48
+ position: absolute;
49
+ top: 54px;
50
+ left:0;
51
+ padding: 5px 10px;
52
+ background: #e74c3c;
53
+ color: #FFF;
54
+ font-size: 13px;
55
+ font-weight: normal;
56
+ }
57
+ <?php if(is_rtl()): ?>
58
+ .about-wrap .ulike-badge {
59
+ position: absolute;
60
+ top: 0px;
61
+ left: 0px;
62
+ }
63
+ <?php else: ?>
64
+ .about-wrap .ulike-badge {
65
+ position: absolute;
66
+ top: 0px;
67
+ right: 0px;
68
+ }
69
+ <?php endif; ?>
70
+ </style>
71
 
72
+ <div class="wrap about-wrap">
73
 
74
+ <h1><?php echo _e('Welcome to WP ULike','alimir') . ' ' . wp_ulike_get_version(); ?></h1>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
+ <div class="about-text"><?php echo _e('Thank you for choosing WP ULike! This version is our leanest and most powerful version yet.', 'alimir') ; ?><br />
77
+ <a target="_blank" href="http://preview.alimir.ir/wp-ulike-plugin/"> <?php _e('Visit our homepage','alimir'); ?></a>
78
+ </div>
79
+ <div class="ulike-badge"><?php echo _e('Version','alimir') . ' ' . wp_ulike_get_version(); ?></div>
 
80
 
81
+ <h2 class="nav-tab-wrapper">
82
+ <a class="nav-tab <?php if(!isset($_GET["credit"])) echo 'nav-tab-active'; ?>" href="admin.php?page=wp-ulike-about"><?php echo _e('Getting Started','alimir'); ?></a>
83
+ <a class="nav-tab <?php if(isset($_GET["credit"])) echo 'nav-tab-active'; ?>" href="admin.php?page=wp-ulike-about&credit=true"><?php echo _e('Credits','alimir'); ?></a>
84
+ <a target="_blank" class="nav-tab" href="https://wordpress.org/support/plugin/wp-ulike"><?php echo _e('Support','alimir'); ?></a>
85
+ <a target="_blank" class="nav-tab" href="https://wordpress.org/plugins/wp-ulike/faq/"><?php echo _e('FAQ','alimir'); ?></a>
86
+ <a target="_blank" class="nav-tab" href="https://wordpress.org/support/view/plugin-reviews/wp-ulike"><?php echo _e('Reviews','alimir'); ?></a>
87
+ <a target="_blank" class="nav-tab" href="http://preview.alimir.ir/contact/"><?php echo _e('Contact','alimir'); ?></a>
88
+ </h2>
89
+
90
+ <?php if(!isset($_GET["credit"])): ?>
91
 
92
+ <div class="changelog">
93
+ <img class="about-overview-img" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-banner.png" alt="WP ULike" />
94
+ </div>
95
+
96
+ <hr />
97
+
98
+ <div class="changelog">
99
+ <h2 class="about-headline-callout"><?php echo _e('Novelty Of WP ULike','alimir'); ?></h2>
100
 
101
+ <div class="feature-section col two-col">
102
+ <div>
103
+ <h4><?php echo _e('New Statistics Page','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.0</small></h4>
104
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/ulike-stats.png" alt="WP ULike" />
105
+ </div>
106
+
107
+ <div class="last-feature">
108
+ <h4><?php echo _e('New Class-based programming','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.0</small></h4>
109
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-classes.jpg" alt="WP ULike" />
110
+ </div>
111
+ </div>
112
 
113
+ <div class="feature-section col two-col">
114
+ <div>
115
+ <h4><?php echo _e('Most Liked Comments','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4>
116
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/most-liked-comments-widget.jpg" alt="WP ULike" />
117
+ </div>
118
 
119
+ <div class="last-feature">
120
+ <h4><?php echo _e('Logging Method','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4>
121
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/loggin-method-option.jpg" alt="WP ULike" />
122
+ </div>
123
+ </div>
124
+
125
+ <div class="feature-section col two-col">
126
+
127
+ <div>
128
+ <h4><?php echo _e('New options in logs pages','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4>
129
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/logs-pages-options.jpg" alt="WP ULike" />
130
+ </div>
131
+
132
+ <div class="last-feature">
133
+ <h4><?php echo _e('New setting panel','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.8</small></h4>
134
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-setting.png" alt="WP ULike" />
135
+ </div>
136
+
137
+ </div>
138
+
139
+ <div class="feature-section col three-col">
140
+ <div>
141
+ <h4><?php echo _e('Better coding on plugin files','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.8</small></h4>
142
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-coding.png" alt="WP ULike" />
143
+ </div>
144
+
145
+ <div>
146
+ <h4><?php echo _e('Buddypress likes support','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.7</small></h4>
147
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/activity-likes.png" alt="WP ULike" />
148
+ </div>
149
 
150
+ <div class="last-feature">
151
+ <h4><?php echo _e('Likes logs support','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.7</small></h4>
152
+ <img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/likes-logs.png" alt="WP ULike" />
153
+ </div>
154
  </div>
 
155
 
156
+ </div>
157
+
158
+ <?php else: ?>
159
+
160
+ <p class="about-description"><?php echo _e('WP ULike is created by many love and time. Enjoy it :)','alimir'); ?></p>
161
+ <h4 class="wp-people-group"><?php echo _e('Project Leaders','alimir'); ?></h4>
162
+ <ul class="wp-people-group">
163
+ <li class="wp-person" id="wp-person-alimirzaei">
164
+ <a href="http://about.alimir.ir"><?php echo get_avatar( 'info@alimir.ir', 64 ); ?></a>
165
+ <a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a>
166
+ <span class="title"><?php echo _e('Project Lead & Developer','alimir'); ?></span>
167
+ </li>
168
+ </ul>
169
+
170
+ <h4 class="wp-people-group"><?php _e('Translations','alimir'); ?></h4>
171
+ <ul>
172
+ <li>English</li>
173
+ <li>Persian</li>
174
+ <li>France</li>
175
+ <li>Chinese (Thanks "Changmeng Hu" AND "CMHello")</li>
176
+ <li>Chinese Tradition (Thanks Arefly)</li>
177
+ <li>Dutch (Thanks Joey)</li>
178
+ </ul>
179
+
180
+ <h4 class="wp-people-group"><?php echo _e('Other Plugins','alimir'); ?></h4>
181
+ <ul class="wp-people-group">
182
+ <li class="wp-person" id="wp-person-alimirzaei">
183
+ <a target="_blank" href="https://wordpress.org/plugins/blue-login-style"><img class="gravatar" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/blue-login-themes.jpg" alt="Blue Login Themes" /></a>
184
+ <a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a>
185
+ <span class="title">Blue Login Themes</span>
186
+ </li>
187
+ <li class="wp-person" id="wp-person-alimirzaei">
188
+ <a target="_blank" href="https://wordpress.org/plugins/custom-fields-notifications/"><img class="gravatar" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/custom-fileds-notifications.png" alt="Custom Fields Notifications" /></a>
189
+ <a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a>
190
+ <span class="title">Custom Fields Notifications</span>
191
+ </li>
192
+ <li class="wp-person" id="wp-person-alimirzaei">
193
+ <a target="_blank" href="http://wordpress.org/plugins/ajax-bootmodal-login/"><img class="gravatar" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/ajax-bootmodal-login.jpg" alt="Ajax BootModal Login" /></a>
194
+ <a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a>
195
+ <span class="title">Ajax BootModal Login</span>
196
+ </li>
197
+ </ul>
198
+
199
+ <h4 class="wp-people-group"><?php _e('Like this plugin?','alimir'); ?></h4>
200
+ <div class="boxstyle"><p><strong><?php _e('Show your support by Rating 5 Star in <a href="http://wordpress.org/plugins/wp-ulike"> Plugin Directory reviews</a>','alimir'); ?></strong></p></div>
201
+
202
+ <?php endif; ?>
203
+
204
  </div>
205
+ <?php
206
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/admin.php CHANGED
@@ -7,28 +7,62 @@
7
  Widget
8
  *******************************************************/
9
  include( plugin_dir_path(__FILE__) . 'classes/class-widget.php');
10
-
 
 
 
 
 
 
 
 
11
  function wp_ulike_load_widget() {
12
- register_widget( 'wp_ulike_posts_widget' );
13
- register_widget( 'wp_ulike_comments_widget' );
14
- register_widget( 'wp_ulike_users_widget' );
15
  }
16
  add_action( 'widgets_init', 'wp_ulike_load_widget' );
17
 
18
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  /*******************************************************
21
  Plugin Dashboard Menu Settings
22
  *******************************************************/
23
 
24
- //include about page functions
25
  include( plugin_dir_path(__FILE__) . 'about.php');
26
 
27
- //include logs menu files
28
  include( plugin_dir_path(__FILE__) . 'logs.php');
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  //include settings class
31
- include( plugin_dir_path(__FILE__) . 'classes/class-settings.php' );
32
 
33
  //activate general setting panel
34
  $wp_ulike_setting = wp_ulike_create_settings_page(
@@ -43,115 +77,128 @@
43
  'wp_ulike_general' => array(
44
  'title' => '<i class="dashicons-before dashicons-admin-settings"></i>' . ' ' . __( 'General','alimir'),
45
  'fields' => array(
46
- 'button_type' => array(
47
- 'type' => 'radio',
48
- 'label' => __( 'Button Type', 'alimir'),
49
  'default' => 'image',
50
- 'options' => array(
51
- 'image' => __( 'Icon', 'alimir'),
52
- 'text' => __( 'Text', 'alimir')
53
  )
54
  ),
55
- 'button_text' => array(
56
- 'default' => __('Like','alimir'),
57
- 'label' => __( 'Button Text', 'alimir')
58
  ),
59
  'button_url' => array(
60
- 'type' => 'media',
61
- 'label' => __( 'Button Icon', 'alimir'),
62
  'description' => __( 'Best size: 16x16','alimir')
63
  ),
64
- 'format_number' => array(
65
- 'type' => 'checkbox',
66
- 'default' => 0,
67
- 'label' => __('Format Number', 'alimir'),
68
- 'checkboxlabel' => __('Activate', 'alimir'),
69
- 'description' => __('Convert numbers of Likes with string (kilobyte) format.', 'alimir') . '<strong> (WHEN? likes>=1000)</strong>'
70
- ),
71
- 'text_after_like' => array(
72
- 'default' => __('Unlike','alimir'),
73
- 'label' => __( 'Text After Like', 'alimir')
74
  ),
75
  'return_initial_after_unlike' => array(
76
- 'type' => 'checkbox',
77
- 'default' => 0,
78
- 'label' => __('Return To The Initial', 'alimir'),
79
- 'checkboxlabel' => __('Activate', 'alimir'),
80
- 'description' => __('Return to the initial Like button after Unlike. (Not Showing text after unlike)', 'alimir')
81
  ),
82
- 'text_after_unlike' => array(
83
- 'default' => __('Like Me Again!','alimir'),
84
- 'label' => __( 'Text After Unlike', 'alimir')
85
  ),
86
- 'permission_text' => array(
87
- 'default' => __('You have not permission to unlike','alimir'),
88
- 'label' => __( 'Permission Text', 'alimir')
89
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  )
91
  )//end wp_ulike_general
92
  ),
93
  array(
94
- 'tabs' => true,
95
- 'updated' => __('Settings saved.','alimir')
96
  )
97
  );
98
 
99
  //activate other settings panels
100
  $wp_ulike_setting->apply_settings( array(
101
- 'wp_ulike_posts' => array(
102
- 'title' => '<i class="dashicons-before dashicons-admin-post"></i>' . ' ' . __( 'Posts','alimir'),
103
- 'fields' => array(
104
- 'auto_display' => array(
105
- 'type' => 'checkbox',
106
- 'default' => 1,
107
- 'label' => __('Automatic display', 'alimir'),
108
  'checkboxlabel' => __('Activate', 'alimir'),
109
- 'description' => __('If you disable this option, you have to put manually this code on wordpress while loop', 'alimir') . '<code dir="ltr">&lt;?php if(function_exists(\'wp_ulike\')) wp_ulike(\'get\'); ?&gt;</code>'
110
  ),
111
  'auto_display_position' => array(
112
- 'type' => 'radio',
113
- 'label' => __( 'Auto Display Position','alimir'),
114
- 'default' => 'bottom',
115
- 'options' => array(
116
- 'top' => __('Top of Content', 'alimir'),
117
- 'bottom' => __('Bottom of Content', 'alimir'),
118
- 'top_bottom' => __('Top and Bottom', 'alimir')
119
  )
120
  ),
121
  'auto_display_filter' => array(
122
- 'type' => 'multi',
123
- 'label' => __( 'Auto Display Filter','alimir' ),
124
- 'options' => array(
125
- 'home' => __('Home', 'alimir'),
126
- 'single' => __('Single Posts', 'alimir'),
127
- 'page' => __('Pages', 'alimir'),
128
- 'archive' => __('Archives', 'alimir'),
129
- 'category' => __('Categories', 'alimir'),
130
- 'search' => __('Search Results', 'alimir'),
131
- 'tag' => __('Tags', 'alimir'),
132
- 'author' => __('Author Page', 'alimir')
133
  ),
134
  'description' => __('You can filter theses pages on auto display option.', 'alimir')
135
  ),
136
  'only_registered_users' => array(
137
- 'type' => 'checkbox',
138
- 'default' => 0,
139
- 'label' => __('Only registered Users', 'alimir'),
140
  'checkboxlabel' => __('Activate', 'alimir'),
141
- 'description' => __('<strong>Only</strong> registered users have permission to like posts.', 'alimir')
142
  ),
143
- 'logging_method' => array(
144
- 'type' => 'select',
145
- 'default' => 'by_username',
146
- 'label' => __( 'Logging Method','alimir'),
147
- 'options' => array(
148
- 'do_not_log' => __('Do Not Log', 'alimir'),
149
  'by_cookie' => __('Logged By Cookie', 'alimir'),
150
- 'by_ip' => __('Logged By IP', 'alimir'),
151
- 'by_cookie_ip' => __('Logged By Cookie & IP', 'alimir'),
152
  'by_username' => __('Logged By Username', 'alimir')
153
  ),
154
- 'description' => '
155
  <div class="warning settings-error attention-message" style="overflow:hidden; max-width:600px; display:none"><p>'.
156
  '<strong>'.__('Attention!', 'alimir').'</strong>'.
157
  '<ol>'.
@@ -163,63 +210,71 @@
163
  '</ol></p></div>'
164
  ),
165
  'users_liked_box' => array(
166
- 'type' => 'checkbox',
167
- 'default' => 1,
168
- 'label' => __('Show Liked Users Box', 'alimir'),
169
  'checkboxlabel' => __('Activate', 'alimir'),
170
- 'description' => __('Active this option to show liked users avatars in the bottom of button like.', 'alimir')
171
  ),
172
  'users_liked_box_avatar_size' => array(
173
- 'type' => 'number',
174
- 'default' => 32,
175
- 'label' => __( 'Size of Gravatars', 'alimir'),
176
- 'description' => __('Size of Gravatars to return (max is 512)', 'alimir')
177
- ),
178
- 'users_liked_box_title' => array(
179
- 'default' => __('Users who have LIKED this post:','alimir'),
180
- 'label' => __('Users Like Box Title', 'alimir')
181
- )
182
- )
 
 
 
 
 
 
 
 
183
  ),//end wp_ulike_posts
184
  'wp_ulike_comments' => array(
185
- 'title' => '<i class="dashicons-before dashicons-admin-comments"></i>' . ' ' . __( 'Comments','alimir'),
186
- 'fields' => array(
187
- 'auto_display' => array(
188
- 'type' => 'checkbox',
189
- 'default' => 1,
190
- 'label' => __('Automatic display', 'alimir'),
191
  'checkboxlabel' => __('Activate', 'alimir'),
192
- 'description' => __('If you disable this option, you have to put manually this code on comments text', 'alimir') . '<code dir="ltr">&lt;?php if(function_exists(\'wp_ulike_comments\')) wp_ulike_comments(\'get\'); ?&gt;</code>'
193
  ),
194
  'auto_display_position' => array(
195
- 'type' => 'radio',
196
- 'label' => __( 'Auto Display Position','alimir'),
197
- 'default' => 'bottom',
198
- 'options' => array(
199
- 'top' => __('Top of Content', 'alimir'),
200
- 'bottom' => __('Bottom of Content', 'alimir'),
201
- 'top_bottom' => __('Top and Bottom', 'alimir')
202
  )
203
  ),
204
  'only_registered_users' => array(
205
- 'type' => 'checkbox',
206
- 'default' => 0,
207
- 'label' => __('Only registered Users', 'alimir'),
208
  'checkboxlabel' => __('Activate', 'alimir'),
209
- 'description' => __('<strong>Only</strong> registered users have permission to like comments.', 'alimir')
210
  ),
211
  'logging_method' => array(
212
- 'type' => 'select',
213
- 'default' => 'by_username',
214
- 'label' => __( 'Logging Method','alimir'),
215
  'options' => array(
216
- 'do_not_log' => __('Do Not Log', 'alimir'),
217
  'by_cookie' => __('Logged By Cookie', 'alimir'),
218
- 'by_ip' => __('Logged By IP', 'alimir'),
219
- 'by_cookie_ip' => __('Logged By Cookie & IP', 'alimir'),
220
  'by_username' => __('Logged By Username', 'alimir')
221
  ),
222
- 'description' => '
223
  <div class="warning settings-error attention-message" style="overflow:hidden; max-width:600px; display:none"><p>'.
224
  '<strong>'.__('Attention!', 'alimir').'</strong>'.
225
  '<ol>'.
@@ -231,53 +286,61 @@
231
  '</ol></p></div>'
232
  ),
233
  'users_liked_box' => array(
234
- 'type' => 'checkbox',
235
- 'default' => 1,
236
- 'label' => __('Show Liked Users Box', 'alimir'),
237
  'checkboxlabel' => __('Activate', 'alimir'),
238
- 'description' => __('Active this option to show liked users avatars in the bottom of button like.', 'alimir')
239
  ),
240
  'users_liked_box_avatar_size' => array(
241
- 'type' => 'number',
242
- 'default' => 32,
243
- 'label' => __( 'Size of Gravatars', 'alimir'),
244
- 'description' => __('Size of Gravatars to return (max is 512)', 'alimir')
245
  ),
246
- 'users_liked_box_title' => array(
247
- 'default' => __('Users who have LIKED this comment:','alimir'),
248
- 'label' => __('Users Like Box Title', 'alimir')
249
- )
 
 
 
 
 
 
 
 
250
  )
251
  ),//end wp_ulike_comments
252
  'wp_ulike_buddypress' => array(
253
- 'title' => '<i class="dashicons-before dashicons-groups"></i>' . ' ' . __( 'BuddyPress','alimir'),
254
- 'fields' => array(
255
  'auto_display' => array(
256
- 'type' => 'checkbox',
257
- 'default' => 0,
258
- 'label' => __('Automatic display', 'alimir'),
259
  'checkboxlabel' => __('<strong>On all buddypress activities</strong> at the top of activity', 'alimir'),
260
- 'description' => __('If you disable this option, you have to put manually this code on buddypres activities content', 'alimir') . '<code dir="ltr">&lt;?php if(function_exists(\'wp_ulike_buddypress\')) wp_ulike_buddypress(\'get\'); ?&gt;</code>'
261
  ),
262
  'only_registered_users' => array(
263
- 'type' => 'checkbox',
264
- 'default' => 0,
265
- 'label' => __('Only registered Users', 'alimir'),
266
  'checkboxlabel' => __('Activate', 'alimir'),
267
- 'description' => __('<strong>Only</strong> registered users have permission to like activities.', 'alimir')
268
  ),
269
  'logging_method' => array(
270
- 'type' => 'select',
271
- 'default' => 'by_cookie_ip',
272
- 'label' => __( 'Logging Method','alimir'),
273
  'options' => array(
274
- 'do_not_log' => __('Do Not Log', 'alimir'),
275
  'by_cookie' => __('Logged By Cookie', 'alimir'),
276
- 'by_ip' => __('Logged By IP', 'alimir'),
277
- 'by_cookie_ip' => __('Logged By Cookie & IP', 'alimir'),
278
  'by_username' => __('Logged By Username', 'alimir')
279
  ),
280
- 'description' => '
281
  <div class="warning settings-error attention-message" style="overflow:hidden; max-width:600px; display:none"><p>'.
282
  '<strong>'.__('Attention!', 'alimir').'</strong>'.
283
  '<ol>'.
@@ -287,30 +350,50 @@
287
  '<li>'.__('If you select <strong>"Logged By Cookie & IP"</strong> method: Data logs will save for all users, the convey of like/dislike condition will check by user IP & SetCookie', 'alimir').'</li>'.
288
  '<li>'.__('If you select <strong>"Logged By Username"</strong> method: data logs only is saved for registered users, the convey of like/dislike condition will check by username, There is no permission for guest users to unlike/undislike', 'alimir').'</li>'.
289
  '</ol></p></div>'
290
- ),
291
- 'new_likes_activity' => array(
292
- 'type' => 'checkbox',
293
- 'default' => 0,
294
- 'label' => __('BuddyPress Activity', 'alimir'),
295
- 'checkboxlabel' => __('Activate', 'alimir'),
296
- 'description' => __('insert new likes in buddyPress activity page', 'alimir')
297
- ),
298
  'users_liked_box' => array(
299
- 'type' => 'checkbox',
300
- 'default' => 1,
301
- 'label' => __('Show Liked Users Box', 'alimir'),
302
  'checkboxlabel' => __('Activate', 'alimir'),
303
- 'description' => __('Active this option to show liked users avatars in the bottom of button like.', 'alimir')
304
  ),
305
  'users_liked_box_avatar_size' => array(
306
- 'type' => 'number',
307
- 'default' => 32,
308
- 'label' => __( 'Size of Gravatars', 'alimir'),
309
- 'description' => __('Size of Gravatars to return (max is 512)', 'alimir')
310
- ),
311
- 'users_liked_box_title' => array(
312
- 'default' => __('Users who have liked this activity:','alimir'),
313
- 'label' => __('Users Like Box Title', 'alimir')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  )
315
  )
316
  ),//end wp_ulike_buddypress
@@ -318,92 +401,69 @@
318
  'title' => '<i class="dashicons-before dashicons-art"></i>' . ' ' . __( 'Customize','alimir'),
319
  'fields' => array(
320
  'custom_style' => array(
321
- 'type' => 'checkbox',
322
- 'default' => 0,
323
- 'label' => __('Custom Style', 'alimir'),
324
  'checkboxlabel' => __('Activate', 'alimir'),
325
- 'attributes' => array(
326
- 'class' => 'wp_ulike_custom_style_activation'
327
  ),
328
- 'description' => __('Active this option to see the custom style settings.', 'alimir')
329
  ),
330
  'btn_bg' => array(
331
- 'type' => 'color',
332
- 'label' => __('Button style', 'alimir'),
333
- 'description' => __('Background', 'alimir')
334
  ),
335
  'btn_border' => array(
336
- 'type' => 'color',
337
- 'description' => __('Border Color', 'alimir')
338
  ),
339
  'btn_color' => array(
340
- 'type' => 'color',
341
- 'description' => __('Text Color', 'alimir')
342
  ),
343
  'counter_bg' => array(
344
- 'type' => 'color',
345
- 'label' => __( 'Counter Style', 'alimir'),
346
- 'description' => __('Background', 'alimir')
347
  ),
348
  'counter_border' => array(
349
- 'type' => 'color',
350
- 'description' => __('Border Color', 'alimir')
351
  ),
352
  'counter_color' => array(
353
- 'type' => 'color',
354
- 'description' => __('Text Color', 'alimir')
355
  ),
356
  'loading_animation' => array(
357
- 'type' => 'media',
358
- 'label' => __( 'Loading Animation', 'alimir') . ' (.GIF)',
359
- 'description' => __( 'Best size: 16x16','alimir')
360
  )
361
  )
362
- ),//end wp_ulike_customize
363
- 'wp_ulike_admin' => array(
364
- 'title' => '<i class="dashicons-before dashicons-dashboard"></i>' . ' ' . __( 'Dashboard','alimir'),
365
- 'fields' => array(
366
- 'visit_post_logs' => array(
367
- 'type' => 'checkbox',
368
- 'default' => 1,
369
- 'label' => __('Visit Post Logs Menu', 'alimir'),
370
- 'checkboxlabel' => __('Activate', 'alimir'),
371
- 'description' => __('If you deactivate this option, "Post Likes Logs" Menu will hidden.', 'alimir')
372
- ),
373
- 'visit_comment_logs' => array(
374
- 'type' => 'checkbox',
375
- 'default' => 1,
376
- 'label' => __('Visit Comment Logs Menu', 'alimir'),
377
- 'checkboxlabel' => __('Activate', 'alimir'),
378
- 'description' => __('If you deactivate this option, "Comment Likes Logs" Menu will hidden.', 'alimir')
379
- ),
380
- 'visit_bp_logs' => array(
381
- 'type' => 'checkbox',
382
- 'default' => 1,
383
- 'label' => __('Visit Activity Logs Menu', 'alimir'),
384
- 'checkboxlabel' => __('Activate', 'alimir'),
385
- 'description' => __('If you deactivate this option, "Activity Likes Logs" Menu will hidden.', 'alimir')
386
- )
387
- )
388
- )//end wp_ulike_admin
389
  ) );
390
 
391
- //create menu pages
 
 
 
 
 
 
 
 
392
  add_action('admin_menu', 'wp_ulike_admin_menu');
393
  function wp_ulike_admin_menu() {
394
-
395
  //Post Like Logs Menu
396
- if(wp_ulike_get_setting( 'wp_ulike_admin', 'visit_post_logs') == '1')
397
- add_submenu_page('wp-ulike-settings', __( 'Post Likes Logs', 'alimir' ), __( 'Post Likes Logs', 'alimir' ), 'manage_options', 'wp-ulike-post-logs', 'wp_ulike_post_likes_logs');
398
-
399
  //Comment Like Logs Menu
400
- if(wp_ulike_get_setting( 'wp_ulike_admin', 'visit_comment_logs') == '1')
401
- add_submenu_page('wp-ulike-settings', __( 'Comment Likes Logs', 'alimir' ), __( 'Comment Likes Logs', 'alimir' ), 'manage_options','wp-ulike-comment-logs', 'wp_ulike_comment_likes_logs');
402
-
403
  //Activity Like Logs Menu
404
- if(wp_ulike_get_setting( 'wp_ulike_admin', 'visit_bp_logs') == '1')
405
- add_submenu_page('wp-ulike-settings', __( 'Activity Likes Logs', 'alimir' ), __( 'Activity Likes Logs', 'alimir' ), 'manage_options', 'wp-ulike-bp-logs', 'wp_ulike_buddypress_likes_logs');
406
-
407
  //WP ULike About Menu
408
  add_submenu_page('wp-ulike-settings', __( 'About WP ULike', 'alimir' ), __( 'About WP ULike', 'alimir' ), 'manage_options', 'wp-ulike-about', 'wp_ulike_about_page');
409
  }
7
  Widget
8
  *******************************************************/
9
  include( plugin_dir_path(__FILE__) . 'classes/class-widget.php');
10
+
11
+ /**
12
+ * Register WP ULike Widgets
13
+ *
14
+ * @author Alimir
15
+ * @since 1.2
16
+ * @updated 2.0
17
+ * @return Void
18
+ */
19
  function wp_ulike_load_widget() {
20
+ register_widget( 'wp_ulike_widget' );
 
 
21
  }
22
  add_action( 'widgets_init', 'wp_ulike_load_widget' );
23
 
24
+ /*******************************************************
25
+ WP ULike CopyRight
26
+ *******************************************************/
27
+ //check for wp ulike page
28
+ if(isset($_GET["page"]) && stripos($_GET["page"], "wp-ulike") !== false)
29
+ add_filter( 'admin_footer_text', 'wp_ulike_copyright' );
30
+ /**
31
+ * Add WP ULike CopyRight in footer
32
+ *
33
+ * @author Alimir
34
+ * @param String $content
35
+ * @since 2.0
36
+ * @return String
37
+ */
38
+ function wp_ulike_copyright( $text ) {
39
+ return sprintf( __( ' Thank you for choosing <a href="%s" title="Wordpress ULike" target="_blank">WP ULike</a>. Created by <a href="%s" title="Wordpress ULike" target="_blank">Ali Mirzaei</a>' ), 'http://wordpress.org/plugins/wp-ulike/', 'http://about.alimir.ir' );
40
+ }
41
 
42
  /*******************************************************
43
  Plugin Dashboard Menu Settings
44
  *******************************************************/
45
 
46
+ //include about menu functions
47
  include( plugin_dir_path(__FILE__) . 'about.php');
48
 
49
+ //include logs menu functions
50
  include( plugin_dir_path(__FILE__) . 'logs.php');
51
 
52
+ //include statistics menu functions
53
+ include( plugin_dir_path(__FILE__) . 'stats.php');
54
+
55
+ /**
56
+ * Start Setting Class Options
57
+ *
58
+ * @author Alimir
59
+ * @since 1.7
60
+ * @updated 2.0
61
+ * @return String
62
+ */
63
+
64
  //include settings class
65
+ include( plugin_dir_path(__FILE__) . 'classes/class-settings.php' );
66
 
67
  //activate general setting panel
68
  $wp_ulike_setting = wp_ulike_create_settings_page(
77
  'wp_ulike_general' => array(
78
  'title' => '<i class="dashicons-before dashicons-admin-settings"></i>' . ' ' . __( 'General','alimir'),
79
  'fields' => array(
80
+ 'button_type' => array(
81
+ 'type' => 'radio',
82
+ 'label' => __( 'Button Type', 'alimir'),
83
  'default' => 'image',
84
+ 'options' => array(
85
+ 'image' => __( 'Icon', 'alimir'),
86
+ 'text' => __( 'Text', 'alimir')
87
  )
88
  ),
89
+ 'button_text' => array(
90
+ 'default' => __('Like','alimir'),
91
+ 'label' => __( 'Button Text', 'alimir')
92
  ),
93
  'button_url' => array(
94
+ 'type' => 'media',
95
+ 'label' => __( 'Button Icon', 'alimir'),
96
  'description' => __( 'Best size: 16x16','alimir')
97
  ),
98
+ 'text_after_like' => array(
99
+ 'default' => __('Unlike','alimir'),
100
+ 'label' => __( 'Text After Like', 'alimir')
 
 
 
 
 
 
 
101
  ),
102
  'return_initial_after_unlike' => array(
103
+ 'type' => 'checkbox',
104
+ 'default' => 0,
105
+ 'label' => __('Return To The Initial', 'alimir'),
106
+ 'checkboxlabel' => __('Activate', 'alimir'),
107
+ 'description' => __('Return to the initial Like button after Unlike. (Not Showing text after unlike)', 'alimir')
108
  ),
109
+ 'text_after_unlike' => array(
110
+ 'default' => __('Like Me Again!','alimir'),
111
+ 'label' => __( 'Text After Unlike', 'alimir')
112
  ),
113
+ 'permission_text' => array(
114
+ 'default' => __('You have not permission to unlike','alimir'),
115
+ 'label' => __( 'Permission Text', 'alimir')
116
+ ),
117
+ 'login_type' => array(
118
+ 'type' => 'radio',
119
+ 'label' => __( 'Users Login Type','alimir'),
120
+ 'default' => 'alert',
121
+ 'options' => array(
122
+ 'alert' => __('Alert Box', 'alimir'),
123
+ 'button' => __('Like Button', 'alimir')
124
+ )
125
+ ),
126
+ 'login_text' => array(
127
+ 'default' => __('You Should Login To Submit Your Like','alimir'),
128
+ 'label' => __( 'Users Login Text', 'alimir')
129
+ ),
130
+ 'format_number' => array(
131
+ 'type' => 'checkbox',
132
+ 'default' => 0,
133
+ 'label' => __('Format Number', 'alimir'),
134
+ 'checkboxlabel' => __('Activate', 'alimir'),
135
+ 'description' => __('Convert numbers of Likes with string (kilobyte) format.', 'alimir') . '<strong> (WHEN? likes>=1000)</strong>'
136
+ ),
137
  )
138
  )//end wp_ulike_general
139
  ),
140
  array(
141
+ 'tabs' => true,
142
+ 'updated' => __('Settings saved.','alimir')
143
  )
144
  );
145
 
146
  //activate other settings panels
147
  $wp_ulike_setting->apply_settings( array(
148
+ 'wp_ulike_posts' => array(
149
+ 'title' => '<i class="dashicons-before dashicons-admin-post"></i>' . ' ' . __( 'Posts','alimir'),
150
+ 'fields' => array(
151
+ 'auto_display' => array(
152
+ 'type' => 'checkbox',
153
+ 'default' => 1,
154
+ 'label' => __('Automatic display', 'alimir'),
155
  'checkboxlabel' => __('Activate', 'alimir'),
156
+ 'description' => __('If you disable this option, you have to put manually this code on wordpress while loop', 'alimir') . '<code dir="ltr">&lt;?php if(function_exists(\'wp_ulike\')) wp_ulike(\'get\'); ?&gt;</code>'
157
  ),
158
  'auto_display_position' => array(
159
+ 'type' => 'radio',
160
+ 'label' => __( 'Auto Display Position','alimir'),
161
+ 'default' => 'bottom',
162
+ 'options' => array(
163
+ 'top' => __('Top of Content', 'alimir'),
164
+ 'bottom' => __('Bottom of Content', 'alimir'),
165
+ 'top_bottom' => __('Top and Bottom', 'alimir')
166
  )
167
  ),
168
  'auto_display_filter' => array(
169
+ 'type' => 'multi',
170
+ 'label' => __( 'Auto Display Filter','alimir' ),
171
+ 'options' => array(
172
+ 'home' => __('Home', 'alimir'),
173
+ 'single' => __('Single Posts', 'alimir'),
174
+ 'page' => __('Pages', 'alimir'),
175
+ 'archive' => __('Archives', 'alimir'),
176
+ 'category' => __('Categories', 'alimir'),
177
+ 'search' => __('Search Results', 'alimir'),
178
+ 'tag' => __('Tags', 'alimir'),
179
+ 'author' => __('Author Page', 'alimir')
180
  ),
181
  'description' => __('You can filter theses pages on auto display option.', 'alimir')
182
  ),
183
  'only_registered_users' => array(
184
+ 'type' => 'checkbox',
185
+ 'default' => 0,
186
+ 'label' => __('Only registered Users', 'alimir'),
187
  'checkboxlabel' => __('Activate', 'alimir'),
188
+ 'description' => __('<strong>Only</strong> registered users have permission to like posts.', 'alimir')
189
  ),
190
+ 'logging_method' => array(
191
+ 'type' => 'select',
192
+ 'default' => 'by_username',
193
+ 'label' => __( 'Logging Method','alimir'),
194
+ 'options' => array(
195
+ 'do_not_log' => __('Do Not Log', 'alimir'),
196
  'by_cookie' => __('Logged By Cookie', 'alimir'),
197
+ 'by_ip' => __('Logged By IP', 'alimir'),
198
+ 'by_cookie_ip'=> __('Logged By Cookie & IP', 'alimir'),
199
  'by_username' => __('Logged By Username', 'alimir')
200
  ),
201
+ 'description' => '
202
  <div class="warning settings-error attention-message" style="overflow:hidden; max-width:600px; display:none"><p>'.
203
  '<strong>'.__('Attention!', 'alimir').'</strong>'.
204
  '<ol>'.
210
  '</ol></p></div>'
211
  ),
212
  'users_liked_box' => array(
213
+ 'type' => 'checkbox',
214
+ 'default' => 1,
215
+ 'label' => __('Show Liked Users Box', 'alimir'),
216
  'checkboxlabel' => __('Activate', 'alimir'),
217
+ 'description' => __('Active this option to show liked users avatars in the bottom of button like.', 'alimir')
218
  ),
219
  'users_liked_box_avatar_size' => array(
220
+ 'type' => 'number',
221
+ 'default' => 32,
222
+ 'label' => __( 'Size of Gravatars', 'alimir'),
223
+ 'description' => __('Size of Gravatars to return (max is 512)', 'alimir')
224
+ ),
225
+ 'number_of_users' => array(
226
+ 'type' => 'number',
227
+ 'default' => 10,
228
+ 'label' => __( 'Number Of The Users', 'alimir'),
229
+ 'description' => __('The number of users to show in the users liked box', 'alimir')
230
+ ),
231
+ 'users_liked_box_template' => array(
232
+ 'type' => 'textarea',
233
+ 'default' => '<br /><p style="margin-top:5px"> '.__('Users who have LIKED this post:','alimir').'</p> <ul class="tiles">%START_WHILE%<li><a class="user-tooltip" title="%USER_NAME%">%USER_AVATAR%</a></li>%END_WHILE%</ul>',
234
+ 'label' => __('Users Like Box Template', 'alimir'),
235
+ 'description' => __('Allowed Variables:', 'alimir') . ' <code>%USER_AVATAR%</code> , <code>%USER_NAME%</code> , <code>%START_WHILE%</code> , <code>%END_WHILE%</code> <br /><br />' . __('Default Template:', 'alimir') . '<code>&lt;p style="margin-top:5px"&gt; '.__('Users who have LIKED this post:','alimir').'&lt;/p&gt; &lt;ul class="tiles"&gt;%START_WHILE%&lt;li&gt;&lt;a class="user-tooltip" title="%USER_NAME%"&gt;%USER_AVATAR%&lt;/a&gt;&lt;/li&gt;%END_WHILE%&lt;/ul&gt;</code>'
236
+ )
237
+ )
238
  ),//end wp_ulike_posts
239
  'wp_ulike_comments' => array(
240
+ 'title' => '<i class="dashicons-before dashicons-admin-comments"></i>' . ' ' . __( 'Comments','alimir'),
241
+ 'fields' => array(
242
+ 'auto_display' => array(
243
+ 'type' => 'checkbox',
244
+ 'default' => 1,
245
+ 'label' => __('Automatic display', 'alimir'),
246
  'checkboxlabel' => __('Activate', 'alimir'),
247
+ 'description' => __('If you disable this option, you have to put manually this code on comments text', 'alimir') . '<code dir="ltr">&lt;?php if(function_exists(\'wp_ulike_comments\')) wp_ulike_comments(\'get\'); ?&gt;</code>'
248
  ),
249
  'auto_display_position' => array(
250
+ 'type' => 'radio',
251
+ 'label' => __( 'Auto Display Position','alimir'),
252
+ 'default' => 'bottom',
253
+ 'options' => array(
254
+ 'top' => __('Top of Content', 'alimir'),
255
+ 'bottom' => __('Bottom of Content', 'alimir'),
256
+ 'top_bottom' => __('Top and Bottom', 'alimir')
257
  )
258
  ),
259
  'only_registered_users' => array(
260
+ 'type' => 'checkbox',
261
+ 'default' => 0,
262
+ 'label' => __('Only registered Users', 'alimir'),
263
  'checkboxlabel' => __('Activate', 'alimir'),
264
+ 'description' => __('<strong>Only</strong> registered users have permission to like comments.', 'alimir')
265
  ),
266
  'logging_method' => array(
267
+ 'type' => 'select',
268
+ 'default' => 'by_username',
269
+ 'label' => __( 'Logging Method','alimir'),
270
  'options' => array(
271
+ 'do_not_log' => __('Do Not Log', 'alimir'),
272
  'by_cookie' => __('Logged By Cookie', 'alimir'),
273
+ 'by_ip' => __('Logged By IP', 'alimir'),
274
+ 'by_cookie_ip'=> __('Logged By Cookie & IP', 'alimir'),
275
  'by_username' => __('Logged By Username', 'alimir')
276
  ),
277
+ 'description' => '
278
  <div class="warning settings-error attention-message" style="overflow:hidden; max-width:600px; display:none"><p>'.
279
  '<strong>'.__('Attention!', 'alimir').'</strong>'.
280
  '<ol>'.
286
  '</ol></p></div>'
287
  ),
288
  'users_liked_box' => array(
289
+ 'type' => 'checkbox',
290
+ 'default' => 1,
291
+ 'label' => __('Show Liked Users Box', 'alimir'),
292
  'checkboxlabel' => __('Activate', 'alimir'),
293
+ 'description' => __('Active this option to show liked users avatars in the bottom of button like.', 'alimir')
294
  ),
295
  'users_liked_box_avatar_size' => array(
296
+ 'type' => 'number',
297
+ 'default' => 32,
298
+ 'label' => __( 'Size of Gravatars', 'alimir'),
299
+ 'description' => __('Size of Gravatars to return (max is 512)', 'alimir')
300
  ),
301
+ 'number_of_users' => array(
302
+ 'type' => 'number',
303
+ 'default' => 10,
304
+ 'label' => __( 'Number Of The Users', 'alimir'),
305
+ 'description' => __('The number of users to show in the users liked box', 'alimir')
306
+ ),
307
+ 'users_liked_box_template' => array(
308
+ 'type' => 'textarea',
309
+ 'default' => '<br /><p style="margin-top:5px"> '.__('Users who have LIKED this comment:','alimir').'</p> <ul class="tiles">%START_WHILE%<li><a class="user-tooltip" title="%USER_NAME%">%USER_AVATAR%</a></li>%END_WHILE%</ul>',
310
+ 'label' => __('Users Like Box Template', 'alimir'),
311
+ 'description' => __('Allowed Variables:', 'alimir') . ' <code>%USER_AVATAR%</code> , <code>%USER_NAME%</code> , <code>%START_WHILE%</code> , <code>%END_WHILE%</code> <br /><br />' . __('Default Template:', 'alimir') . '<code>&lt;p style="margin-top:5px"&gt; '.__('Users who have LIKED this comment:','alimir').'&lt;/p&gt; &lt;ul class="tiles"&gt;%START_WHILE%&lt;li&gt;&lt;a class="user-tooltip" title="%USER_NAME%"&gt;%USER_AVATAR%&lt;/a&gt;&lt;/li&gt;%END_WHILE%&lt;/ul&gt;</code>'
312
+ )
313
  )
314
  ),//end wp_ulike_comments
315
  'wp_ulike_buddypress' => array(
316
+ 'title' => '<i class="dashicons-before dashicons-groups"></i>' . ' ' . __( 'BuddyPress','alimir'),
317
+ 'fields' => array(
318
  'auto_display' => array(
319
+ 'type' => 'checkbox',
320
+ 'default' => 0,
321
+ 'label' => __('Automatic display', 'alimir'),
322
  'checkboxlabel' => __('<strong>On all buddypress activities</strong> at the top of activity', 'alimir'),
323
+ 'description' => __('If you disable this option, you have to put manually this code on buddypres activities content', 'alimir') . '<code dir="ltr">&lt;?php if(function_exists(\'wp_ulike_buddypress\')) wp_ulike_buddypress(\'get\'); ?&gt;</code>'
324
  ),
325
  'only_registered_users' => array(
326
+ 'type' => 'checkbox',
327
+ 'default' => 0,
328
+ 'label' => __('Only registered Users', 'alimir'),
329
  'checkboxlabel' => __('Activate', 'alimir'),
330
+ 'description' => __('<strong>Only</strong> registered users have permission to like activities.', 'alimir')
331
  ),
332
  'logging_method' => array(
333
+ 'type' => 'select',
334
+ 'default' => 'by_cookie_ip',
335
+ 'label' => __( 'Logging Method','alimir'),
336
  'options' => array(
337
+ 'do_not_log' => __('Do Not Log', 'alimir'),
338
  'by_cookie' => __('Logged By Cookie', 'alimir'),
339
+ 'by_ip' => __('Logged By IP', 'alimir'),
340
+ 'by_cookie_ip'=> __('Logged By Cookie & IP', 'alimir'),
341
  'by_username' => __('Logged By Username', 'alimir')
342
  ),
343
+ 'description' => '
344
  <div class="warning settings-error attention-message" style="overflow:hidden; max-width:600px; display:none"><p>'.
345
  '<strong>'.__('Attention!', 'alimir').'</strong>'.
346
  '<ol>'.
350
  '<li>'.__('If you select <strong>"Logged By Cookie & IP"</strong> method: Data logs will save for all users, the convey of like/dislike condition will check by user IP & SetCookie', 'alimir').'</li>'.
351
  '<li>'.__('If you select <strong>"Logged By Username"</strong> method: data logs only is saved for registered users, the convey of like/dislike condition will check by username, There is no permission for guest users to unlike/undislike', 'alimir').'</li>'.
352
  '</ol></p></div>'
353
+ ),
 
 
 
 
 
 
 
354
  'users_liked_box' => array(
355
+ 'type' => 'checkbox',
356
+ 'default' => 1,
357
+ 'label' => __('Show Liked Users Box', 'alimir'),
358
  'checkboxlabel' => __('Activate', 'alimir'),
359
+ 'description' => __('Active this option to show liked users avatars in the bottom of button like.', 'alimir')
360
  ),
361
  'users_liked_box_avatar_size' => array(
362
+ 'type' => 'number',
363
+ 'default' => 32,
364
+ 'label' => __( 'Size of Gravatars', 'alimir'),
365
+ 'description' => __('Size of Gravatars to return (max is 512)', 'alimir')
366
+ ),
367
+ 'number_of_users' => array(
368
+ 'type' => 'number',
369
+ 'default' => 10,
370
+ 'label' => __( 'Number Of The Users', 'alimir'),
371
+ 'description' => __('The number of users to show in the users liked box', 'alimir')
372
+ ),
373
+ 'users_liked_box_template' => array(
374
+ 'type' => 'textarea',
375
+ 'default' => '<br /><p style="margin-top:5px"> '.__('Users who have liked this activity:','alimir').'</p> <ul class="tiles">%START_WHILE%<li><a class="user-tooltip" title="%USER_NAME%">%USER_AVATAR%</a></li>%END_WHILE%</ul>',
376
+ 'label' => __('Users Like Box Template', 'alimir'),
377
+ 'description' => __('Allowed Variables:', 'alimir') . ' <code>%USER_AVATAR%</code> , <code>%USER_NAME%</code> , <code>%START_WHILE%</code> , <code>%END_WHILE%</code> <br /><br />' . __('Default Template:', 'alimir') . '<code>&lt;p style="margin-top:5px"&gt; '.__('Users who have liked this activity:','alimir').'&lt;/p&gt; &lt;ul class="tiles"&gt;%START_WHILE%&lt;li&gt;&lt;a class="user-tooltip" title="%USER_NAME%"&gt;%USER_AVATAR%&lt;/a&gt;&lt;/li&gt;%END_WHILE%&lt;/ul&gt;</code>'
378
+ ),
379
+ 'new_likes_activity' => array(
380
+ 'type' => 'checkbox',
381
+ 'default' => 0,
382
+ 'label' => __('BuddyPress Activity', 'alimir'),
383
+ 'checkboxlabel' => __('Activate', 'alimir'),
384
+ 'description' => __('insert new likes in buddyPress activity page', 'alimir')
385
+ ),
386
+ 'bp_post_activity_add_header' => array(
387
+ 'type' => 'textarea',
388
+ 'default' => '<strong>%POST_LIKER%</strong> liked <a href="%POST_PERMALINK%" title="%POST_TITLE%">%POST_TITLE%</a>. (So far, This post has <span class="badge">%POST_COUNT%</span> likes)',
389
+ 'label' => __('Post Activity Text', 'alimir'),
390
+ 'description' => __('Allowed Variables:', 'alimir') . ' <code>%POST_LIKER%</code> , <code>%POST_PERMALINK%</code> , <code>%POST_COUNT%</code> , <code>%POST_TITLE%</code> <br /><br />' . __('Default Template:', 'alimir') . '<code>&lt;strong&gt;%POST_LIKER%&lt;/strong&gt; liked &lt;a href="%POST_PERMALINK%" title="%POST_TITLE%"&gt;%POST_TITLE%&lt;/a&gt;. (So far, This post has &lt;span class="badge"&gt;%POST_COUNT%&lt;/span&gt; likes)</code>'
391
+ ),
392
+ 'bp_comment_activity_add_header' => array(
393
+ 'type' => 'textarea',
394
+ 'default' => '<strong>%COMMENT_LIKER%</strong> liked <strong>%COMMENT_AUTHOR%</strong> comment. (So far, %COMMENT_AUTHOR% has <span class="badge">%COMMENT_COUNT%</span> likes for this comment)',
395
+ 'label' => __('Comment Activity Text', 'alimir'),
396
+ 'description' => __('Allowed Variables:', 'alimir') . ' <code>%COMMENT_LIKER%</code> , <code>%COMMENT_AUTHOR%</code> , <code>%COMMENT_COUNT%</code> <br /><br />' . __('Default Template:', 'alimir') . '<code>&lt;strong&gt;%COMMENT_LIKER%&lt;/strong&gt; liked &lt;strong&gt;%COMMENT_AUTHOR%&lt;/strong&gt; comment. (So far, %COMMENT_AUTHOR% has &lt;span class="badge"&gt;%COMMENT_COUNT%&lt;/span&gt; likes for this comment)</code>'
397
  )
398
  )
399
  ),//end wp_ulike_buddypress
401
  'title' => '<i class="dashicons-before dashicons-art"></i>' . ' ' . __( 'Customize','alimir'),
402
  'fields' => array(
403
  'custom_style' => array(
404
+ 'type' => 'checkbox',
405
+ 'default' => 0,
406
+ 'label' => __('Custom Style', 'alimir'),
407
  'checkboxlabel' => __('Activate', 'alimir'),
408
+ 'attributes' => array(
409
+ 'class' => 'wp_ulike_custom_style_activation'
410
  ),
411
+ 'description' => __('Active this option to see the custom style settings.', 'alimir')
412
  ),
413
  'btn_bg' => array(
414
+ 'type' => 'color',
415
+ 'label' => __('Button style', 'alimir'),
416
+ 'description' => __('Background', 'alimir')
417
  ),
418
  'btn_border' => array(
419
+ 'type' => 'color',
420
+ 'description' => __('Border Color', 'alimir')
421
  ),
422
  'btn_color' => array(
423
+ 'type' => 'color',
424
+ 'description' => __('Text Color', 'alimir')
425
  ),
426
  'counter_bg' => array(
427
+ 'type' => 'color',
428
+ 'label' => __( 'Counter Style', 'alimir'),
429
+ 'description' => __('Background', 'alimir')
430
  ),
431
  'counter_border' => array(
432
+ 'type' => 'color',
433
+ 'description' => __('Border Color', 'alimir')
434
  ),
435
  'counter_color' => array(
436
+ 'type' => 'color',
437
+ 'description' => __('Text Color', 'alimir')
438
  ),
439
  'loading_animation' => array(
440
+ 'type' => 'media',
441
+ 'label' => __( 'Loading Animation', 'alimir') . ' (.GIF)',
442
+ 'description' => __( 'Best size: 16x16','alimir')
443
  )
444
  )
445
+ )//end wp_ulike_customize
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  ) );
447
 
448
+
449
+ /**
450
+ * Add menu to admin
451
+ *
452
+ * @author Alimir
453
+ * @since 1.0
454
+ * @updated 2.0
455
+ * @return String
456
+ */
457
  add_action('admin_menu', 'wp_ulike_admin_menu');
458
  function wp_ulike_admin_menu() {
 
459
  //Post Like Logs Menu
460
+ add_submenu_page(null, __( 'Post Likes Logs', 'alimir' ), __( 'Post Likes Logs', 'alimir' ), 'manage_options', 'wp-ulike-post-logs', 'wp_ulike_post_likes_logs');
 
 
461
  //Comment Like Logs Menu
462
+ add_submenu_page(null, __( 'Comment Likes Logs', 'alimir' ), __( 'Comment Likes Logs', 'alimir' ), 'manage_options','wp-ulike-comment-logs', 'wp_ulike_comment_likes_logs');
 
 
463
  //Activity Like Logs Menu
464
+ add_submenu_page(null, __( 'Activity Likes Logs', 'alimir' ), __( 'Activity Likes Logs', 'alimir' ), 'manage_options', 'wp-ulike-bp-logs', 'wp_ulike_buddypress_likes_logs');
465
+ //Statistics Menu
466
+ add_submenu_page('wp-ulike-settings', __( 'WP ULike Statistics', 'alimir' ), __( 'WP ULike Statistics', 'alimir' ), 'manage_options', 'wp-ulike-statistics', 'wp_ulike_statistics');
467
  //WP ULike About Menu
468
  add_submenu_page('wp-ulike-settings', __( 'About WP ULike', 'alimir' ), __( 'About WP ULike', 'alimir' ), 'manage_options', 'wp-ulike-about', 'wp_ulike_about_page');
469
  }
admin/classes/class-charts.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! class_exists( 'wp_ulike_stats' ) ) {
3
+
4
+ class wp_ulike_stats{
5
+ private $wpdb;
6
+
7
+ /**
8
+ * Constructor
9
+ */
10
+ public function __construct()
11
+ {
12
+ global $wpdb;
13
+ $this->wpdb = $wpdb;
14
+ add_action('admin_enqueue_scripts', array($this,'enqueue_script'));
15
+ }
16
+
17
+ /**
18
+ * Add chart scripts files + Creating Localize Objects
19
+ *
20
+ * @author Alimir
21
+ * @since 2.0
22
+ * @return Void
23
+ */
24
+ public function enqueue_script()
25
+ {
26
+ wp_register_script('wp_ulike_chart', plugins_url( 'js/chart.min.js' , __FILE__ ), array('jquery'), null, true);
27
+ wp_enqueue_script('wp_ulike_chart');
28
+ wp_register_script('wp_ulike_stats', plugins_url( 'js/statistics.js' , __FILE__ ), array('jquery'), null, true);
29
+ wp_enqueue_script('wp_ulike_stats');
30
+ wp_localize_script( 'wp_ulike_stats', 'wp_ulike_statistics', array(
31
+ 'posts_date_labels' => $this->posts_dataset('label'),
32
+ 'comments_date_labels' => $this->comments_dataset('label'),
33
+ 'activities_date_labels' => $this->activities_dataset('label'),
34
+ 'posts_dataset' => $this->posts_dataset('dataset'),
35
+ 'comments_dataset' => $this->comments_dataset('dataset'),
36
+ 'activities_dataset' => $this->activities_dataset('dataset')
37
+ ));
38
+ wp_enqueue_script('postbox');
39
+ }
40
+
41
+ /**
42
+ * Get The Posts Data Set
43
+ *
44
+ * @author Alimir
45
+ * @since 2.0
46
+ * @return JSON Array
47
+ */
48
+ public function posts_dataset($type){
49
+ $return_type = $type != 'dataset' ? 'new_date_time' : 'count_date_time';
50
+ $return_val = $this->select_data('ulike');
51
+ foreach($return_val as $val){
52
+ $newarray[] = $val->$return_type;
53
+ }
54
+ return json_encode($newarray, JSON_NUMERIC_CHECK);
55
+ }
56
+
57
+ /**
58
+ * Get The Comments Data Set
59
+ *
60
+ * @author Alimir
61
+ * @since 2.0
62
+ * @return JSON Array
63
+ */
64
+ public function comments_dataset($type){
65
+ $return_type = $type != 'dataset' ? 'new_date_time' : 'count_date_time';
66
+ $return_val = $this->select_data('ulike_comments');
67
+ foreach($return_val as $val){
68
+ $newarray[] = $val->$return_type;
69
+ }
70
+ return json_encode($newarray, JSON_NUMERIC_CHECK);
71
+ }
72
+
73
+ /**
74
+ * Get The Activities Data Set
75
+ *
76
+ * @author Alimir
77
+ * @since 2.0
78
+ * @return JSON Array
79
+ */
80
+ public function activities_dataset($type){
81
+ $return_type = $type != 'dataset' ? 'new_date_time' : 'count_date_time';
82
+ $return_val = $this->select_data('ulike_activities');
83
+ foreach($return_val as $val){
84
+ $newarray[] = $val->$return_type;
85
+ }
86
+ return json_encode($newarray, JSON_NUMERIC_CHECK);
87
+ }
88
+
89
+ /**
90
+ * Get The Logs Data From Tables
91
+ *
92
+ * @author Alimir
93
+ * @since 2.0
94
+ * @return String
95
+ */
96
+ public function select_data($table){
97
+ $return_val = $this->wpdb->get_results(
98
+ "
99
+ SELECT DATE(date_time) AS new_date_time, count(date_time) AS count_date_time
100
+ FROM ".$this->wpdb->prefix."$table
101
+ GROUP BY new_date_time DESC LIMIT 20
102
+ ");
103
+ return $return_val;
104
+ }
105
+
106
+ /**
107
+ * Get The Summary Of Like Data
108
+ *
109
+ * @author Alimir
110
+ * @since 2.0
111
+ * @return Integer
112
+ */
113
+ public function get_data_date($table,$time){
114
+ if($time == 'today')
115
+ $where_val = "DATE(date_time) = DATE(NOW())";
116
+ else if($time == 'yesterday')
117
+ $where_val = "DATE(date_time) = DATE(subdate(current_date, 1))";
118
+ else if($time == 'week')
119
+ $where_val = "week(DATE(date_time)) = week(DATE(NOW()))";
120
+ else
121
+ $where_val = "month(DATE(date_time)) = month(DATE(NOW()))";
122
+
123
+ $return_val = $this->wpdb->get_var(
124
+ "
125
+ SELECT COUNT(*)
126
+ FROM ".$this->wpdb->prefix."$table
127
+ WHERE $where_val
128
+ ");
129
+ return $return_val;
130
+ }
131
+
132
+ /**
133
+ * Get The Sum Of All Likes
134
+ *
135
+ * @author Alimir
136
+ * @since 2.0
137
+ * @return Integer
138
+ */
139
+ public function get_all_data_date($table,$name){
140
+ $return_val = $this->wpdb->get_var(
141
+ "
142
+ SELECT SUM(meta_value)
143
+ FROM ".$this->wpdb->prefix."$table
144
+ WHERE meta_key LIKE '$name'
145
+ ");
146
+ return $return_val;
147
+ }
148
+
149
+ }
150
+
151
+ //create global variable
152
+ global $wp_ulike_stats;
153
+ $wp_ulike_stats = new wp_ulike_stats();
154
+
155
+ }
admin/classes/class-pagination.php CHANGED
@@ -1,4 +1,6 @@
1
  <?php
 
 
2
  class pagination{
3
  /*
4
  Script Name: *Digg Style Paginator Class
@@ -199,4 +201,7 @@ Author: Victor De la Rocha
199
  return true;
200
  }
201
  }
 
 
 
202
  ?>
1
  <?php
2
+ if ( ! class_exists( 'pagination' ) ) {
3
+
4
  class pagination{
5
  /*
6
  Script Name: *Digg Style Paginator Class
201
  return true;
202
  }
203
  }
204
+
205
+ }
206
+
207
  ?>
admin/classes/class-settings.php CHANGED
@@ -325,7 +325,7 @@ class wp_ulike_settings {
325
  $text = '';
326
  $nl = "WM-SETTINGS-NEW-LINE";
327
  $tb = "WM-SETTINGS-TABULATION";
328
- $lines = explode( $nl, sanitize_text_field( str_replace( "\t", $tb, str_replace( "\n", $nl, $input ) ) ) );
329
  foreach ( $lines as $line ) {
330
  $text .= str_replace( $tb, "\t", trim( $line ) ) . "\n";
331
  }
325
  $text = '';
326
  $nl = "WM-SETTINGS-NEW-LINE";
327
  $tb = "WM-SETTINGS-TABULATION";
328
+ $lines = explode( $nl, str_replace( "\t", $tb, str_replace( "\n", $nl, $input ) ) );
329
  foreach ( $lines as $line ) {
330
  $text .= str_replace( $tb, "\t", trim( $line ) ) . "\n";
331
  }
admin/classes/class-widget.php CHANGED
@@ -1,22 +1,32 @@
1
  <?php
2
  // Creating the most liked posts widget
3
- class wp_ulike_posts_widget extends WP_Widget {
4
 
 
 
 
5
  function __construct() {
6
  parent::__construct(
7
  'wp_ulike',
8
- __('WP Ulike - Most Liked Posts', 'alimir'),
9
- array( 'description' => __( 'This widget allows you to show most liked posts.', 'alimir' ))
10
  );
11
  }
12
-
 
 
 
 
 
 
 
13
  public function most_liked_posts($numberOf, $before, $after, $show_count) {
14
  global $wpdb;
15
 
16
- $request = "SELECT ID, post_title, meta_value FROM $wpdb->posts, $wpdb->postmeta";
17
- $request .= " WHERE $wpdb->posts.ID = $wpdb->postmeta.post_id";
18
  $request .= " AND post_status='publish' AND meta_key='_liked'";
19
- $request .= " ORDER BY $wpdb->postmeta.meta_value+0 DESC LIMIT $numberOf";
20
  $posts = $wpdb->get_results($request);
21
 
22
  foreach ($posts as $post) {
@@ -28,75 +38,63 @@ class wp_ulike_posts_widget extends WP_Widget {
28
  echo $show_count == '1' ? ' ('.wp_ulike_format_number($post_count).')' : '';
29
  echo $after;
30
  }
31
- }
32
 
33
- public function widget( $args, $instance ) {
34
- $title = apply_filters('widget_title', $instance['title'] );
35
- $numberOf = $instance['count'];
36
- $show_count = (isset($instance['show_count']) == true ) ? 1 : 0;
 
 
 
 
 
37
 
38
- echo $args['before_widget'];
39
- if ( ! empty( $title ) )
40
- echo $args['before_title'] . $title . $args['after_title'];
41
- echo '<ul class="mostlikedposts">';
42
- echo $this->most_liked_posts($numberOf, '<li>', '</li>', $show_count);
43
- echo '</ul>';
44
- echo $args['after_widget'];
45
- }
46
-
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
- public function form( $instance ) {
50
- //Set up some default widget settings.
51
- $defaults = array( 'title' => __('Most Liked Posts', 'alimir'), 'count' => 15, 'show_count' => true );
52
- $instance = wp_parse_args( (array) $instance, $defaults );
53
- ?>
54
- <p>
55
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'alimir'); ?></label>
56
- <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
57
- </p>
58
-
59
- <p>
60
- <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e('Number of posts to show:', 'alimir'); ?><small> (max. 15)</small></label>
61
- <input id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" value="<?php echo $instance['count']; ?>" style="width:100%;" />
62
- </p>
63
-
64
- <p>
65
- <input class="checkbox" type="checkbox" id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" <?php if($instance['show_count'] == true) echo 'checked="checked"'; ?> />
66
- <label for="<?php echo $this->get_field_id( 'show_count' ); ?>"><?php _e('Activate Like Counter', 'alimir'); ?></label>
67
- </p>
68
- <?php
69
  }
70
-
71
- public function update( $new_instance, $old_instance ) {
72
- $instance = $old_instance;
73
 
74
- $instance['title'] = strip_tags( $new_instance['title'] );
75
- $instance['count'] = strip_tags( $new_instance['count'] );
76
- $instance['show_count'] = $new_instance['show_count'];
77
-
78
- return $instance;
79
- }
80
- }
81
-
82
- // Creating the most liked comments widget
83
- class wp_ulike_comments_widget extends WP_Widget {
84
-
85
- function __construct() {
86
- parent::__construct(
87
- 'wp_ulike_comments',
88
- __('WP ULike - Most Liked Comments', 'alimir'),
89
- array( 'description' => __( 'This widget allows you to show most liked comments.', 'alimir' ))
90
- );
91
- }
92
-
93
  public function most_liked_comments($numberOf, $before, $after, $show_count) {
94
  global $wpdb;
95
 
96
- $request = "SELECT * FROM $wpdb->comments, $wpdb->commentmeta";
97
- $request .= " WHERE $wpdb->comments.comment_ID = $wpdb->commentmeta.comment_id";
98
  $request .= " AND comment_approved='1' AND meta_key='_commentliked'";
99
- $request .= " ORDER BY $wpdb->commentmeta.meta_value+0 DESC LIMIT $numberOf";
100
  $comments = $wpdb->get_results($request);
101
 
102
  foreach ($comments as $comment) {
@@ -111,109 +109,123 @@ class wp_ulike_comments_widget extends WP_Widget {
111
  echo $show_count == '1' ? ' ('.wp_ulike_format_number($comment_likes_count).')' : '';
112
  echo $after;
113
  }
114
- }
115
-
116
- public function widget( $args, $instance ) {
117
- $title = apply_filters('widget_title', $instance['title'] );
118
- $numberOf = $instance['count'];
119
- $show_count = (isset($instance['show_count']) == true ) ? 1 : 0;
120
-
121
- echo $args['before_widget'];
122
- if ( ! empty( $title ) )
123
- echo $args['before_title'] . $title . $args['after_title'];
124
- echo '<ul class="mostlikedposts">';
125
- echo $this->most_liked_comments($numberOf, '<li>', '</li>', $show_count);
126
- echo '</ul>';
127
- echo $args['after_widget'];
128
  }
129
-
130
 
131
-
132
- public function form( $instance ) {
133
- //Set up some default widget settings.
134
- $defaults = array( 'title' => __('Most Liked Comments', 'alimir'), 'count' => 15, 'show_count' => true );
135
- $instance = wp_parse_args( (array) $instance, $defaults );
136
- ?>
137
- <p>
138
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'alimir'); ?></label>
139
- <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
140
- </p>
141
-
142
- <p>
143
- <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e('Number of comments to show:', 'alimir'); ?><small> (max. 15)</small></label>
144
- <input id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" value="<?php echo $instance['count']; ?>" style="width:100%;" />
145
- </p>
146
-
147
- <p>
148
- <input class="checkbox" type="checkbox" id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" <?php if($instance['show_count'] == true) echo 'checked="checked"'; ?> />
149
- <label for="<?php echo $this->get_field_id( 'show_count' ); ?>"><?php _e('Activate Like Counter', 'alimir'); ?></label>
150
- </p>
151
- <?php
152
- }
153
-
154
- public function update( $new_instance, $old_instance ) {
155
- $instance = $old_instance;
156
 
157
- $instance['title'] = strip_tags( $new_instance['title'] );
158
- $instance['count'] = strip_tags( $new_instance['count'] );
159
- $instance['show_count'] = $new_instance['show_count'];
 
 
160
 
161
- return $instance;
 
 
 
 
 
 
 
162
  }
163
- }
164
-
165
- class wp_ulike_users_widget extends WP_Widget {
166
 
167
- function __construct() {
168
- parent::__construct(
169
- 'wp_ulike_users',
170
- __('WP Ulike - Most Liked Users', 'alimir'),
171
- array( 'description' => __( 'This widget allows you to show most liked users avatars.', 'alimir' ))
172
- );
173
- }
174
-
175
  public function most_liked_users($numberOf, $before, $after, $show_count, $sizeOf) {
176
  global $wpdb;
177
-
178
- $request = "SELECT user_id, count(user_id) AS CountUser
 
 
179
  FROM ".$wpdb->prefix."ulike
 
 
 
 
 
 
180
  GROUP BY user_id
181
- ORDER BY CountUser DESC LIMIT $numberOf
 
 
 
 
 
 
 
182
  ";
183
  $likes = $wpdb->get_results($request);
184
 
185
  foreach ($likes as $like) {
186
  $get_user_id = stripslashes($like->user_id);
187
  $get_user_info = get_userdata($get_user_id);
188
- $get_likes_count = $like->CountUser;
189
  $echo_likes_count = $show_count == '1' ? ' ('.$get_likes_count . ' ' . __('Like','alimir').')' : '';
190
- if($get_user_info){
191
  echo $before . '<a class="user-tooltip" title="'.$get_user_info->display_name . $echo_likes_count.'">'.get_avatar( $get_user_info->user_email, $sizeOf, '' , 'avatar').'</a>';
192
  echo $after;
193
  }
194
  }
195
  }
196
 
 
 
 
 
 
 
 
 
197
  public function widget( $args, $instance ) {
198
  $title = apply_filters('widget_title', $instance['title'] );
199
  $numberOf = $instance['count'];
 
200
  $sizeOf = $instance['size'];
201
  $show_count = (isset($instance['show_count']) == true ) ? 1 : 0;
202
 
203
  echo $args['before_widget'];
204
  if ( ! empty( $title ) )
205
  echo $args['before_title'] . $title . $args['after_title'];
206
- echo '<ul class="mostlikedusers">';
 
 
 
 
 
 
 
207
  echo $this->most_liked_users($numberOf, '<li>', '</li>', $show_count, $sizeOf);
 
 
208
  echo '</ul>';
209
  echo $args['after_widget'];
210
  }
211
 
212
-
213
-
 
 
 
 
 
 
214
  public function form( $instance ) {
215
  //Set up some default widget settings.
216
- $defaults = array( 'title' => __('Most Liked Users', 'alimir'), 'count' => 15, 'size' => 32, 'show_count' => true );
217
  $instance = wp_parse_args( (array) $instance, $defaults );
218
  ?>
219
  <p>
@@ -222,14 +234,25 @@ class wp_ulike_users_widget extends WP_Widget {
222
  </p>
223
 
224
  <p>
225
- <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e('Number of users to show:', 'alimir'); ?><small> (max. 15)</small></label>
 
 
 
 
 
 
 
 
 
 
 
226
  <input id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" value="<?php echo $instance['count']; ?>" style="width:100%;" />
227
  </p>
228
-
229
  <p>
230
  <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('User avatar size:', 'alimir'); ?><small> (min. 32)</small></label>
231
- <input id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" value="<?php echo $instance['size']; ?>" style="width:100%;" />
232
- </p>
233
 
234
  <p>
235
  <input class="checkbox" type="checkbox" id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" <?php if($instance['show_count'] == true) echo 'checked="checked"'; ?> />
@@ -237,16 +260,24 @@ class wp_ulike_users_widget extends WP_Widget {
237
  </p>
238
  <?php
239
  }
240
-
 
 
 
 
 
 
 
 
241
  public function update( $new_instance, $old_instance ) {
242
  $instance = $old_instance;
243
 
244
  $instance['title'] = strip_tags( $new_instance['title'] );
245
  $instance['count'] = strip_tags( $new_instance['count'] );
 
246
  $instance['size'] = strip_tags( $new_instance['size'] );
247
  $instance['show_count'] = $new_instance['show_count'];
248
 
249
  return $instance;
250
  }
251
- }
252
- ?>
1
  <?php
2
  // Creating the most liked posts widget
3
+ class wp_ulike_widget extends WP_Widget {
4
 
5
+ /**
6
+ * Constructor
7
+ */
8
  function __construct() {
9
  parent::__construct(
10
  'wp_ulike',
11
+ __('WP Ulike Widget', 'alimir'),
12
+ array( 'description' => __( 'An advanced widget that gives you all most liked records with different types', 'alimir' ))
13
  );
14
  }
15
+
16
+ /**
17
+ * Most Liked Posts Function
18
+ *
19
+ * @author Alimir
20
+ * @since 1.1
21
+ * @return String
22
+ */
23
  public function most_liked_posts($numberOf, $before, $after, $show_count) {
24
  global $wpdb;
25
 
26
+ $request = "SELECT ID, post_title, meta_value FROM ".$wpdb->prefix."posts, ".$wpdb->prefix."postmeta";
27
+ $request .= " WHERE ".$wpdb->prefix."posts.ID = ".$wpdb->prefix."postmeta.post_id";
28
  $request .= " AND post_status='publish' AND meta_key='_liked'";
29
+ $request .= " ORDER BY ".$wpdb->prefix."postmeta.meta_value+0 DESC LIMIT $numberOf";
30
  $posts = $wpdb->get_results($request);
31
 
32
  foreach ($posts as $post) {
38
  echo $show_count == '1' ? ' ('.wp_ulike_format_number($post_count).')' : '';
39
  echo $after;
40
  }
41
+ }
42
 
43
+ /**
44
+ * Last Posts Liked By Current User
45
+ *
46
+ * @author Alimir
47
+ * @since 1.1
48
+ * @return String
49
+ */
50
+ public function last_posts_liked_by_current_user($numberOf, $before, $after, $show_count) {
51
+ global $wpdb,$user_ID,$wp_user_IP;
52
 
53
+ if(is_user_logged_in())
54
+ $get_user_id = $user_ID;
55
+ else
56
+ $get_user_id = ip2long($wp_user_IP);
 
 
 
 
 
57
 
58
+ $request = "SELECT U.post_id, P.meta_value AS counter
59
+ FROM ".$wpdb->prefix."ulike AS U, ".$wpdb->prefix."postmeta AS P
60
+ WHERE U.user_id = $get_user_id AND U.post_id = P.post_id AND meta_key='_liked'
61
+ GROUP BY U.post_id
62
+ ORDER BY MAX(U.date_time) DESC LIMIT $numberOf
63
+ ";
64
+ $likes = $wpdb->get_results($request);
65
+
66
+ if($likes != 0){
67
+ foreach ($likes as $like) {
68
+ $permalink = get_permalink($like->post_id);
69
+ $post_title = get_the_title($like->post_id);
70
+ $post_count = $like->counter;
71
+ echo $before.'<a href="' . $permalink . '" title="' . $post_title.'" rel="nofollow">' . $post_title . '</a>';
72
+ echo $show_count == '1' ? ' ('.wp_ulike_format_number($post_count).')' : '';
73
+ echo $after;
74
+ }
75
+ }
76
+ else{
77
+ echo $before;
78
+ echo __('you haven\'t liked any post yet!','alimir');
79
+ echo $after;
80
+ }
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  }
 
 
 
83
 
84
+ /**
85
+ * Most Liked Comments Function
86
+ *
87
+ * @author Alimir
88
+ * @since 1.9
89
+ * @return String
90
+ */
 
 
 
 
 
 
 
 
 
 
 
 
91
  public function most_liked_comments($numberOf, $before, $after, $show_count) {
92
  global $wpdb;
93
 
94
+ $request = "SELECT * FROM ".$wpdb->prefix."comments, ".$wpdb->prefix."commentmeta";
95
+ $request .= " WHERE ".$wpdb->prefix."comments.comment_ID = ".$wpdb->prefix."commentmeta.comment_id";
96
  $request .= " AND comment_approved='1' AND meta_key='_commentliked'";
97
+ $request .= " ORDER BY ".$wpdb->prefix."commentmeta.meta_value+0 DESC LIMIT $numberOf";
98
  $comments = $wpdb->get_results($request);
99
 
100
  foreach ($comments as $comment) {
109
  echo $show_count == '1' ? ' ('.wp_ulike_format_number($comment_likes_count).')' : '';
110
  echo $after;
111
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
 
113
 
114
+ /**
115
+ * Most Liked Activities Function
116
+ *
117
+ * @author Alimir
118
+ * @since 2.0
119
+ * @return String
120
+ */
121
+ public function most_liked_activities($numberOf, $before, $after, $show_count) {
122
+ global $wpdb;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
+ $request = "SELECT * FROM ".$wpdb->prefix."bp_activity, ".$wpdb->prefix."bp_activity_meta";
125
+ $request .= " WHERE ".$wpdb->prefix."bp_activity.id = ".$wpdb->prefix."bp_activity_meta.activity_id";
126
+ $request .= " AND meta_key='_activityliked'";
127
+ $request .= " ORDER BY ".$wpdb->prefix."bp_activity_meta.meta_value+0 DESC LIMIT $numberOf";
128
+ $activities = $wpdb->get_results($request);
129
 
130
+ foreach ($activities as $activity) {
131
+ $activity_permalink = bp_activity_get_permalink( $activity->activity_id );
132
+ $activity_action = $activity->action;
133
+
134
+ echo $before;
135
+ echo $activity_action;
136
+ echo $after;
137
+ }
138
  }
 
 
 
139
 
140
+ /**
141
+ * Most Liked Activities Function
142
+ *
143
+ * @author Alimir
144
+ * @since 1.2
145
+ * @updated 2.0
146
+ * @return String
147
+ */
148
  public function most_liked_users($numberOf, $before, $after, $show_count, $sizeOf) {
149
  global $wpdb;
150
+
151
+ $request = "SELECT T.user_id, SUM(T.CountUser) AS SumUser
152
+ FROM(
153
+ SELECT user_id, count(user_id) AS CountUser
154
  FROM ".$wpdb->prefix."ulike
155
+ WHERE user_id BETWEEN 1 AND 999999
156
+ GROUP BY user_id
157
+ UNION ALL
158
+ SELECT user_id, count(user_id) AS CountUser
159
+ FROM ".$wpdb->prefix."ulike_activities
160
+ WHERE user_id BETWEEN 1 AND 999999
161
  GROUP BY user_id
162
+ UNION ALL
163
+ SELECT user_id, count(user_id) AS CountUser
164
+ FROM ".$wpdb->prefix."ulike_comments
165
+ WHERE user_id BETWEEN 1 AND 999999
166
+ GROUP BY user_id
167
+ ) AS T
168
+ GROUP BY T.user_id
169
+ ORDER BY SumUser DESC LIMIT $numberOf
170
  ";
171
  $likes = $wpdb->get_results($request);
172
 
173
  foreach ($likes as $like) {
174
  $get_user_id = stripslashes($like->user_id);
175
  $get_user_info = get_userdata($get_user_id);
176
+ $get_likes_count = $like->SumUser;
177
  $echo_likes_count = $show_count == '1' ? ' ('.$get_likes_count . ' ' . __('Like','alimir').')' : '';
178
+ if($get_user_info != ''){
179
  echo $before . '<a class="user-tooltip" title="'.$get_user_info->display_name . $echo_likes_count.'">'.get_avatar( $get_user_info->user_email, $sizeOf, '' , 'avatar').'</a>';
180
  echo $after;
181
  }
182
  }
183
  }
184
 
185
+ /**
186
+ * Display Widget
187
+ *
188
+ * @author Alimir
189
+ * @since 1.1
190
+ * @updated 2.0
191
+ * @return String
192
+ */
193
  public function widget( $args, $instance ) {
194
  $title = apply_filters('widget_title', $instance['title'] );
195
  $numberOf = $instance['count'];
196
+ $type = $instance['type'];
197
  $sizeOf = $instance['size'];
198
  $show_count = (isset($instance['show_count']) == true ) ? 1 : 0;
199
 
200
  echo $args['before_widget'];
201
  if ( ! empty( $title ) )
202
  echo $args['before_title'] . $title . $args['after_title'];
203
+ echo '<ul class="most_liked_'.$type.'">';
204
+ if($type == "post")
205
+ echo $this->most_liked_posts($numberOf, '<li>', '</li>', $show_count);
206
+ else if($type == "comment")
207
+ echo $this->most_liked_comments($numberOf, '<li>', '</li>', $show_count);
208
+ else if($type == "activity")
209
+ echo $this->most_liked_activities($numberOf, '<li>', '</li>', $show_count);
210
+ else if($type == "users")
211
  echo $this->most_liked_users($numberOf, '<li>', '</li>', $show_count, $sizeOf);
212
+ else if($type == "last_posts_liked")
213
+ echo $this->last_posts_liked_by_current_user($numberOf, '<li>', '</li>', $show_count);
214
  echo '</ul>';
215
  echo $args['after_widget'];
216
  }
217
 
218
+ /**
219
+ * Widget Options
220
+ *
221
+ * @author Alimir
222
+ * @since 1.1
223
+ * @updated 2.0
224
+ * @return String
225
+ */
226
  public function form( $instance ) {
227
  //Set up some default widget settings.
228
+ $defaults = array( 'title' => __('Most Liked', 'alimir'), 'count' => 10, 'size' => 32, 'show_count' => false, 'type' => 'post' );
229
  $instance = wp_parse_args( (array) $instance, $defaults );
230
  ?>
231
  <p>
234
  </p>
235
 
236
  <p>
237
+ <label for="<?php echo $this->get_field_id( 'type' ); ?>"><?php _e('Type:', 'alimir'); ?></label>
238
+ <select name="<?php echo $this->get_field_name( 'type' ); ?>" style="width:100%;">
239
+ <option value="post" <?php selected( $instance['type'], "post" ); ?>><?php echo _e('Most Liked Posts', 'alimir'); ?></option>
240
+ <option value="comment" <?php selected( $instance['type'], "comment" ); ?>><?php echo _e('Most Liked Comments', 'alimir'); ?></option>
241
+ <option value="activity" <?php selected( $instance['type'], "activity" ); ?>><?php echo _e('Most Liked Activities', 'alimir'); ?></option>
242
+ <option value="users" <?php selected( $instance['type'], "users" ); ?>><?php echo _e('Most Liked Users', 'alimir'); ?></option>
243
+ <option value="last_posts_liked" <?php selected( $instance['type'], "last_posts_liked" ); ?>><?php echo _e('Last Posts Liked By User', 'alimir'); ?></option>
244
+ </select>
245
+ </p>
246
+
247
+ <p>
248
+ <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e('Number of items to show:', 'alimir'); ?><small> (max. 15)</small></label>
249
  <input id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" value="<?php echo $instance['count']; ?>" style="width:100%;" />
250
  </p>
251
+
252
  <p>
253
  <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('User avatar size:', 'alimir'); ?><small> (min. 32)</small></label>
254
+ <input id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" value="<?php echo $instance['size']; ?>" style="width:100%;" /><em><small style="color:#f00;">Just In Most Liked Users Type</small></em>
255
+ </p>
256
 
257
  <p>
258
  <input class="checkbox" type="checkbox" id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" <?php if($instance['show_count'] == true) echo 'checked="checked"'; ?> />
260
  </p>
261
  <?php
262
  }
263
+
264
+ /**
265
+ * Widget Options Update
266
+ *
267
+ * @author Alimir
268
+ * @since 1.1
269
+ * @updated 2.0
270
+ * @return String
271
+ */
272
  public function update( $new_instance, $old_instance ) {
273
  $instance = $old_instance;
274
 
275
  $instance['title'] = strip_tags( $new_instance['title'] );
276
  $instance['count'] = strip_tags( $new_instance['count'] );
277
+ $instance['type'] = strip_tags( $new_instance['type'] );
278
  $instance['size'] = strip_tags( $new_instance['size'] );
279
  $instance['show_count'] = $new_instance['show_count'];
280
 
281
  return $instance;
282
  }
283
+ }
 
admin/classes/js/chart.min.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Chart.js
3
+ * http://chartjs.org/
4
+ * Version: 1.0.1
5
+ *
6
+ * Copyright 2015 Nick Downie
7
+ * Released under the MIT license
8
+ * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
9
+ */
10
+ (function(){"use strict";var t=this,i=t.Chart,e=function(t){this.canvas=t.canvas,this.ctx=t;this.width=t.canvas.width,this.height=t.canvas.height;return this.aspectRatio=this.width/this.height,s.retinaScale(this),this};e.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}},e.types={};var s=e.helpers={},n=s.each=function(t,i,e){var s=Array.prototype.slice.call(arguments,3);if(t)if(t.length===+t.length){var n;for(n=0;n<t.length;n++)i.apply(e,[t[n],n].concat(s))}else for(var o in t)i.apply(e,[t[o],o].concat(s))},o=s.clone=function(t){var i={};return n(t,function(e,s){t.hasOwnProperty(s)&&(i[s]=e)}),i},a=s.extend=function(t){return n(Array.prototype.slice.call(arguments,1),function(i){n(i,function(e,s){i.hasOwnProperty(s)&&(t[s]=e)})}),t},h=s.merge=function(){var t=Array.prototype.slice.call(arguments,0);return t.unshift({}),a.apply(null,t)},l=s.indexOf=function(t,i){if(Array.prototype.indexOf)return t.indexOf(i);for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1},r=(s.where=function(t,i){var e=[];return s.each(t,function(t){i(t)&&e.push(t)}),e},s.findNextWhere=function(t,i,e){e||(e=-1);for(var s=e+1;s<t.length;s++){var n=t[s];if(i(n))return n}},s.findPreviousWhere=function(t,i,e){e||(e=t.length);for(var s=e-1;s>=0;s--){var n=t[s];if(i(n))return n}},s.inherits=function(t){var i=this,e=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return i.apply(this,arguments)},s=function(){this.constructor=e};return s.prototype=i.prototype,e.prototype=new s,e.extend=r,t&&a(e.prototype,t),e.__super__=i.prototype,e}),c=s.noop=function(){},u=s.uid=function(){var t=0;return function(){return"chart-"+t++}}(),d=s.warn=function(t){window.console&&"function"==typeof window.console.warn&&console.warn(t)},p=s.amd="function"==typeof define&&define.amd,f=s.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},g=s.max=function(t){return Math.max.apply(Math,t)},m=s.min=function(t){return Math.min.apply(Math,t)},v=(s.cap=function(t,i,e){if(f(i)){if(t>i)return i}else if(f(e)&&e>t)return e;return t},s.getDecimalPlaces=function(t){return t%1!==0&&f(t)?t.toString().split(".")[1].length:0}),S=s.radians=function(t){return t*(Math.PI/180)},x=(s.getAngleFromPoint=function(t,i){var e=i.x-t.x,s=i.y-t.y,n=Math.sqrt(e*e+s*s),o=2*Math.PI+Math.atan2(s,e);return 0>e&&0>s&&(o+=2*Math.PI),{angle:o,distance:n}},s.aliasPixel=function(t){return t%2===0?0:.5}),y=(s.splineCurve=function(t,i,e,s){var n=Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2)),o=Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2)),a=s*n/(n+o),h=s*o/(n+o);return{inner:{x:i.x-a*(e.x-t.x),y:i.y-a*(e.y-t.y)},outer:{x:i.x+h*(e.x-t.x),y:i.y+h*(e.y-t.y)}}},s.calculateOrderOfMagnitude=function(t){return Math.floor(Math.log(t)/Math.LN10)}),C=(s.calculateScaleRange=function(t,i,e,s,n){var o=2,a=Math.floor(i/(1.5*e)),h=o>=a,l=g(t),r=m(t);l===r&&(l+=.5,r>=.5&&!s?r-=.5:l+=.5);for(var c=Math.abs(l-r),u=y(c),d=Math.ceil(l/(1*Math.pow(10,u)))*Math.pow(10,u),p=s?0:Math.floor(r/(1*Math.pow(10,u)))*Math.pow(10,u),f=d-p,v=Math.pow(10,u),S=Math.round(f/v);(S>a||a>2*S)&&!h;)if(S>a)v*=2,S=Math.round(f/v),S%1!==0&&(h=!0);else if(n&&u>=0){if(v/2%1!==0)break;v/=2,S=Math.round(f/v)}else v/=2,S=Math.round(f/v);return h&&(S=o,v=f/S),{steps:S,stepValue:v,min:p,max:p+S*v}},s.template=function(t,i){function e(t,i){var e=/\W/.test(t)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):s[t]=s[t];return i?e(i):e}if(t instanceof Function)return t(i);var s={};return e(t,i)}),w=(s.generateLabels=function(t,i,e,s){var o=new Array(i);return labelTemplateString&&n(o,function(i,n){o[n]=C(t,{value:e+s*(n+1)})}),o},s.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-0.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-0.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-0.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-0.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var i=1.70158,e=0,s=1;return 0===t?0:1==(t/=1)?1:(e||(e=.3),s<Math.abs(1)?(s=1,i=e/4):i=e/(2*Math.PI)*Math.asin(1/s),-(s*Math.pow(2,10*(t-=1))*Math.sin(2*(1*t-i)*Math.PI/e)))},easeOutElastic:function(t){var i=1.70158,e=0,s=1;return 0===t?0:1==(t/=1)?1:(e||(e=.3),s<Math.abs(1)?(s=1,i=e/4):i=e/(2*Math.PI)*Math.asin(1/s),s*Math.pow(2,-10*t)*Math.sin(2*(1*t-i)*Math.PI/e)+1)},easeInOutElastic:function(t){var i=1.70158,e=0,s=1;return 0===t?0:2==(t/=.5)?1:(e||(e=.3*1.5),s<Math.abs(1)?(s=1,i=e/4):i=e/(2*Math.PI)*Math.asin(1/s),1>t?-.5*s*Math.pow(2,10*(t-=1))*Math.sin(2*(1*t-i)*Math.PI/e):s*Math.pow(2,-10*(t-=1))*Math.sin(2*(1*t-i)*Math.PI/e)*.5+1)},easeInBack:function(t){var i=1.70158;return 1*(t/=1)*t*((i+1)*t-i)},easeOutBack:function(t){var i=1.70158;return 1*((t=t/1-1)*t*((i+1)*t+i)+1)},easeInOutBack:function(t){var i=1.70158;return(t/=.5)<1?.5*t*t*(((i*=1.525)+1)*t-i):.5*((t-=2)*t*(((i*=1.525)+1)*t+i)+2)},easeInBounce:function(t){return 1-w.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?7.5625*t*t:2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*w.easeInBounce(2*t):.5*w.easeOutBounce(2*t-1)+.5}}),b=s.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),P=(s.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),s.animationLoop=function(t,i,e,s,n,o){var a=0,h=w[e]||w.linear,l=function(){a++;var e=a/i,r=h(e);t.call(o,r,e,a),s.call(o,r,e),i>a?o.animationFrame=b(l):n.apply(o)};b(l)},s.getRelativePosition=function(t){var i,e,s=t.originalEvent||t,n=t.currentTarget||t.srcElement,o=n.getBoundingClientRect();return s.touches?(i=s.touches[0].clientX-o.left,e=s.touches[0].clientY-o.top):(i=s.clientX-o.left,e=s.clientY-o.top),{x:i,y:e}},s.addEvent=function(t,i,e){t.addEventListener?t.addEventListener(i,e):t.attachEvent?t.attachEvent("on"+i,e):t["on"+i]=e}),L=s.removeEvent=function(t,i,e){t.removeEventListener?t.removeEventListener(i,e,!1):t.detachEvent?t.detachEvent("on"+i,e):t["on"+i]=c},k=(s.bindEvents=function(t,i,e){t.events||(t.events={}),n(i,function(i){t.events[i]=function(){e.apply(t,arguments)},P(t.chart.canvas,i,t.events[i])})},s.unbindEvents=function(t,i){n(i,function(i,e){L(t.chart.canvas,e,i)})}),F=s.getMaximumWidth=function(t){var i=t.parentNode;return i.clientWidth},R=s.getMaximumHeight=function(t){var i=t.parentNode;return i.clientHeight},T=(s.getMaximumSize=s.getMaximumWidth,s.retinaScale=function(t){var i=t.ctx,e=t.canvas.width,s=t.canvas.height;window.devicePixelRatio&&(i.canvas.style.width=e+"px",i.canvas.style.height=s+"px",i.canvas.height=s*window.devicePixelRatio,i.canvas.width=e*window.devicePixelRatio,i.scale(window.devicePixelRatio,window.devicePixelRatio))}),A=s.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},M=s.fontString=function(t,i,e){return i+" "+t+"px "+e},W=s.longestText=function(t,i,e){t.font=i;var s=0;return n(e,function(i){var e=t.measureText(i).width;s=e>s?e:s}),s},z=s.drawRoundedRectangle=function(t,i,e,s,n,o){t.beginPath(),t.moveTo(i+o,e),t.lineTo(i+s-o,e),t.quadraticCurveTo(i+s,e,i+s,e+o),t.lineTo(i+s,e+n-o),t.quadraticCurveTo(i+s,e+n,i+s-o,e+n),t.lineTo(i+o,e+n),t.quadraticCurveTo(i,e+n,i,e+n-o),t.lineTo(i,e+o),t.quadraticCurveTo(i,e,i+o,e),t.closePath()};e.instances={},e.Type=function(t,i,s){this.options=i,this.chart=s,this.id=u(),e.instances[this.id]=this,i.responsive&&this.resize(),this.initialize.call(this,t)},a(e.Type.prototype,{initialize:function(){return this},clear:function(){return A(this.chart),this},stop:function(){return s.cancelAnimFrame.call(t,this.animationFrame),this},resize:function(t){this.stop();var i=this.chart.canvas,e=F(this.chart.canvas),s=this.options.maintainAspectRatio?e/this.chart.aspectRatio:R(this.chart.canvas);return i.width=this.chart.width=e,i.height=this.chart.height=s,T(this.chart),"function"==typeof t&&t.apply(this,Array.prototype.slice.call(arguments,1)),this},reflow:c,render:function(t){return t&&this.reflow(),this.options.animation&&!t?s.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this)),this},generateLegend:function(){return C(this.options.legendTemplate,this)},destroy:function(){this.clear(),k(this,this.events);var t=this.chart.canvas;t.width=this.chart.width,t.height=this.chart.height,t.style.removeProperty?(t.style.removeProperty("width"),t.style.removeProperty("height")):(t.style.removeAttribute("width"),t.style.removeAttribute("height")),delete e.instances[this.id]},showTooltip:function(t,i){"undefined"==typeof this.activeElements&&(this.activeElements=[]);var o=function(t){var i=!1;return t.length!==this.activeElements.length?i=!0:(n(t,function(t,e){t!==this.activeElements[e]&&(i=!0)},this),i)}.call(this,t);if(o||i){if(this.activeElements=t,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),t.length>0)if(this.datasets&&this.datasets.length>1){for(var a,h,r=this.datasets.length-1;r>=0&&(a=this.datasets[r].points||this.datasets[r].bars||this.datasets[r].segments,h=l(a,t[0]),-1===h);r--);var c=[],u=[],d=function(){var t,i,e,n,o,a=[],l=[],r=[];return s.each(this.datasets,function(i){t=i.points||i.bars||i.segments,t[h]&&t[h].hasValue()&&a.push(t[h])}),s.each(a,function(t){l.push(t.x),r.push(t.y),c.push(s.template(this.options.multiTooltipTemplate,t)),u.push({fill:t._saved.fillColor||t.fillColor,stroke:t._saved.strokeColor||t.strokeColor})},this),o=m(r),e=g(r),n=m(l),i=g(l),{x:n>this.chart.width/2?n:i,y:(o+e)/2}}.call(this,h);new e.MultiTooltip({x:d.x,y:d.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:c,legendColors:u,legendColorBackground:this.options.multiTooltipKeyBackground,title:t[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else n(t,function(t){var i=t.tooltipPosition();new e.Tooltip({x:Math.round(i.x),y:Math.round(i.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:C(this.options.tooltipTemplate,t),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),e.Type.extend=function(t){var i=this,s=function(){return i.apply(this,arguments)};if(s.prototype=o(i.prototype),a(s.prototype,t),s.extend=e.Type.extend,t.name||i.prototype.name){var n=t.name||i.prototype.name,l=e.defaults[i.prototype.name]?o(e.defaults[i.prototype.name]):{};e.defaults[n]=a(l,t.defaults),e.types[n]=s,e.prototype[n]=function(t,i){var o=h(e.defaults.global,e.defaults[n],i||{});return new s(t,o,this)}}else d("Name not provided for this chart, so it hasn't been registered");return i},e.Element=function(t){a(this,t),this.initialize.apply(this,arguments),this.save()},a(e.Element.prototype,{initialize:function(){},restore:function(t){return t?n(t,function(t){this[t]=this._saved[t]},this):a(this,this._saved),this},save:function(){return this._saved=o(this),delete this._saved._saved,this},update:function(t){return n(t,function(t,i){this._saved[i]=this[i],this[i]=t},this),this},transition:function(t,i){return n(t,function(t,e){this[e]=(t-this._saved[e])*i+this._saved[e]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return f(this.value)}}),e.Element.extend=r,e.Point=e.Element.extend({display:!0,inRange:function(t,i){var e=this.hitDetectionRadius+this.radius;return Math.pow(t-this.x,2)+Math.pow(i-this.y,2)<Math.pow(e,2)},draw:function(){if(this.display){var t=this.ctx;t.beginPath(),t.arc(this.x,this.y,this.radius,0,2*Math.PI),t.closePath(),t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.fillStyle=this.fillColor,t.fill(),t.stroke()}}}),e.Arc=e.Element.extend({inRange:function(t,i){var e=s.getAngleFromPoint(this,{x:t,y:i}),n=e.angle>=this.startAngle&&e.angle<=this.endAngle,o=e.distance>=this.innerRadius&&e.distance<=this.outerRadius;return n&&o},tooltipPosition:function(){var t=this.startAngle+(this.endAngle-this.startAngle)/2,i=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(t)*i,y:this.y+Math.sin(t)*i}},draw:function(t){var i=this.ctx;i.beginPath(),i.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle),i.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0),i.closePath(),i.strokeStyle=this.strokeColor,i.lineWidth=this.strokeWidth,i.fillStyle=this.fillColor,i.fill(),i.lineJoin="bevel",this.showStroke&&i.stroke()}}),e.Rectangle=e.Element.extend({draw:function(){var t=this.ctx,i=this.width/2,e=this.x-i,s=this.x+i,n=this.base-(this.base-this.y),o=this.strokeWidth/2;this.showStroke&&(e+=o,s-=o,n+=o),t.beginPath(),t.fillStyle=this.fillColor,t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.moveTo(e,this.base),t.lineTo(e,n),t.lineTo(s,n),t.lineTo(s,this.base),t.fill(),this.showStroke&&t.stroke()},height:function(){return this.base-this.y},inRange:function(t,i){return t>=this.x-this.width/2&&t<=this.x+this.width/2&&i>=this.y&&i<=this.base}}),e.Tooltip=e.Element.extend({draw:function(){var t=this.chart.ctx;t.font=M(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above";var i=this.caretPadding=2,e=t.measureText(this.text).width+2*this.xPadding,s=this.fontSize+2*this.yPadding,n=s+this.caretHeight+i;this.x+e/2>this.chart.width?this.xAlign="left":this.x-e/2<0&&(this.xAlign="right"),this.y-n<0&&(this.yAlign="below");var o=this.x-e/2,a=this.y-n;if(t.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":t.beginPath(),t.moveTo(this.x,this.y-i),t.lineTo(this.x+this.caretHeight,this.y-(i+this.caretHeight)),t.lineTo(this.x-this.caretHeight,this.y-(i+this.caretHeight)),t.closePath(),t.fill();break;case"below":a=this.y+i+this.caretHeight,t.beginPath(),t.moveTo(this.x,this.y+i),t.lineTo(this.x+this.caretHeight,this.y+i+this.caretHeight),t.lineTo(this.x-this.caretHeight,this.y+i+this.caretHeight),t.closePath(),t.fill()}switch(this.xAlign){case"left":o=this.x-e+(this.cornerRadius+this.caretHeight);break;case"right":o=this.x-(this.cornerRadius+this.caretHeight)}z(t,o,a,e,s,this.cornerRadius),t.fill(),t.fillStyle=this.textColor,t.textAlign="center",t.textBaseline="middle",t.fillText(this.text,o+e/2,a+s/2)}}}),e.MultiTooltip=e.Element.extend({initialize:function(){this.font=M(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=M(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize,this.ctx.font=this.titleFont;var t=this.ctx.measureText(this.title).width,i=W(this.ctx,this.font,this.labels)+this.fontSize+3,e=g([i,t]);this.width=e+2*this.xPadding;var s=this.height/2;this.y-s<0?this.y=s:this.y+s>this.chart.height&&(this.y=this.chart.height-s),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(t){var i=this.y-this.height/2+this.yPadding,e=t-1;return 0===t?i+this.titleFontSize/2:i+(1.5*this.fontSize*e+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){if(this.custom)this.custom(this);else{z(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var t=this.ctx;t.fillStyle=this.fillColor,t.fill(),t.closePath(),t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.titleTextColor,t.font=this.titleFont,t.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),t.font=this.font,s.each(this.labels,function(i,e){t.fillStyle=this.textColor,t.fillText(i,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(e+1)),t.fillStyle=this.legendColorBackground,t.fillRect(this.x+this.xPadding,this.getLineHeight(e+1)-this.fontSize/2,this.fontSize,this.fontSize),t.fillStyle=this.legendColors[e].fill,t.fillRect(this.x+this.xPadding,this.getLineHeight(e+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}}),e.Scale=e.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var t=v(this.stepValue),i=0;i<=this.steps;i++)this.yLabels.push(C(this.templateString,{value:(this.min+i*this.stepValue).toFixed(t)}));this.yLabelWidth=this.display&&this.showLabels?W(this.ctx,this.font,this.yLabels):0},addXLabel:function(t){this.xLabels.push(t),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var t,i=this.endPoint-this.startPoint;for(this.calculateYRange(i),this.buildYLabels(),this.calculateXLabelRotation();i>this.endPoint-this.startPoint;)i=this.endPoint-this.startPoint,t=this.yLabelWidth,this.calculateYRange(i),this.buildYLabels(),t<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=this.font;var t,i,e=this.ctx.measureText(this.xLabels[0]).width,s=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width;if(this.xScalePaddingRight=s/2+3,this.xScalePaddingLeft=e/2>this.yLabelWidth+10?e/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){var n,o=W(this.ctx,this.font,this.xLabels);this.xLabelWidth=o;for(var a=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>a&&0===this.xLabelRotation||this.xLabelWidth>a&&this.xLabelRotation<=90&&this.xLabelRotation>0;)n=Math.cos(S(this.xLabelRotation)),t=n*e,i=n*s,t+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=t+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=n*o;this.xLabelRotation>0&&(this.endPoint-=Math.sin(S(this.xLabelRotation))*o+3)}else this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding},calculateYRange:c,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(t){var i=this.drawingArea()/(this.min-this.max);return this.endPoint-i*(t-this.min)},calculateX:function(t){var i=(this.xLabelRotation>0,this.width-(this.xScalePaddingLeft+this.xScalePaddingRight)),e=i/(this.valuesCount-(this.offsetGridLines?0:1)),s=e*t+this.xScalePaddingLeft;return this.offsetGridLines&&(s+=e/2),Math.round(s)},update:function(t){s.extend(this,t),this.fit()},draw:function(){var t=this.ctx,i=(this.endPoint-this.startPoint)/this.steps,e=Math.round(this.xScalePaddingLeft);this.display&&(t.fillStyle=this.textColor,t.font=this.font,n(this.yLabels,function(n,o){var a=this.endPoint-i*o,h=Math.round(a),l=this.showHorizontalLines;t.textAlign="right",t.textBaseline="middle",this.showLabels&&t.fillText(n,e-10,a),0!==o||l||(l=!0),l&&t.beginPath(),o>0?(t.lineWidth=this.gridLineWidth,t.strokeStyle=this.gridLineColor):(t.lineWidth=this.lineWidth,t.strokeStyle=this.lineColor),h+=s.aliasPixel(t.lineWidth),l&&(t.moveTo(e,h),t.lineTo(this.width,h),t.stroke(),t.closePath()),t.lineWidth=this.lineWidth,t.strokeStyle=this.lineColor,t.beginPath(),t.moveTo(e-5,h),t.lineTo(e,h),t.stroke(),t.closePath()},this),n(this.xLabels,function(i,e){var s=this.calculateX(e)+x(this.lineWidth),n=this.calculateX(e-(this.offsetGridLines?.5:0))+x(this.lineWidth),o=this.xLabelRotation>0,a=this.showVerticalLines;0!==e||a||(a=!0),a&&t.beginPath(),e>0?(t.lineWidth=this.gridLineWidth,t.strokeStyle=this.gridLineColor):(t.lineWidth=this.lineWidth,t.strokeStyle=this.lineColor),a&&(t.moveTo(n,this.endPoint),t.lineTo(n,this.startPoint-3),t.stroke(),t.closePath()),t.lineWidth=this.lineWidth,t.strokeStyle=this.lineColor,t.beginPath(),t.moveTo(n,this.endPoint),t.lineTo(n,this.endPoint+5),t.stroke(),t.closePath(),t.save(),t.translate(s,o?this.endPoint+12:this.endPoint+8),t.rotate(-1*S(this.xLabelRotation)),t.font=this.font,t.textAlign=o?"right":"center",t.textBaseline=o?"middle":"top",t.fillText(i,0,0),t.restore()},this))}}),e.RadialScale=e.Element.extend({initialize:function(){this.size=m([this.height,this.width]),this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(t){var i=this.drawingArea/(this.max-this.min);return(t-this.min)*i},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize(),this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var t=v(this.stepValue),i=0;i<=this.steps;i++)this.yLabels.push(C(this.templateString,{value:(this.min+i*this.stepValue).toFixed(t)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var t,i,e,s,n,o,a,h,l,r,c,u,d=m([this.height/2-this.pointLabelFontSize-5,this.width/2]),p=this.width,g=0;for(this.ctx.font=M(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),i=0;i<this.valuesCount;i++)t=this.getPointPosition(i,d),e=this.ctx.measureText(C(this.templateString,{value:this.labels[i]})).width+5,0===i||i===this.valuesCount/2?(s=e/2,t.x+s>p&&(p=t.x+s,n=i),t.x-s<g&&(g=t.x-s,a=i)):i<this.valuesCount/2?t.x+e>p&&(p=t.x+e,n=i):i>this.valuesCount/2&&t.x-e<g&&(g=t.x-e,a=i);l=g,r=Math.ceil(p-this.width),o=this.getIndexAngle(n),h=this.getIndexAngle(a),c=r/Math.sin(o+Math.PI/2),u=l/Math.sin(h+Math.PI/2),c=f(c)?c:0,u=f(u)?u:0,this.drawingArea=d-(u+c)/2,this.setCenterPoint(u,c)},setCenterPoint:function(t,i){var e=this.width-i-this.drawingArea,s=t+this.drawingArea;this.xCenter=(s+e)/2,this.yCenter=this.height/2},getIndexAngle:function(t){var i=2*Math.PI/this.valuesCount;return t*i-Math.PI/2},getPointPosition:function(t,i){var e=this.getIndexAngle(t);return{x:Math.cos(e)*i+this.xCenter,y:Math.sin(e)*i+this.yCenter}},draw:function(){if(this.display){var t=this.ctx;if(n(this.yLabels,function(i,e){if(e>0){var s,n=e*(this.drawingArea/this.steps),o=this.yCenter-n;if(this.lineWidth>0)if(t.strokeStyle=this.lineColor,t.lineWidth=this.lineWidth,this.lineArc)t.beginPath(),t.arc(this.xCenter,this.yCenter,n,0,2*Math.PI),t.closePath(),t.stroke();else{t.beginPath();for(var a=0;a<this.valuesCount;a++)s=this.getPointPosition(a,this.calculateCenterOffset(this.min+e*this.stepValue)),0===a?t.moveTo(s.x,s.y):t.lineTo(s.x,s.y);t.closePath(),t.stroke()}if(this.showLabels){if(t.font=M(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop){var h=t.measureText(i).width;t.fillStyle=this.backdropColor,t.fillRect(this.xCenter-h/2-this.backdropPaddingX,o-this.fontSize/2-this.backdropPaddingY,h+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)}t.textAlign="center",t.textBaseline="middle",t.fillStyle=this.fontColor,t.fillText(i,this.xCenter,o)}}},this),!this.lineArc){t.lineWidth=this.angleLineWidth,t.strokeStyle=this.angleLineColor;for(var i=this.valuesCount-1;i>=0;i--){if(this.angleLineWidth>0){var e=this.getPointPosition(i,this.calculateCenterOffset(this.max));t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(e.x,e.y),t.stroke(),t.closePath()}var s=this.getPointPosition(i,this.calculateCenterOffset(this.max)+5);t.font=M(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),t.fillStyle=this.pointLabelFontColor;var o=this.labels.length,a=this.labels.length/2,h=a/2,l=h>i||i>o-h,r=i===h||i===o-h;t.textAlign=0===i?"center":i===a?"center":a>i?"left":"right",t.textBaseline=r?"middle":l?"bottom":"top",t.fillText(this.labels[i],s.x,s.y)}}}}}),s.addEvent(window,"resize",function(){var t;return function(){clearTimeout(t),t=setTimeout(function(){n(e.instances,function(t){t.options.responsive&&t.resize(t.render,!0)})},50)}}()),p?define(function(){return e}):"object"==typeof module&&module.exports&&(module.exports=e),t.Chart=e,e.noConflict=function(){return t.Chart=i,e}}).call(this),function(){"use strict";var t=this,i=t.Chart,e=i.helpers,s={scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};i.Type.extend({name:"Bar",defaults:s,initialize:function(t){var s=this.options;this.ScaleClass=i.Scale.extend({offsetGridLines:!0,calculateBarX:function(t,i,e){var n=this.calculateBaseWidth(),o=this.calculateX(e)-n/2,a=this.calculateBarWidth(t);return o+a*i+i*s.barDatasetSpacing+a/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*s.barValueSpacing},calculateBarWidth:function(t){var i=this.calculateBaseWidth()-(t-1)*s.barDatasetSpacing;return i/t}}),this.datasets=[],this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getBarsAtEvent(t):[];this.eachBars(function(t){t.restore(["fillColor","strokeColor"])}),e.each(i,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(i)}),this.BarClass=i.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),e.each(t.datasets,function(i){var s={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,bars:[]};this.datasets.push(s),e.each(i.data,function(e,n){s.bars.push(new this.BarClass({value:e,label:t.labels[n],datasetLabel:i.label,strokeColor:i.strokeColor,fillColor:i.fillColor,highlightFill:i.highlightFill||i.fillColor,highlightStroke:i.highlightStroke||i.strokeColor}))},this)},this),this.buildScale(t.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(t,i,s){e.extend(t,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,s,i),y:this.scale.endPoint}),t.save()},this),this.render()},update:function(){this.scale.update(),e.each(this.activeElements,function(t){t.restore(["fillColor","strokeColor"])}),this.eachBars(function(t){t.save()}),this.render()},eachBars:function(t){e.each(this.datasets,function(i,s){e.each(i.bars,t,this,s)},this)},getBarsAtEvent:function(t){for(var i,s=[],n=e.getRelativePosition(t),o=function(t){s.push(t.bars[i])},a=0;a<this.datasets.length;a++)for(i=0;i<this.datasets[a].bars.length;i++)if(this.datasets[a].bars[i].inRange(n.x,n.y))return e.each(this.datasets,o),s;return s},buildScale:function(t){var i=this,s=function(){var t=[];return i.eachBars(function(i){t.push(i.value)}),t},n={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:t.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(t){var i=e.calculateScaleRange(s(),t,this.fontSize,this.beginAtZero,this.integersOnly);e.extend(this,i)},xLabels:t,font:e.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&e.extend(n,{calculateYRange:e.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new this.ScaleClass(n)},addData:function(t,i){e.each(t,function(t,e){this.datasets[e].bars.push(new this.BarClass({value:t,label:i,x:this.scale.calculateBarX(this.datasets.length,e,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[e].strokeColor,fillColor:this.datasets[e].fillColor}))},this),this.scale.addXLabel(i),this.update()},removeData:function(){this.scale.removeXLabel(),e.each(this.datasets,function(t){t.bars.shift()},this),this.update()},reflow:function(){e.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});
11
+ var t=e.extend({height:this.chart.height,width:this.chart.width});this.scale.update(t)},draw:function(t){var i=t||1;this.clear();this.chart.ctx;this.scale.draw(i),e.each(this.datasets,function(t,s){e.each(t.bars,function(t,e){t.hasValue()&&(t.base=this.scale.endPoint,t.transition({x:this.scale.calculateBarX(this.datasets.length,s,e),y:this.scale.calculateY(t.value),width:this.scale.calculateBarWidth(this.datasets.length)},i).draw())},this)},this)}})}.call(this),function(){"use strict";var t=this,i=t.Chart,e=i.helpers,s={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};i.Type.extend({name:"Doughnut",defaults:s,initialize:function(t){this.segments=[],this.outerRadius=(e.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=i.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];e.each(this.segments,function(t){t.restore(["fillColor"])}),e.each(i,function(t){t.fillColor=t.highlightColor}),this.showTooltip(i)}),this.calculateTotal(t),e.each(t,function(t,i){this.addData(t,i,!0)},this),this.render()},getSegmentsAtEvent:function(t){var i=[],s=e.getRelativePosition(t);return e.each(this.segments,function(t){t.inRange(s.x,s.y)&&i.push(t)},this),i},addData:function(t,i,e){var s=i||this.segments.length;this.segments.splice(s,0,new this.SegmentArc({value:t.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:t.color,highlightColor:t.highlight||t.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(t.value),label:t.label})),e||(this.reflow(),this.update())},calculateCircumference:function(t){return 2*Math.PI*(t/this.total)},calculateTotal:function(t){this.total=0,e.each(t,function(t){this.total+=t.value},this)},update:function(){this.calculateTotal(this.segments),e.each(this.activeElements,function(t){t.restore(["fillColor"])}),e.each(this.segments,function(t){t.save()}),this.render()},removeData:function(t){var i=e.isNumber(t)?t:this.segments.length-1;this.segments.splice(i,1),this.reflow(),this.update()},reflow:function(){e.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(e.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,e.each(this.segments,function(t){t.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(t){var i=t?t:1;this.clear(),e.each(this.segments,function(t,e){t.transition({circumference:this.calculateCircumference(t.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},i),t.endAngle=t.startAngle+t.circumference,t.draw(),0===e&&(t.startAngle=1.5*Math.PI),e<this.segments.length-1&&(this.segments[e+1].startAngle=t.endAngle)},this)}}),i.types.Doughnut.extend({name:"Pie",defaults:e.merge(s,{percentageInnerCutout:0})})}.call(this),function(){"use strict";var t=this,i=t.Chart,e=i.helpers,s={scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};i.Type.extend({name:"Line",defaults:s,initialize:function(t){this.PointClass=i.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(t){return Math.pow(t-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}}),this.datasets=[],this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(t){t.restore(["fillColor","strokeColor"])}),e.each(i,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(i)}),e.each(t.datasets,function(i){var s={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,pointColor:i.pointColor,pointStrokeColor:i.pointStrokeColor,points:[]};this.datasets.push(s),e.each(i.data,function(e,n){s.points.push(new this.PointClass({value:e,label:t.labels[n],datasetLabel:i.label,strokeColor:i.pointStrokeColor,fillColor:i.pointColor,highlightFill:i.pointHighlightFill||i.pointColor,highlightStroke:i.pointHighlightStroke||i.pointStrokeColor}))},this),this.buildScale(t.labels),this.eachPoints(function(t,i){e.extend(t,{x:this.scale.calculateX(i),y:this.scale.endPoint}),t.save()},this)},this),this.render()},update:function(){this.scale.update(),e.each(this.activeElements,function(t){t.restore(["fillColor","strokeColor"])}),this.eachPoints(function(t){t.save()}),this.render()},eachPoints:function(t){e.each(this.datasets,function(i){e.each(i.points,t,this)},this)},getPointsAtEvent:function(t){var i=[],s=e.getRelativePosition(t);return e.each(this.datasets,function(t){e.each(t.points,function(t){t.inRange(s.x,s.y)&&i.push(t)})},this),i},buildScale:function(t){var s=this,n=function(){var t=[];return s.eachPoints(function(i){t.push(i.value)}),t},o={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:t.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(t){var i=e.calculateScaleRange(n(),t,this.fontSize,this.beginAtZero,this.integersOnly);e.extend(this,i)},xLabels:t,font:e.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&e.extend(o,{calculateYRange:e.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new i.Scale(o)},addData:function(t,i){e.each(t,function(t,e){this.datasets[e].points.push(new this.PointClass({value:t,label:i,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this),this.scale.addXLabel(i),this.update()},removeData:function(){this.scale.removeXLabel(),e.each(this.datasets,function(t){t.points.shift()},this),this.update()},reflow:function(){var t=e.extend({height:this.chart.height,width:this.chart.width});this.scale.update(t)},draw:function(t){var i=t||1;this.clear();var s=this.chart.ctx,n=function(t){return null!==t.value},o=function(t,i,s){return e.findNextWhere(i,n,s)||t},a=function(t,i,s){return e.findPreviousWhere(i,n,s)||t};this.scale.draw(i),e.each(this.datasets,function(t){var h=e.where(t.points,n);e.each(t.points,function(t,e){t.hasValue()&&t.transition({y:this.scale.calculateY(t.value),x:this.scale.calculateX(e)},i)},this),this.options.bezierCurve&&e.each(h,function(t,i){var s=i>0&&i<h.length-1?this.options.bezierCurveTension:0;t.controlPoints=e.splineCurve(a(t,h,i),t,o(t,h,i),s),t.controlPoints.outer.y>this.scale.endPoint?t.controlPoints.outer.y=this.scale.endPoint:t.controlPoints.outer.y<this.scale.startPoint&&(t.controlPoints.outer.y=this.scale.startPoint),t.controlPoints.inner.y>this.scale.endPoint?t.controlPoints.inner.y=this.scale.endPoint:t.controlPoints.inner.y<this.scale.startPoint&&(t.controlPoints.inner.y=this.scale.startPoint)},this),s.lineWidth=this.options.datasetStrokeWidth,s.strokeStyle=t.strokeColor,s.beginPath(),e.each(h,function(t,i){if(0===i)s.moveTo(t.x,t.y);else if(this.options.bezierCurve){var e=a(t,h,i);s.bezierCurveTo(e.controlPoints.outer.x,e.controlPoints.outer.y,t.controlPoints.inner.x,t.controlPoints.inner.y,t.x,t.y)}else s.lineTo(t.x,t.y)},this),s.stroke(),this.options.datasetFill&&h.length>0&&(s.lineTo(h[h.length-1].x,this.scale.endPoint),s.lineTo(h[0].x,this.scale.endPoint),s.fillStyle=t.fillColor,s.closePath(),s.fill()),e.each(h,function(t){t.draw()})},this)}})}.call(this),function(){"use strict";var t=this,i=t.Chart,e=i.helpers,s={scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};i.Type.extend({name:"PolarArea",defaults:s,initialize:function(t){this.segments=[],this.SegmentArc=i.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new i.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:t.length}),this.updateScaleRange(t),this.scale.update(),e.each(t,function(t,i){this.addData(t,i,!0)},this),this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];e.each(this.segments,function(t){t.restore(["fillColor"])}),e.each(i,function(t){t.fillColor=t.highlightColor}),this.showTooltip(i)}),this.render()},getSegmentsAtEvent:function(t){var i=[],s=e.getRelativePosition(t);return e.each(this.segments,function(t){t.inRange(s.x,s.y)&&i.push(t)},this),i},addData:function(t,i,e){var s=i||this.segments.length;this.segments.splice(s,0,new this.SegmentArc({fillColor:t.color,highlightColor:t.highlight||t.color,label:t.label,value:t.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(t.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),e||(this.reflow(),this.update())},removeData:function(t){var i=e.isNumber(t)?t:this.segments.length-1;this.segments.splice(i,1),this.reflow(),this.update()},calculateTotal:function(t){this.total=0,e.each(t,function(t){this.total+=t.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(t){var i=[];e.each(t,function(t){i.push(t.value)});var s=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:e.calculateScaleRange(i,e.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);e.extend(this.scale,s,{size:e.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),e.each(this.segments,function(t){t.save()}),this.render()},reflow:function(){e.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),e.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),e.each(this.segments,function(t){t.update({outerRadius:this.scale.calculateCenterOffset(t.value)})},this)},draw:function(t){var i=t||1;this.clear(),e.each(this.segments,function(t,e){t.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(t.value)},i),t.endAngle=t.startAngle+t.circumference,0===e&&(t.startAngle=1.5*Math.PI),e<this.segments.length-1&&(this.segments[e+1].startAngle=t.endAngle),t.draw()},this),this.scale.draw()}})}.call(this),function(){"use strict";var t=this,i=t.Chart,e=i.helpers;i.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(t){this.PointClass=i.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(t),this.options.showTooltips&&e.bindEvents(this,this.options.tooltipEvents,function(t){var i="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(t){t.restore(["fillColor","strokeColor"])}),e.each(i,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(i)}),e.each(t.datasets,function(i){var s={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,pointColor:i.pointColor,pointStrokeColor:i.pointStrokeColor,points:[]};this.datasets.push(s),e.each(i.data,function(e,n){var o;this.scale.animation||(o=this.scale.getPointPosition(n,this.scale.calculateCenterOffset(e))),s.points.push(new this.PointClass({value:e,label:t.labels[n],datasetLabel:i.label,x:this.options.animation?this.scale.xCenter:o.x,y:this.options.animation?this.scale.yCenter:o.y,strokeColor:i.pointStrokeColor,fillColor:i.pointColor,highlightFill:i.pointHighlightFill||i.pointColor,highlightStroke:i.pointHighlightStroke||i.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(t){e.each(this.datasets,function(i){e.each(i.points,t,this)},this)},getPointsAtEvent:function(t){var i=e.getRelativePosition(t),s=e.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},i),n=2*Math.PI/this.scale.valuesCount,o=Math.round((s.angle-1.5*Math.PI)/n),a=[];return(o>=this.scale.valuesCount||0>o)&&(o=0),s.distance<=this.scale.drawingArea&&e.each(this.datasets,function(t){a.push(t.points[o])}),a},buildScale:function(t){this.scale=new i.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:t.labels,valuesCount:t.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(t.datasets),this.scale.buildYLabels()},updateScaleRange:function(t){var i=function(){var i=[];return e.each(t,function(t){t.data?i=i.concat(t.data):e.each(t.points,function(t){i.push(t.value)})}),i}(),s=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:e.calculateScaleRange(i,e.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);e.extend(this.scale,s)},addData:function(t,i){this.scale.valuesCount++,e.each(t,function(t,e){var s=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(t));this.datasets[e].points.push(new this.PointClass({value:t,label:i,x:s.x,y:s.y,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this),this.scale.labels.push(i),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),e.each(this.datasets,function(t){t.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(t){t.save()}),this.reflow(),this.render()},reflow:function(){e.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:e.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(t){var i=t||1,s=this.chart.ctx;this.clear(),this.scale.draw(),e.each(this.datasets,function(t){e.each(t.points,function(t,e){t.hasValue()&&t.transition(this.scale.getPointPosition(e,this.scale.calculateCenterOffset(t.value)),i)},this),s.lineWidth=this.options.datasetStrokeWidth,s.strokeStyle=t.strokeColor,s.beginPath(),e.each(t.points,function(t,i){0===i?s.moveTo(t.x,t.y):s.lineTo(t.x,t.y)},this),s.closePath(),s.stroke(),s.fillStyle=t.fillColor,s.fill(),e.each(t.points,function(t){t.hasValue()&&t.draw()})},this)}})}.call(this);
admin/classes/js/statistics.js ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var posts_dataset_var = JSON.parse(wp_ulike_statistics.posts_dataset);
2
+ var comments_dataset_var = JSON.parse(wp_ulike_statistics.comments_dataset);
3
+ var activities_dataset_var = JSON.parse(wp_ulike_statistics.activities_dataset);
4
+ var activities_dataset_sum = comments_dataset_sum = posts_dataset_sum = 0;
5
+
6
+ //posts dataset
7
+ if(posts_dataset_var !== null){
8
+ for (var i = 0; i < posts_dataset_var.length; i++) {
9
+ posts_dataset_sum += parseInt(posts_dataset_var[i]);
10
+ }
11
+ var posts_date = {
12
+ labels : JSON.parse(wp_ulike_statistics.posts_date_labels),
13
+ datasets : [
14
+ {
15
+ label: "My First dataset",
16
+ fillColor: "rgba(151,187,205,0.2)",
17
+ strokeColor: "rgba(151,187,205,1)",
18
+ pointColor: "rgba(151,187,205,1)",
19
+ pointStrokeColor : "#fff",
20
+ pointHighlightFill : "#fff",
21
+ pointHighlightStroke : "rgba(220,220,220,1)",
22
+ data : posts_dataset_var
23
+ }
24
+ ]
25
+ }
26
+ }
27
+
28
+ //comments dataset
29
+ if(comments_dataset_var !== null){
30
+ for (var i = 0; i < comments_dataset_var.length; i++) {
31
+ comments_dataset_sum += parseInt(comments_dataset_var[i]);
32
+ }
33
+ var comments_date = {
34
+ labels : JSON.parse(wp_ulike_statistics.comments_date_labels),
35
+ datasets : [
36
+ {
37
+ label: "My First dataset",
38
+ fillColor : "rgba(253,180,92,0.2)",
39
+ strokeColor: "rgba(255,200,112,1)",
40
+ pointColor : "rgba(230,126,34,1)",
41
+ pointStrokeColor : "#f39c12",
42
+ pointHighlightFill : "#f39c12",
43
+ pointHighlightStroke : "rgba(211,84,0,1)",
44
+ data : comments_dataset_var
45
+ }
46
+ ]
47
+ }
48
+ }
49
+
50
+
51
+ //activities dataset
52
+ if(activities_dataset_var !== null){
53
+ for (var i = 0; i < activities_dataset_var.length; i++) {
54
+ activities_dataset_sum += parseInt(activities_dataset_var[i]);
55
+ }
56
+ var activities_date = {
57
+ labels : JSON.parse(wp_ulike_statistics.activities_date_labels),
58
+ datasets : [
59
+ {
60
+ label: "My First dataset",
61
+ fillColor: "rgba(231,79,64,0.2)",
62
+ strokeColor: "rgba(192,57,43,1)",
63
+ pointColor: "rgba(141,42,32,1)",
64
+ pointStrokeColor : "#f7464a",
65
+ pointHighlightFill : "#f7464a",
66
+ pointHighlightStroke : "rgba(255,90,94,1)",
67
+ data : activities_dataset_var
68
+ }
69
+ ]
70
+ }
71
+ }
72
+
73
+ var pieData = [
74
+ {
75
+ value: posts_dataset_sum,
76
+ color:"#46BFBD",
77
+ highlight: "#5AD3D1",
78
+ label: "Posts"
79
+ },
80
+ {
81
+ value: comments_dataset_sum,
82
+ color: "#FDB45C",
83
+ highlight: "#FFC870",
84
+ label: "Comment"
85
+ },
86
+ {
87
+ value: activities_dataset_sum,
88
+ color: "#F7464A",
89
+ highlight: "#FF5A5E",
90
+ label: "Activities"
91
+ }
92
+ ];
93
+
94
+ window.onload = function(){
95
+
96
+ if(posts_dataset_var !== null){
97
+ var ctx1 = document.getElementById("chart1").getContext("2d");
98
+ window.myLine = new Chart(ctx1).Line(posts_date, {
99
+ responsive: true
100
+ });
101
+ }else{
102
+ document.getElementById("posts_likes_stats").getElementsByClassName("main")[0].innerHTML = "No Data Found!";
103
+ }
104
+
105
+ if(comments_dataset_var !== null){
106
+ var ctx2 = document.getElementById("chart2").getContext("2d");
107
+ window.myLine = new Chart(ctx2).Line(comments_date, {
108
+ responsive: true
109
+ });
110
+ }else{
111
+ document.getElementById("comments_likes_stats").getElementsByClassName("main")[0].innerHTML = "No Data Found!";
112
+ }
113
+
114
+ if(activities_dataset_var !== null){
115
+ var ctx3 = document.getElementById("chart3").getContext("2d");
116
+ window.myLine = new Chart(ctx3).Line(activities_date, {
117
+ responsive: true
118
+ });
119
+ }else{
120
+ document.getElementById("activities_likes_stats").getElementsByClassName("main")[0].innerHTML = "No Data Found!";
121
+ }
122
+
123
+ if(activities_dataset_var !== null || comments_dataset_var || null && posts_dataset_var || null){
124
+ var ctx4 = document.getElementById("piechart").getContext("2d");
125
+ window.myPie = new Chart(ctx4).Pie(pieData, {
126
+ responsive: true
127
+ });
128
+ }else{
129
+ document.getElementById("piechart_stats").getElementsByClassName("main")[0].innerHTML = "No Data Found!";
130
+ }
131
+
132
+ }
133
+
134
+
135
+ jQuery(document).on('ready', function($){
136
+ postboxes.save_state = function(){
137
+ return;
138
+ };
139
+ postboxes.save_order = function(){
140
+ return;
141
+ };
142
+ postboxes.add_postbox_toggles();
143
+ });
admin/logs.php CHANGED
@@ -3,10 +3,21 @@
3
  //include pagination class
4
  include( plugin_dir_path(__FILE__) . 'classes/class-pagination.php');
5
 
 
 
 
 
 
 
 
 
 
 
 
6
  function wp_ulike_post_likes_logs(){
7
  global $wpdb;
8
- $alternate = true;
9
- $items = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike");
10
  if($items > 0) {
11
  $p = new pagination;
12
  $p->items($items);
@@ -25,9 +36,8 @@
25
  //Query for limit page_number
26
  $limit = "LIMIT " . ($p->page - 1) * $p->limit . ", " . $p->limit;
27
 
28
- $get_ulike_logs = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ulike ORDER BY id ASC ".$limit."");
29
- $count_total_like = $wpdb->get_var("SELECT SUM(meta_value) FROM ".$wpdb->prefix."postmeta WHERE meta_key LIKE '_liked'" );
30
- $count_total_post = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."postmeta WHERE meta_key LIKE '_liked'" );
31
  ?>
32
  <div class="wrap">
33
  <h2><?php _e('WP ULike Logs', 'alimir'); ?></h2>
@@ -104,35 +114,28 @@
104
  <?php echo $p->show(); // Echo out the list of paging. ?>
105
  </div>
106
  </div>
107
- </div>
108
- <div class="wrap">
109
- <h3><?php _e('Post Likes Logs Stats', 'alimir'); ?></h3>
110
- <br style="clear" />
111
- <table class="widefat">
112
- <tr class="alternate">
113
- <th><?php _e('Total Users Liked:', 'alimir'); ?></th>
114
- <td><?php echo $items; ?></td>
115
- </tr>
116
- <tr>
117
- <th><?php _e('Total Posts Liked:', 'alimir'); ?></th>
118
- <td><?php echo $count_total_post; ?></td>
119
- </tr>
120
- <tr class="alternate">
121
- <th><?php _e('Total Likes Sum:', 'alimir'); ?></th>
122
- <td><?php echo $count_total_like; ?></td>
123
- </tr>
124
- </table>
125
  </div>
126
  <?php
127
  } else {
128
  echo "<div class='error'><p>" . __('<strong>ERROR:</strong> No Record Found. (This problem is created because you don\'t have any data on this table)','alimir') . "</p></div>";
129
  }
130
  }
131
-
 
 
 
 
 
 
 
 
 
 
 
132
  function wp_ulike_comment_likes_logs(){
133
  global $wpdb;
134
- $alternate = true;
135
- $items = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_comments");
136
  if($items > 0) {
137
  $p = new pagination;
138
  $p->items($items);
@@ -151,9 +154,7 @@
151
  //Query for limit page_number
152
  $limit = "LIMIT " . ($p->page - 1) * $p->limit . ", " . $p->limit;
153
 
154
- $get_ulike_logs = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ulike_comments ORDER BY id ASC ".$limit."");
155
- $count_total_like = $wpdb->get_var("SELECT SUM(meta_value) FROM ".$wpdb->prefix."commentmeta WHERE meta_key LIKE '_commentliked'" );
156
- $count_total_comments = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."commentmeta WHERE meta_key LIKE '_commentliked'" );
157
  ?>
158
  <div class="wrap">
159
  <h2><?php _e('WP ULike Logs', 'alimir'); ?></h2>
@@ -234,35 +235,29 @@
234
  <?php echo $p->show(); // Echo out the list of paging. ?>
235
  </div>
236
  </div>
237
- </div>
238
- <div class="wrap">
239
- <h3><?php _e('Comment Likes Logs Stats', 'alimir'); ?></h3>
240
- <br style="clear" />
241
- <table class="widefat">
242
- <tr class="alternate">
243
- <th><?php _e('Total Users Liked:', 'alimir'); ?></th>
244
- <td><?php echo $items; ?></td>
245
- </tr>
246
- <tr>
247
- <th><?php _e('Total Comments Liked:', 'alimir'); ?></th>
248
- <td><?php echo $count_total_comments; ?></td>
249
- </tr>
250
- <tr class="alternate">
251
- <th><?php _e('Total Likes Sum:', 'alimir'); ?></th>
252
- <td><?php echo $count_total_like; ?></td>
253
- </tr>
254
- </table>
255
  </div>
 
256
  <?php
257
  } else {
258
  echo "<div class='error'><p>" . __('<strong>ERROR:</strong> No Record Found. (This problem is created because you don\'t have any data on this table)','alimir') . "</p></div>";
259
  }
260
  }
261
 
 
 
 
 
 
 
 
 
 
 
 
262
  function wp_ulike_buddypress_likes_logs(){
263
  global $wpdb;
264
- $alternate = true;
265
- $items = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_activities");
266
  if($items > 0) {
267
  $p = new pagination;
268
  $p->items($items);
@@ -281,9 +276,8 @@
281
  //Query for limit page_number
282
  $limit = "LIMIT " . ($p->page - 1) * $p->limit . ", " . $p->limit;
283
 
284
- $get_ulike_logs = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ulike_activities ORDER BY id ASC ".$limit."");
285
- $count_total_like = $wpdb->get_var("SELECT SUM(meta_value) FROM ".$wpdb->prefix."bp_activity_meta WHERE meta_key LIKE '_activityliked'" );
286
- $count_total_activity = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."bp_activity_meta WHERE meta_key LIKE '_activityliked'" );
287
  ?>
288
  <div class="wrap">
289
  <h2><?php _e('WP ULike Logs', 'alimir'); ?></h2>
@@ -361,24 +355,7 @@
361
  </div>
362
  </div>
363
  </div>
364
- <div class="wrap">
365
- <h3><?php _e('Activity Likes Logs Stats', 'alimir'); ?></h3>
366
- <br style="clear" />
367
- <table class="widefat">
368
- <tr class="alternate">
369
- <th><?php _e('Total Users Liked:', 'alimir'); ?></th>
370
- <td><?php echo $items; ?></td>
371
- </tr>
372
- <tr>
373
- <th><?php _e('Total Activities Liked:', 'alimir'); ?></th>
374
- <td><?php echo $count_total_activity; ?></td>
375
- </tr>
376
- <tr class="alternate">
377
- <th><?php _e('Total Likes Sum:', 'alimir'); ?></th>
378
- <td><?php echo $count_total_like; ?></td>
379
- </tr>
380
- </table>
381
- </div>
382
  <?php
383
  } else {
384
  echo "<div class='error'><p>" . __('<strong>ERROR:</strong> No Record Found. (This problem is created because you don\'t have any data on this table)','alimir') . "</p></div>";
3
  //include pagination class
4
  include( plugin_dir_path(__FILE__) . 'classes/class-pagination.php');
5
 
6
+ /*******************************************************
7
+ Post Logs Page
8
+ *******************************************************/
9
+ /**
10
+ * Create WP ULike Post Logs page with separate pagination
11
+ *
12
+ * @author Alimir
13
+ * @since 1.7
14
+ * @updated 2.0
15
+ * @return String
16
+ */
17
  function wp_ulike_post_likes_logs(){
18
  global $wpdb;
19
+ $alternate = true;
20
+ $items = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike");
21
  if($items > 0) {
22
  $p = new pagination;
23
  $p->items($items);
36
  //Query for limit page_number
37
  $limit = "LIMIT " . ($p->page - 1) * $p->limit . ", " . $p->limit;
38
 
39
+ $get_ulike_logs = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ulike ORDER BY id DESC ".$limit."");
40
+
 
41
  ?>
42
  <div class="wrap">
43
  <h2><?php _e('WP ULike Logs', 'alimir'); ?></h2>
114
  <?php echo $p->show(); // Echo out the list of paging. ?>
115
  </div>
116
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  </div>
118
  <?php
119
  } else {
120
  echo "<div class='error'><p>" . __('<strong>ERROR:</strong> No Record Found. (This problem is created because you don\'t have any data on this table)','alimir') . "</p></div>";
121
  }
122
  }
123
+
124
+ /*******************************************************
125
+ Comment Logs Page
126
+ *******************************************************/
127
+ /**
128
+ * Create WP ULike Comment Logs page with separate pagination
129
+ *
130
+ * @author Alimir
131
+ * @since 1.7
132
+ * @updated 2.0
133
+ * @return String
134
+ */
135
  function wp_ulike_comment_likes_logs(){
136
  global $wpdb;
137
+ $alternate = true;
138
+ $items = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_comments");
139
  if($items > 0) {
140
  $p = new pagination;
141
  $p->items($items);
154
  //Query for limit page_number
155
  $limit = "LIMIT " . ($p->page - 1) * $p->limit . ", " . $p->limit;
156
 
157
+ $get_ulike_logs = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ulike_comments ORDER BY id DESC ".$limit."");
 
 
158
  ?>
159
  <div class="wrap">
160
  <h2><?php _e('WP ULike Logs', 'alimir'); ?></h2>
235
  <?php echo $p->show(); // Echo out the list of paging. ?>
236
  </div>
237
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  </div>
239
+
240
  <?php
241
  } else {
242
  echo "<div class='error'><p>" . __('<strong>ERROR:</strong> No Record Found. (This problem is created because you don\'t have any data on this table)','alimir') . "</p></div>";
243
  }
244
  }
245
 
246
+ /*******************************************************
247
+ BuddyPress Logs Page
248
+ *******************************************************/
249
+ /**
250
+ * Create WP ULike BuddyPress Logs page with separate pagination
251
+ *
252
+ * @author Alimir
253
+ * @since 1.7
254
+ * @updated 2.0
255
+ * @return String
256
+ */
257
  function wp_ulike_buddypress_likes_logs(){
258
  global $wpdb;
259
+ $alternate = true;
260
+ $items = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_activities");
261
  if($items > 0) {
262
  $p = new pagination;
263
  $p->items($items);
276
  //Query for limit page_number
277
  $limit = "LIMIT " . ($p->page - 1) * $p->limit . ", " . $p->limit;
278
 
279
+ $get_ulike_logs = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."ulike_activities ORDER BY id DESC ".$limit."");
280
+
 
281
  ?>
282
  <div class="wrap">
283
  <h2><?php _e('WP ULike Logs', 'alimir'); ?></h2>
355
  </div>
356
  </div>
357
  </div>
358
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
  <?php
360
  } else {
361
  echo "<div class='error'><p>" . __('<strong>ERROR:</strong> No Record Found. (This problem is created because you don\'t have any data on this table)','alimir') . "</p></div>";
admin/stats.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //include wp_ulike_stats class
3
+ include( plugin_dir_path(__FILE__) . 'classes/class-charts.php');
4
+
5
+ /**
6
+ * Create WP ULike statistics with wp_ulike_stats class
7
+ *
8
+ * @author Alimir
9
+ * @since 2.0
10
+ * @return String
11
+ */
12
+ function wp_ulike_statistics(){
13
+ global $wp_ulike_stats;
14
+
15
+ echo '<div class="wrap">';
16
+
17
+ /*******************************************************
18
+ Welcome Panel Section
19
+ *******************************************************/
20
+
21
+ $WelcomesArr = array(
22
+ "posts" => array(
23
+ "type" => "ulike",
24
+ "table" => "postmeta",
25
+ "key" => "_liked",
26
+ "title" => __('Posts Likes Summary','alimir')
27
+ ),
28
+ "comments" => array(
29
+ "type" => "ulike_comments",
30
+ "table" => "commentmeta",
31
+ "key" => "_commentliked",
32
+ "title" => __('Comments Likes Summary','alimir')
33
+ ),
34
+ "activities" => array(
35
+ "type" => "ulike_activities",
36
+ "table" => "bp_activity_meta",
37
+ "key" => "_activityliked",
38
+ "title" => __('Activities Likes Summary','alimir')
39
+ )
40
+ );
41
+
42
+ echo '<div id="welcome-panel" class="welcome-panel"><div class="welcome-panel-content">';
43
+ echo '<h3>' . __('Welcome to WP ULike Statistics!','alimir') . '</h3>';
44
+ echo '<p class="about-description">' . __('We have provided some useful statistics tools in this page:','alimir') . '</p>';
45
+ echo '<div class="welcome-panel-column-container">';
46
+
47
+ foreach ($WelcomesArr as $WelcomeArr) {
48
+
49
+ echo'
50
+ <div class="welcome-panel-column">
51
+ <h4>'.$WelcomeArr["title"].'</h4>
52
+ <ul>
53
+ <li><em class="welcome-icon dashicons-star-filled">'. __('Today','alimir') .': <span style="color: #27ae60 !important;font-size: 24px;padding:0 10px;">'. $wp_ulike_stats->get_data_date($WelcomeArr["type"],'today').'</span></em></li>
54
+ <li><em class="welcome-icon dashicons-star-empty">'. __('Yesterday','alimir') .': <span style="color: #27ae60 !important;font-size: 24px;padding:0 10px;">'. $wp_ulike_stats->get_data_date($WelcomeArr["type"],'yesterday').'</span></em></li>
55
+ <li><em class="welcome-icon dashicons-calendar">'. __('Week','alimir') .': <span style="color: #27ae60 !important;font-size: 24px;padding:0 10px;">'. $wp_ulike_stats->get_data_date($WelcomeArr["type"],'week').'</span></em></li>
56
+ <li><em class="welcome-icon dashicons-flag">'. __('Month','alimir') .': <span style="color: #27ae60 !important;font-size: 24px;padding:0 10px;">'. $wp_ulike_stats->get_data_date($WelcomeArr["type"],'month').'</span></em></li>
57
+ <li><em class="welcome-icon dashicons-chart-area">'. __('Total','alimir') .': <span style="color: #27ae60 !important;font-size: 24px;padding:0 10px;">'. $wp_ulike_stats->get_all_data_date($WelcomeArr["table"],$WelcomeArr["key"]).'</span></em></li>
58
+ </ul>
59
+ </div>
60
+ ';
61
+
62
+ }
63
+
64
+ echo '</div></div></div>';
65
+
66
+
67
+ /*******************************************************
68
+ Charts Panel Section
69
+ *******************************************************/
70
+
71
+ $ChartsArr = array(
72
+ "posts" => array(
73
+ "id" => "posts_likes_stats",
74
+ "view_logs" => ' <a style="text-decoration:none;" href="?page=wp-ulike-post-logs" target="_blank"><i class="dashicons dashicons-visibility"></i> '. __('View Logs','alimir') .'</a>',
75
+ "title" => __('Posts Likes Stats','alimir'),
76
+ "chart" => "chart1"
77
+ ),
78
+ "activities" => array(
79
+ "id" => "activities_likes_stats",
80
+ "view_logs" => ' <a style="text-decoration:none;" href="?page=wp-ulike-bp-logs" target="_blank"><i class="dashicons dashicons-visibility"></i> '. __('View Logs','alimir') .'</a>',
81
+ "title" => __('Activities Likes Stats','alimir'),
82
+ "chart" => "chart3"
83
+ ),
84
+ "comments" => array(
85
+ "id" => "comments_likes_stats",
86
+ "view_logs" => ' <a style="text-decoration:none;" href="?page=wp-ulike-comment-logs" target="_blank"><i class="dashicons dashicons-visibility"></i> '. __('View Logs','alimir') .'</a>',
87
+ "title" => __('Comments Likes Stats','alimir'),
88
+ "chart" => "chart2"
89
+ ),
90
+ "piechar" => array(
91
+ "id" => "piechart_stats",
92
+ "view_logs" => null,
93
+ "title" => __('Likes Percent In The Last 20 Days','alimir'),
94
+ "chart" => "piechart"
95
+ )
96
+ );
97
+
98
+ echo '<div id="dashboard-widgets-wrap"><div id="dashboard-widgets" class="metabox-holder">';
99
+
100
+ foreach ($ChartsArr as $ChartArr) {
101
+
102
+ if ($ChartArr['id'] == "posts_likes_stats")
103
+ echo '<div id="postbox-container-2" class="postbox-container"><div class="meta-box-sortables ui-sortable">';
104
+ else if($ChartArr['id'] == "comments_likes_stats")
105
+ echo '<div id="postbox-container-1" class="postbox-container"><div class="meta-box-sortables ui-sortable">';
106
+
107
+ echo '
108
+ <div id="'.$ChartArr['id'].'" class="postbox">
109
+ <div class="handlediv" title="Click to toggle"><br></div>
110
+ <h3 class="hndle"><span>'.$ChartArr['title'] . $ChartArr['view_logs'].' </span></h3>
111
+ <div class="inside">
112
+ <div class="main">
113
+ <div>
114
+ <canvas id="'.$ChartArr['chart'].'"></canvas>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ </div>';
119
+
120
+ if ($ChartArr['id'] == "activities_likes_stats" || $ChartArr['id'] == "piechart_stats")
121
+ echo '</div></div>';
122
+
123
+ }
124
+
125
+ echo '</div></div></div>';
126
+
127
+ }
assets/css/wp-ulike-rtl.css CHANGED
@@ -195,26 +195,26 @@ button.close {
195
  opacity:1
196
  }
197
 
198
- .tiles,.mostlikedusers {
199
  list-style-type: none;
200
  position: relative;
201
  margin: 10px 0;
202
  padding: 0;
203
  }
204
- .tiles li,.mostlikedusers li{
205
  display:inline-table;
206
  cursor: pointer;
207
  }
208
- .mostlikedusers li{
209
  margin:0 2px;
210
  }
211
 
212
- .tiles li.inactive,.mostlikedusers li.inactive {
213
  visibility: hidden;
214
  opacity: 0;
215
  }
216
 
217
- .tiles li img ,.mostlikedusers li img {
218
  display: block;
219
  }
220
 
195
  opacity:1
196
  }
197
 
198
+ .tiles,.most_liked_users {
199
  list-style-type: none;
200
  position: relative;
201
  margin: 10px 0;
202
  padding: 0;
203
  }
204
+ .tiles li,.most_liked_users li{
205
  display:inline-table;
206
  cursor: pointer;
207
  }
208
+ .most_liked_users li{
209
  margin:0 2px;
210
  }
211
 
212
+ .tiles li.inactive,.most_liked_users li.inactive {
213
  visibility: hidden;
214
  opacity: 0;
215
  }
216
 
217
+ .tiles li img ,.most_liked_users li img {
218
  display: block;
219
  }
220
 
assets/css/wp-ulike.css CHANGED
@@ -196,26 +196,26 @@ button.close {
196
  opacity:1
197
  }
198
 
199
- .tiles,.mostlikedusers {
200
  list-style-type: none !important;
201
  position: relative !important;
202
  margin: 10px 0 !important;
203
  padding: 0 !important;
204
  }
205
- .tiles li,.mostlikedusers li{
206
  display:inline-table !important;
207
  cursor: pointer !important;
208
  }
209
- .mostlikedusers li{
210
  margin:0 2px !important;
211
  }
212
 
213
- .tiles li.inactive,.mostlikedusers li.inactive {
214
  visibility: hidden !important;
215
  opacity: 0 !important;
216
  }
217
 
218
- .tiles li img ,.mostlikedusers li img {
219
  display: block !important;
220
  }
221
 
196
  opacity:1
197
  }
198
 
199
+ .tiles,.most_liked_users {
200
  list-style-type: none !important;
201
  position: relative !important;
202
  margin: 10px 0 !important;
203
  padding: 0 !important;
204
  }
205
+ .tiles li,.most_liked_users li{
206
  display:inline-table !important;
207
  cursor: pointer !important;
208
  }
209
+ .most_liked_users li{
210
  margin:0 2px !important;
211
  }
212
 
213
+ .tiles li.inactive,.most_liked_users li.inactive {
214
  visibility: hidden !important;
215
  opacity: 0 !important;
216
  }
217
 
218
+ .tiles li img ,.most_liked_users li img {
219
  display: block !important;
220
  }
221
 
assets/img/ajax-bootmodal-login.jpg ADDED
Binary file
assets/img/blue-login-themes.jpg ADDED
Binary file
assets/img/custom-fileds-notifications.png ADDED
Binary file
assets/img/new-tools/new-classes.jpg ADDED
Binary file
assets/img/new-tools/ulike-stats.png ADDED
Binary file
assets/img/wp-ulike-badge.png CHANGED
Binary file
assets/img/wp-ulike-banner.png CHANGED
Binary file
assets/js/wp-ulike-scripts.js CHANGED
@@ -33,7 +33,7 @@ function likeThis(postId, n1, n2) {
33
  jQuery('#wp-ulike-' + postId + ' .counter').html("<a class='image' title='You Liked This'></a><span class='count-box'>"+value+"</span>");
34
  }
35
  else if(ulike_obj.button_type == 'text'){
36
- jQuery('#wp-ulike-' + postId + ' .counter').html("<a class='text'> title='You Liked This'" + ulike_obj.button_text + "</a><span class='count-box'>"+value+"</span>");
37
  }
38
  }
39
  }
33
  jQuery('#wp-ulike-' + postId + ' .counter').html("<a class='image' title='You Liked This'></a><span class='count-box'>"+value+"</span>");
34
  }
35
  else if(ulike_obj.button_type == 'text'){
36
+ jQuery('#wp-ulike-' + postId + ' .counter').html("<a class='text' title='You Liked This'>" + ulike_obj.button_text + "</a><span class='count-box'>"+value+"</span>");
37
  }
38
  }
39
  }
inc/classes/class-ulike.php ADDED
@@ -0,0 +1,515 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! class_exists( 'wp_ulike' ) ) {
3
+
4
+ class wp_ulike{
5
+ private $wpdb;
6
+
7
+ /**
8
+ * Constructor
9
+ */
10
+ public function __construct()
11
+ {
12
+ global $wpdb;
13
+ $this->wpdb = $wpdb;
14
+ }
15
+
16
+ /**
17
+ * Select logging method
18
+ *
19
+ * @author Alimir
20
+ * @param Array $data
21
+ * @since 2.0
22
+ * @return String
23
+ */
24
+ public function wp_get_ulike(array $data){
25
+ //get loggin method option
26
+ $loggin_method = wp_ulike_get_setting( $data['setting'], 'logging_method');
27
+
28
+ //select function from logging method
29
+ if($loggin_method == 'do_not_log')
30
+ return $this->do_not_log_method($data);
31
+
32
+ else if($loggin_method == 'by_cookie')
33
+ return $this->loggedby_cookie_method($data);
34
+
35
+ else if($loggin_method == 'by_ip')
36
+ return $this->loggedby_ip_method($data);
37
+
38
+ else
39
+ return $this->loggedby_other_ways($data);
40
+ }
41
+
42
+ /**
43
+ * Do not log method
44
+ *
45
+ * @author Alimir
46
+ * @param Array $data
47
+ * @since 2.0
48
+ * @return String
49
+ */
50
+ public function do_not_log_method(array $data){
51
+ $liked = wp_ulike_format_number($data["get_like"]);
52
+ $template = $this->get_template($data["id"],$data["method"],$liked,2,2);
53
+ $counter = '';
54
+
55
+ if($data["type"] == 'post'){
56
+ if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
57
+ $counter = $template['like_img'];
58
+ }
59
+ else {
60
+ $counter = $template['like_text'];
61
+ }
62
+ }//end post button
63
+ else if($data["type"] == 'process'){
64
+ $newLike = $data["get_like"] + 1;
65
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
66
+ $this->wpdb->query("INSERT INTO ".$this->wpdb->prefix.$data['table']." VALUES ('', '".$data['id']."', NOW(), '".$data['user_ip']."', '".$data['user_id']."', 'like')");
67
+ if(is_user_logged_in()){
68
+ wp_ulike_bp_activity_add($data['user_id'],$data['id'],$data['key']);
69
+ }
70
+ $counter = wp_ulike_format_number($newLike);
71
+ }//end post process
72
+ return $counter;
73
+ }
74
+
75
+ /**
76
+ * Logged by cookie method
77
+ *
78
+ * @author Alimir
79
+ * @param Array $data
80
+ * @since 2.0
81
+ * @return String
82
+ */
83
+ public function loggedby_cookie_method(array $data){
84
+ $liked = wp_ulike_format_number($data["get_like"]);
85
+ $template = $this->get_template($data["id"],$data["method"],$liked,2,2);
86
+ $condition = isset($_COOKIE[$data["cookie"].$data["id"]]);
87
+ $button_type = wp_ulike_get_setting( 'wp_ulike_general', 'button_type');
88
+ $counter = '';
89
+
90
+ if($data["type"] == 'post'){
91
+ if(!$condition){
92
+ if ($button_type == 'image') {
93
+ $counter = $template['like_img'];
94
+ }
95
+ else {
96
+ $counter = $template['like_text'];
97
+ }
98
+ }
99
+ else{
100
+ if ($button_type == 'image') {
101
+ $counter = $template['permission_img'];
102
+ }
103
+ else {
104
+ $counter = $template['permission_text'];
105
+ }
106
+ }
107
+ }//end post button
108
+ else if($data["type"] == 'process'){
109
+ if(!$condition){
110
+ $newLike = $data["get_like"] + 1;
111
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
112
+ setcookie($data["cookie"].$data["id"], time(), time()+3600*24*365, '/');
113
+ $this->wpdb->query("INSERT INTO ".$this->wpdb->prefix.$data['table']." VALUES ('', '".$data['id']."', NOW(), '".$data['user_ip']."', '".$data['user_id']."', 'like')");
114
+ if(is_user_logged_in()){
115
+ wp_ulike_bp_activity_add($data['user_id'],$data['id'],$data['key']);
116
+ }
117
+ $counter = wp_ulike_format_number($newLike);
118
+ }
119
+ else{
120
+ $counter = wp_ulike_format_number($data["get_like"]);
121
+ }
122
+ }//end post process
123
+ return $counter;
124
+ }
125
+
126
+ /**
127
+ * Logged by IP method
128
+ *
129
+ * @author Alimir
130
+ * @param Array $data
131
+ * @since 2.0
132
+ * @return String
133
+ */
134
+ public function loggedby_ip_method(array $data){
135
+ $liked = wp_ulike_format_number($data["get_like"]);
136
+ $tmp1 = $this->get_template($data["id"],$data["method"],$liked,1,0);
137
+ $tmp2 = $this->get_template($data["id"],$data["method"],$liked,1,1);
138
+ $button_type = wp_ulike_get_setting( 'wp_ulike_general', 'button_type');
139
+ $condition = $this->wpdb->get_var("SELECT COUNT(*) FROM ".$this->wpdb->prefix.$data['table']." WHERE ".$data['column']." = '".$data['id']."' AND ip = '".$data['user_ip']."'");
140
+
141
+ if($data["type"] == 'post'){
142
+ if($condition == 0){
143
+ if ($button_type == 'image') {
144
+ $counter = $tmp1['like_img'];
145
+ }
146
+ else {
147
+ $counter = $tmp1['like_text'];
148
+ }
149
+ }
150
+ else{
151
+ if($this->get_user_status($data['table'],$data['column'],'ip',$data['id'],$data['user_ip']) == "like"){
152
+ $counter = $tmp2['text_after_like'];
153
+ }
154
+ else{
155
+ if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
156
+ if ($button_type == 'image') {
157
+ $counter = $tmp1['like_img'];
158
+ }
159
+ else {
160
+ $counter = $tmp1['like_text'];
161
+ }
162
+ }
163
+ else{
164
+ $counter = $tmp1['text_after_unlike'];
165
+ }
166
+ }
167
+ }
168
+ }//end post button
169
+ else if($data["type"] == 'process'){
170
+ if($condition == 0){
171
+ $newLike = $data["get_like"] + 1;
172
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
173
+ $this->wpdb->query("INSERT INTO ".$this->wpdb->prefix.$data['table']." VALUES ('', '".$data['id']."', NOW(), '".$data['user_ip']."', '".$data['user_id']."', 'like')");
174
+ if(is_user_logged_in()){
175
+ wp_ulike_bp_activity_add($data['user_id'],$data['id'],$data['key']);
176
+ }
177
+ $counter = wp_ulike_format_number($newLike);
178
+ }
179
+ else{
180
+ if($this->get_user_status($data['table'],$data['column'],'ip',$data['id'],$data['user_ip']) == "like"){
181
+ $newLike = $data["get_like"] - 1;
182
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
183
+
184
+ $this->wpdb->query("
185
+ UPDATE ".$this->wpdb->prefix.$data['table']."
186
+ SET status = 'unlike'
187
+ WHERE ".$data['column']." = '".$data['id']."' AND ip = '".$data['user_ip']."'
188
+ ");
189
+
190
+ $counter = wp_ulike_format_number($newLike);
191
+ }
192
+ else{
193
+ $newLike = $data["get_like"] + 1;
194
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
195
+
196
+ $this->wpdb->query("
197
+ UPDATE ".$this->wpdb->prefix.$data['table']."
198
+ SET status = 'like'
199
+ WHERE ".$data['column']." = '".$data['id']."' AND ip = '".$data['user_ip']."'
200
+ ");
201
+
202
+ $counter = wp_ulike_format_number($newLike);
203
+ }
204
+ }
205
+ }//end post process
206
+ return $counter;
207
+ }
208
+
209
+ /**
210
+ * Logged by IP/UserName method
211
+ *
212
+ * @author Alimir
213
+ * @param Array $data
214
+ * @since 2.0
215
+ * @return String
216
+ */
217
+ public function loggedby_other_ways(array $data){
218
+ $liked = wp_ulike_format_number($data["get_like"]);
219
+ $tmp1 = $this->get_template($data["id"],$data["method"],$liked,1,0);
220
+ $tmp2 = $this->get_template($data["id"],$data["method"],$liked,1,1);
221
+ $loggin_method = wp_ulike_get_setting( $data['setting'], 'logging_method');
222
+ $button_type = wp_ulike_get_setting( 'wp_ulike_general', 'button_type');
223
+ $second_condition = true; //check for by_username login method
224
+
225
+ if($loggin_method == 'by_cookie_ip'){
226
+ $condition = $this->wpdb->get_var("SELECT COUNT(*) FROM ".$this->wpdb->prefix.$data['table']." WHERE ".$data['column']." = '".$data['id']."' AND ip = '".$data['user_ip']."'");
227
+ $second_column = 'ip';
228
+ $second_val = $data['user_ip'];
229
+ }
230
+ else if($loggin_method == 'by_username'){
231
+ $condition = $this->wpdb->get_var("SELECT COUNT(*) FROM ".$this->wpdb->prefix.$data['table']." WHERE ".$data['column']." = '".$data['id']."' AND user_id = '".$data['user_id']."'");
232
+ $user_info = get_userdata($data['user_id']);// check for user data
233
+ if(!$user_info) $second_condition = false;// if user not exist, condition will be false
234
+ $second_column = 'user_id';
235
+ $second_val = $data['user_id'];
236
+ if(!is_user_logged_in())
237
+ $tmp1 = $this->get_template($data["id"],$data["method"],$liked,1,2);
238
+ }
239
+
240
+ if($data["type"] == 'post'){
241
+ if($condition == 0 && !isset($_COOKIE[$data["cookie"].$data["id"]])){
242
+ if ($button_type == 'image') {
243
+ $counter = $tmp1['like_img'];
244
+ }
245
+ else {
246
+ $counter = $tmp1['like_text'];
247
+ }
248
+ }
249
+ else if($condition != 0 && isset($_COOKIE[$data["cookie"].$data["id"]]) && $second_condition){
250
+ if($this->get_user_status($data['table'],$data['column'],$second_column,$data['id'],$second_val) == "like"){
251
+ $counter = $tmp2['text_after_like'];
252
+ }
253
+ else{
254
+ if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
255
+ if ($button_type == 'image') {
256
+ $counter = $tmp1['like_img'];
257
+ }
258
+ else {
259
+ $counter = $tmp1['like_text'];
260
+ }
261
+ }
262
+ else{
263
+ $counter = $tmp1['text_after_unlike'];
264
+ }
265
+ }
266
+ }
267
+ else{
268
+ $counter = $tmp1['permission_text'];
269
+ }
270
+ }//end post button
271
+ else if($data["type"] == 'process'){
272
+ if($condition == 0 && !isset($_COOKIE[$data["cookie"].$data["id"]])){
273
+ $newLike = $data["get_like"] + 1;
274
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
275
+ $this->wpdb->query("INSERT INTO ".$this->wpdb->prefix.$data['table']." VALUES ('', '".$data['id']."', NOW(), '".$data['user_ip']."', '".$data['user_id']."', 'like')");
276
+ if(is_user_logged_in()){
277
+ wp_ulike_bp_activity_add($data['user_id'],$data['id'],$data['key']);
278
+ }
279
+ setcookie($data["cookie"].$data["id"], time(), time()+3600*24*365, '/');
280
+ $counter = wp_ulike_format_number($newLike);
281
+ }
282
+ else if($condition != 0 && isset($_COOKIE[$data["cookie"].$data["id"]]) && $second_condition){
283
+ if($this->get_user_status($data['table'],$data['column'],$second_column,$data['id'],$second_val) == "like"){
284
+ $newLike = $data["get_like"] - 1;
285
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
286
+
287
+ $this->wpdb->query("
288
+ UPDATE ".$this->wpdb->prefix.$data['table']."
289
+ SET status = 'unlike'
290
+ WHERE ".$data['column']." = '".$data['id']."' AND $second_column = '$second_val'
291
+ ");
292
+
293
+ $counter = wp_ulike_format_number($newLike);
294
+ }
295
+ else{
296
+ $newLike = $data["get_like"] + 1;
297
+ $this->update_meta_data($data["id"], $data["key"], $newLike);
298
+
299
+ $this->wpdb->query("
300
+ UPDATE ".$this->wpdb->prefix.$data['table']."
301
+ SET status = 'like'
302
+ WHERE ".$data['column']." = '".$data['id']."' AND $second_column = '$second_val'
303
+ ");
304
+
305
+ $counter = wp_ulike_format_number($newLike);
306
+ }
307
+ }
308
+ else{
309
+ $counter = wp_ulike_format_number($data["get_like"]);
310
+ }
311
+ }//end post process
312
+ return $counter;
313
+ }
314
+
315
+ /**
316
+ * Update meta data
317
+ *
318
+ * @author Alimir
319
+ * @param Integer $id
320
+ * @param String $key
321
+ * @param Integer $data
322
+ * @since 2.0
323
+ * @return Void
324
+ */
325
+ public function update_meta_data($id, $key, $data){
326
+ if($key == "_liked")
327
+ update_post_meta($id, $key, $data);
328
+ else if($key == "_commentliked")
329
+ update_comment_meta($id, $key, $data);
330
+ else if($key == "_activityliked")
331
+ bp_activity_update_meta($id, $key, $data);
332
+ else
333
+ return 0;
334
+ }
335
+
336
+ /**
337
+ * Get template
338
+ *
339
+ * @author Alimir
340
+ * @param Integer $id
341
+ * @param String $method
342
+ * @param Integer $liked
343
+ * @param Integer $num1
344
+ * @param Integer $num2
345
+ * @since 2.0
346
+ * @return String
347
+ */
348
+ public function get_template($id,$method,$liked,$num1,$num2){
349
+
350
+ $function = "$method($id, $num1, $num2);";
351
+ $counter = '<span class="count-box">'.$liked.'</span>';
352
+ $button_text = wp_ulike_get_setting( 'wp_ulike_general', 'button_text');
353
+ $permission_text = wp_ulike_get_setting( 'wp_ulike_general', 'permission_text');
354
+ $text_after_like = wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like');
355
+ $text_after_unlike = wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike');
356
+ $login_text = wp_ulike_get_setting( 'wp_ulike_general', 'login_text');
357
+
358
+ return array(
359
+ "like_img" => '<a onclick="'.$function.'" class="image"></a>'.$counter.'',
360
+ "like_text" => '<a onclick="'.$function.'" class="text">'.$button_text.'</a>'.$counter.'',
361
+ "text_after_like" => '<a onclick="'.$function.'" class="text">'.$text_after_like.'</a>'.$counter.'',
362
+ "text_after_unlike" => '<a onclick="'.$function.'" class="text">'.$text_after_unlike.'</a>'.$counter.'',
363
+ "permission_text" => '<a title="'.$permission_text.'" class="text user-tooltip">'.$text_after_like.'</a>'.$counter.'',
364
+ "permission_img" => '<a title="'.$permission_text.'" class="image user-tooltip"></a>'.$counter.'',
365
+ "login_img" => '<a title="'.$login_text.'" class="image user-tooltip"></a>'.$counter.'',
366
+ "login_text" => '<a title="'.$login_text.'" class="text user-tooltip">'.$button_text.'</a>'.$counter.''
367
+ );
368
+ }
369
+
370
+ /**
371
+ * Get User Status (like/dislike)
372
+ *
373
+ * @author Alimir
374
+ * @param String $table
375
+ * @param String $first_column
376
+ * @param String $second_column
377
+ * @param String $first_val
378
+ * @param String $second_val
379
+ * @since 2.0
380
+ * @return String
381
+ */
382
+ public function get_user_status($table,$first_column,$second_column,$first_val,$second_val){
383
+ $like_status = $this->wpdb->get_var("SELECT status FROM ".$this->wpdb->prefix."$table WHERE $first_column = '$first_val' AND $second_column = '$second_val'");
384
+ if ($like_status == "like")
385
+ return "like";
386
+ else
387
+ return "unlike";
388
+ }
389
+
390
+ /**
391
+ * Get Liked User
392
+ *
393
+ * @author Alimir
394
+ * @param Integer $id
395
+ * @param String $table
396
+ * @param String $column_id
397
+ * @param String $setting_key
398
+ * @since 2.0
399
+ * @return String
400
+ */
401
+ public function get_liked_users($id,$table,$column_id,$setting_key){
402
+ $users_list = '';
403
+ $limit_num = wp_ulike_get_setting( $setting_key, 'number_of_users');
404
+ if($limit_num == 0) $limit_num = 10;
405
+ $get_users = $this->wpdb->get_results("SELECT user_id FROM ".$this->wpdb->prefix."$table WHERE $column_id = '$id' GROUP BY user_id LIMIT $limit_num");
406
+ if(wp_ulike_get_setting( $setting_key, 'users_liked_box') == '1' && !$get_users == ''){
407
+ $get_template = wp_ulike_get_setting( $setting_key, 'users_liked_box_template' );
408
+ if($get_template == '')
409
+ $get_template = '<br /><p style="margin-top:5px"> '.__('Users who have LIKED this post:','alimir').'</p> <ul class="tiles"> %START_WHILE% <li><a class="user-tooltip" title="%USER_NAME%">%USER_AVATAR%</a></li> %END_WHILE%</ul>';
410
+ $inner_template = $this->get_template_between($get_template,"%START_WHILE%","%END_WHILE%");
411
+ foreach ( $get_users as $get_user )
412
+ {
413
+ $user_info = get_userdata($get_user->user_id);
414
+ $out_template = $inner_template;
415
+ if ($user_info):
416
+ if (strpos($out_template, '%USER_AVATAR%') !== false) {
417
+ $avatar_size = wp_ulike_get_setting( $setting_key, 'users_liked_box_avatar_size');
418
+ $USER_AVATAR = get_avatar( $user_info->user_email, $avatar_size, '' , 'avatar');
419
+ $out_template = str_replace("%USER_AVATAR%", $USER_AVATAR, $out_template);
420
+ }
421
+ if (strpos($out_template, '%USER_NAME%') !== false) {
422
+ $USER_NAME = $user_info->display_name;
423
+ $out_template = str_replace("%USER_NAME%", $USER_NAME, $out_template);
424
+ }
425
+ $users_list .= $out_template;
426
+ endif;
427
+ }
428
+ if($users_list!='')
429
+ $users_list = $this->put_template_between($get_template,$users_list,"%START_WHILE%","%END_WHILE%");
430
+ }
431
+ return $users_list;
432
+ }
433
+
434
+ /*
435
+ public function get_liked_users_by_ajax($id,$table,$column_id){
436
+ $users_list = '';
437
+ $get_users = $this->wpdb->get_results("SELECT user_id FROM ".$this->wpdb->prefix."$table WHERE $column_id = '$id' GROUP BY user_id");
438
+ if($get_users != ''){
439
+ foreach ( $get_users as $get_user )
440
+ {
441
+ $user_info = get_userdata($get_user->user_id);
442
+ if ($user_info):
443
+ $users_list .= '<li>'.$user_info->display_name.'</li>';
444
+ endif;
445
+ }
446
+ }
447
+ echo '<ul>'.$users_list.'</ul>';
448
+ die();
449
+ }
450
+ */
451
+
452
+ /**
453
+ * Get template between
454
+ *
455
+ * @author Alimir
456
+ * @param String $string
457
+ * @param String $start
458
+ * @param String $end
459
+ * @since 2.0
460
+ * @return String
461
+ */
462
+ public function get_template_between($string, $start, $end){
463
+ $string = " ".$string;
464
+ $ini = strpos($string,$start);
465
+ if ($ini == 0) return "";
466
+ $ini += strlen($start);
467
+ $len = strpos($string,$end,$ini) - $ini;
468
+ return substr($string,$ini,$len);
469
+ }
470
+
471
+ /**
472
+ * Put template between
473
+ *
474
+ * @author Alimir
475
+ * @param String $string
476
+ * @param String $inner_string
477
+ * @param String $start
478
+ * @param String $end
479
+ * @since 2.0
480
+ * @return String
481
+ */
482
+ public function put_template_between($string,$inner_string, $start, $end){
483
+ $string = " ".$string;
484
+ $ini = strpos($string,$start);
485
+ if ($ini == 0) return "";
486
+ $ini += strlen($start);
487
+ $len = strpos($string,$end,$ini) - $ini;
488
+ $newstr = substr_replace($string,$inner_string,$ini,$len);
489
+ return str_replace(array("%START_WHILE%", "%END_WHILE%"),array("", ""), $newstr);
490
+ }
491
+
492
+ /**
493
+ * Return user ID
494
+ *
495
+ * @author Alimir
496
+ * @since 2.0
497
+ * @return String
498
+ */
499
+ function get_reutrn_id(){
500
+ global $user_ID,$wp_user_IP;
501
+ if(!is_user_logged_in()){
502
+ return ip2long($wp_user_IP);
503
+ }
504
+ else
505
+ return $user_ID;
506
+ }
507
+
508
+
509
+ }
510
+
511
+ //global variables
512
+ global $wp_ulike_class;
513
+ $wp_ulike_class = new wp_ulike();
514
+
515
+ }
inc/wp-functions.php CHANGED
@@ -4,13 +4,27 @@
4
  Posts Likes Functions
5
  *******************************************************/
6
 
7
- //Shortcode function for the post likes
 
 
 
 
 
 
8
  add_shortcode( 'wp_ulike', 'wp_ulike_shortcode' );
9
  function wp_ulike_shortcode(){
10
  return wp_ulike('put');
11
  }
12
 
13
- //Insert ULike button to the posts
 
 
 
 
 
 
 
 
14
  if (wp_ulike_get_setting( 'wp_ulike_posts', 'auto_display' ) == '1') {
15
  function wp_ulike_put_posts($content) {
16
  //auto display position
@@ -36,7 +50,13 @@
36
  add_filter('the_content', 'wp_ulike_put_posts');
37
  }
38
 
39
- //check the auto display filters
 
 
 
 
 
 
40
  function wp_ulike_post_auto_display_filters(){
41
  $filter = wp_ulike_get_setting( 'wp_ulike_posts', 'auto_display_filter');
42
  if(is_home() && $filter['home'] == '1')
@@ -58,49 +78,15 @@
58
  else
59
  return 1;
60
  }
61
-
62
- //get user status by user_ID (like or unlike)
63
- function wp_ulike_get_user_post_status($post_ID,$user_ID){
64
- global $wpdb;
65
- $like_status = $wpdb->get_var("SELECT status FROM ".$wpdb->prefix."ulike WHERE post_id = '$post_ID' AND user_id = '$user_ID'");
66
- if ($like_status == "like")
67
- return "like";
68
- else
69
- return "unlike";
70
- }
71
-
72
- //get user status by user_IP (like or unlike)
73
- function wp_ulike_get_user_post_status_byIP($post_ID,$user_IP){
74
- global $wpdb;
75
- $like_status = $wpdb->get_var("SELECT status FROM ".$wpdb->prefix."ulike WHERE post_id = '$post_ID' AND ip = '$user_IP'");
76
- if ($like_status == "like")
77
- return "like";
78
- else
79
- return "unlike";
80
- }
81
-
82
-
83
-
84
- //get users data and list their avatar
85
- function wp_ulike_get_user_posts_data($post_ID,$user_ID){
86
- global $wpdb;
87
- $users_list = '';
88
-
89
- $get_users = $wpdb->get_results("SELECT user_id FROM ".$wpdb->prefix."ulike WHERE post_id = '$post_ID' GROUP BY user_id");
90
-
91
- foreach ( $get_users as $get_user )
92
- {
93
- $user_info = get_userdata($get_user->user_id);
94
- if ($user_ID != $get_user->user_id && $user_info):
95
- $avatar_size = wp_ulike_get_setting( 'wp_ulike_posts', 'users_liked_box_avatar_size');
96
- $users_list .= '<li><a class="user-tooltip" title="'.$user_info->display_name.'">'.get_avatar( $user_info->user_email, $avatar_size, '' , 'avatar').'</a></li>';
97
- endif;
98
- }
99
-
100
- return $users_list;
101
- }
102
 
103
- //get the post likes number
 
 
 
 
 
 
 
104
  function wp_ulike_get_post_likes($postID){
105
  $val = get_post_meta($postID, '_liked', true);
106
  return wp_ulike_format_number($val);
@@ -112,7 +98,15 @@
112
  Comments Likes Functions
113
  *******************************************************/
114
 
115
- //Insert ULike button to the comments
 
 
 
 
 
 
 
 
116
  if (wp_ulike_get_setting( 'wp_ulike_comments', 'auto_display' ) == '1' && !is_admin()) {
117
  function wp_ulike_put_comments($content) {
118
  //auto display position
@@ -135,52 +129,20 @@
135
  add_filter('comment_text', 'wp_ulike_put_comments');
136
  }
137
 
138
- //get user comment status (like or unlike)
139
- function wp_ulike_get_user_comments_status($CommentID,$user_ID){
140
- global $wpdb;
141
- $like_status = $wpdb->get_var("SELECT status FROM ".$wpdb->prefix."ulike_comments WHERE comment_id = '$CommentID' AND user_id = '$user_ID'");
142
- if ($like_status == "like")
143
- return "like";
144
- else
145
- return "unlike";
146
- }
147
-
148
- //get user status by user_IP (like or unlike)
149
- function wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP){
150
- global $wpdb;
151
- $like_status = $wpdb->get_var("SELECT status FROM ".$wpdb->prefix."ulike_comments WHERE comment_id = '$CommentID' AND ip = '$user_IP'");
152
- if ($like_status == "like")
153
- return "like";
154
- else
155
- return "unlike";
156
- }
157
 
158
- //get users data and list their avatar
159
- function wp_ulike_get_user_comments_data($CommentID,$user_ID){
160
- global $wpdb;
161
- $users_list = '';
162
-
163
- $get_users = $wpdb->get_results("SELECT user_id FROM ".$wpdb->prefix."ulike_comments WHERE comment_id = '$CommentID' GROUP BY user_id");
164
-
165
- foreach ( $get_users as $get_user )
166
- {
167
- $user_info = get_userdata($get_user->user_id);
168
- if ($user_ID != $get_user->user_id && $user_info):
169
- $avatar_size = wp_ulike_get_setting( 'wp_ulike_comments', 'users_liked_box_avatar_size');
170
- $users_list .= '<li><a class="user-tooltip" title="'.$user_info->display_name.'">'.get_avatar( $user_info->user_email, $avatar_size, '' , 'avatar').'</a></li>';
171
- endif;
172
- }
173
-
174
- return $users_list;
175
- }
176
-
177
-
178
 
179
  /*******************************************************
180
  BuddyPress Likes Functions
181
  *******************************************************/
182
 
183
- //Insert ULike button to the activities
 
 
 
 
 
 
 
184
  if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'auto_display' ) == '1' && !is_admin()) {
185
  function wp_ulike_put_buddypress($content) {
186
  $content.= wp_ulike_buddypress('put');
@@ -190,47 +152,13 @@
190
  add_filter('bp_get_activity_action', 'wp_ulike_put_buddypress');
191
  }
192
 
193
- //get users data and list their avatar
194
- function wp_ulike_get_user_activities_data($activityID,$user_ID){
195
- global $wpdb;
196
- $users_list = '';
197
-
198
- $get_users = $wpdb->get_results("SELECT user_id FROM ".$wpdb->prefix."ulike_activities WHERE activity_id = '$activityID' GROUP BY user_id");
199
-
200
- foreach ( $get_users as $get_user )
201
- {
202
- $user_info = get_userdata($get_user->user_id);
203
- if ($user_ID != $get_user->user_id && $user_info):
204
- $avatar_size = wp_ulike_get_setting( 'wp_ulike_buddypress', 'users_liked_box_avatar_size');
205
- $users_list .= '<li><a class="user-tooltip" title="'.$user_info->display_name.'">'.get_avatar( $user_info->user_email, $avatar_size, '' , 'avatar').'</a></li>';
206
- endif;
207
- }
208
-
209
- return $users_list;
210
-
211
- }
212
-
213
- //get user activity status (like or unlike)
214
- function wp_ulike_get_user_activities_status($activityID,$user_ID){
215
- global $wpdb;
216
- $like_status = $wpdb->get_var("SELECT status FROM ".$wpdb->prefix."ulike_activities WHERE activity_id = '$activityID' AND user_id = '$user_ID'");
217
- if ($like_status == "like")
218
- return "like";
219
- else
220
- return "unlike";
221
- }
222
-
223
- //get user status by user_IP (like or unlike)
224
- function wp_ulike_get_user_activities_status_byIP($activityID,$user_IP){
225
- global $wpdb;
226
- $like_status = $wpdb->get_var("SELECT status FROM ".$wpdb->prefix."ulike_activities WHERE activity_id = '$activityID' AND ip = '$user_IP'");
227
- if ($like_status == "like")
228
- return "like";
229
- else
230
- return "unlike";
231
- }
232
-
233
- //register activity action
234
  add_action( 'bp_register_activity_actions', 'wp_ulike_register_activity_actions' );
235
  function wp_ulike_register_activity_actions() {
236
  global $bp;
@@ -241,23 +169,74 @@
241
  );
242
  }
243
 
244
- //add activity function
 
 
 
 
 
 
 
 
 
 
245
  function wp_ulike_bp_activity_add($user_ID,$cp_ID,$type){
246
  if (function_exists('bp_is_active') && wp_ulike_get_setting( 'wp_ulike_buddypress', 'new_likes_activity' ) == '1') {
247
- if($type=='comment'){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  bp_activity_add( array(
249
  'user_id' => $user_ID,
250
- 'action' => '<strong>'.bp_core_get_userlink($user_ID).'</strong> '.__('liked','alimir').' <strong>'.get_comment_author($cp_ID).'</strong> '.__('comment','alimir').'. (So far, '.get_comment_author($cp_ID).' has <span class="badge">'. get_comment_meta($cp_ID, '_commentliked', true) .'</span> likes for this comment)',
251
  'component' => 'activity',
252
  'type' => 'wp_like_group',
253
  'item_id' => $cp_ID
254
  ));
255
  }
256
- else if($type=='post'){
257
- $parent_title = get_the_title($cp_ID);
258
  bp_activity_add( array(
259
  'user_id' => $user_ID,
260
- 'action' => '<strong>'.bp_core_get_userlink($user_ID).'</strong> '.__('liked','alimir').' <a href="'.get_permalink($cp_ID). '" title="'.$parent_title.'">'.$parent_title.'</a>. (So far, This post has <span class="badge">'.get_post_meta($cp_ID, '_liked', true).'</span> likes)',
261
  'component' => 'activity',
262
  'type' => 'wp_like_group',
263
  'item_id' => $cp_ID
@@ -275,7 +254,17 @@
275
  General Functions
276
  *******************************************************/
277
 
278
- //get real IP
 
 
 
 
 
 
 
 
 
 
279
  function wp_ulike_get_real_ip() {
280
  if (getenv('HTTP_CLIENT_IP')) {
281
  $ip = getenv('HTTP_CLIENT_IP');
@@ -293,18 +282,15 @@
293
 
294
  return $ip;
295
  }
296
-
297
- function wp_ulike_reutrn_userID($user_ID){
298
- if(!is_user_logged_in()){
299
- $ip = wp_ulike_get_real_ip();
300
- $user_ip = ip2long($ip);
301
- return $user_ip;
302
- }
303
- else
304
- return $user_ID;
305
- }
306
 
307
- //get custom style settings
 
 
 
 
 
 
 
308
  function wp_ulike_get_custom_style(){
309
  $btn_style = '';
310
  $counter_style = '';
@@ -336,23 +322,23 @@
336
 
337
 
338
  if($btn_bg != ''){
339
- $btn_style .= "background-color:$btn_bg !important; ";
340
  }
341
  if($btn_border != ''){
342
- $btn_style .= "border-color:$btn_border !important; ";
343
  }
344
  if($btn_color != ''){
345
- $btn_style .= "color:$btn_color !important;";
346
  }
347
 
348
  if($counter_bg != ''){
349
- $counter_style .= "background-color:$counter_bg !important; ";
350
  }
351
  if($counter_border != ''){
352
- $counter_style .= "border-color:$counter_border !important; ";
353
  }
354
  if($counter_color != ''){
355
- $counter_style .= "color:$counter_color !important;";
356
  }
357
 
358
  }
@@ -395,13 +381,27 @@
395
  }
396
  }
397
 
398
- //Convert numbers of Likes with string (kilobyte) format.
 
 
 
 
 
 
 
 
399
  function wp_ulike_format_number($num){
400
- $plus = '+';
401
  if ($num >= 1000 && wp_ulike_get_setting( 'wp_ulike_general', 'format_number' ) == '1')
402
  $value = round($num/1000, 2) . 'K' . $plus;
403
  else
404
  $value = $num . $plus;
405
  $value = apply_filters( 'wp_ulike_format_number', $value, $num, $plus);
406
  return $value;
407
- }
 
 
 
 
 
 
4
  Posts Likes Functions
5
  *******************************************************/
6
 
7
+ /**
8
+ * Create ShortCode: [wp_ulike]
9
+ *
10
+ * @author Alimir
11
+ * @since 1.4
12
+ * @return wp_ulike button
13
+ */
14
  add_shortcode( 'wp_ulike', 'wp_ulike_shortcode' );
15
  function wp_ulike_shortcode(){
16
  return wp_ulike('put');
17
  }
18
 
19
+ /**
20
+ * Auto insert wp_ulike function in the posts/pages content
21
+ *
22
+ * @author Alimir
23
+ * @param String $content
24
+ * @since 1.0
25
+ * @updated 1.9
26
+ * @return filter on "the_content"
27
+ */
28
  if (wp_ulike_get_setting( 'wp_ulike_posts', 'auto_display' ) == '1') {
29
  function wp_ulike_put_posts($content) {
30
  //auto display position
50
  add_filter('the_content', 'wp_ulike_put_posts');
51
  }
52
 
53
+ /**
54
+ * Auto display filtering on posts/pages content
55
+ *
56
+ * @author Alimir
57
+ * @since 1.9
58
+ * @return boolean
59
+ */
60
  function wp_ulike_post_auto_display_filters(){
61
  $filter = wp_ulike_get_setting( 'wp_ulike_posts', 'auto_display_filter');
62
  if(is_home() && $filter['home'] == '1')
78
  else
79
  return 1;
80
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
+ /**
83
+ * Get The Post like number
84
+ *
85
+ * @author Alimir
86
+ * @param Integer $postID
87
+ * @since 1.7
88
+ * @return String
89
+ */
90
  function wp_ulike_get_post_likes($postID){
91
  $val = get_post_meta($postID, '_liked', true);
92
  return wp_ulike_format_number($val);
98
  Comments Likes Functions
99
  *******************************************************/
100
 
101
+ /**
102
+ * Auto insert wp_ulike_comments in the comments content
103
+ *
104
+ * @author Alimir
105
+ * @param String $content
106
+ * @since 1.6
107
+ * @updated 1.9
108
+ * @return filter on "comment_text"
109
+ */
110
  if (wp_ulike_get_setting( 'wp_ulike_comments', 'auto_display' ) == '1' && !is_admin()) {
111
  function wp_ulike_put_comments($content) {
112
  //auto display position
129
  add_filter('comment_text', 'wp_ulike_put_comments');
130
  }
131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
 
134
  /*******************************************************
135
  BuddyPress Likes Functions
136
  *******************************************************/
137
 
138
+ /**
139
+ * Auto insert wp_ulike_buddypress in the comments content
140
+ *
141
+ * @author Alimir
142
+ * @param String $content
143
+ * @since 1.7
144
+ * @return filter on "bp_get_activity_action"
145
+ */
146
  if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'auto_display' ) == '1' && !is_admin()) {
147
  function wp_ulike_put_buddypress($content) {
148
  $content.= wp_ulike_buddypress('put');
152
  add_filter('bp_get_activity_action', 'wp_ulike_put_buddypress');
153
  }
154
 
155
+ /**
156
+ * Register "WP ULike Activity" action
157
+ *
158
+ * @author Alimir
159
+ * @since 1.7
160
+ * @return Add action on "bp_register_activity_actions"
161
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  add_action( 'bp_register_activity_actions', 'wp_ulike_register_activity_actions' );
163
  function wp_ulike_register_activity_actions() {
164
  global $bp;
169
  );
170
  }
171
 
172
+ /**
173
+ * Add new buddypress activities on each like. (Post/Comments)
174
+ *
175
+ * @author Alimir
176
+ * @param Integer $user_ID (User ID)
177
+ * @param Integer $cp_ID (Post/Comment ID)
178
+ * @param String $type (Simple Key for separate posts by comments)
179
+ * @since 1.6
180
+ * @updated 2.0
181
+ * @return Void
182
+ */
183
  function wp_ulike_bp_activity_add($user_ID,$cp_ID,$type){
184
  if (function_exists('bp_is_active') && wp_ulike_get_setting( 'wp_ulike_buddypress', 'new_likes_activity' ) == '1') {
185
+
186
+ // Replace the post variables
187
+ $post_template = wp_ulike_get_setting( 'wp_ulike_buddypress', 'bp_post_activity_add_header' );
188
+ if($post_template == '')
189
+ $post_template = '<strong>%POST_LIKER%</strong> liked <a href="%POST_PERMALINK%" title="%POST_TITLE%">%POST_TITLE%</a>. (So far, This post has <span class="badge">%POST_COUNT%</span> likes)';
190
+
191
+ if (strpos($post_template, '%POST_LIKER%') !== false) {
192
+ $POST_LIKER = bp_core_get_userlink($user_ID);
193
+ $post_template = str_replace("%POST_LIKER%", $POST_LIKER, $post_template);
194
+ }
195
+ if (strpos($post_template, '%POST_PERMALINK%') !== false) {
196
+ $POST_PERMALINK = get_permalink($cp_ID);
197
+ $post_template = str_replace("%POST_PERMALINK%", $POST_PERMALINK, $post_template);
198
+ }
199
+ if (strpos($post_template, '%POST_COUNT%') !== false) {
200
+ $POST_COUNT = get_post_meta($cp_ID, '_liked', true);
201
+ $post_template = str_replace("%POST_COUNT%", $POST_COUNT, $post_template);
202
+ }
203
+ if (strpos($post_template, '%POST_TITLE%') !== false) {
204
+ $POST_TITLE = get_the_title($cp_ID);
205
+ $post_template = str_replace("%POST_TITLE%", $POST_TITLE, $post_template);
206
+ }
207
+
208
+ // Replace the comment variables
209
+ $comment_template = wp_ulike_get_setting( 'wp_ulike_buddypress', 'bp_comment_activity_add_header' );
210
+ if($comment_template == '')
211
+ $comment_template = '<strong>%COMMENT_LIKER%</strong> liked <strong>%COMMENT_AUTHOR%</strong> comment. (So far, %COMMENT_AUTHOR% has <span class="badge">%COMMENT_COUNT%</span> likes for this comment)';
212
+
213
+ if (strpos($comment_template, '%COMMENT_LIKER%') !== false) {
214
+ $COMMENT_LIKER = bp_core_get_userlink($user_ID);
215
+ $comment_template = str_replace("%COMMENT_LIKER%", $COMMENT_LIKER, $comment_template);
216
+ }
217
+ if (strpos($comment_template, '%COMMENT_AUTHOR%') !== false) {
218
+ $COMMENT_AUTHOR = get_comment_author($cp_ID);
219
+ $comment_template = str_replace("%COMMENT_AUTHOR%", $COMMENT_AUTHOR, $comment_template);
220
+ }
221
+ if (strpos($comment_template, '%COMMENT_COUNT%') !== false) {
222
+ $COMMENT_COUNT = get_comment_meta($cp_ID, '_commentliked', true);
223
+ $comment_template = str_replace("%COMMENT_COUNT%", $COMMENT_COUNT, $comment_template);
224
+ }
225
+
226
+ //create bp_activity_add
227
+ if($type=='_commentliked'){
228
  bp_activity_add( array(
229
  'user_id' => $user_ID,
230
+ 'action' => $comment_template,
231
  'component' => 'activity',
232
  'type' => 'wp_like_group',
233
  'item_id' => $cp_ID
234
  ));
235
  }
236
+ else if($type=='_liked'){
 
237
  bp_activity_add( array(
238
  'user_id' => $user_ID,
239
+ 'action' => $post_template,
240
  'component' => 'activity',
241
  'type' => 'wp_like_group',
242
  'item_id' => $cp_ID
254
  General Functions
255
  *******************************************************/
256
 
257
+ //Create global variable of user IP
258
+ global $wp_user_IP;
259
+ $wp_user_IP = wp_ulike_get_real_ip();
260
+
261
+ /**
262
+ * Get the real IP
263
+ *
264
+ * @author Alimir
265
+ * @since 1.1
266
+ * @return Void
267
+ */
268
  function wp_ulike_get_real_ip() {
269
  if (getenv('HTTP_CLIENT_IP')) {
270
  $ip = getenv('HTTP_CLIENT_IP');
282
 
283
  return $ip;
284
  }
 
 
 
 
 
 
 
 
 
 
285
 
286
+ /**
287
+ * Get custom style setting from customize options
288
+ *
289
+ * @author Alimir
290
+ * @since 1.3
291
+ * @updated 1.8
292
+ * @return Void (Print new CSS styles)
293
+ */
294
  function wp_ulike_get_custom_style(){
295
  $btn_style = '';
296
  $counter_style = '';
322
 
323
 
324
  if($btn_bg != ''){
325
+ $btn_style .= "background-color:$btn_bg !important; ";
326
  }
327
  if($btn_border != ''){
328
+ $btn_style .= "border-color:$btn_border !important; ";
329
  }
330
  if($btn_color != ''){
331
+ $btn_style .= "color:$btn_color !important;";
332
  }
333
 
334
  if($counter_bg != ''){
335
+ $counter_style .= "background-color:$counter_bg !important; ";
336
  }
337
  if($counter_border != ''){
338
+ $counter_style .= "border-color:$counter_border !important; ";
339
  }
340
  if($counter_color != ''){
341
+ $counter_style .= "color:$counter_color !important;";
342
  }
343
 
344
  }
381
  }
382
  }
383
 
384
+ /**
385
+ * Convert numbers of Likes with string (kilobyte) format
386
+ *
387
+ * @author Alimir
388
+ * @param Integer $num (get like number)
389
+ * @since 1.5
390
+ * @updated 2.0
391
+ * @return String
392
+ */
393
  function wp_ulike_format_number($num){
394
+ $plus = $num != 0 ? '+' : '';
395
  if ($num >= 1000 && wp_ulike_get_setting( 'wp_ulike_general', 'format_number' ) == '1')
396
  $value = round($num/1000, 2) . 'K' . $plus;
397
  else
398
  $value = $num . $plus;
399
  $value = apply_filters( 'wp_ulike_format_number', $value, $num, $plus);
400
  return $value;
401
+ }
402
+
403
+ /*******************************************************
404
+ WP ULike Class
405
+ *******************************************************/
406
+
407
+ include( plugin_dir_path(__FILE__) . 'classes/class-ulike.php');
inc/wp-script.php CHANGED
@@ -1,38 +1,59 @@
1
  <?php
2
 
3
- //JS
4
- add_action('init', 'wp_ulike_enqueue_scripts');
5
- function wp_ulike_enqueue_scripts() {
6
- wp_enqueue_script( 'jquery' );
7
- wp_enqueue_script('wp_ulike', plugins_url('assets/js/wp-ulike-scripts.js', dirname(__FILE__)), array('jquery'), '1.0.0');
8
- wp_enqueue_script('wp_ulike_plugins', plugins_url('assets/js/wp-ulike-plugins.js', dirname(__FILE__)), array('jquery'), '1.0.0');
9
 
10
- wp_localize_script( 'wp_ulike', 'ulike_obj', array(
11
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
12
- 'text_after_like' => wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like'),
13
- 'text_after_unlike' => wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike'),
14
- 'button_text' => wp_ulike_get_setting( 'wp_ulike_general', 'button_text'),
15
- 'button_type' => wp_ulike_get_setting( 'wp_ulike_general', 'button_type'),
16
- 'return_initial_after_unlike' => wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike')
17
- ));
18
- add_action('wp_ajax_ulikeprocess','wp_ulike_process');
19
- add_action('wp_ajax_nopriv_ulikeprocess', 'wp_ulike_process');
20
- add_action('wp_ajax_ulikecommentprocess','wp_ulike_comments_process');
21
- add_action('wp_ajax_nopriv_ulikecommentprocess', 'wp_ulike_comments_process');
22
- add_action('wp_ajax_ulikebuddypressprocess','wp_ulike_buddypress_process');
23
- add_action('wp_ajax_nopriv_ulikebuddypressprocess', 'wp_ulike_buddypress_process');
24
- }
25
-
26
- //CSS
27
- add_action('wp_print_styles', 'wp_ulike_enqueue_style');
28
- function wp_ulike_enqueue_style() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- //Plugin default style for RTL & LTR languages.
31
- if(!is_rtl())
32
- wp_enqueue_style( 'wp-ulike', plugins_url('assets/css/wp-ulike.css', dirname(__FILE__)) );
33
- else
34
- wp_enqueue_style( 'wp-ulike', plugins_url('assets/css/wp-ulike-rtl.css', dirname(__FILE__)) );
 
 
 
 
35
 
36
- //add your custom style from setting panel.
37
- wp_ulike_get_custom_style();
38
- }
 
 
 
 
 
 
 
1
  <?php
2
 
3
+ if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed
 
 
 
 
 
4
 
5
+ /**
6
+ * Add Plugin script files + Creating Localize Objects
7
+ *
8
+ * @author Alimir
9
+ * @since 1.0
10
+ * @updated 1.9
11
+ * @return void
12
+ */
13
+ add_action('init', 'wp_ulike_enqueue_scripts');
14
+
15
+ function wp_ulike_enqueue_scripts() {
16
+ //enqueue JQuery script
17
+ wp_enqueue_script( 'jquery' );
18
+ //Add ulike script file with special functions.
19
+ wp_enqueue_script('wp_ulike', plugins_url('assets/js/wp-ulike-scripts.js', dirname(__FILE__)), array('jquery'), '1.0.0');
20
+ //Add ulike plugin file, such as: tooltip, transaction, ...
21
+ wp_enqueue_script('wp_ulike_plugins', plugins_url('assets/js/wp-ulike-plugins.js', dirname(__FILE__)), array('jquery'), '1.0.0', true);
22
+ //localize script
23
+ wp_localize_script( 'wp_ulike', 'ulike_obj', array(
24
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
25
+ 'text_after_like' => wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like'),
26
+ 'text_after_unlike' => wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike'),
27
+ 'button_text' => wp_ulike_get_setting( 'wp_ulike_general', 'button_text'),
28
+ 'button_type' => wp_ulike_get_setting( 'wp_ulike_general', 'button_type'),
29
+ 'return_initial_after_unlike' => wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike')
30
+ ));
31
+ //wp_ajax hooks for the custom AJAX requests
32
+ add_action('wp_ajax_ulikeprocess','wp_ulike_process');
33
+ add_action('wp_ajax_nopriv_ulikeprocess', 'wp_ulike_process');
34
+ add_action('wp_ajax_ulikecommentprocess','wp_ulike_comments_process');
35
+ add_action('wp_ajax_nopriv_ulikecommentprocess', 'wp_ulike_comments_process');
36
+ add_action('wp_ajax_ulikebuddypressprocess','wp_ulike_buddypress_process');
37
+ add_action('wp_ajax_nopriv_ulikebuddypressprocess', 'wp_ulike_buddypress_process');
38
+ }
39
 
40
+ /**
41
+ * Add Plugin styles for RTL & LTR languages + Custom Style Support
42
+ *
43
+ * @author Alimir
44
+ * @since 1.0
45
+ * @updated 1.8
46
+ * @return Void (Enqueue CSS styles)
47
+ */
48
+ add_action('wp_print_styles', 'wp_ulike_enqueue_style');
49
 
50
+ function wp_ulike_enqueue_style() {
51
+ if(!is_rtl()){
52
+ wp_enqueue_style( 'wp-ulike', plugins_url('assets/css/wp-ulike.css', dirname(__FILE__)) );
53
+ }
54
+ else{
55
+ wp_enqueue_style( 'wp-ulike', plugins_url('assets/css/wp-ulike-rtl.css', dirname(__FILE__)) );
56
+ }
57
+ //add your custom style from setting panel.
58
+ wp_ulike_get_custom_style();
59
+ }
inc/wp-strings.php CHANGED
@@ -1,9 +1,5 @@
1
  <?php
2
  $wp_ulike_string = array(
3
- "4" => __('WP ULike - Most Liked Activities', 'alimir'),
4
- "5" => __( 'This widget allows you to show most liked activities.', 'alimir' ),
5
- "6" => __('Most Liked Activities', 'alimir'),
6
- "7" => __('Users Login Text', 'alimir'),
7
  "8" => __('Allow To Like', 'alimir'),
8
  "9" => __('Guests Only', 'alimir'),
9
  "10" => __('Registered Users Only', 'alimir'),
1
  <?php
2
  $wp_ulike_string = array(
 
 
 
 
3
  "8" => __('Allow To Like', 'alimir'),
4
  "9" => __('Guests Only', 'alimir'),
5
  "10" => __('Registered Users Only', 'alimir'),
inc/wp-ulike-buddypress.php CHANGED
@@ -1,36 +1,49 @@
1
- <?php
2
- //main activities function
 
 
 
 
 
 
 
 
3
  function wp_ulike_buddypress($arg) {
 
 
 
 
 
 
 
 
4
  if(
5
  (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') != '1')
6
  or
7
  (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && is_user_logged_in())
8
  ){
9
 
10
- global $user_ID;
11
- $activityID = bp_get_activity_id();
12
- $counter = '';
13
- $return_userID = wp_ulike_reutrn_userID($user_ID);
14
- $loggin_method = wp_ulike_get_setting( 'wp_ulike_buddypress', 'logging_method');
15
-
16
- if($loggin_method == 'do_not_log')
17
- $counter = wp_ulike_activities_do_not_log_method($activityID,'activity');
18
- else if($loggin_method == 'by_cookie')
19
- $counter = wp_ulike_activities_loggedby_cookie_method($activityID,'activity');
20
- else if($loggin_method == 'by_ip')
21
- $counter = wp_ulike_activities_loggedby_ip_method($activityID,$return_userID,'activity');
22
- else if($loggin_method == 'by_cookie_ip')
23
- $counter = wp_ulike_activities_loggedby_cookie_ip_method($activityID,$return_userID,'activity');
24
- else
25
- $counter = wp_ulike_activities_loggedby_username_method($activityID,$return_userID,'activity');
26
-
27
- $wp_ulike = '<div id="wp-ulike-activity-'.$activityID.'" class="wpulike">';
28
- $wp_ulike .= '<div class="counter">'.$counter.'</div>';
29
- $wp_ulike .= '</div>';
30
 
31
- $user_data = wp_ulike_get_user_activities_data($activityID,$return_userID);
32
- if(wp_ulike_get_setting( 'wp_ulike_buddypress', 'users_liked_box') == '1' && $user_data != '')
33
- $wp_ulike .= '<p style="margin-top:5px">'.wp_ulike_get_setting( 'wp_ulike_buddypress', 'users_liked_box_title').'</p><ul class="tiles">' . $user_data . '</ul>';
 
34
 
35
  if ($arg == 'put') {
36
  return $wp_ulike;
@@ -39,360 +52,58 @@
39
  echo $wp_ulike;
40
  }
41
 
42
- }
43
 
44
  else if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && !is_user_logged_in()){
45
- return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this activity: ','alimir').'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here','alimir').' </a></p>';
46
- }
47
-
48
- }
49
-
50
- //Do Not Log Method
51
- function wp_ulike_activities_do_not_log_method($activityID,$type){
52
-
53
- $get_like = bp_activity_get_meta($activityID, '_activityliked') != '' ? bp_activity_get_meta($activityID, '_activityliked') : 0;
54
- $liked = wp_ulike_format_number($get_like);
55
- $counter = '';
56
-
57
- if($type == 'activity'){
58
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
59
- $counter = '<a onclick="likeThisActivity('.$activityID.', 2, 2);" class="image"></a><span class="count-box">'.$liked.'</span>';
60
- }
61
- else {
62
- $counter = '<a onclick="likeThisActivity('.$activityID.', 2, 2);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
63
- }
64
- }//end activity button
65
- else if($type == 'process'){
66
- $newLike = $get_like + 1;
67
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
68
- echo wp_ulike_format_number($newLike);
69
- }//end activity process
70
-
71
- return $counter;
72
- }
73
-
74
-
75
- //Logged By Cookie
76
- function wp_ulike_activities_loggedby_cookie_method($activityID,$type){
77
-
78
- $get_like = bp_activity_get_meta($activityID, '_activityliked') != '' ? bp_activity_get_meta($activityID, '_activityliked') : 0;
79
- $liked = wp_ulike_format_number($get_like);
80
- $counter = '';
81
-
82
- if($type == 'activity'){
83
- if(!isset($_COOKIE['activity-liked-'.$activityID])){
84
  if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
85
- $counter = '<a onclick="likeThisActivity('.$activityID.', 2, 2);" class="image"></a><span class="count-box">'.$liked.'</span>';
86
  }
87
  else {
88
- $counter = '<a onclick="likeThisActivity('.$activityID.', 2, 2);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
89
  }
90
  }
91
- else{
92
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
93
- $counter = '<a title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'" class="image user-tooltip"></a><span class="count-box">'.$liked.'</span>';
94
- }
95
- else {
96
- $counter = '<a title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'" class="text user-tooltip">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
97
- }
98
- }
99
- }//end activity button
100
- else if($type == 'process'){
101
- if(!isset($_COOKIE['activity-liked-'.$activityID])){
102
- $newLike = $get_like + 1;
103
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
104
- setcookie('activity-liked-'.$activityID, time(), time()+3600*24*365, '/');
105
- echo wp_ulike_format_number($newLike);
106
- }
107
- else{
108
- echo wp_ulike_format_number($get_like);
109
- }
110
- }//end activity process
111
 
112
- return $counter;
113
  }
114
-
115
- //Logged By IP
116
- function wp_ulike_activities_loggedby_ip_method($activityID,$return_userID,$type){
117
-
118
- global $wpdb;
119
-
120
- $get_like = bp_activity_get_meta($activityID, '_activityliked') != '' ? bp_activity_get_meta($activityID, '_activityliked') : 0;
121
- $liked = wp_ulike_format_number($get_like);
122
- $user_IP = wp_ulike_get_real_ip();
123
- $counter = '';
124
-
125
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_activities WHERE activity_id = '$activityID' AND ip = '$user_IP'");
126
-
127
- if($type == 'activity'){
128
- if($user_status == 0){
129
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
130
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
131
- }
132
- else {
133
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
134
- }
135
- }
136
- else{
137
- if(wp_ulike_get_user_activities_status_byIP($activityID,$user_IP) == "like"){
138
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
139
- }
140
- else if(wp_ulike_get_user_activities_status_byIP($activityID,$user_IP) == "unlike"){
141
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
142
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
143
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
144
- }
145
- else {
146
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
147
- }
148
- }
149
- else{
150
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
151
- }
152
- }
153
- }
154
- }//end activity button
155
- else if($type == 'process'){
156
- if ($user_status == 0) {
157
- $newLike = $get_like + 1;
158
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
159
- //insert new logs
160
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike_activities VALUES ('', '$activityID', NOW(), '$user_IP', '$return_userID', 'like')");
161
-
162
- echo wp_ulike_format_number($newLike);
163
- }
164
- else {
165
- if(wp_ulike_get_user_activities_status_byIP($activityID,$user_IP) == "like"){
166
- $newLike = $get_like - 1;
167
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
168
-
169
- $wpdb->query("
170
- UPDATE ".$wpdb->prefix."ulike_activities
171
- SET status = 'unlike'
172
- WHERE activity_id = '$activityID' AND ip = '$user_IP'
173
- ");
174
-
175
- echo wp_ulike_format_number($newLike);
176
- }
177
- else{
178
- $newLike = $get_like + 1;
179
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
180
-
181
- $wpdb->query("
182
- UPDATE ".$wpdb->prefix."ulike_activities
183
- SET status = 'like'
184
- WHERE activity_id = '$activityID' AND ip = '$user_IP'
185
- ");
186
-
187
- echo wp_ulike_format_number($newLike);
188
- }
189
- }
190
- }//end activity process
191
 
192
- return $counter;
193
- }
194
-
195
- //Logged by cookie and IP
196
- function wp_ulike_activities_loggedby_cookie_ip_method($activityID,$return_userID,$type){
197
-
198
- global $wpdb;
199
-
200
- $get_like = bp_activity_get_meta($activityID, '_activityliked') != '' ? bp_activity_get_meta($activityID, '_activityliked') : 0;
201
- $liked = wp_ulike_format_number($get_like);
202
- $user_IP = wp_ulike_get_real_ip();
203
- $counter = '';
204
-
205
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_activities WHERE activity_id = '$activityID' AND ip = '$user_IP'");
206
-
207
- if($type == 'activity'){
208
- if($user_status == 0 && !isset($_COOKIE['activity-liked-'.$activityID])){
209
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
210
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
211
- }
212
- else {
213
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
214
- }
215
- }
216
- else if($user_status != 0){
217
- if(wp_ulike_get_user_activities_status_byIP($activityID,$user_IP) == "like"){
218
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
219
- }
220
- else if(wp_ulike_get_user_activities_status_byIP($activityID,$user_IP) == "unlike"){
221
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
222
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
223
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
224
- }
225
- else {
226
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
227
- }
228
- }
229
- else{
230
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
231
- }
232
- }
233
- }
234
- else{
235
- $counter = '<a class="text user-tooltip" title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
236
- }
237
- }
238
- else if($type == 'process'){
239
- if ($user_status == 0 && !isset($_COOKIE['activity-liked-'.$activityID])) {
240
- $newLike = $get_like + 1;
241
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
242
- setcookie('activity-liked-'.$activityID, time(), time()+3600*24*365, '/');
243
-
244
- //insert new logs
245
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike_activities VALUES ('', '$activityID', NOW(), '$user_IP', '$return_userID', 'like')");
246
-
247
- echo wp_ulike_format_number($newLike);
248
-
249
- }
250
- else if ($user_status != 0) {
251
- if(wp_ulike_get_user_activities_status_byIP($activityID,$user_IP) == "like"){
252
- $newLike = $get_like - 1;
253
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
254
-
255
- $wpdb->query("
256
- UPDATE ".$wpdb->prefix."ulike_activities
257
- SET status = 'unlike'
258
- WHERE activity_id = '$activityID' AND ip = '$user_IP'
259
- ");
260
-
261
- echo wp_ulike_format_number($newLike);
262
- }
263
- else{
264
- $newLike = $get_like + 1;
265
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
266
-
267
- $wpdb->query("
268
- UPDATE ".$wpdb->prefix."ulike_activities
269
- SET status = 'like'
270
- WHERE activity_id = '$activityID' AND ip = '$user_IP'
271
- ");
272
-
273
- echo wp_ulike_format_number($newLike);
274
- }
275
- }
276
- else{
277
- echo wp_ulike_format_number($get_like);
278
- }
279
- }
280
-
281
- return $counter;
282
- }
283
-
284
- //Logged by username
285
- function wp_ulike_activities_loggedby_username_method($activityID,$return_userID,$type){
286
-
287
- global $wpdb;
288
-
289
- $get_like = bp_activity_get_meta($activityID, '_activityliked') != '' ? bp_activity_get_meta($activityID, '_activityliked') : 0;
290
- $liked = wp_ulike_format_number($get_like);
291
- $user_IP = wp_ulike_get_real_ip();
292
- $counter = '';
293
-
294
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_activities WHERE activity_id = '$activityID' AND user_id = '$return_userID'");
295
-
296
- if($type == 'activity'){
297
- if($user_status == 0 && !isset($_COOKIE['activity-liked-'.$activityID])){
298
- if(is_user_logged_in()): $num = 0; else: $num = 2; endif;
299
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
300
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, '.$num.');" class="image"></a><span class="count-box">'.$liked.'</span>';
301
- }
302
- else {
303
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, '.$num.');" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
304
- }
305
- }
306
- else if($user_status != 0){
307
- if(wp_ulike_get_user_activities_status($activityID,$return_userID) == "like"){
308
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
309
- }
310
- else if(wp_ulike_get_user_activities_status($activityID,$return_userID) == "unlike"){
311
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
312
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
313
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
314
- }
315
- else {
316
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
317
- }
318
- }
319
- else{
320
- $counter = '<a onclick="likeThisActivity('.$activityID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
321
- }
322
- }
323
- }
324
- else if($user_status == 0 && isset($_COOKIE['activity-liked-'.$activityID])){
325
- $counter = '<a class="text user-tooltip" title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
326
- }
327
- }
328
-
329
- if($type == 'process'){
330
- if ($user_status == 0 && !isset($_COOKIE['activity-liked-'.$activityID])) {
331
- $newLike = $get_like + 1;
332
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
333
- setcookie('activity-liked-'.$activityID, time(), time()+3600*24*365, '/');
334
-
335
- if(is_user_logged_in()){
336
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike_activities VALUES ('', '$activityID', NOW(), '$user_IP', '$return_userID', 'like')");
337
- }
338
-
339
- echo wp_ulike_format_number($newLike);
340
- }
341
- else if ($user_status != 0) {
342
- if(wp_ulike_get_user_activities_status($activityID,$return_userID) == "like"){
343
- $newLike = $get_like - 1;
344
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
345
-
346
- $wpdb->query("
347
- UPDATE ".$wpdb->prefix."ulike_activities
348
- SET status = 'unlike'
349
- WHERE activity_id = '$activityID' AND user_id = '$return_userID'
350
- ");
351
-
352
- echo wp_ulike_format_number($newLike);
353
- }
354
- else{
355
- $newLike = $get_like + 1;
356
- bp_activity_update_meta($activityID, '_activityliked', $newLike);
357
-
358
- $wpdb->query("
359
- UPDATE ".$wpdb->prefix."ulike_activities
360
- SET status = 'like'
361
- WHERE activity_id = '$activityID' AND user_id = '$return_userID'
362
- ");
363
-
364
- echo wp_ulike_format_number($newLike);
365
- }
366
- }
367
- else if($user_status == 0 && isset($_COOKIE['activity-liked-'.$activityID])){
368
- echo wp_ulike_format_number($get_like);
369
- }
370
- }
371
-
372
- return $counter;
373
- }
374
-
375
- //Process function
376
  function wp_ulike_buddypress_process(){
377
 
378
- global $wpdb,$user_ID;
379
- $activityID = $_POST['id'];
380
- $return_userID = wp_ulike_reutrn_userID($user_ID);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
 
382
  if($activityID != '') {
383
-
384
- $loggin_method = wp_ulike_get_setting( 'wp_ulike_buddypress', 'logging_method');
385
- if($loggin_method == 'do_not_log')
386
- $counter = wp_ulike_activities_do_not_log_method($activityID,'process');
387
- else if($loggin_method == 'by_cookie')
388
- $counter = wp_ulike_activities_loggedby_cookie_method($activityID,'process');
389
- else if($loggin_method == 'by_ip')
390
- $counter = wp_ulike_activities_loggedby_ip_method($activityID,$return_userID,'process');
391
- else if($loggin_method == 'by_cookie_ip')
392
- $counter = wp_ulike_activities_loggedby_cookie_ip_method($activityID,$return_userID,'process');
393
- else
394
- $counter = wp_ulike_activities_loggedby_username_method($activityID,$return_userID,'process');
395
-
396
  }
397
  die();
398
  }
1
+ <?php
2
+
3
+ /**
4
+ * wp_ulike_buddypress function for activities like/unlike display
5
+ *
6
+ * @author Alimir
7
+ * @since 1.7
8
+ * @updated 2.0
9
+ * @return String
10
+ */
11
  function wp_ulike_buddypress($arg) {
12
+ //global variables
13
+ global $wp_ulike_class,$wp_user_IP;
14
+
15
+ $activityID = bp_get_activity_id();
16
+ $bp_get_meta = bp_activity_get_meta($activityID, '_activityliked');
17
+ $get_like = $bp_get_meta != '' ? $bp_get_meta : 0;
18
+ $return_userID = $wp_ulike_class->get_reutrn_id();
19
+
20
  if(
21
  (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') != '1')
22
  or
23
  (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && is_user_logged_in())
24
  ){
25
 
26
+ $data = array(
27
+ "id" => $activityID, //Activity ID
28
+ "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
29
+ "user_ip" => $wp_user_IP, //User IP
30
+ "get_like" => $get_like, //Number Of Likes
31
+ "method" => 'likeThisActivity', //JavaScript method
32
+ "setting" => 'wp_ulike_buddypress', //Setting Key
33
+ "type" => 'post', //Function type (post/process)
34
+ "table" => 'ulike_activities', //Activities table
35
+ "column" => 'activity_id', //ulike_activities table column name
36
+ "key" => '_activityliked', //meta key
37
+ "cookie" => 'activity-liked-' //Cookie Name
38
+ );
39
+
40
+ //call wp_get_ulike function from class-ulike calss
41
+ $counter = $wp_ulike_class->wp_get_ulike($data);
 
 
 
 
42
 
43
+ $wp_ulike = '<div id="wp-ulike-activity-'.$activityID.'" class="wpulike">';
44
+ $wp_ulike .= '<div class="counter">'.$counter.'</div>';
45
+ $wp_ulike .= '</div>';
46
+ $wp_ulike .= $wp_ulike_class->get_liked_users($activityID,'ulike_activities','activity_id','wp_ulike_buddypress');
47
 
48
  if ($arg == 'put') {
49
  return $wp_ulike;
52
  echo $wp_ulike;
53
  }
54
 
55
+ }//end !only_registered_users condition
56
 
57
  else if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && !is_user_logged_in()){
58
+ $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type');
59
+ if($login_type == "button"){
60
+ $template = $wp_ulike_class->get_template($activityID,'likeThisActivity',$get_like,1,0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
62
+ return '<div id="wp-ulike-activity-'.$activityID.'" class="wpulike"><div class="counter">' . $template['login_img'] . '</div></div>';
63
  }
64
  else {
65
+ return '<div id="wp-ulike-activity-'.$activityID.'" class="wpulike"><div class="counter">' . $template['login_text'] . '</div></div>';
66
  }
67
  }
68
+ else
69
+ return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this activity: ','alimir').'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here','alimir').' </a></p>';
70
+ }//end only_registered_users condition
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
 
72
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
74
+ /**
75
+ * wp_ulike_buddypress_process function for activities like/unlike process
76
+ *
77
+ * @author Alimir
78
+ * @since 1.7
79
+ * @updated 2.0
80
+ * @return String
81
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  function wp_ulike_buddypress_process(){
83
 
84
+ global $wp_ulike_class,$wp_user_IP;
85
+ $activityID = $_POST['id'];
86
+ $bp_get_meta = bp_activity_get_meta($activityID, '_activityliked');
87
+ $get_like = $bp_get_meta != '' ? $bp_get_meta : 0;
88
+ $return_userID = $wp_ulike_class->get_reutrn_id();
89
+
90
+ $data = array(
91
+ "id" => $activityID, //Activity ID
92
+ "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
93
+ "user_ip" => $wp_user_IP, //User IP
94
+ "get_like" => $get_like, //Number Of Likes
95
+ "method" => 'likeThisActivity', //JavaScript method
96
+ "setting" => 'wp_ulike_buddypress', //Setting Key
97
+ "type" => 'process', //Function type (post/process)
98
+ "table" => 'ulike_activities', //Activities table
99
+ "column" => 'activity_id', //ulike_activities table column name
100
+ "key" => '_activityliked', //meta key
101
+ "cookie" => 'activity-liked-' //Cookie Name
102
+ );
103
 
104
  if($activityID != '') {
105
+ //call wp_get_ulike function from class-ulike calss
106
+ echo $wp_ulike_class->wp_get_ulike($data);
 
 
 
 
 
 
 
 
 
 
 
107
  }
108
  die();
109
  }
inc/wp-ulike-comments.php CHANGED
@@ -1,36 +1,49 @@
1
  <?php
2
- //main comments function
 
 
 
 
 
 
 
 
3
  function wp_ulike_comments($arg) {
 
 
 
 
 
 
 
 
4
  if(
5
  (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') != '1')
6
  or
7
  (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && is_user_logged_in())
8
  ){
9
 
10
- global $user_ID;
11
- $CommentID = get_comment_ID();
12
- $counter = '';
13
- $return_userID = wp_ulike_reutrn_userID($user_ID);
14
- $loggin_method = wp_ulike_get_setting( 'wp_ulike_comments', 'logging_method');
15
-
16
- if($loggin_method == 'do_not_log')
17
- $counter = wp_ulike_comments_do_not_log_method($CommentID,'comment');
18
- else if($loggin_method == 'by_cookie')
19
- $counter = wp_ulike_comments_loggedby_cookie_method($CommentID,'comment');
20
- else if($loggin_method == 'by_ip')
21
- $counter = wp_ulike_comments_loggedby_ip_method($CommentID,$return_userID,'comment');
22
- else if($loggin_method == 'by_cookie_ip')
23
- $counter = wp_ulike_comments_loggedby_cookie_ip_method($CommentID,$return_userID,'comment');
24
- else
25
- $counter = wp_ulike_comments_loggedby_username_method($CommentID,$return_userID,'comment');
26
-
27
- $wp_ulike = '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike">';
28
- $wp_ulike .= '<div class="counter">'.$counter.'</div>';
29
- $wp_ulike .= '</div>';
30
-
31
- $user_data = wp_ulike_get_user_comments_data($CommentID,$return_userID);
32
- if(wp_ulike_get_setting( 'wp_ulike_comments', 'users_liked_box') == '1' && $user_data != '')
33
- $wp_ulike .= '<p style="margin-top:5px">'.wp_ulike_get_setting( 'wp_ulike_comments', 'users_liked_box_title').'</p><ul class="tiles">' . $user_data . '</ul>';
34
 
35
  if ($arg == 'put') {
36
  return $wp_ulike;
@@ -39,369 +52,58 @@
39
  echo $wp_ulike;
40
  }
41
 
42
- }
43
 
44
  else if (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && !is_user_logged_in()){
45
- return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this comment: ','alimir').'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here','alimir').' </a></p>';
46
- }
47
-
48
- }
49
-
50
- //Do Not Log Method
51
- function wp_ulike_comments_do_not_log_method($CommentID,$type){
52
-
53
- $get_like = get_comment_meta($CommentID, '_commentliked', true) != '' ? get_comment_meta($CommentID, '_commentliked', true) : 0;
54
- $liked = wp_ulike_format_number($get_like);
55
- $counter = '';
56
-
57
- if($type == 'comment'){
58
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
59
- $counter = '<a onclick="likeThisComment('.$CommentID.', 2, 2);" class="image"></a><span class="count-box">'.$liked.'</span>';
60
- }
61
- else {
62
- $counter = '<a onclick="likeThisComment('.$CommentID.', 2, 2);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
63
- }
64
- }//end comment button
65
- else if($type == 'process'){
66
- $newLike = $get_like + 1;
67
- update_comment_meta($CommentID, '_commentliked', $newLike);
68
- echo wp_ulike_format_number($newLike);
69
- }//end comment process
70
-
71
- return $counter;
72
- }
73
-
74
-
75
- //Logged By Cookie
76
- function wp_ulike_comments_loggedby_cookie_method($CommentID,$type){
77
-
78
- $get_like = get_comment_meta($CommentID, '_commentliked', true) != '' ? get_comment_meta($CommentID, '_commentliked', true) : 0;
79
- $liked = wp_ulike_format_number($get_like);
80
- $counter = '';
81
-
82
- if($type == 'comment'){
83
- if(!isset($_COOKIE['comment-liked-'.$CommentID])){
84
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
85
- $counter = '<a onclick="likeThisComment('.$CommentID.', 2, 2);" class="image"></a><span class="count-box">'.$liked.'</span>';
86
- }
87
- else {
88
- $counter = '<a onclick="likeThisComment('.$CommentID.', 2, 2);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
89
- }
90
- }
91
- else{
92
  if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
93
- $counter = '<a title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'" class="image user-tooltip"></a><span class="count-box">'.$liked.'</span>';
94
  }
95
  else {
96
- $counter = '<a title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'" class="text user-tooltip">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
97
  }
98
  }
99
- }//end comment button
100
- else if($type == 'process'){
101
- if(!isset($_COOKIE['comment-liked-'.$CommentID])){
102
- $newLike = $get_like + 1;
103
- update_comment_meta($CommentID, '_commentliked', $newLike);
104
- setcookie('comment-liked-'.$CommentID, time(), time()+3600*24*365, '/');
105
- echo wp_ulike_format_number($newLike);
106
- }
107
- else{
108
- echo wp_ulike_format_number($get_like);
109
- }
110
- }//end comment process
111
-
112
- return $counter;
113
- }
114
-
115
- //Logged By IP
116
- function wp_ulike_comments_loggedby_ip_method($CommentID,$return_userID,$type){
117
-
118
- global $wpdb;
119
-
120
- $get_like = get_comment_meta($CommentID, '_commentliked', true) != '' ? get_comment_meta($CommentID, '_commentliked', true) : 0;
121
- $liked = wp_ulike_format_number($get_like);
122
- $user_IP = wp_ulike_get_real_ip();
123
- $counter = '';
124
-
125
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_comments WHERE comment_id = '$CommentID' AND ip = '$user_IP'");
126
-
127
- if($type == 'comment'){
128
- if($user_status == 0){
129
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
130
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
131
- }
132
- else {
133
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
134
- }
135
- }
136
- else{
137
- if(wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP) == "like"){
138
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
139
- }
140
- else if(wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP) == "unlike"){
141
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
142
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
143
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
144
- }
145
- else {
146
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
147
- }
148
- }
149
- else{
150
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
151
- }
152
- }
153
- }
154
- }//end comment button
155
- else if($type == 'process'){
156
- if ($user_status == 0) {
157
- $newLike = $get_like + 1;
158
- update_comment_meta($CommentID, '_commentliked', $newLike);
159
- //insert new logs
160
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike_comments VALUES ('', '$CommentID', NOW(), '$user_IP', '$return_userID', 'like')");
161
-
162
- if(is_user_logged_in()){
163
- wp_ulike_bp_activity_add($return_userID,$CommentID,'comment');
164
- }
165
-
166
- echo wp_ulike_format_number($newLike);
167
- }
168
- else {
169
- if(wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP) == "like"){
170
- $newLike = $get_like - 1;
171
- update_comment_meta($CommentID, '_commentliked', $newLike);
172
-
173
- $wpdb->query("
174
- UPDATE ".$wpdb->prefix."ulike_comments
175
- SET status = 'unlike'
176
- WHERE comment_id = '$CommentID' AND ip = '$user_IP'
177
- ");
178
-
179
- echo wp_ulike_format_number($newLike);
180
- }
181
- else{
182
- $newLike = $get_like + 1;
183
- update_comment_meta($CommentID, '_commentliked', $newLike);
184
-
185
- $wpdb->query("
186
- UPDATE ".$wpdb->prefix."ulike_comments
187
- SET status = 'like'
188
- WHERE comment_id = '$CommentID' AND ip = '$user_IP'
189
- ");
190
-
191
- echo wp_ulike_format_number($newLike);
192
- }
193
- }
194
- }//end comment process
195
-
196
- return $counter;
197
- }
198
-
199
- //Logged by cookie and IP
200
- function wp_ulike_comments_loggedby_cookie_ip_method($CommentID,$return_userID,$type){
201
-
202
- global $wpdb;
203
-
204
- $get_like = get_comment_meta($CommentID, '_commentliked', true) != '' ? get_comment_meta($CommentID, '_commentliked', true) : 0;
205
- $liked = wp_ulike_format_number($get_like);
206
- $user_IP = wp_ulike_get_real_ip();
207
- $counter = '';
208
-
209
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_comments WHERE comment_id = '$CommentID' AND ip = '$user_IP'");
210
 
211
- if($type == 'comment'){
212
- if($user_status == 0 && !isset($_COOKIE['comment-liked-'.$CommentID])){
213
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
214
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
215
- }
216
- else {
217
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
218
- }
219
- }
220
- else if($user_status != 0){
221
- if(wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP) == "like"){
222
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
223
- }
224
- else if(wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP) == "unlike"){
225
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
226
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
227
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
228
- }
229
- else {
230
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
231
- }
232
- }
233
- else{
234
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
235
- }
236
- }
237
- }
238
- else{
239
- $counter = '<a class="text user-tooltip" title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
240
- }
241
- }
242
- else if($type == 'process'){
243
- if ($user_status == 0 && !isset($_COOKIE['comment-liked-'.$CommentID])) {
244
- $newLike = $get_like + 1;
245
- update_comment_meta($CommentID, '_commentliked', $newLike);
246
- setcookie('comment-liked-'.$CommentID, time(), time()+3600*24*365, '/');
247
-
248
- //insert new logs
249
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike_comments VALUES ('', '$CommentID', NOW(), '$user_IP', '$return_userID', 'like')");
250
-
251
- if(is_user_logged_in()){
252
- wp_ulike_bp_activity_add($return_userID,$CommentID,'comment');
253
- }
254
-
255
- echo wp_ulike_format_number($newLike);
256
-
257
- }
258
- else if ($user_status != 0) {
259
- if(wp_ulike_get_user_comments_status_byIP($CommentID,$user_IP) == "like"){
260
- $newLike = $get_like - 1;
261
- update_comment_meta($CommentID, '_commentliked', $newLike);
262
-
263
- $wpdb->query("
264
- UPDATE ".$wpdb->prefix."ulike_comments
265
- SET status = 'unlike'
266
- WHERE comment_id = '$CommentID' AND ip = '$user_IP'
267
- ");
268
-
269
- echo wp_ulike_format_number($newLike);
270
- }
271
- else{
272
- $newLike = $get_like + 1;
273
- update_comment_meta($CommentID, '_commentliked', $newLike);
274
-
275
- $wpdb->query("
276
- UPDATE ".$wpdb->prefix."ulike_comments
277
- SET status = 'like'
278
- WHERE comment_id = '$CommentID' AND ip = '$user_IP'
279
- ");
280
-
281
- echo wp_ulike_format_number($newLike);
282
- }
283
- }
284
- else{
285
- echo wp_ulike_format_number($get_like);
286
- }
287
- }
288
-
289
- return $counter;
290
  }
291
 
292
- //Logged by username
293
- function wp_ulike_comments_loggedby_username_method($CommentID,$return_userID,$type){
294
-
295
- global $wpdb;
296
-
297
- $get_like = get_comment_meta($CommentID, '_commentliked', true) != '' ? get_comment_meta($CommentID, '_commentliked', true) : 0;
298
- $liked = wp_ulike_format_number($get_like);
299
- $user_IP = wp_ulike_get_real_ip();
300
- $counter = '';
301
-
302
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike_comments WHERE comment_id = '$CommentID' AND user_id = '$return_userID'");
303
-
304
- if($type == 'comment'){
305
- if($user_status == 0 && !isset($_COOKIE['comment-liked-'.$CommentID])){
306
- if(is_user_logged_in()): $num = 0; else: $num = 2; endif;
307
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
308
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, '.$num.');" class="image"></a><span class="count-box">'.$liked.'</span>';
309
- }
310
- else {
311
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, '.$num.');" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
312
- }
313
- }
314
- else if($user_status != 0){
315
- if(wp_ulike_get_user_comments_status($CommentID,$return_userID) == "like"){
316
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
317
- }
318
- else if(wp_ulike_get_user_comments_status($CommentID,$return_userID) == "unlike"){
319
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
320
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
321
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
322
- }
323
- else {
324
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
325
- }
326
- }
327
- else{
328
- $counter = '<a onclick="likeThisComment('.$CommentID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
329
- }
330
- }
331
- }
332
- else if($user_status == 0 && isset($_COOKIE['comment-liked-'.$CommentID])){
333
- $counter = '<a class="text user-tooltip" title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
334
- }
335
- }
336
-
337
- if($type == 'process'){
338
- if ($user_status == 0 && !isset($_COOKIE['comment-liked-'.$CommentID])) {
339
- $newLike = $get_like + 1;
340
- update_comment_meta($CommentID, '_commentliked', $newLike);
341
- setcookie('comment-liked-'.$CommentID, time(), time()+3600*24*365, '/');
342
-
343
- if(is_user_logged_in()){
344
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike_comments VALUES ('', '$CommentID', NOW(), '$user_IP', '$return_userID', 'like')");
345
- wp_ulike_bp_activity_add($return_userID,$CommentID,'comment');
346
- }
347
-
348
- echo wp_ulike_format_number($newLike);
349
- }
350
- else if ($user_status != 0) {
351
- if(wp_ulike_get_user_comments_status($CommentID,$return_userID) == "like"){
352
- $newLike = $get_like - 1;
353
- update_comment_meta($CommentID, '_commentliked', $newLike);
354
-
355
- $wpdb->query("
356
- UPDATE ".$wpdb->prefix."ulike_comments
357
- SET status = 'unlike'
358
- WHERE comment_id = '$CommentID' AND user_id = '$return_userID'
359
- ");
360
-
361
- echo wp_ulike_format_number($newLike);
362
- }
363
- else{
364
- $newLike = $get_like + 1;
365
- update_comment_meta($CommentID, '_commentliked', $newLike);
366
-
367
- $wpdb->query("
368
- UPDATE ".$wpdb->prefix."ulike_comments
369
- SET status = 'like'
370
- WHERE comment_id = '$CommentID' AND user_id = '$return_userID'
371
- ");
372
-
373
- echo wp_ulike_format_number($newLike);
374
- }
375
- }
376
- else if($user_status == 0 && isset($_COOKIE['comment-liked-'.$CommentID])){
377
- echo wp_ulike_format_number($get_like);
378
- }
379
- }
380
-
381
- return $counter;
382
- }
383
-
384
- //Process function
385
  function wp_ulike_comments_process(){
386
 
387
- global $wpdb,$user_ID;
388
- $CommentID = $_POST['id'];
389
- $return_userID = wp_ulike_reutrn_userID($user_ID);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
 
391
  if($CommentID != '') {
392
-
393
- $loggin_method = wp_ulike_get_setting( 'wp_ulike_comments', 'logging_method');
394
- if($loggin_method == 'do_not_log')
395
- $counter = wp_ulike_comments_do_not_log_method($CommentID,'process');
396
- else if($loggin_method == 'by_cookie')
397
- $counter = wp_ulike_comments_loggedby_cookie_method($CommentID,'process');
398
- else if($loggin_method == 'by_ip')
399
- $counter = wp_ulike_comments_loggedby_ip_method($CommentID,$return_userID,'process');
400
- else if($loggin_method == 'by_cookie_ip')
401
- $counter = wp_ulike_comments_loggedby_cookie_ip_method($CommentID,$return_userID,'process');
402
- else
403
- $counter = wp_ulike_comments_loggedby_username_method($CommentID,$return_userID,'process');
404
-
405
  }
406
  die();
407
  }
1
  <?php
2
+
3
+ /**
4
+ * wp_ulike_comments function for comments like/unlike display
5
+ *
6
+ * @author Alimir
7
+ * @since 1.6
8
+ * @updated 2.0
9
+ * @return String
10
+ */
11
  function wp_ulike_comments($arg) {
12
+ //global variables
13
+ global $wp_ulike_class,$wp_user_IP;
14
+
15
+ $CommentID = get_comment_ID();
16
+ $comment_meta = get_comment_meta($CommentID, '_commentliked', true);
17
+ $get_like = $comment_meta != '' ? $comment_meta : 0;
18
+ $return_userID = $wp_ulike_class->get_reutrn_id();
19
+
20
  if(
21
  (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') != '1')
22
  or
23
  (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && is_user_logged_in())
24
  ){
25
 
26
+ $data = array(
27
+ "id" => $CommentID, //Comment ID
28
+ "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
29
+ "user_ip" => $wp_user_IP, //User IP
30
+ "get_like" => $get_like, //Number Of Likes
31
+ "method" => 'likeThisComment', //JavaScript method
32
+ "setting" => 'wp_ulike_comments', //Setting Key
33
+ "type" => 'post', //Function type (post/process)
34
+ "table" => 'ulike_comments', //Comments table
35
+ "column" => 'comment_id', //ulike_comments table column name
36
+ "key" => '_commentliked', //meta key
37
+ "cookie" => 'comment-liked-' //Cookie Name
38
+ );
39
+
40
+ //call wp_get_ulike function from class-ulike calss
41
+ $counter = $wp_ulike_class->wp_get_ulike($data);
42
+
43
+ $wp_ulike = '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike">';
44
+ $wp_ulike .= '<div class="counter">'.$counter.'</div>';
45
+ $wp_ulike .= '</div>';
46
+ $wp_ulike .= $wp_ulike_class->get_liked_users($CommentID,'ulike_comments','comment_id','wp_ulike_comments');
 
 
 
47
 
48
  if ($arg == 'put') {
49
  return $wp_ulike;
52
  echo $wp_ulike;
53
  }
54
 
55
+ }//end !only_registered_users condition
56
 
57
  else if (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && !is_user_logged_in()){
58
+ $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type');
59
+ if($login_type == "button"){
60
+ $template = $wp_ulike_class->get_template($CommentID,'likeThisComment',$get_like,1,0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
62
+ return '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike"><div class="counter">' . $template['login_img'] . '</div></div>';
63
  }
64
  else {
65
+ return '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike"><div class="counter">' . $template['login_text'] . '</div></div>';
66
  }
67
  }
68
+ else
69
+ return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this comment: ','alimir').'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here','alimir').' </a></p>';
70
+ }//end only_registered_users condition
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
+ /**
75
+ * wp_ulike_comments_process function for comments like/unlike process
76
+ *
77
+ * @author Alimir
78
+ * @since 1.6
79
+ * @updated 2.0
80
+ * @return String
81
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  function wp_ulike_comments_process(){
83
 
84
+ global $wp_ulike_class,$wp_user_IP;
85
+ $CommentID = $_POST['id'];
86
+ $comment_meta = get_comment_meta($CommentID, '_commentliked', true);
87
+ $get_like = $comment_meta != '' ? $comment_meta : 0;
88
+ $return_userID = $wp_ulike_class->get_reutrn_id();
89
+
90
+ $data = array(
91
+ "id" => $CommentID, //Comment ID
92
+ "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
93
+ "user_ip" => $wp_user_IP, //User IP
94
+ "get_like" => $get_like, //Number Of Likes
95
+ "method" => 'likeThisComment', //JavaScript method
96
+ "setting" => 'wp_ulike_comments', //Setting Key
97
+ "type" => 'process', //Function type (post/process)
98
+ "table" => 'ulike_comments', //Comments table
99
+ "column" => 'comment_id', //ulike_comments table column name
100
+ "key" => '_commentliked', //meta key
101
+ "cookie" => 'comment-liked-' //Cookie Name
102
+ );
103
 
104
  if($CommentID != '') {
105
+ //call wp_get_ulike function from class-ulike calss
106
+ echo $wp_ulike_class->wp_get_ulike($data);
 
 
 
 
 
 
 
 
 
 
 
107
  }
108
  die();
109
  }
inc/wp-ulike-posts.php CHANGED
@@ -1,37 +1,49 @@
1
- <?php
2
- //main function
 
 
 
 
 
 
 
 
3
  function wp_ulike($arg) {
 
 
 
 
 
 
 
 
4
  if(
5
- (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') != '1')
6
  or
7
- (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && is_user_logged_in())
8
  ){
9
 
10
- global $post,$user_ID;
11
- $post_ID = $post->ID;
12
- $return_userID = wp_ulike_reutrn_userID($user_ID);
13
- $loggin_method = wp_ulike_get_setting( 'wp_ulike_posts', 'logging_method');
14
-
15
- if($loggin_method == 'do_not_log')
16
- $counter = wp_ulike_posts_do_not_log_method($post_ID,'post');
17
- else if($loggin_method == 'by_cookie')
18
- $counter = wp_ulike_posts_loggedby_cookie_method($post_ID,'post');
19
- else if($loggin_method == 'by_ip')
20
- $counter = wp_ulike_posts_loggedby_ip_method($post_ID,$return_userID,'post');
21
- else if($loggin_method == 'by_cookie_ip')
22
- $counter = wp_ulike_posts_loggedby_cookie_ip_method($post_ID,$return_userID,'post');
23
- else
24
- $counter = wp_ulike_posts_loggedby_username_method($post_ID,$return_userID,'post');
25
-
26
-
27
- $wp_ulike = '<div id="wp-ulike-'.$post_ID.'" class="wpulike">';
28
- $wp_ulike .= '<div class="counter">'.$counter.'</div>';
29
- $wp_ulike .= '</div>';
30
-
31
-
32
- $user_data = wp_ulike_get_user_posts_data($post_ID,$return_userID);
33
- if(wp_ulike_get_setting( 'wp_ulike_posts', 'users_liked_box') == '1' && $user_data != '')
34
- $wp_ulike .= '<br /><p style="margin-top:5px">'.wp_ulike_get_setting( 'wp_ulike_posts', 'users_liked_box_title').'</p><ul class="tiles">' . $user_data . '</ul>';
35
 
36
  if ($arg == 'put') {
37
  return $wp_ulike;
@@ -40,366 +52,58 @@
40
  echo $wp_ulike;
41
  }
42
 
43
- }
44
 
45
  else if (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && !is_user_logged_in()){
46
- return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this post: ','alimir').'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here','alimir').' </a></p>';
47
- }
48
-
49
- }
50
-
51
-
52
- //Do Not Log Method
53
- function wp_ulike_posts_do_not_log_method($post_ID,$type){
54
-
55
- $get_like = get_post_meta($post_ID, '_liked', true) != '' ? get_post_meta($post_ID, '_liked', true) : 0;
56
- $liked = wp_ulike_format_number($get_like);
57
- $counter = '';
58
-
59
- if($type == 'post'){
60
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
61
- $counter = '<a onclick="likeThis('.$post_ID.', 2, 2);" class="image"></a><span class="count-box">'.$liked.'</span>';
62
- }
63
- else {
64
- $counter = '<a onclick="likeThis('.$post_ID.', 2, 2);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
65
- }
66
- }//end post button
67
- else if($type == 'process'){
68
- $newLike = $get_like + 1;
69
- update_post_meta($post_ID, '_liked', $newLike);
70
- echo wp_ulike_format_number($newLike);
71
- }//end post process
72
-
73
- return $counter;
74
- }
75
-
76
-
77
- //Logged By Cookie
78
- function wp_ulike_posts_loggedby_cookie_method($post_ID,$type){
79
-
80
- $get_like = get_post_meta($post_ID, '_liked', true) != '' ? get_post_meta($post_ID, '_liked', true) : 0;
81
- $liked = wp_ulike_format_number($get_like);
82
- $counter = '';
83
-
84
- if($type == 'post'){
85
- if(!isset($_COOKIE['liked-'.$post_ID])){
86
  if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
87
- $counter = '<a onclick="likeThis('.$post_ID.', 2, 2);" class="image"></a><span class="count-box">'.$liked.'</span>';
88
  }
89
  else {
90
- $counter = '<a onclick="likeThis('.$post_ID.', 2, 2);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
91
  }
92
  }
93
- else{
94
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
95
- $counter = '<a title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'" class="image user-tooltip"></a><span class="count-box">'.$liked.'</span>';
96
- }
97
- else {
98
- $counter = '<a title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'" class="text user-tooltip">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
99
- }
100
- }
101
- }//end post button
102
- else if($type == 'process'){
103
- if(!isset($_COOKIE['liked-'.$post_ID])){
104
- $newLike = $get_like + 1;
105
- update_post_meta($post_ID, '_liked', $newLike);
106
- setcookie('liked-'.$post_ID, time(), time()+3600*24*365, '/');
107
- echo wp_ulike_format_number($newLike);
108
- }
109
- else{
110
- echo wp_ulike_format_number($get_like);
111
- }
112
- }//end post process
113
-
114
- return $counter;
115
- }
116
-
117
- //Logged By IP
118
- function wp_ulike_posts_loggedby_ip_method($post_ID,$return_userID,$type){
119
-
120
- global $wpdb;
121
-
122
- $get_like = get_post_meta($post_ID, '_liked', true) != '' ? get_post_meta($post_ID, '_liked', true) : 0;
123
- $liked = wp_ulike_format_number($get_like);
124
- $user_IP = wp_ulike_get_real_ip();
125
- $counter = '';
126
-
127
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike WHERE post_id = '$post_ID' AND ip = '$user_IP'");
128
-
129
- if($type == 'post'){
130
- if($user_status == 0){
131
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
132
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
133
- }
134
- else {
135
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
136
- }
137
- }
138
- else{
139
- if(wp_ulike_get_user_post_status_byIP($post_ID,$user_IP) == "like"){
140
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
141
- }
142
- else if(wp_ulike_get_user_post_status_byIP($post_ID,$user_IP) == "unlike"){
143
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
144
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
145
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
146
- }
147
- else {
148
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
149
- }
150
- }
151
- else{
152
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
153
- }
154
- }
155
- }
156
- }//end post button
157
- else if($type == 'process'){
158
- if ($user_status == 0) {
159
- $newLike = $get_like + 1;
160
- update_post_meta($post_ID, '_liked', $newLike);
161
- //insert new logs
162
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike VALUES ('', '$post_ID', NOW(), '$user_IP', '$return_userID', 'like')");
163
- echo wp_ulike_format_number($newLike);
164
- }
165
- else {
166
- if(wp_ulike_get_user_post_status_byIP($post_ID,$user_IP) == "like"){
167
- $newLike = $get_like - 1;
168
- update_post_meta($post_ID, '_liked', $newLike);
169
-
170
- $wpdb->query("
171
- UPDATE ".$wpdb->prefix."ulike
172
- SET status = 'unlike'
173
- WHERE post_id = '$post_ID' AND ip = '$user_IP'
174
- ");
175
-
176
- echo wp_ulike_format_number($newLike);
177
- }
178
- else{
179
- $newLike = $get_like + 1;
180
- update_post_meta($post_ID, '_liked', $newLike);
181
-
182
- $wpdb->query("
183
- UPDATE ".$wpdb->prefix."ulike
184
- SET status = 'like'
185
- WHERE post_id = '$post_ID' AND ip = '$user_IP'
186
- ");
187
-
188
- echo wp_ulike_format_number($newLike);
189
- }
190
- }
191
- }//end post process
192
-
193
- return $counter;
194
- }
195
-
196
- //Logged by cookie and IP
197
- function wp_ulike_posts_loggedby_cookie_ip_method($post_ID,$return_userID,$type){
198
-
199
- global $wpdb;
200
-
201
- $get_like = get_post_meta($post_ID, '_liked', true) != '' ? get_post_meta($post_ID, '_liked', true) : 0;
202
- $liked = wp_ulike_format_number($get_like);
203
- $user_IP = wp_ulike_get_real_ip();
204
- $counter = '';
205
-
206
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike WHERE post_id = '$post_ID' AND ip = '$user_IP'");
207
-
208
- if($type == 'post'){
209
- if($user_status == 0 && !isset($_COOKIE['liked-'.$post_ID])){
210
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
211
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
212
- }
213
- else {
214
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
215
- }
216
- }
217
- else if($user_status != 0){
218
- if(wp_ulike_get_user_post_status_byIP($post_ID,$user_IP) == "like"){
219
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
220
- }
221
- else if(wp_ulike_get_user_post_status_byIP($post_ID,$user_IP) == "unlike"){
222
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
223
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
224
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
225
- }
226
- else {
227
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
228
- }
229
- }
230
- else{
231
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
232
- }
233
- }
234
- }
235
- else{
236
- $counter = '<a class="text user-tooltip" title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
237
- }
238
- }
239
- else if($type == 'process'){
240
- if ($user_status == 0 && !isset($_COOKIE['liked-'.$post_ID])) {
241
-
242
- $newLike = $get_like + 1;
243
- update_post_meta($post_ID, '_liked', $newLike);
244
- setcookie('liked-'.$post_ID, time(), time()+3600*24*365, '/');
245
-
246
- //insert new logs
247
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike VALUES ('', '$post_ID', NOW(), '$user_IP', '$return_userID', 'like')");
248
-
249
- if(is_user_logged_in()){
250
- wp_ulike_bp_activity_add($return_userID,$post_ID,'post');
251
- }
252
-
253
- echo wp_ulike_format_number($newLike);
254
-
255
- }
256
- else if ($user_status != 0) {
257
- if(wp_ulike_get_user_post_status_byIP($post_ID,$user_IP) == "like"){
258
- $newLike = $get_like - 1;
259
- update_post_meta($post_ID, '_liked', $newLike);
260
-
261
- $wpdb->query("
262
- UPDATE ".$wpdb->prefix."ulike
263
- SET status = 'unlike'
264
- WHERE post_id = '$post_ID' AND ip = '$user_IP'
265
- ");
266
-
267
- echo wp_ulike_format_number($newLike);
268
- }
269
- else{
270
- $newLike = $get_like + 1;
271
- update_post_meta($post_ID, '_liked', $newLike);
272
-
273
- $wpdb->query("
274
- UPDATE ".$wpdb->prefix."ulike
275
- SET status = 'like'
276
- WHERE post_id = '$post_ID' AND ip = '$user_IP'
277
- ");
278
-
279
- echo wp_ulike_format_number($newLike);
280
- }
281
- }
282
- else{
283
- echo wp_ulike_format_number($get_like);
284
- }
285
- }
286
-
287
- return $counter;
288
- }
289
-
290
- //Logged by username
291
- function wp_ulike_posts_loggedby_username_method($post_ID,$return_userID,$type){
292
-
293
- global $wpdb;
294
-
295
- $get_like = get_post_meta($post_ID, '_liked', true) != '' ? get_post_meta($post_ID, '_liked', true) : 0;
296
- $liked = wp_ulike_format_number($get_like);
297
- $user_IP = wp_ulike_get_real_ip();
298
- $counter = '';
299
-
300
- $user_status = $wpdb->get_var("SELECT COUNT(*) FROM ".$wpdb->prefix."ulike WHERE post_id = '$post_ID' AND user_id = '$return_userID'");
301
-
302
- if($type == 'post'){
303
- if($user_status == 0 && !isset($_COOKIE['liked-'.$post_ID])){
304
- if(is_user_logged_in()): $num = 0; else: $num = 2; endif;
305
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
306
- $counter = '<a onclick="likeThis('.$post_ID.', 1, '.$num.');" class="image"></a><span class="count-box">'.$liked.'</span>';
307
- }
308
- else {
309
- $counter = '<a onclick="likeThis('.$post_ID.', 1, '.$num.');" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
310
- }
311
- }
312
- else if($user_status != 0){
313
- if(wp_ulike_get_user_post_status($post_ID,$return_userID) == "like"){
314
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 1);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
315
- }
316
- else if(wp_ulike_get_user_post_status($post_ID,$return_userID) == "unlike"){
317
- if(wp_ulike_get_setting( 'wp_ulike_general', 'return_initial_after_unlike') == 1){
318
- if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
319
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="image"></a><span class="count-box">'.$liked.'</span>';
320
- }
321
- else {
322
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'button_text').'</a><span class="count-box">'.$liked.'</span>';
323
- }
324
- }
325
- else{
326
- $counter = '<a onclick="likeThis('.$post_ID.', 1, 0);" class="text">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_unlike').'</a><span class="count-box">'.$liked.'</span>';
327
- }
328
- }
329
- }
330
- else if($user_status == 0 && isset($_COOKIE['liked-'.$post_ID])){
331
- $counter = '<a class="text user-tooltip" title="'.wp_ulike_get_setting( 'wp_ulike_general', 'permission_text').'">'.wp_ulike_get_setting( 'wp_ulike_general', 'text_after_like').'</a><span class="count-box">'.$liked.'</span>';
332
- }
333
- }
334
-
335
- if($type == 'process'){
336
- if ($user_status == 0 && !isset($_COOKIE['liked-'.$post_ID])) {
337
- $newLike = $get_like + 1;
338
- update_post_meta($post_ID, '_liked', $newLike);
339
- setcookie('liked-'.$post_ID, time(), time()+3600*24*365, '/');
340
-
341
- if(is_user_logged_in()){
342
- $wpdb->query("INSERT INTO ".$wpdb->prefix."ulike VALUES ('', '$post_ID', NOW(), '$user_IP', '$return_userID', 'like')");
343
- wp_ulike_bp_activity_add($return_userID,$post_ID,'post');
344
- }
345
-
346
- echo wp_ulike_format_number($newLike);
347
- }
348
- else if ($user_status != 0) {
349
- if(wp_ulike_get_user_post_status($post_ID,$return_userID) == "like"){
350
- $newLike = $get_like - 1;
351
- update_post_meta($post_ID, '_liked', $newLike);
352
-
353
- $wpdb->query("
354
- UPDATE ".$wpdb->prefix."ulike
355
- SET status = 'unlike'
356
- WHERE post_id = '$post_ID' AND user_id = '$return_userID'
357
- ");
358
-
359
- echo wp_ulike_format_number($newLike);
360
- }
361
- else{
362
- $newLike = $get_like + 1;
363
- update_post_meta($post_ID, '_liked', $newLike);
364
-
365
- $wpdb->query("
366
- UPDATE ".$wpdb->prefix."ulike
367
- SET status = 'like'
368
- WHERE post_id = '$post_ID' AND user_id = '$return_userID'
369
- ");
370
-
371
- echo wp_ulike_format_number($newLike);
372
- }
373
- }
374
- else if($user_status == 0 && isset($_COOKIE['liked-'.$post_ID])){
375
- echo wp_ulike_format_number($get_like);
376
- }
377
- }
378
 
379
- return $counter;
380
  }
381
 
382
- //Process function
 
 
 
 
 
 
 
383
  function wp_ulike_process(){
384
 
385
- global $wpdb,$user_ID;
386
- $post_ID = $_POST['id'];
387
- $return_userID = wp_ulike_reutrn_userID($user_ID);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
 
389
  if($post_ID != '') {
390
-
391
- $loggin_method = wp_ulike_get_setting( 'wp_ulike_posts', 'logging_method');
392
- if($loggin_method == 'do_not_log')
393
- $counter = wp_ulike_posts_do_not_log_method($post_ID,'process');
394
- else if($loggin_method == 'by_cookie')
395
- $counter = wp_ulike_posts_loggedby_cookie_method($post_ID,'process');
396
- else if($loggin_method == 'by_ip')
397
- $counter = wp_ulike_posts_loggedby_ip_method($post_ID,$return_userID,'process');
398
- else if($loggin_method == 'by_cookie_ip')
399
- $counter = wp_ulike_posts_loggedby_cookie_ip_method($post_ID,$return_userID,'process');
400
- else
401
- $counter = wp_ulike_posts_loggedby_username_method($post_ID,$return_userID,'process');
402
-
403
  }
404
  die();
405
  }
1
+ <?php
2
+
3
+ /**
4
+ * wp_ulike function for posts like/unlike display
5
+ *
6
+ * @author Alimir
7
+ * @since 1.0
8
+ * @updated 2.0
9
+ * @return String
10
+ */
11
  function wp_ulike($arg) {
12
+ //global variables
13
+ global $post,$wp_ulike_class,$wp_user_IP;
14
+
15
+ $post_ID = $post->ID;
16
+ $get_post_meta = get_post_meta($post_ID, '_liked', true);
17
+ $get_like = $get_post_meta != '' ? $get_post_meta : 0;
18
+ $return_userID = $wp_ulike_class->get_reutrn_id();
19
+
20
  if(
21
+ (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') != '1')
22
  or
23
+ (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && is_user_logged_in())
24
  ){
25
 
26
+ $data = array(
27
+ "id" => $post_ID, //Post ID
28
+ "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
29
+ "user_ip" => $wp_user_IP, //User IP
30
+ "get_like" => $get_like, //Number Of Likes
31
+ "method" => 'likeThis', //JavaScript method
32
+ "setting" => 'wp_ulike_posts', //Setting Key
33
+ "type" => 'post', //Function type (post/process)
34
+ "table" => 'ulike', //posts table
35
+ "column" => 'post_id', //ulike table column name
36
+ "key" => '_liked', //meta key
37
+ "cookie" => 'liked-' //Cookie Name
38
+ );
39
+
40
+ //call wp_get_ulike function from class-ulike calss
41
+ $counter = $wp_ulike_class->wp_get_ulike($data);
42
+
43
+ $wp_ulike = '<div id="wp-ulike-'.$post_ID.'" class="wpulike">';
44
+ $wp_ulike .= '<div class="counter">'.$counter.'</div>';
45
+ $wp_ulike .= '</div>';
46
+ $wp_ulike .= $wp_ulike_class->get_liked_users($post_ID,'ulike','post_id','wp_ulike_posts');
 
 
 
 
47
 
48
  if ($arg == 'put') {
49
  return $wp_ulike;
52
  echo $wp_ulike;
53
  }
54
 
55
+ }//end !only_registered_users condition
56
 
57
  else if (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && !is_user_logged_in()){
58
+ $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type');
59
+ if($login_type == "button"){
60
+ $template = $wp_ulike_class->get_template($post_ID,'likeThis',$get_like,1,0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') {
62
+ return '<div id="wp-ulike-'.$post_ID.'" class="wpulike"><div class="counter">' . $template['login_img'] . '</div></div>';
63
  }
64
  else {
65
+ return '<div id="wp-ulike-'.$post_ID.'" class="wpulike"><div class="counter">' . $template['login_text'] . '</div></div>';
66
  }
67
  }
68
+ else
69
+ return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this post: ','alimir').'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here','alimir').' </a></p>';
70
+ }//end only_registered_users condition
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
 
72
  }
73
 
74
+ /**
75
+ * wp_ulike_process function for posts like/unlike process
76
+ *
77
+ * @author Alimir
78
+ * @since 1.0
79
+ * @updated 2.0
80
+ * @return String
81
+ */
82
  function wp_ulike_process(){
83
 
84
+ global $wp_ulike_class,$wp_user_IP;
85
+ $post_ID = $_POST['id'];
86
+ $get_post_meta = get_post_meta($post_ID, '_liked', true);
87
+ $get_like = $get_post_meta != '' ? $get_post_meta : 0;
88
+ $return_userID = $wp_ulike_class->get_reutrn_id();
89
+
90
+ $data = array(
91
+ "id" => $post_ID, //Post ID
92
+ "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function)
93
+ "user_ip" => $wp_user_IP, //User IP
94
+ "get_like" => $get_like, //Number Of Likes
95
+ "method" => 'likeThis', //JavaScript method
96
+ "setting" => 'wp_ulike_posts', //Setting Key
97
+ "type" => 'process', //Function type (post/process)
98
+ "table" => 'ulike', //posts table
99
+ "column" => 'post_id', //ulike table column name
100
+ "key" => '_liked', //meta key
101
+ "cookie" => 'liked-' //Cookie Name
102
+ );
103
 
104
  if($post_ID != '') {
105
+ //call wp_get_ulike function from class-ulike calss
106
+ echo $wp_ulike_class->wp_get_ulike($data);
 
 
 
 
 
 
 
 
 
 
 
107
  }
108
  die();
109
  }
lang/alimir-fa_IR.mo CHANGED
Binary file
lang/alimir-fa_IR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
- "POT-Creation-Date: 2014-12-10 20:18+0330\n"
5
- "PO-Revision-Date: 2014-12-10 20:19+0330\n"
6
  "Last-Translator: Alimir <info@alimir.ir>\n"
7
  "Language-Team: alimir.ir <info@alimir.ir>\n"
8
  "Language: fa_IR\n"
@@ -16,11 +16,11 @@ msgstr ""
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
- #: ../admin/about.php:56
20
  msgid "Welcome to WP ULike"
21
  msgstr "به وردپرس یولایک خوش آمدید"
22
 
23
- #: ../admin/about.php:58
24
  msgid ""
25
  "Thank you for choosing WP ULike! This version is our leanest and most "
26
  "powerful version yet."
@@ -28,90 +28,106 @@ msgstr ""
28
  "از اینکه از افزونه وردپرس یولایک استفاده می کنید، خیلی ممنونیم! نسخه ی جدید، "
29
  "قویترین و کامل ترین نسخه منتشر شده از این افزونه است."
30
 
31
- #: ../admin/about.php:59
32
  msgid "Visit our homepage"
33
  msgstr "مشاهده صفحه افزونه"
34
 
35
- #: ../admin/about.php:64
 
 
 
 
36
  msgid "Getting Started"
37
  msgstr "شروع "
38
 
39
- #: ../admin/about.php:65
40
  msgid "Credits"
41
  msgstr "دست‌اندرکاران"
42
 
43
- #: ../admin/about.php:66
44
  msgid "Support"
45
  msgstr "پشتیبانی"
46
 
47
- #: ../admin/about.php:67
48
  msgid "FAQ"
49
  msgstr "سؤالات متداول"
50
 
51
- #: ../admin/about.php:68
52
  msgid "Reviews"
53
  msgstr "امتیازدهی"
54
 
55
- #: ../admin/about.php:69
56
  msgid "Contact"
57
  msgstr "تماس با ما"
58
 
59
- #: ../admin/about.php:81
60
  msgid "Novelty Of WP ULike"
61
  msgstr "تازه های وردپرس یولایک"
62
 
63
- #: ../admin/about.php:85 ../admin/classes/class-widget.php:134
 
 
 
 
 
 
 
 
64
  msgid "Most Liked Comments"
65
  msgstr "پرلایک ترین دیدگاه ها"
66
 
67
- #: ../admin/about.php:90 ../admin/admin.php:146 ../admin/admin.php:214
68
- #: ../admin/admin.php:272
69
  msgid "Logging Method"
70
  msgstr "روش وقایع نگاری"
71
 
72
- #: ../admin/about.php:98
73
  msgid "New options in logs pages"
74
  msgstr "قابلیت های جدید در صفحات وقایع"
75
 
76
- #: ../admin/about.php:103
77
  msgid "New setting panel"
78
  msgstr "صفحه تنظیمات جدید و پیشرفته"
79
 
80
- #: ../admin/about.php:111
81
  msgid "Better coding on plugin files"
82
  msgstr "بهبود توابع و کدنویسی فایل های افزونه"
83
 
84
- #: ../admin/about.php:116
85
  msgid "Buddypress likes support"
86
  msgstr "پشتیبانی وردپرس یولایک از بادی پرس"
87
 
88
- #: ../admin/about.php:121
89
  msgid "Likes logs support"
90
  msgstr "پشتیبانی از نمایش آخرین وقایع در لایک ها"
91
 
92
- #: ../admin/about.php:130
93
  msgid "WP ULike is created by many love and time. Enjoy it :)"
94
  msgstr ""
95
  "وردپرس یولایک با صرف کلی علاقه و زمان ساخته شده است. امیدواریم که از آن لذت "
96
  "ببرید :)"
97
 
98
- #: ../admin/about.php:131
99
  msgid "Project Leaders"
100
  msgstr "سازندگان اصلی"
101
 
102
- #: ../admin/about.php:136
103
  msgid "Project Lead & Developer"
104
  msgstr "راهبر پروژه، توسعه دهنده ارشد"
105
 
106
- #: ../admin/about.php:140
107
  msgid "Translations"
108
  msgstr "ترجمه ها"
109
 
110
- #: ../admin/about.php:150
 
 
 
 
111
  msgid "Like this plugin?"
112
  msgstr "این پلاگین چندتا لایک داره؟!؟ :)"
113
 
114
- #: ../admin/about.php:151
115
  msgid ""
116
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
117
  "wp-ulike\"> Plugin Directory reviews</a>"
@@ -119,77 +135,87 @@ msgstr ""
119
  "حمایتتون رو از این افزونه، با امتیاز 5 ستاره در <a href=\"http://wordpress."
120
  "org/plugins/wp-ulike\">مخزن وردپرس</a> مشخص کنید..."
121
 
122
- #: ../admin/admin.php:36
 
 
 
 
 
 
 
 
 
 
 
123
  msgid "WP ULike Settings"
124
  msgstr "تنظیمات وردپرس یولایک"
125
 
126
- #: ../admin/admin.php:39 ../wp-ulike.php:16
127
  msgid "WP ULike"
128
  msgstr "وردپرس یولایک"
129
 
130
- #: ../admin/admin.php:44
131
  msgid "General"
132
  msgstr "عمومی"
133
 
134
- #: ../admin/admin.php:48
135
  msgid "Button Type"
136
  msgstr "حالت دکمه"
137
 
138
- #: ../admin/admin.php:51
139
  msgid "Icon"
140
  msgstr "آیکن"
141
 
142
- #: ../admin/admin.php:52
143
  msgid "Text"
144
  msgstr "متن"
145
 
146
- #: ../admin/admin.php:56 ../admin/classes/class-widget.php:189
147
  msgid "Like"
148
  msgstr "لایک"
149
 
150
- #: ../admin/admin.php:57
151
  msgid "Button Text"
152
  msgstr "متن دکمه"
153
 
154
- #: ../admin/admin.php:61
155
  msgid "Button Icon"
156
  msgstr "آیکن دکمه"
157
 
158
- #: ../admin/admin.php:62 ../admin/admin.php:359
159
  msgid "Best size: 16x16"
160
  msgstr "سایز مناسب : 16x16"
161
 
162
- #: ../admin/admin.php:67
163
  msgid "Format Number"
164
  msgstr "فرمت اعداد"
165
 
166
- #: ../admin/admin.php:68 ../admin/admin.php:79 ../admin/admin.php:108
167
- #: ../admin/admin.php:140 ../admin/admin.php:169 ../admin/admin.php:191
168
- #: ../admin/admin.php:208 ../admin/admin.php:237 ../admin/admin.php:266
169
- #: ../admin/admin.php:295 ../admin/admin.php:302 ../admin/admin.php:324
170
- #: ../admin/admin.php:370 ../admin/admin.php:377 ../admin/admin.php:384
171
  msgid "Activate"
172
  msgstr "فعال سازی"
173
 
174
- #: ../admin/admin.php:69
175
  msgid "Convert numbers of Likes with string (kilobyte) format."
176
  msgstr ""
177
  "با فعال سازی این گزینه، می توانید اعداد بالای 1000 را با فرمت رشته ای "
178
  "(کیلوبایت) نمایش دهید."
179
 
180
- #: ../admin/admin.php:72
181
  msgid "Unlike"
182
  msgstr " لغو پسندیدن"
183
 
184
- #: ../admin/admin.php:73
185
  msgid "Text After Like"
186
  msgstr "متن پس از لایک"
187
 
188
- #: ../admin/admin.php:78
189
  msgid "Return To The Initial"
190
  msgstr "بازگشت به حالت اولیه"
191
 
192
- #: ../admin/admin.php:80
193
  msgid ""
194
  "Return to the initial Like button after Unlike. (Not Showing text after "
195
  "unlike)"
@@ -198,35 +224,55 @@ msgstr ""
198
  "متن) باز میگردد. (در این حالت، تنظیمات \"متن پس از لغو لایک\" نمایش داده نمی "
199
  "شود)"
200
 
201
- #: ../admin/admin.php:83
202
  msgid "Like Me Again!"
203
  msgstr "پسندیدن مجدد!"
204
 
205
- #: ../admin/admin.php:84
206
  msgid "Text After Unlike"
207
  msgstr "متن پس از لغو لایک"
208
 
209
- #: ../admin/admin.php:87
210
  msgid "You have not permission to unlike"
211
  msgstr "شما اجازه لغو پسندیدن را ندارید"
212
 
213
- #: ../admin/admin.php:88
214
  msgid "Permission Text"
215
  msgstr "متن تولتیپ دسترسی"
216
 
217
- #: ../admin/admin.php:95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  msgid "Settings saved."
219
  msgstr "تنظیمات ذخیره شد"
220
 
221
- #: ../admin/admin.php:102
222
  msgid "Posts"
223
  msgstr "نوشته ها"
224
 
225
- #: ../admin/admin.php:107 ../admin/admin.php:190 ../admin/admin.php:258
226
  msgid "Automatic display"
227
  msgstr "نمایش خودکار"
228
 
229
- #: ../admin/admin.php:109
230
  msgid ""
231
  "If you disable this option, you have to put manually this code on wordpress "
232
  "while loop"
@@ -234,98 +280,98 @@ msgstr ""
234
  "اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در حلقه مطالب "
235
  "وردپرس قرار دهید "
236
 
237
- #: ../admin/admin.php:113 ../admin/admin.php:196
238
  msgid "Auto Display Position"
239
  msgstr "محل قرار گیری در نمایش خودکار"
240
 
241
- #: ../admin/admin.php:116 ../admin/admin.php:199
242
  msgid "Top of Content"
243
  msgstr "بالای محتوا"
244
 
245
- #: ../admin/admin.php:117 ../admin/admin.php:200
246
  msgid "Bottom of Content"
247
  msgstr "پایین محتوا"
248
 
249
- #: ../admin/admin.php:118 ../admin/admin.php:201
250
  msgid "Top and Bottom"
251
  msgstr "بالا و پایین"
252
 
253
- #: ../admin/admin.php:123
254
  msgid "Auto Display Filter"
255
  msgstr "فیلتر گذاری در نمایش خودکار"
256
 
257
- #: ../admin/admin.php:125
258
  msgid "Home"
259
  msgstr "خانه"
260
 
261
- #: ../admin/admin.php:126
262
  msgid "Single Posts"
263
  msgstr "تک نوشته ها"
264
 
265
- #: ../admin/admin.php:127
266
  msgid "Pages"
267
  msgstr "برگه ها"
268
 
269
- #: ../admin/admin.php:128
270
  msgid "Archives"
271
  msgstr "بایگانی"
272
 
273
- #: ../admin/admin.php:129
274
  msgid "Categories"
275
  msgstr "دسته بندی ها"
276
 
277
- #: ../admin/admin.php:130
278
  msgid "Search Results"
279
  msgstr "نتایج جستجوها"
280
 
281
- #: ../admin/admin.php:131
282
  msgid "Tags"
283
  msgstr "برچسب ها"
284
 
285
- #: ../admin/admin.php:132
286
  msgid "Author Page"
287
  msgstr "صفحه نویسنده"
288
 
289
- #: ../admin/admin.php:134
290
  msgid "You can filter theses pages on auto display option."
291
  msgstr ""
292
  "شما می توانید بر روی این صفحات فیلتر گذاری کنید تا دکمه لایک نمایش داده نشود"
293
 
294
- #: ../admin/admin.php:139 ../admin/admin.php:207 ../admin/admin.php:265
295
  msgid "Only registered Users"
296
  msgstr "محدودسازی لایک کاربران"
297
 
298
- #: ../admin/admin.php:141
299
  msgid "<strong>Only</strong> registered users have permission to like posts."
300
  msgstr ""
301
  "با فعال سازی این گزینه، <strong>تنها</strong> کاربران عضو شده، می توانند "
302
  "مطالب را لایک کنند."
303
 
304
- #: ../admin/admin.php:148 ../admin/admin.php:216 ../admin/admin.php:274
305
  msgid "Do Not Log"
306
  msgstr "وقایع نگاری نکن"
307
 
308
- #: ../admin/admin.php:149 ../admin/admin.php:217 ../admin/admin.php:275
309
  msgid "Logged By Cookie"
310
  msgstr "با کوکی"
311
 
312
- #: ../admin/admin.php:150 ../admin/admin.php:218 ../admin/admin.php:276
313
  msgid "Logged By IP"
314
  msgstr "با آی پی"
315
 
316
- #: ../admin/admin.php:151 ../admin/admin.php:219 ../admin/admin.php:277
317
  msgid "Logged By Cookie & IP"
318
  msgstr "با کوکی و آی پی"
319
 
320
- #: ../admin/admin.php:152 ../admin/admin.php:220 ../admin/admin.php:278
321
  msgid "Logged By Username"
322
  msgstr "با نام کاربری"
323
 
324
- #: ../admin/admin.php:156 ../admin/admin.php:224 ../admin/admin.php:282
325
  msgid "Attention!"
326
  msgstr "توجه! "
327
 
328
- #: ../admin/admin.php:158 ../admin/admin.php:226 ../admin/admin.php:284
329
  msgid ""
330
  "If you select <strong>\"Do Not Log\"</strong> method: Any data logs can't "
331
  "save, There is no limitation in the like/dislike, unlike/undislike capacity "
@@ -335,7 +381,7 @@ msgstr ""
335
  "وقایعی ذخیره نمی شود، هیچ شرط محدود کننده ای برای لایک/دیسلایک بررسی نمی "
336
  "شود، قابلیت لغو لایک/دیسلایک وجود نخواهد داشت"
337
 
338
- #: ../admin/admin.php:159 ../admin/admin.php:227 ../admin/admin.php:285
339
  msgid ""
340
  "If you select <strong>\"Logged By Cookie\"</strong> method: Any data logs "
341
  "can't save, The like/dislike condition will be limited by SetCookie, unlike/"
@@ -345,7 +391,7 @@ msgstr ""
345
  "ذخیره نمی شود، شرط بررسی لایک/دیسلایک توسط کوکی محدود می شود، قابلیت لغو "
346
  "لایک/دیسلایک وجود نخواهد داشت"
347
 
348
- #: ../admin/admin.php:160 ../admin/admin.php:228 ../admin/admin.php:286
349
  msgid ""
350
  "If you select <strong>\"Logged By IP\"</strong> method: Data logs will save "
351
  "for all users, the convey of like/dislike condition will check by user IP"
@@ -353,7 +399,7 @@ msgstr ""
353
  "اگر گزینه <strong>\"با آی پی\"</strong> را انتخاب کنید: اطلاعات وقایع همه ی "
354
  "کاربران ذخیره می شود، شرط بررسی لایک/دیسلایک فقط توسط آی پی انجام میگیرد"
355
 
356
- #: ../admin/admin.php:161 ../admin/admin.php:229 ../admin/admin.php:287
357
  msgid ""
358
  "If you select <strong>\"Logged By Cookie & IP\"</strong> method: Data logs "
359
  "will save for all users, the convey of like/dislike condition will check by "
@@ -363,7 +409,7 @@ msgstr ""
363
  "همه ی کاربران ذخیره می شود، شرط بررسی لایک/دیسلایک توسط کوکی و آی پی انجام "
364
  "میگیرد"
365
 
366
- #: ../admin/admin.php:162 ../admin/admin.php:230 ../admin/admin.php:288
367
  msgid ""
368
  "If you select <strong>\"Logged By Username\"</strong> method: data logs only "
369
  "is saved for registered users, the convey of like/dislike condition will "
@@ -373,38 +419,57 @@ msgstr ""
373
  "تنها برای کابران عضو ذخیره می شود، شرط بررسی لایک/دیسلایک توسط نام کاربری "
374
  "انجام میگیرد، کاربران مهمان اجازه لغو لایک/دیسلایک را نخواهند داشت"
375
 
376
- #: ../admin/admin.php:168 ../admin/admin.php:236 ../admin/admin.php:301
377
  msgid "Show Liked Users Box"
378
  msgstr "نمایش باکس کاربران لایک کرده"
379
 
380
- #: ../admin/admin.php:170 ../admin/admin.php:238 ../admin/admin.php:303
381
  msgid ""
382
  "Active this option to show liked users avatars in the bottom of button like."
383
  msgstr ""
384
  "با فعال سازی این گزینه، می توانید آواتار کاربران لایک کرده، را در زیر دکمه "
385
  "لایک، نمایش دهید."
386
 
387
- #: ../admin/admin.php:175 ../admin/admin.php:243 ../admin/admin.php:308
388
  msgid "Size of Gravatars"
389
  msgstr "سایز آوتار"
390
 
391
- #: ../admin/admin.php:176 ../admin/admin.php:244 ../admin/admin.php:309
392
  msgid "Size of Gravatars to return (max is 512)"
393
  msgstr "سایز تصاویر گراواتار (بیشترین اندازه 512)"
394
 
395
- #: ../admin/admin.php:179
 
 
 
 
 
 
 
 
 
396
  msgid "Users who have LIKED this post:"
397
  msgstr "کاربرانی که این مطلب را پسندیده اند:"
398
 
399
- #: ../admin/admin.php:180 ../admin/admin.php:248 ../admin/admin.php:313
400
- msgid "Users Like Box Title"
401
- msgstr "عنوان باکس کاربران لایک کرده"
 
 
 
 
 
 
 
 
 
 
402
 
403
- #: ../admin/admin.php:185
404
  msgid "Comments"
405
  msgstr "دیدگاه ها"
406
 
407
- #: ../admin/admin.php:192
408
  msgid ""
409
  "If you disable this option, you have to put manually this code on comments "
410
  "text"
@@ -412,27 +477,27 @@ msgstr ""
412
  "اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن دیدگاه "
413
  "ها قرار دهید "
414
 
415
- #: ../admin/admin.php:209
416
  msgid ""
417
  "<strong>Only</strong> registered users have permission to like comments."
418
  msgstr ""
419
  "با فعال سازی این گزینه، <strong>تنها</strong> کاربران عضو شده، می توانند "
420
  "دیدگاه ها را لایک کنند."
421
 
422
- #: ../admin/admin.php:247
423
  msgid "Users who have LIKED this comment:"
424
  msgstr "کاربرانی که این دیدگاه را پسندیده اند:"
425
 
426
- #: ../admin/admin.php:253
427
  msgid "BuddyPress"
428
  msgstr "بادی پرس"
429
 
430
- #: ../admin/admin.php:259
431
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
432
  msgstr ""
433
  "<strong>نمایش در تمامی فعالیت های بادی پرس</strong> در بخش بالایی هر فعالیت"
434
 
435
- #: ../admin/admin.php:260
436
  msgid ""
437
  "If you disable this option, you have to put manually this code on buddypres "
438
  "activities content"
@@ -440,113 +505,90 @@ msgstr ""
440
  "اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن فعالیت "
441
  "ها قرار دهید "
442
 
443
- #: ../admin/admin.php:267
444
  msgid ""
445
  "<strong>Only</strong> registered users have permission to like activities."
446
  msgstr ""
447
  "با فعال سازی این گزینه، <strong>تنها</strong> کاربران عضو شده، می توانند "
448
  "فعالیت های بادی پرس را لایک کنند."
449
 
450
- #: ../admin/admin.php:294
451
  msgid "BuddyPress Activity"
452
  msgstr "فعالیت های بادی پرس"
453
 
454
- #: ../admin/admin.php:296
455
  msgid "insert new likes in buddyPress activity page"
456
  msgstr ""
457
  "با فعال سازی این گزینه، اطلاعات جدیدترین لایک ها به بخش فعالیت های بادی پرس "
458
  "اضافه خواهد شد."
459
 
460
- #: ../admin/admin.php:312
461
  msgid "Users who have liked this activity:"
462
  msgstr "کاربرانی که این فعالیت را پسندیده اند:"
463
 
464
- #: ../admin/admin.php:318
 
 
 
 
 
 
 
 
465
  msgid "Customize"
466
  msgstr "سفارشی سازی"
467
 
468
- #: ../admin/admin.php:323
469
  msgid "Custom Style"
470
  msgstr "سفارشی سازی"
471
 
472
- #: ../admin/admin.php:328
473
  msgid "Active this option to see the custom style settings."
474
  msgstr ""
475
  "با فعال سازی این گزینه، می توانید استایل سفارشی خود را در افزونه به کار "
476
  "ببرید."
477
 
478
- #: ../admin/admin.php:332
479
  msgid "Button style"
480
  msgstr "دکمه لایک"
481
 
482
- #: ../admin/admin.php:333 ../admin/admin.php:346
483
  msgid "Background"
484
  msgstr "رنگ پس زمینه"
485
 
486
- #: ../admin/admin.php:337 ../admin/admin.php:350
487
  msgid "Border Color"
488
  msgstr "رنگ حاشیه"
489
 
490
- #: ../admin/admin.php:341 ../admin/admin.php:354
491
  msgid "Text Color"
492
  msgstr "رنگ متن"
493
 
494
- #: ../admin/admin.php:345
495
  msgid "Counter Style"
496
  msgstr "باکس شمارنده"
497
 
498
- #: ../admin/admin.php:358
499
  msgid "Loading Animation"
500
  msgstr "انیمیشن بارگذاری"
501
 
502
- #: ../admin/admin.php:364
503
- msgid "Dashboard"
504
- msgstr "پیشخوان"
505
-
506
- #: ../admin/admin.php:369
507
- msgid "Visit Post Logs Menu"
508
- msgstr "نمایش منو وقایع لایک در نوشتارها"
509
-
510
- #: ../admin/admin.php:371
511
- msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
512
- msgstr ""
513
- "اگر این گزینه را غیر فعال کنید، منو \"وقایع لایک در نوشتارها\" نمایش داده "
514
- "نخواهد شد. "
515
-
516
- #: ../admin/admin.php:376
517
- msgid "Visit Comment Logs Menu"
518
- msgstr "نمایش منو وقایع لایک در دیدگاه ها"
519
-
520
- #: ../admin/admin.php:378
521
- msgid "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
522
- msgstr ""
523
- "اگر این گزینه را غیر فعال کنید، منو \"وقایع لایک در دیدگاه ها\" نمایش داده "
524
- "نخواهد شد. "
525
-
526
- #: ../admin/admin.php:383
527
- msgid "Visit Activity Logs Menu"
528
- msgstr "نمایش منو وقایع لایک در فعالیت ها"
529
-
530
- #: ../admin/admin.php:385
531
- msgid ""
532
- "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
533
- msgstr ""
534
- "اگر این گزینه را غیر فعال کنید، منو \"وقایع لایک در فعالیت ها\" نمایش داده "
535
- "نخواهد شد. "
536
-
537
- #: ../admin/admin.php:397 ../admin/logs.php:34
538
  msgid "Post Likes Logs"
539
  msgstr "وقایع لایک در نوشتارها"
540
 
541
- #: ../admin/admin.php:401 ../admin/logs.php:160
542
  msgid "Comment Likes Logs"
543
  msgstr "وقایع لایک در دیدگاه ها"
544
 
545
- #: ../admin/admin.php:405 ../admin/logs.php:290
546
  msgid "Activity Likes Logs"
547
  msgstr "وقایع لایک در فعالیت ها"
548
 
549
- #: ../admin/admin.php:408
 
 
 
 
550
  msgid "About WP ULike"
551
  msgstr "درباره وردپرس یولایک"
552
 
@@ -591,127 +633,101 @@ msgstr "حذف %s"
591
  msgid "No action defined."
592
  msgstr "هیچ کاری تعریف نشده است."
593
 
594
- #: ../admin/classes/class-widget.php:8
595
- msgid "WP Ulike - Most Liked Posts"
596
- msgstr "وردپرس یولایک - نمایش پرلایک ترین مطالب"
597
 
598
- #: ../admin/classes/class-widget.php:9
599
- msgid "This widget allows you to show most liked posts."
 
600
  msgstr ""
601
- "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین مطالب سایتتون رو به "
602
- "همراه تعداد لایک هر نوشته، نمایش بدید."
603
 
604
- #: ../admin/classes/class-widget.php:51
605
- msgid "Most Liked Posts"
606
- msgstr "پرلایک ترین مطالب"
607
 
608
- #: ../admin/classes/class-widget.php:55 ../admin/classes/class-widget.php:138
609
- #: ../admin/classes/class-widget.php:220
610
- msgid "Title:"
611
- msgstr "عنوان:"
612
-
613
- #: ../admin/classes/class-widget.php:60
614
- msgid "Number of posts to show:"
615
- msgstr "تعداد مطالب قابل نمایش:"
616
-
617
- #: ../admin/classes/class-widget.php:66 ../admin/classes/class-widget.php:149
618
- #: ../admin/classes/class-widget.php:236
619
- msgid "Activate Like Counter"
620
- msgstr "فعال سازی شمارنده"
621
-
622
- #: ../admin/classes/class-widget.php:88
623
- msgid "WP ULike - Most Liked Comments"
624
- msgstr "وردپرس یولایک - نمایش پرلایک ترین دیدگاه ها"
625
-
626
- #: ../admin/classes/class-widget.php:89
627
- msgid "This widget allows you to show most liked comments."
628
- msgstr ""
629
- "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین دیدگاه های سایتتون "
630
- "رو به همراه تعداد لایک هر دیدگاه، نمایش بدید."
631
-
632
- #: ../admin/classes/class-widget.php:109
633
  msgid "on"
634
  msgstr "در"
635
 
636
- #: ../admin/classes/class-widget.php:143
637
- msgid "Number of comments to show:"
638
- msgstr "تعداد دیدگاه های نمایشی:"
639
 
640
- #: ../admin/classes/class-widget.php:170
641
- msgid "WP Ulike - Most Liked Users"
642
- msgstr "وردپرس یولایک - نمایش پرلایک ترین کاربران"
643
 
644
- #: ../admin/classes/class-widget.php:171
645
- msgid "This widget allows you to show most liked users avatars."
646
- msgstr ""
647
- "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین کاربران سایتتون رو به "
648
- "همراه تصویر آواتار و تعداد لایکشون، نمایش بدید."
649
 
650
- #: ../admin/classes/class-widget.php:216
 
 
 
 
 
 
 
 
651
  msgid "Most Liked Users"
652
  msgstr "پرلایک ترین کاربران"
653
 
654
- #: ../admin/classes/class-widget.php:225
655
- msgid "Number of users to show:"
656
- msgstr "تعداد کاربران قابل نمایش:"
657
 
658
- #: ../admin/classes/class-widget.php:230
 
 
 
 
659
  msgid "User avatar size:"
660
  msgstr "سایز آواتار کاربران:"
661
 
662
- #: ../admin/logs.php:33 ../admin/logs.php:159 ../admin/logs.php:289
 
 
 
 
663
  msgid "WP ULike Logs"
664
  msgstr "وقایع اتفاقیه در وردپرس یولایک"
665
 
666
- #: ../admin/logs.php:43 ../admin/logs.php:169 ../admin/logs.php:299
667
  msgid "ID"
668
  msgstr "شناسه"
669
 
670
- #: ../admin/logs.php:44 ../admin/logs.php:170 ../admin/logs.php:300
671
  msgid "Username"
672
  msgstr "نام کاربری"
673
 
674
- #: ../admin/logs.php:45 ../admin/logs.php:171 ../admin/logs.php:301
675
  msgid "Status"
676
  msgstr "وضعیت"
677
 
678
- #: ../admin/logs.php:46
679
  msgid "Post ID"
680
  msgstr "شناسه نوشتار"
681
 
682
- #: ../admin/logs.php:47
683
  msgid "Post Title"
684
  msgstr "عنوان نوشتار"
685
 
686
- #: ../admin/logs.php:48 ../admin/logs.php:175 ../admin/logs.php:304
687
  msgid "Date / Time"
688
  msgstr "تاریخ / زمان"
689
 
690
- #: ../admin/logs.php:49 ../admin/logs.php:176 ../admin/logs.php:305
691
  msgid "IP"
692
  msgstr "آدرس IP"
693
 
694
- #: ../admin/logs.php:67 ../admin/logs.php:194 ../admin/logs.php:323
695
  msgid "Guest User"
696
  msgstr "کاربر مهمان"
697
 
698
- #: ../admin/logs.php:109
699
- msgid "Post Likes Logs Stats"
700
- msgstr "وضعیت وقایع لایک در نوشتارها"
701
-
702
- #: ../admin/logs.php:113 ../admin/logs.php:243 ../admin/logs.php:369
703
- msgid "Total Users Liked:"
704
- msgstr "مجموع لایک کاربران:"
705
-
706
- #: ../admin/logs.php:117
707
- msgid "Total Posts Liked:"
708
- msgstr "تعداد مطالب لایک شده:"
709
-
710
- #: ../admin/logs.php:121 ../admin/logs.php:251 ../admin/logs.php:377
711
- msgid "Total Likes Sum:"
712
- msgstr "مجموع همه ی لایک ها:"
713
-
714
- #: ../admin/logs.php:128 ../admin/logs.php:258 ../admin/logs.php:384
715
  msgid ""
716
  "<strong>ERROR:</strong> No Record Found. (This problem is created because "
717
  "you don't have any data on this table)"
@@ -719,167 +735,186 @@ msgstr ""
719
  "<strong>خطا:</strong> چیزی یافت نشد. (این مشکل به خاطر این مسأله ایجاد شده "
720
  "است که شما هیچ اطلاعاتی را در این جدول ندارید)"
721
 
722
- #: ../admin/logs.php:172
723
  msgid "Comment ID"
724
  msgstr "شناسه دیدگاه"
725
 
726
- #: ../admin/logs.php:173
727
  msgid "Comment Author"
728
  msgstr "نویسنده دیدگاه"
729
 
730
- #: ../admin/logs.php:174
731
  msgid "Comment Text"
732
  msgstr "متن دیدگاه"
733
 
734
- #: ../admin/logs.php:239
735
- msgid "Comment Likes Logs Stats"
736
- msgstr "وضعیت وقایع لایک در دیدگاه ها"
737
-
738
- #: ../admin/logs.php:247
739
- msgid "Total Comments Liked:"
740
- msgstr "تعداد دیدگاه های لایک شده:"
741
-
742
- #: ../admin/logs.php:302
743
  msgid "Activity ID"
744
  msgstr "شناسه فعالیت"
745
 
746
- #: ../admin/logs.php:303
747
  msgid "Permalink"
748
  msgstr "لینک همیشگی"
749
 
750
- #: ../admin/logs.php:339
751
  #, php-format
752
  msgid "<a href=\"%1$s\">Activity Permalink</a>"
753
  msgstr "<a href=\"%1$s\">مشاهده فعالیت</a>"
754
 
755
- #: ../admin/logs.php:365
756
- msgid "Activity Likes Logs Stats"
757
- msgstr "وضعیت وقایع لایک در فعالیت های بادی پرس"
758
 
759
- #: ../admin/logs.php:373
760
- msgid "Total Activities Liked:"
761
- msgstr "مجموع فعالیت های لایک شده:"
762
 
763
- #: ../inc/wp-functions.php:236
764
- msgid "WP ULike Activity"
765
- msgstr "فعالیت های وردپرس یولایک"
766
 
767
- #: ../inc/wp-functions.php:246 ../inc/wp-functions.php:256
768
- msgid "liked"
769
- msgstr " پسندید"
770
 
771
- #: ../inc/wp-functions.php:246
772
- msgid "comment"
773
- msgstr " را در دیدگاهش"
 
774
 
775
- #: ../inc/wp-strings.php:3
776
- msgid "WP ULike - Most Liked Activities"
777
- msgstr "وردپرس یولایک - نمایش پرلایک ترین فعالیت های بادی پرس"
778
 
779
- #: ../inc/wp-strings.php:4
780
- msgid "This widget allows you to show most liked activities."
781
- msgstr ""
782
- "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین فعالیت های بادی پرس "
783
- "رو به همراه تعداد لایک در هر فعالیت، نمایش بدید."
784
 
785
- #: ../inc/wp-strings.php:5
786
- msgid "Most Liked Activities"
787
- msgstr "پرلایک ترین فعالیت ها"
788
 
789
- #: ../inc/wp-strings.php:6
790
- msgid "Users Login Text"
791
- msgstr "متن ورود کاربران"
792
 
793
- #: ../inc/wp-strings.php:7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
794
  msgid "Allow To Like"
795
  msgstr "مجاز به لایک"
796
 
797
- #: ../inc/wp-strings.php:8
798
  msgid "Guests Only"
799
  msgstr "فقط مهمانان"
800
 
801
- #: ../inc/wp-strings.php:9
802
  msgid "Registered Users Only"
803
  msgstr "فقط کاربران عضو شده"
804
 
805
- #: ../inc/wp-strings.php:10
806
  msgid "Registered Users And Guests"
807
  msgstr "کاربران عضو و مهمان"
808
 
809
- #: ../inc/wp-strings.php:11
810
  msgid "Who Is Allowed To Like?"
811
  msgstr "چه کسی اجازه‌ی امتیاز دادن دارد؟"
812
 
813
- #: ../inc/wp-strings.php:12
814
  msgid "Filter Options:"
815
  msgstr "گزینه‌های پالایش:"
816
 
817
- #: ../inc/wp-strings.php:13
818
  msgid "Sort Options:"
819
  msgstr "گزینه‌های مرتب‌سازی"
820
 
821
- #: ../inc/wp-strings.php:14
822
  msgid "Themes"
823
  msgstr "قالب ها"
824
 
825
- #: ../inc/wp-strings.php:15
826
  msgid "Dislike"
827
  msgstr "دیسلایک"
828
 
829
- #: ../inc/wp-strings.php:16
830
  msgid "Dislike Support"
831
  msgstr "پشتیبانی از دیسلایک"
832
 
833
- #: ../inc/wp-strings.php:17
834
  msgid "Text After Dislike"
835
  msgstr "متن پس از دیسلایک"
836
 
837
- #: ../inc/wp-strings.php:18
838
  msgid "Show Counter"
839
  msgstr "نمایش شمارنده"
840
 
841
- #: ../inc/wp-strings.php:19
842
  msgid "Show tooltips"
843
  msgstr "نمایش تولتیپ"
844
 
845
- #: ../inc/wp-strings.php:20
846
  msgid "Alignment"
847
  msgstr "قرارگیری"
848
 
849
- #: ../inc/wp-strings.php:21
850
  msgid "Left"
851
  msgstr "چپ"
852
 
853
- #: ../inc/wp-strings.php:22
854
  msgid "Center"
855
  msgstr "وسط"
856
 
857
- #: ../inc/wp-strings.php:23
858
  msgid "Right"
859
  msgstr "راست"
860
 
861
- #: ../inc/wp-strings.php:24
862
  msgid "Cookie Life time"
863
  msgstr "عمر کوکی"
864
 
865
- #: ../inc/wp-strings.php:25
866
  msgid "BuddyPress Notifications"
867
  msgstr "اطلاعیه های بادی پرس"
868
 
869
- #: ../inc/wp-ulike-buddypress.php:45
870
  msgid "You need to login in order to like this activity: "
871
  msgstr "برای امتیاز دهی به این فعالیت، لطفا وارد شوید: "
872
 
873
- #: ../inc/wp-ulike-buddypress.php:45 ../inc/wp-ulike-comments.php:45
874
- #: ../inc/wp-ulike-posts.php:46
875
  msgid "click here"
876
  msgstr "برای ورود کلیک کنید"
877
 
878
- #: ../inc/wp-ulike-comments.php:45
879
  msgid "You need to login in order to like this comment: "
880
  msgstr "برای امتیاز دهی به این دیدگاه، لطفا وارد شوید: "
881
 
882
- #: ../inc/wp-ulike-posts.php:46
883
  msgid "You need to login in order to like this post: "
884
  msgstr "برای امتیاز دهی به این مطلب، لطفا وارد شوید: "
885
 
@@ -897,6 +932,122 @@ msgstr ""
897
  "سفارشی سازی استایل ها و… تمامی قابلیت های یک سیستم خوب و حرفه ای رو در "
898
  "اختیار شما قرار میده."
899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
900
  #~ msgid ""
901
  #~ "If you select \"Do Not Log\" or \"Logged By Cookie\" methods, you can't "
902
  #~ "save any logs data and also users can not unlike/undislike."
@@ -908,10 +1059,6 @@ msgstr ""
908
  #~ msgid "<strong>On all comments</strong> at the bottom of the comment"
909
  #~ msgstr "<strong>نمایش در تمامی دیدگاه ها</strong> در زیر متن هر دیدگاه"
910
 
911
- #, fuzzy
912
- #~ msgid "WP ULike Template"
913
- #~ msgstr "تمپلیت وردپرس یولایک"
914
-
915
  #~ msgid ""
916
  #~ "<strong>On all posts</strong> (home, archives, search) at the bottom of "
917
  #~ "the post"
@@ -996,9 +1143,6 @@ msgstr ""
996
  #~ msgid "<strong>Active</strong> this option."
997
  #~ msgstr "می خواهم این قابلیت را<strong>فعال</strong> کنم"
998
 
999
- #~ msgid "WP Ulike Widget"
1000
- #~ msgstr "ابزارک یولایک"
1001
-
1002
  #~ msgid ""
1003
  #~ "This plugin allows your visitors to simply like your posts instead of "
1004
  #~ "comment it."
@@ -1018,6 +1162,3 @@ msgstr ""
1018
  #~ msgstr ""
1019
  #~ "اگر پیش ازاین، از چارچوب جی کوئری در قالب خود استفاده کرده اید، این "
1020
  #~ "قابلیت را غیر فعال کنید."
1021
-
1022
- #~ msgid "wp and programming world"
1023
- #~ msgstr "دنیای وردپرس و برنامه نویسی"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
+ "POT-Creation-Date: 2015-01-29 22:35+0330\n"
5
+ "PO-Revision-Date: 2015-01-30 17:24+0330\n"
6
  "Last-Translator: Alimir <info@alimir.ir>\n"
7
  "Language-Team: alimir.ir <info@alimir.ir>\n"
8
  "Language: fa_IR\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
+ #: ../admin/about.php:74
20
  msgid "Welcome to WP ULike"
21
  msgstr "به وردپرس یولایک خوش آمدید"
22
 
23
+ #: ../admin/about.php:76
24
  msgid ""
25
  "Thank you for choosing WP ULike! This version is our leanest and most "
26
  "powerful version yet."
28
  "از اینکه از افزونه وردپرس یولایک استفاده می کنید، خیلی ممنونیم! نسخه ی جدید، "
29
  "قویترین و کامل ترین نسخه منتشر شده از این افزونه است."
30
 
31
+ #: ../admin/about.php:77
32
  msgid "Visit our homepage"
33
  msgstr "مشاهده صفحه افزونه"
34
 
35
+ #: ../admin/about.php:79
36
+ msgid "Version"
37
+ msgstr "نسخه"
38
+
39
+ #: ../admin/about.php:82
40
  msgid "Getting Started"
41
  msgstr "شروع "
42
 
43
+ #: ../admin/about.php:83
44
  msgid "Credits"
45
  msgstr "دست‌اندرکاران"
46
 
47
+ #: ../admin/about.php:84
48
  msgid "Support"
49
  msgstr "پشتیبانی"
50
 
51
+ #: ../admin/about.php:85
52
  msgid "FAQ"
53
  msgstr "سؤالات متداول"
54
 
55
+ #: ../admin/about.php:86
56
  msgid "Reviews"
57
  msgstr "امتیازدهی"
58
 
59
+ #: ../admin/about.php:87
60
  msgid "Contact"
61
  msgstr "تماس با ما"
62
 
63
+ #: ../admin/about.php:99
64
  msgid "Novelty Of WP ULike"
65
  msgstr "تازه های وردپرس یولایک"
66
 
67
+ #: ../admin/about.php:103
68
+ msgid "New Statistics Page"
69
+ msgstr "صفحه جدید آماره"
70
+
71
+ #: ../admin/about.php:108
72
+ msgid "New Class-based programming"
73
+ msgstr "کدنویسی جدید شیء گرا"
74
+
75
+ #: ../admin/about.php:115 ../admin/classes/class-widget.php:241
76
  msgid "Most Liked Comments"
77
  msgstr "پرلایک ترین دیدگاه ها"
78
 
79
+ #: ../admin/about.php:120 ../admin/admin.php:193 ../admin/admin.php:269
80
+ #: ../admin/admin.php:335
81
  msgid "Logging Method"
82
  msgstr "روش وقایع نگاری"
83
 
84
+ #: ../admin/about.php:128
85
  msgid "New options in logs pages"
86
  msgstr "قابلیت های جدید در صفحات وقایع"
87
 
88
+ #: ../admin/about.php:133
89
  msgid "New setting panel"
90
  msgstr "صفحه تنظیمات جدید و پیشرفته"
91
 
92
+ #: ../admin/about.php:141
93
  msgid "Better coding on plugin files"
94
  msgstr "بهبود توابع و کدنویسی فایل های افزونه"
95
 
96
+ #: ../admin/about.php:146
97
  msgid "Buddypress likes support"
98
  msgstr "پشتیبانی وردپرس یولایک از بادی پرس"
99
 
100
+ #: ../admin/about.php:151
101
  msgid "Likes logs support"
102
  msgstr "پشتیبانی از نمایش آخرین وقایع در لایک ها"
103
 
104
+ #: ../admin/about.php:160
105
  msgid "WP ULike is created by many love and time. Enjoy it :)"
106
  msgstr ""
107
  "وردپرس یولایک با صرف کلی علاقه و زمان ساخته شده است. امیدواریم که از آن لذت "
108
  "ببرید :)"
109
 
110
+ #: ../admin/about.php:161
111
  msgid "Project Leaders"
112
  msgstr "سازندگان اصلی"
113
 
114
+ #: ../admin/about.php:166
115
  msgid "Project Lead & Developer"
116
  msgstr "راهبر پروژه، توسعه دهنده ارشد"
117
 
118
+ #: ../admin/about.php:170
119
  msgid "Translations"
120
  msgstr "ترجمه ها"
121
 
122
+ #: ../admin/about.php:180
123
+ msgid "Other Plugins"
124
+ msgstr "سایر افزونه ها"
125
+
126
+ #: ../admin/about.php:199
127
  msgid "Like this plugin?"
128
  msgstr "این پلاگین چندتا لایک داره؟!؟ :)"
129
 
130
+ #: ../admin/about.php:200
131
  msgid ""
132
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
133
  "wp-ulike\"> Plugin Directory reviews</a>"
135
  "حمایتتون رو از این افزونه، با امتیاز 5 ستاره در <a href=\"http://wordpress."
136
  "org/plugins/wp-ulike\">مخزن وردپرس</a> مشخص کنید..."
137
 
138
+ #: ../admin/admin.php:39
139
+ #, php-format
140
+ msgid ""
141
+ " Thank you for choosing <a href=\"%s\" title=\"Wordpress ULike\" target="
142
+ "\"_blank\">WP ULike</a>. Created by <a href=\"%s\" title=\"Wordpress ULike\" "
143
+ "target=\"_blank\">Ali Mirzaei</a>"
144
+ msgstr ""
145
+ " ممنون از اينکه <a href=\"%s\" title=\"Wordpress ULike\" target=\"_blank"
146
+ "\">وردپرس يولايک را</a> انتخاب کرده ايد. طراحي و کدنويسي توسط <a href=\"%s\" "
147
+ "title=\"Wordpress ULike\" target=\"_blank\">علي ميرزائي</a>"
148
+
149
+ #: ../admin/admin.php:70
150
  msgid "WP ULike Settings"
151
  msgstr "تنظیمات وردپرس یولایک"
152
 
153
+ #: ../admin/admin.php:73
154
  msgid "WP ULike"
155
  msgstr "وردپرس یولایک"
156
 
157
+ #: ../admin/admin.php:78
158
  msgid "General"
159
  msgstr "عمومی"
160
 
161
+ #: ../admin/admin.php:82
162
  msgid "Button Type"
163
  msgstr "حالت دکمه"
164
 
165
+ #: ../admin/admin.php:85
166
  msgid "Icon"
167
  msgstr "آیکن"
168
 
169
+ #: ../admin/admin.php:86
170
  msgid "Text"
171
  msgstr "متن"
172
 
173
+ #: ../admin/admin.php:90 ../admin/classes/class-widget.php:178
174
  msgid "Like"
175
  msgstr "لایک"
176
 
177
+ #: ../admin/admin.php:91
178
  msgid "Button Text"
179
  msgstr "متن دکمه"
180
 
181
+ #: ../admin/admin.php:95
182
  msgid "Button Icon"
183
  msgstr "آیکن دکمه"
184
 
185
+ #: ../admin/admin.php:96 ../admin/admin.php:442
186
  msgid "Best size: 16x16"
187
  msgstr "سایز مناسب : 16x16"
188
 
189
+ #: ../admin/admin.php:101
190
  msgid "Format Number"
191
  msgstr "فرمت اعداد"
192
 
193
+ #: ../admin/admin.php:102 ../admin/admin.php:113 ../admin/admin.php:155
194
+ #: ../admin/admin.php:187 ../admin/admin.php:216 ../admin/admin.php:246
195
+ #: ../admin/admin.php:263 ../admin/admin.php:292 ../admin/admin.php:329
196
+ #: ../admin/admin.php:358 ../admin/admin.php:365 ../admin/admin.php:407
 
197
  msgid "Activate"
198
  msgstr "فعال سازی"
199
 
200
+ #: ../admin/admin.php:103
201
  msgid "Convert numbers of Likes with string (kilobyte) format."
202
  msgstr ""
203
  "با فعال سازی این گزینه، می توانید اعداد بالای 1000 را با فرمت رشته ای "
204
  "(کیلوبایت) نمایش دهید."
205
 
206
+ #: ../admin/admin.php:106
207
  msgid "Unlike"
208
  msgstr " لغو پسندیدن"
209
 
210
+ #: ../admin/admin.php:107
211
  msgid "Text After Like"
212
  msgstr "متن پس از لایک"
213
 
214
+ #: ../admin/admin.php:112
215
  msgid "Return To The Initial"
216
  msgstr "بازگشت به حالت اولیه"
217
 
218
+ #: ../admin/admin.php:114
219
  msgid ""
220
  "Return to the initial Like button after Unlike. (Not Showing text after "
221
  "unlike)"
224
  "متن) باز میگردد. (در این حالت، تنظیمات \"متن پس از لغو لایک\" نمایش داده نمی "
225
  "شود)"
226
 
227
+ #: ../admin/admin.php:117
228
  msgid "Like Me Again!"
229
  msgstr "پسندیدن مجدد!"
230
 
231
+ #: ../admin/admin.php:118
232
  msgid "Text After Unlike"
233
  msgstr "متن پس از لغو لایک"
234
 
235
+ #: ../admin/admin.php:121
236
  msgid "You have not permission to unlike"
237
  msgstr "شما اجازه لغو پسندیدن را ندارید"
238
 
239
+ #: ../admin/admin.php:122
240
  msgid "Permission Text"
241
  msgstr "متن تولتیپ دسترسی"
242
 
243
+ #: ../admin/admin.php:126
244
+ msgid "Users Login Type"
245
+ msgstr "متن ورود کاربران"
246
+
247
+ #: ../admin/admin.php:129
248
+ msgid "Alert Box"
249
+ msgstr "جعبه پیغام"
250
+
251
+ #: ../admin/admin.php:130
252
+ msgid "Like Button"
253
+ msgstr "دکمه لایک"
254
+
255
+ #: ../admin/admin.php:134
256
+ msgid "You Should Login To Submit Your Like"
257
+ msgstr "برای ثبت لایک، باید وارد شوید"
258
+
259
+ #: ../admin/admin.php:135
260
+ msgid "Users Login Text"
261
+ msgstr "متن ورود کاربران"
262
+
263
+ #: ../admin/admin.php:142
264
  msgid "Settings saved."
265
  msgstr "تنظیمات ذخیره شد"
266
 
267
+ #: ../admin/admin.php:149
268
  msgid "Posts"
269
  msgstr "نوشته ها"
270
 
271
+ #: ../admin/admin.php:154 ../admin/admin.php:245 ../admin/admin.php:321
272
  msgid "Automatic display"
273
  msgstr "نمایش خودکار"
274
 
275
+ #: ../admin/admin.php:156
276
  msgid ""
277
  "If you disable this option, you have to put manually this code on wordpress "
278
  "while loop"
280
  "اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در حلقه مطالب "
281
  "وردپرس قرار دهید "
282
 
283
+ #: ../admin/admin.php:160 ../admin/admin.php:251
284
  msgid "Auto Display Position"
285
  msgstr "محل قرار گیری در نمایش خودکار"
286
 
287
+ #: ../admin/admin.php:163 ../admin/admin.php:254
288
  msgid "Top of Content"
289
  msgstr "بالای محتوا"
290
 
291
+ #: ../admin/admin.php:164 ../admin/admin.php:255
292
  msgid "Bottom of Content"
293
  msgstr "پایین محتوا"
294
 
295
+ #: ../admin/admin.php:165 ../admin/admin.php:256
296
  msgid "Top and Bottom"
297
  msgstr "بالا و پایین"
298
 
299
+ #: ../admin/admin.php:170
300
  msgid "Auto Display Filter"
301
  msgstr "فیلتر گذاری در نمایش خودکار"
302
 
303
+ #: ../admin/admin.php:172
304
  msgid "Home"
305
  msgstr "خانه"
306
 
307
+ #: ../admin/admin.php:173
308
  msgid "Single Posts"
309
  msgstr "تک نوشته ها"
310
 
311
+ #: ../admin/admin.php:174
312
  msgid "Pages"
313
  msgstr "برگه ها"
314
 
315
+ #: ../admin/admin.php:175
316
  msgid "Archives"
317
  msgstr "بایگانی"
318
 
319
+ #: ../admin/admin.php:176
320
  msgid "Categories"
321
  msgstr "دسته بندی ها"
322
 
323
+ #: ../admin/admin.php:177
324
  msgid "Search Results"
325
  msgstr "نتایج جستجوها"
326
 
327
+ #: ../admin/admin.php:178
328
  msgid "Tags"
329
  msgstr "برچسب ها"
330
 
331
+ #: ../admin/admin.php:179
332
  msgid "Author Page"
333
  msgstr "صفحه نویسنده"
334
 
335
+ #: ../admin/admin.php:181
336
  msgid "You can filter theses pages on auto display option."
337
  msgstr ""
338
  "شما می توانید بر روی این صفحات فیلتر گذاری کنید تا دکمه لایک نمایش داده نشود"
339
 
340
+ #: ../admin/admin.php:186 ../admin/admin.php:262 ../admin/admin.php:328
341
  msgid "Only registered Users"
342
  msgstr "محدودسازی لایک کاربران"
343
 
344
+ #: ../admin/admin.php:188
345
  msgid "<strong>Only</strong> registered users have permission to like posts."
346
  msgstr ""
347
  "با فعال سازی این گزینه، <strong>تنها</strong> کاربران عضو شده، می توانند "
348
  "مطالب را لایک کنند."
349
 
350
+ #: ../admin/admin.php:195 ../admin/admin.php:271 ../admin/admin.php:337
351
  msgid "Do Not Log"
352
  msgstr "وقایع نگاری نکن"
353
 
354
+ #: ../admin/admin.php:196 ../admin/admin.php:272 ../admin/admin.php:338
355
  msgid "Logged By Cookie"
356
  msgstr "با کوکی"
357
 
358
+ #: ../admin/admin.php:197 ../admin/admin.php:273 ../admin/admin.php:339
359
  msgid "Logged By IP"
360
  msgstr "با آی پی"
361
 
362
+ #: ../admin/admin.php:198 ../admin/admin.php:274 ../admin/admin.php:340
363
  msgid "Logged By Cookie & IP"
364
  msgstr "با کوکی و آی پی"
365
 
366
+ #: ../admin/admin.php:199 ../admin/admin.php:275 ../admin/admin.php:341
367
  msgid "Logged By Username"
368
  msgstr "با نام کاربری"
369
 
370
+ #: ../admin/admin.php:203 ../admin/admin.php:279 ../admin/admin.php:345
371
  msgid "Attention!"
372
  msgstr "توجه! "
373
 
374
+ #: ../admin/admin.php:205 ../admin/admin.php:281 ../admin/admin.php:347
375
  msgid ""
376
  "If you select <strong>\"Do Not Log\"</strong> method: Any data logs can't "
377
  "save, There is no limitation in the like/dislike, unlike/undislike capacity "
381
  "وقایعی ذخیره نمی شود، هیچ شرط محدود کننده ای برای لایک/دیسلایک بررسی نمی "
382
  "شود، قابلیت لغو لایک/دیسلایک وجود نخواهد داشت"
383
 
384
+ #: ../admin/admin.php:206 ../admin/admin.php:282 ../admin/admin.php:348
385
  msgid ""
386
  "If you select <strong>\"Logged By Cookie\"</strong> method: Any data logs "
387
  "can't save, The like/dislike condition will be limited by SetCookie, unlike/"
391
  "ذخیره نمی شود، شرط بررسی لایک/دیسلایک توسط کوکی محدود می شود، قابلیت لغو "
392
  "لایک/دیسلایک وجود نخواهد داشت"
393
 
394
+ #: ../admin/admin.php:207 ../admin/admin.php:283 ../admin/admin.php:349
395
  msgid ""
396
  "If you select <strong>\"Logged By IP\"</strong> method: Data logs will save "
397
  "for all users, the convey of like/dislike condition will check by user IP"
399
  "اگر گزینه <strong>\"با آی پی\"</strong> را انتخاب کنید: اطلاعات وقایع همه ی "
400
  "کاربران ذخیره می شود، شرط بررسی لایک/دیسلایک فقط توسط آی پی انجام میگیرد"
401
 
402
+ #: ../admin/admin.php:208 ../admin/admin.php:284 ../admin/admin.php:350
403
  msgid ""
404
  "If you select <strong>\"Logged By Cookie & IP\"</strong> method: Data logs "
405
  "will save for all users, the convey of like/dislike condition will check by "
409
  "همه ی کاربران ذخیره می شود، شرط بررسی لایک/دیسلایک توسط کوکی و آی پی انجام "
410
  "میگیرد"
411
 
412
+ #: ../admin/admin.php:209 ../admin/admin.php:285 ../admin/admin.php:351
413
  msgid ""
414
  "If you select <strong>\"Logged By Username\"</strong> method: data logs only "
415
  "is saved for registered users, the convey of like/dislike condition will "
419
  "تنها برای کابران عضو ذخیره می شود، شرط بررسی لایک/دیسلایک توسط نام کاربری "
420
  "انجام میگیرد، کاربران مهمان اجازه لغو لایک/دیسلایک را نخواهند داشت"
421
 
422
+ #: ../admin/admin.php:215 ../admin/admin.php:291 ../admin/admin.php:364
423
  msgid "Show Liked Users Box"
424
  msgstr "نمایش باکس کاربران لایک کرده"
425
 
426
+ #: ../admin/admin.php:217 ../admin/admin.php:293 ../admin/admin.php:366
427
  msgid ""
428
  "Active this option to show liked users avatars in the bottom of button like."
429
  msgstr ""
430
  "با فعال سازی این گزینه، می توانید آواتار کاربران لایک کرده، را در زیر دکمه "
431
  "لایک، نمایش دهید."
432
 
433
+ #: ../admin/admin.php:222 ../admin/admin.php:298 ../admin/admin.php:371
434
  msgid "Size of Gravatars"
435
  msgstr "سایز آوتار"
436
 
437
+ #: ../admin/admin.php:223 ../admin/admin.php:299 ../admin/admin.php:372
438
  msgid "Size of Gravatars to return (max is 512)"
439
  msgstr "سایز تصاویر گراواتار (بیشترین اندازه 512)"
440
 
441
+ #: ../admin/admin.php:228 ../admin/admin.php:304 ../admin/admin.php:377
442
+ msgid "Number Of The Users"
443
+ msgstr "تعداد کاربران قابل نمایش"
444
+
445
+ #: ../admin/admin.php:229 ../admin/admin.php:305 ../admin/admin.php:378
446
+ msgid "The number of users to show in the users liked box"
447
+ msgstr "حداکثر چند کاربر در باکس لایک کنندگان، نمایش داده شوند؟!؟"
448
+
449
+ #: ../admin/admin.php:233 ../admin/admin.php:235
450
+ #: ../inc/classes/class-ulike.php:409
451
  msgid "Users who have LIKED this post:"
452
  msgstr "کاربرانی که این مطلب را پسندیده اند:"
453
 
454
+ #: ../admin/admin.php:234 ../admin/admin.php:310 ../admin/admin.php:383
455
+ msgid "Users Like Box Template"
456
+ msgstr "قالب جعبه لایک کاربران"
457
+
458
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
459
+ #: ../admin/admin.php:390 ../admin/admin.php:396
460
+ msgid "Allowed Variables:"
461
+ msgstr "متغیرهای قابل استفاده:"
462
+
463
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
464
+ #: ../admin/admin.php:390 ../admin/admin.php:396
465
+ msgid "Default Template:"
466
+ msgstr "قالب پیشفرض:"
467
 
468
+ #: ../admin/admin.php:240
469
  msgid "Comments"
470
  msgstr "دیدگاه ها"
471
 
472
+ #: ../admin/admin.php:247
473
  msgid ""
474
  "If you disable this option, you have to put manually this code on comments "
475
  "text"
477
  "اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن دیدگاه "
478
  "ها قرار دهید "
479
 
480
+ #: ../admin/admin.php:264
481
  msgid ""
482
  "<strong>Only</strong> registered users have permission to like comments."
483
  msgstr ""
484
  "با فعال سازی این گزینه، <strong>تنها</strong> کاربران عضو شده، می توانند "
485
  "دیدگاه ها را لایک کنند."
486
 
487
+ #: ../admin/admin.php:309 ../admin/admin.php:311
488
  msgid "Users who have LIKED this comment:"
489
  msgstr "کاربرانی که این دیدگاه را پسندیده اند:"
490
 
491
+ #: ../admin/admin.php:316
492
  msgid "BuddyPress"
493
  msgstr "بادی پرس"
494
 
495
+ #: ../admin/admin.php:322
496
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
497
  msgstr ""
498
  "<strong>نمایش در تمامی فعالیت های بادی پرس</strong> در بخش بالایی هر فعالیت"
499
 
500
+ #: ../admin/admin.php:323
501
  msgid ""
502
  "If you disable this option, you have to put manually this code on buddypres "
503
  "activities content"
505
  "اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن فعالیت "
506
  "ها قرار دهید "
507
 
508
+ #: ../admin/admin.php:330
509
  msgid ""
510
  "<strong>Only</strong> registered users have permission to like activities."
511
  msgstr ""
512
  "با فعال سازی این گزینه، <strong>تنها</strong> کاربران عضو شده، می توانند "
513
  "فعالیت های بادی پرس را لایک کنند."
514
 
515
+ #: ../admin/admin.php:357
516
  msgid "BuddyPress Activity"
517
  msgstr "فعالیت های بادی پرس"
518
 
519
+ #: ../admin/admin.php:359
520
  msgid "insert new likes in buddyPress activity page"
521
  msgstr ""
522
  "با فعال سازی این گزینه، اطلاعات جدیدترین لایک ها به بخش فعالیت های بادی پرس "
523
  "اضافه خواهد شد."
524
 
525
+ #: ../admin/admin.php:382 ../admin/admin.php:384
526
  msgid "Users who have liked this activity:"
527
  msgstr "کاربرانی که این فعالیت را پسندیده اند:"
528
 
529
+ #: ../admin/admin.php:389
530
+ msgid "Post Activity Text"
531
+ msgstr "متن فعالیت مطالب"
532
+
533
+ #: ../admin/admin.php:395
534
+ msgid "Comment Activity Text"
535
+ msgstr "متن فعالیت دیدگاه ها"
536
+
537
+ #: ../admin/admin.php:401
538
  msgid "Customize"
539
  msgstr "سفارشی سازی"
540
 
541
+ #: ../admin/admin.php:406
542
  msgid "Custom Style"
543
  msgstr "سفارشی سازی"
544
 
545
+ #: ../admin/admin.php:411
546
  msgid "Active this option to see the custom style settings."
547
  msgstr ""
548
  "با فعال سازی این گزینه، می توانید استایل سفارشی خود را در افزونه به کار "
549
  "ببرید."
550
 
551
+ #: ../admin/admin.php:415
552
  msgid "Button style"
553
  msgstr "دکمه لایک"
554
 
555
+ #: ../admin/admin.php:416 ../admin/admin.php:429
556
  msgid "Background"
557
  msgstr "رنگ پس زمینه"
558
 
559
+ #: ../admin/admin.php:420 ../admin/admin.php:433
560
  msgid "Border Color"
561
  msgstr "رنگ حاشیه"
562
 
563
+ #: ../admin/admin.php:424 ../admin/admin.php:437
564
  msgid "Text Color"
565
  msgstr "رنگ متن"
566
 
567
+ #: ../admin/admin.php:428
568
  msgid "Counter Style"
569
  msgstr "باکس شمارنده"
570
 
571
+ #: ../admin/admin.php:441
572
  msgid "Loading Animation"
573
  msgstr "انیمیشن بارگذاری"
574
 
575
+ #: ../admin/admin.php:460 ../admin/logs.php:44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
576
  msgid "Post Likes Logs"
577
  msgstr "وقایع لایک در نوشتارها"
578
 
579
+ #: ../admin/admin.php:462 ../admin/logs.php:161
580
  msgid "Comment Likes Logs"
581
  msgstr "وقایع لایک در دیدگاه ها"
582
 
583
+ #: ../admin/admin.php:464 ../admin/logs.php:284
584
  msgid "Activity Likes Logs"
585
  msgstr "وقایع لایک در فعالیت ها"
586
 
587
+ #: ../admin/admin.php:466
588
+ msgid "WP ULike Statistics"
589
+ msgstr "آماره وردپرس یولایک"
590
+
591
+ #: ../admin/admin.php:468
592
  msgid "About WP ULike"
593
  msgstr "درباره وردپرس یولایک"
594
 
633
  msgid "No action defined."
634
  msgstr "هیچ کاری تعریف نشده است."
635
 
636
+ #: ../admin/classes/class-widget.php:11
637
+ msgid "WP Ulike Widget"
638
+ msgstr "ابزارک یولایک"
639
 
640
+ #: ../admin/classes/class-widget.php:12
641
+ msgid ""
642
+ "An advanced widget that gives you all most liked records with different types"
643
  msgstr ""
644
+ "یک ابزارک ساده و کاربردی برای نمایش بیشترین لایک شده ها در چندین نوع مختلف"
 
645
 
646
+ #: ../admin/classes/class-widget.php:78
647
+ msgid "you haven't liked any post yet!"
648
+ msgstr "شما هنوز هیچ نوشته ای را لایک نکرده اید! :("
649
 
650
+ #: ../admin/classes/class-widget.php:107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  msgid "on"
652
  msgstr "در"
653
 
654
+ #: ../admin/classes/class-widget.php:229
655
+ msgid "Most Liked"
656
+ msgstr "بیشترین لایک شده ها"
657
 
658
+ #: ../admin/classes/class-widget.php:233
659
+ msgid "Title:"
660
+ msgstr "عنوان:"
661
 
662
+ #: ../admin/classes/class-widget.php:238
663
+ msgid "Type:"
664
+ msgstr "نوع:"
 
 
665
 
666
+ #: ../admin/classes/class-widget.php:240
667
+ msgid "Most Liked Posts"
668
+ msgstr "پرلایک ترین مطالب"
669
+
670
+ #: ../admin/classes/class-widget.php:242
671
+ msgid "Most Liked Activities"
672
+ msgstr "پرلایک ترین فعالیت ها"
673
+
674
+ #: ../admin/classes/class-widget.php:243
675
  msgid "Most Liked Users"
676
  msgstr "پرلایک ترین کاربران"
677
 
678
+ #: ../admin/classes/class-widget.php:244
679
+ msgid "Last Posts Liked By User"
680
+ msgstr "آخرین مطالب لایک شده توسط کاربر"
681
 
682
+ #: ../admin/classes/class-widget.php:249
683
+ msgid "Number of items to show:"
684
+ msgstr "تعداد آیتم ها:"
685
+
686
+ #: ../admin/classes/class-widget.php:254
687
  msgid "User avatar size:"
688
  msgstr "سایز آواتار کاربران:"
689
 
690
+ #: ../admin/classes/class-widget.php:260
691
+ msgid "Activate Like Counter"
692
+ msgstr "فعال سازی شمارنده"
693
+
694
+ #: ../admin/logs.php:43 ../admin/logs.php:160 ../admin/logs.php:283
695
  msgid "WP ULike Logs"
696
  msgstr "وقایع اتفاقیه در وردپرس یولایک"
697
 
698
+ #: ../admin/logs.php:53 ../admin/logs.php:170 ../admin/logs.php:293
699
  msgid "ID"
700
  msgstr "شناسه"
701
 
702
+ #: ../admin/logs.php:54 ../admin/logs.php:171 ../admin/logs.php:294
703
  msgid "Username"
704
  msgstr "نام کاربری"
705
 
706
+ #: ../admin/logs.php:55 ../admin/logs.php:172 ../admin/logs.php:295
707
  msgid "Status"
708
  msgstr "وضعیت"
709
 
710
+ #: ../admin/logs.php:56
711
  msgid "Post ID"
712
  msgstr "شناسه نوشتار"
713
 
714
+ #: ../admin/logs.php:57
715
  msgid "Post Title"
716
  msgstr "عنوان نوشتار"
717
 
718
+ #: ../admin/logs.php:58 ../admin/logs.php:176 ../admin/logs.php:298
719
  msgid "Date / Time"
720
  msgstr "تاریخ / زمان"
721
 
722
+ #: ../admin/logs.php:59 ../admin/logs.php:177 ../admin/logs.php:299
723
  msgid "IP"
724
  msgstr "آدرس IP"
725
 
726
+ #: ../admin/logs.php:77 ../admin/logs.php:195 ../admin/logs.php:317
727
  msgid "Guest User"
728
  msgstr "کاربر مهمان"
729
 
730
+ #: ../admin/logs.php:120 ../admin/logs.php:242 ../admin/logs.php:361
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
731
  msgid ""
732
  "<strong>ERROR:</strong> No Record Found. (This problem is created because "
733
  "you don't have any data on this table)"
735
  "<strong>خطا:</strong> چیزی یافت نشد. (این مشکل به خاطر این مسأله ایجاد شده "
736
  "است که شما هیچ اطلاعاتی را در این جدول ندارید)"
737
 
738
+ #: ../admin/logs.php:173
739
  msgid "Comment ID"
740
  msgstr "شناسه دیدگاه"
741
 
742
+ #: ../admin/logs.php:174
743
  msgid "Comment Author"
744
  msgstr "نویسنده دیدگاه"
745
 
746
+ #: ../admin/logs.php:175
747
  msgid "Comment Text"
748
  msgstr "متن دیدگاه"
749
 
750
+ #: ../admin/logs.php:296
 
 
 
 
 
 
 
 
751
  msgid "Activity ID"
752
  msgstr "شناسه فعالیت"
753
 
754
+ #: ../admin/logs.php:297
755
  msgid "Permalink"
756
  msgstr "لینک همیشگی"
757
 
758
+ #: ../admin/logs.php:333
759
  #, php-format
760
  msgid "<a href=\"%1$s\">Activity Permalink</a>"
761
  msgstr "<a href=\"%1$s\">مشاهده فعالیت</a>"
762
 
763
+ #: ../admin/stats.php:26
764
+ msgid "Posts Likes Summary"
765
+ msgstr "خلاصه لایک در نوشتارها"
766
 
767
+ #: ../admin/stats.php:32
768
+ msgid "Comments Likes Summary"
769
+ msgstr "خلاصه لایک در دیدگاه ها"
770
 
771
+ #: ../admin/stats.php:38
772
+ msgid "Activities Likes Summary"
773
+ msgstr "خلاصه لایک در فعالیت ها"
774
 
775
+ #: ../admin/stats.php:43
776
+ msgid "Welcome to WP ULike Statistics!"
777
+ msgstr "به آماره وردپرس یولایک خوش آمدید!"
778
 
779
+ #: ../admin/stats.php:44
780
+ msgid "We have provided some useful statistics tools in this page:"
781
+ msgstr ""
782
+ "در این بخش، ما مجموعه ای از ابزارهای کاربردی را برای شما آماده کرده ایم:"
783
 
784
+ #: ../admin/stats.php:53
785
+ msgid "Today"
786
+ msgstr "امروز"
787
 
788
+ #: ../admin/stats.php:54
789
+ msgid "Yesterday"
790
+ msgstr "دیروز"
 
 
791
 
792
+ #: ../admin/stats.php:55
793
+ msgid "Week"
794
+ msgstr "هفته"
795
 
796
+ #: ../admin/stats.php:56
797
+ msgid "Month"
798
+ msgstr "ماه"
799
 
800
+ #: ../admin/stats.php:57
801
+ msgid "Total"
802
+ msgstr "کل"
803
+
804
+ #: ../admin/stats.php:74 ../admin/stats.php:80 ../admin/stats.php:86
805
+ msgid "View Logs"
806
+ msgstr "مشاهده وقایع"
807
+
808
+ #: ../admin/stats.php:75
809
+ msgid "Posts Likes Stats"
810
+ msgstr "نمودار لایک در نوشتارها"
811
+
812
+ #: ../admin/stats.php:81
813
+ msgid "Activities Likes Stats"
814
+ msgstr "نمودار لایک در فعالیت ها"
815
+
816
+ #: ../admin/stats.php:87
817
+ msgid "Comments Likes Stats"
818
+ msgstr "نمودار لایک در دیدگاه ها"
819
+
820
+ #: ../admin/stats.php:93
821
+ msgid "Likes Percent In The Last 20 Days"
822
+ msgstr "درصد تخصیص لایک ها در 20 روز گذشته"
823
+
824
+ #: ../inc/wp-functions.php:207
825
+ msgid "WP ULike Activity"
826
+ msgstr "فعالیت های وردپرس یولایک"
827
+
828
+ #: ../inc/wp-strings.php:3
829
  msgid "Allow To Like"
830
  msgstr "مجاز به لایک"
831
 
832
+ #: ../inc/wp-strings.php:4
833
  msgid "Guests Only"
834
  msgstr "فقط مهمانان"
835
 
836
+ #: ../inc/wp-strings.php:5
837
  msgid "Registered Users Only"
838
  msgstr "فقط کاربران عضو شده"
839
 
840
+ #: ../inc/wp-strings.php:6
841
  msgid "Registered Users And Guests"
842
  msgstr "کاربران عضو و مهمان"
843
 
844
+ #: ../inc/wp-strings.php:7
845
  msgid "Who Is Allowed To Like?"
846
  msgstr "چه کسی اجازه‌ی امتیاز دادن دارد؟"
847
 
848
+ #: ../inc/wp-strings.php:8
849
  msgid "Filter Options:"
850
  msgstr "گزینه‌های پالایش:"
851
 
852
+ #: ../inc/wp-strings.php:9
853
  msgid "Sort Options:"
854
  msgstr "گزینه‌های مرتب‌سازی"
855
 
856
+ #: ../inc/wp-strings.php:10
857
  msgid "Themes"
858
  msgstr "قالب ها"
859
 
860
+ #: ../inc/wp-strings.php:11
861
  msgid "Dislike"
862
  msgstr "دیسلایک"
863
 
864
+ #: ../inc/wp-strings.php:12
865
  msgid "Dislike Support"
866
  msgstr "پشتیبانی از دیسلایک"
867
 
868
+ #: ../inc/wp-strings.php:13
869
  msgid "Text After Dislike"
870
  msgstr "متن پس از دیسلایک"
871
 
872
+ #: ../inc/wp-strings.php:14
873
  msgid "Show Counter"
874
  msgstr "نمایش شمارنده"
875
 
876
+ #: ../inc/wp-strings.php:15
877
  msgid "Show tooltips"
878
  msgstr "نمایش تولتیپ"
879
 
880
+ #: ../inc/wp-strings.php:16
881
  msgid "Alignment"
882
  msgstr "قرارگیری"
883
 
884
+ #: ../inc/wp-strings.php:17
885
  msgid "Left"
886
  msgstr "چپ"
887
 
888
+ #: ../inc/wp-strings.php:18
889
  msgid "Center"
890
  msgstr "وسط"
891
 
892
+ #: ../inc/wp-strings.php:19
893
  msgid "Right"
894
  msgstr "راست"
895
 
896
+ #: ../inc/wp-strings.php:20
897
  msgid "Cookie Life time"
898
  msgstr "عمر کوکی"
899
 
900
+ #: ../inc/wp-strings.php:21
901
  msgid "BuddyPress Notifications"
902
  msgstr "اطلاعیه های بادی پرس"
903
 
904
+ #: ../inc/wp-ulike-buddypress.php:68
905
  msgid "You need to login in order to like this activity: "
906
  msgstr "برای امتیاز دهی به این فعالیت، لطفا وارد شوید: "
907
 
908
+ #: ../inc/wp-ulike-buddypress.php:68 ../inc/wp-ulike-comments.php:68
909
+ #: ../inc/wp-ulike-posts.php:68
910
  msgid "click here"
911
  msgstr "برای ورود کلیک کنید"
912
 
913
+ #: ../inc/wp-ulike-comments.php:68
914
  msgid "You need to login in order to like this comment: "
915
  msgstr "برای امتیاز دهی به این دیدگاه، لطفا وارد شوید: "
916
 
917
+ #: ../inc/wp-ulike-posts.php:68
918
  msgid "You need to login in order to like this post: "
919
  msgstr "برای امتیاز دهی به این مطلب، لطفا وارد شوید: "
920
 
932
  "سفارشی سازی استایل ها و… تمامی قابلیت های یک سیستم خوب و حرفه ای رو در "
933
  "اختیار شما قرار میده."
934
 
935
+ #~ msgid "All The Times"
936
+ #~ msgstr "همه زمان ها"
937
+
938
+ #, fuzzy
939
+ #~ msgid "Login Type"
940
+ #~ msgstr "نوع"
941
+
942
+ #~ msgid "Users Like Box Title"
943
+ #~ msgstr "عنوان باکس کاربران لایک کرده"
944
+
945
+ #~ msgid "WP Ulike - Most Liked"
946
+ #~ msgstr "وردپرس یولایک -ابزارک بیشترین لایک شده ها"
947
+
948
+ #~ msgid "WP Ulike - Most Liked Users"
949
+ #~ msgstr "وردپرس یولایک - نمایش پرلایک ترین کاربران"
950
+
951
+ #~ msgid "This widget allows you to show most liked users avatars."
952
+ #~ msgstr ""
953
+ #~ "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین کاربران سایتتون رو "
954
+ #~ "به همراه تصویر آواتار و تعداد لایکشون، نمایش بدید."
955
+
956
+ #~ msgid "Number of users to show:"
957
+ #~ msgstr "تعداد کاربران قابل نمایش:"
958
+
959
+ #~ msgid "Posts Stats"
960
+ #~ msgstr "آماره نوشته ها"
961
+
962
+ #~ msgid "Comments Stats"
963
+ #~ msgstr "آماره دیدگاه ها"
964
+
965
+ #~ msgid "Activities Stats"
966
+ #~ msgstr "آماره فعالیت ها"
967
+
968
+ #~ msgid "WP ULike - Most Liked Activities"
969
+ #~ msgstr "وردپرس یولایک - نمایش پرلایک ترین فعالیت های بادی پرس"
970
+
971
+ #~ msgid "This widget allows you to show most liked activities."
972
+ #~ msgstr ""
973
+ #~ "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین فعالیت های بادی "
974
+ #~ "پرس رو به همراه تعداد لایک در هر فعالیت، نمایش بدید."
975
+
976
+ #~ msgid "This widget allows you to show most liked posts."
977
+ #~ msgstr ""
978
+ #~ "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین مطالب سایتتون رو "
979
+ #~ "به همراه تعداد لایک هر نوشته، نمایش بدید."
980
+
981
+ #~ msgid "WP ULike - Most Liked Comments"
982
+ #~ msgstr "وردپرس یولایک - نمایش پرلایک ترین دیدگاه ها"
983
+
984
+ #~ msgid "This widget allows you to show most liked comments."
985
+ #~ msgstr ""
986
+ #~ "با استفاده از این ابزارک، میتونید لیستی از پرلایک ترین دیدگاه های "
987
+ #~ "سایتتون رو به همراه تعداد لایک هر دیدگاه، نمایش بدید."
988
+
989
+ #~ msgid "Number of comments to show:"
990
+ #~ msgstr "تعداد دیدگاه های نمایشی:"
991
+
992
+ #~ msgid "Post Likes Logs Stats"
993
+ #~ msgstr "وضعیت وقایع لایک در نوشتارها"
994
+
995
+ #~ msgid "Total Users Liked:"
996
+ #~ msgstr "مجموع لایک کاربران:"
997
+
998
+ #~ msgid "Total Posts Liked:"
999
+ #~ msgstr "تعداد مطالب لایک شده:"
1000
+
1001
+ #~ msgid "Total Likes Sum:"
1002
+ #~ msgstr "مجموع همه ی لایک ها:"
1003
+
1004
+ #~ msgid "Comment Likes Logs Stats"
1005
+ #~ msgstr "وضعیت وقایع لایک در دیدگاه ها"
1006
+
1007
+ #~ msgid "Total Comments Liked:"
1008
+ #~ msgstr "تعداد دیدگاه های لایک شده:"
1009
+
1010
+ #~ msgid "Activity Likes Logs Stats"
1011
+ #~ msgstr "وضعیت وقایع لایک در فعالیت های بادی پرس"
1012
+
1013
+ #~ msgid "Total Activities Liked:"
1014
+ #~ msgstr "مجموع فعالیت های لایک شده:"
1015
+
1016
+ #~ msgid "Dashboard"
1017
+ #~ msgstr "پیشخوان"
1018
+
1019
+ #~ msgid "Visit Post Logs Menu"
1020
+ #~ msgstr "نمایش منو وقایع لایک در نوشتارها"
1021
+
1022
+ #~ msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
1023
+ #~ msgstr ""
1024
+ #~ "اگر این گزینه را غیر فعال کنید، منو \"وقایع لایک در نوشتارها\" نمایش داده "
1025
+ #~ "نخواهد شد. "
1026
+
1027
+ #~ msgid "Visit Comment Logs Menu"
1028
+ #~ msgstr "نمایش منو وقایع لایک در دیدگاه ها"
1029
+
1030
+ #~ msgid ""
1031
+ #~ "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
1032
+ #~ msgstr ""
1033
+ #~ "اگر این گزینه را غیر فعال کنید، منو \"وقایع لایک در دیدگاه ها\" نمایش "
1034
+ #~ "داده نخواهد شد. "
1035
+
1036
+ #~ msgid "Visit Activity Logs Menu"
1037
+ #~ msgstr "نمایش منو وقایع لایک در فعالیت ها"
1038
+
1039
+ #~ msgid ""
1040
+ #~ "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
1041
+ #~ msgstr ""
1042
+ #~ "اگر این گزینه را غیر فعال کنید، منو \"وقایع لایک در فعالیت ها\" نمایش "
1043
+ #~ "داده نخواهد شد. "
1044
+
1045
+ #~ msgid "liked"
1046
+ #~ msgstr " پسندید"
1047
+
1048
+ #~ msgid "comment"
1049
+ #~ msgstr " را در دیدگاهش"
1050
+
1051
  #~ msgid ""
1052
  #~ "If you select \"Do Not Log\" or \"Logged By Cookie\" methods, you can't "
1053
  #~ "save any logs data and also users can not unlike/undislike."
1059
  #~ msgid "<strong>On all comments</strong> at the bottom of the comment"
1060
  #~ msgstr "<strong>نمایش در تمامی دیدگاه ها</strong> در زیر متن هر دیدگاه"
1061
 
 
 
 
 
1062
  #~ msgid ""
1063
  #~ "<strong>On all posts</strong> (home, archives, search) at the bottom of "
1064
  #~ "the post"
1143
  #~ msgid "<strong>Active</strong> this option."
1144
  #~ msgstr "می خواهم این قابلیت را<strong>فعال</strong> کنم"
1145
 
 
 
 
1146
  #~ msgid ""
1147
  #~ "This plugin allows your visitors to simply like your posts instead of "
1148
  #~ "comment it."
1162
  #~ msgstr ""
1163
  #~ "اگر پیش ازاین، از چارچوب جی کوئری در قالب خود استفاده کرده اید، این "
1164
  #~ "قابلیت را غیر فعال کنید."
 
 
 
lang/alimir-nl_NL.mo CHANGED
Binary file
lang/alimir-nl_NL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
- "POT-Creation-Date: 2014-11-26 12:19+0330\n"
5
- "PO-Revision-Date: 2014-12-07 02:37+0330\n"
6
  "Last-Translator: Alimir <info@alimir.ir>\n"
7
  "Language-Team: \n"
8
  "Language: nl\n"
@@ -17,86 +17,115 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
- #: ../admin/about.php:45
21
  msgid "Welcome to WP ULike"
22
  msgstr "Welkom bij WP ULike"
23
 
24
- #: ../admin/about.php:47
25
  msgid ""
26
  "Thank you for choosing WP ULike! This version is our leanest and most "
27
  "powerful version yet."
28
  msgstr ""
29
  "Dank je voor het gebruik van WP ULike! Dit is de meest recente versie.\t"
30
 
31
- #: ../admin/about.php:48
32
  msgid "Visit our homepage"
33
  msgstr "Bezoek onze website"
34
 
35
- #: ../admin/about.php:53
 
 
 
 
36
  msgid "Getting Started"
37
  msgstr "Aan de slag"
38
 
39
- #: ../admin/about.php:54
40
  msgid "Credits"
41
  msgstr "Met dank aan"
42
 
43
- #: ../admin/about.php:55
44
  msgid "Support"
45
  msgstr "Ondersteuning"
46
 
47
- #: ../admin/about.php:56
48
  msgid "FAQ"
49
  msgstr "Veelgestelde vragen"
50
 
51
- #: ../admin/about.php:57
52
  msgid "Reviews"
53
  msgstr "Beoordelingen"
54
 
55
- #: ../admin/about.php:58
56
  msgid "Contact"
57
  msgstr "Contact"
58
 
59
- #: ../admin/about.php:70
60
  msgid "Novelty Of WP ULike"
61
  msgstr "Nieuw in WP ULike"
62
 
63
- #: ../admin/about.php:74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  msgid "New setting panel"
65
  msgstr "Nieuw configuratiescherm"
66
 
67
- #: ../admin/about.php:79
68
  msgid "Better coding on plugin files"
69
  msgstr "Betere code in de plugin"
70
 
71
- #: ../admin/about.php:86
72
  msgid "Buddypress likes support"
73
  msgstr "Buddypress Like ondersteuning"
74
 
75
- #: ../admin/about.php:91
76
  msgid "Likes logs support"
77
  msgstr "Ondersteuning voor likes logs"
78
 
79
- #: ../admin/about.php:100
80
  msgid "WP ULike is created by many love and time. Enjoy it :)"
81
  msgstr "WP ULike is gemaakt met veel liefde en tijd. Veel plezier ermee :)"
82
 
83
- #: ../admin/about.php:101
84
  msgid "Project Leaders"
85
  msgstr "Projectleiders"
86
 
87
- #: ../admin/about.php:106
88
  msgid "Project Lead & Developer"
89
  msgstr "Projectleider en ontwikkelaar"
90
 
91
- #: ../admin/about.php:110
92
  msgid "Translations"
93
  msgstr "Vertalingen"
94
 
95
- #: ../admin/about.php:120
 
 
 
 
96
  msgid "Like this plugin?"
97
  msgstr "Vind je deze plugin leuk?"
98
 
99
- #: ../admin/about.php:121
100
  msgid ""
101
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
102
  "wp-ulike\"> Plugin Directory reviews</a>"
@@ -104,200 +133,317 @@ msgstr ""
104
  "Geef hem een 5 sterren rating op in <a href=\"http://wordpress.org/plugins/"
105
  "wp-ulike\"> Plugin Directory reviews</a>"
106
 
107
- #: ../admin/admin.php:36
 
 
 
 
 
 
 
 
108
  msgid "WP ULike Settings"
109
  msgstr "WP ULike Instellingen"
110
 
111
- #: ../admin/admin.php:39 ../wp-ulike.php:16
112
  msgid "WP ULike"
113
  msgstr "WP ULike"
114
 
115
- #: ../admin/admin.php:44
116
  msgid "General"
117
  msgstr "Algemeen"
118
 
119
- #: ../admin/admin.php:48
120
  msgid "Button Type"
121
  msgstr "Type knop"
122
 
123
- #: ../admin/admin.php:51
124
  msgid "Icon"
125
  msgstr "Icoon"
126
 
127
- #: ../admin/admin.php:52
128
  msgid "Text"
129
  msgstr "Tekst"
130
 
131
- #: ../admin/admin.php:56 ../admin/classes/class-widget.php:189
132
  msgid "Like"
133
  msgstr "Vind ik leuk"
134
 
135
- #: ../admin/admin.php:57
136
  msgid "Button Text"
137
  msgstr "Knop tekst"
138
 
139
- #: ../admin/admin.php:61
140
  msgid "Button Icon"
141
  msgstr "Knop icoon"
142
 
143
- #: ../admin/admin.php:62 ../admin/admin.php:286
144
  msgid "Best size: 16x16"
145
  msgstr "Beste formaat: 16x16 px"
146
 
147
- #: ../admin/admin.php:67
148
  msgid "Format Number"
149
  msgstr "Formaat van aantal likes"
150
 
151
- #: ../admin/admin.php:68 ../admin/admin.php:101 ../admin/admin.php:133
152
- #: ../admin/admin.php:140 ../admin/admin.php:162 ../admin/admin.php:179
153
- #: ../admin/admin.php:186 ../admin/admin.php:215 ../admin/admin.php:222
154
- #: ../admin/admin.php:229 ../admin/admin.php:251 ../admin/admin.php:297
155
- #: ../admin/admin.php:304 ../admin/admin.php:311
156
  msgid "Activate"
157
  msgstr "Activeren"
158
 
159
- #: ../admin/admin.php:69
160
  msgid "Convert numbers of Likes with string (kilobyte) format."
161
  msgstr "Zet aantal likes om naar string (kilobyte) formaat."
162
 
163
- #: ../admin/admin.php:72
164
  msgid "Unlike"
165
  msgstr "Unlike"
166
 
167
- #: ../admin/admin.php:73
168
  msgid "Text After Like"
169
  msgstr "Tekst na like"
170
 
171
- #: ../admin/admin.php:76
 
 
 
 
 
 
 
 
 
 
172
  msgid "Like Me Again!"
173
  msgstr "Like me opnieuw!"
174
 
175
- #: ../admin/admin.php:77
176
  msgid "Text After Unlike"
177
  msgstr "Tekst na unlike"
178
 
179
- #: ../admin/admin.php:80
180
  msgid "You have not permission to unlike"
181
  msgstr "Je hebt geen toestemming om te unliken"
182
 
183
- #: ../admin/admin.php:81
184
  msgid "Permission Text"
185
  msgstr "Toestemming tekst"
186
 
187
- #: ../admin/admin.php:88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  msgid "Settings saved."
189
  msgstr "Instellingen opgeslagen."
190
 
191
- #: ../admin/admin.php:95
192
  msgid "Posts"
193
  msgstr "Berichten"
194
 
195
- #: ../admin/admin.php:100 ../admin/admin.php:161 ../admin/admin.php:207
196
  msgid "Automatic display"
197
  msgstr "Automatisch tonen"
198
 
199
- #: ../admin/admin.php:102
200
  msgid ""
201
  "If you disable this option, you have to put manually this code on wordpress "
202
  "while loop"
203
  msgstr ""
204
  "Deze optie uitzetten om handmatig code toe te voegen aan de WP While-loop"
205
 
206
- #: ../admin/admin.php:106 ../admin/admin.php:167
207
  msgid "Auto Display Position"
208
  msgstr "Automatische positie"
209
 
210
- #: ../admin/admin.php:109 ../admin/admin.php:170 ../inc/wp-strings.php:26
211
  msgid "Top of Content"
212
  msgstr "Boven bericht"
213
 
214
- #: ../admin/admin.php:110 ../admin/admin.php:171 ../inc/wp-strings.php:27
215
  msgid "Bottom of Content"
216
  msgstr "Onder bericht"
217
 
218
- #: ../admin/admin.php:111 ../admin/admin.php:172 ../inc/wp-strings.php:28
219
  msgid "Top and Bottom"
220
  msgstr "Boven en onder"
221
 
222
- #: ../admin/admin.php:116
223
  msgid "Auto Display Filter"
224
  msgstr "Automatisch weergave filter"
225
 
226
- #: ../admin/admin.php:118
227
  msgid "Home"
228
  msgstr "Home"
229
 
230
- #: ../admin/admin.php:119
231
  msgid "Single Posts"
232
  msgstr "Enkel bericht"
233
 
234
- #: ../admin/admin.php:120
235
  msgid "Pages"
236
  msgstr "Pagina's"
237
 
238
- #: ../admin/admin.php:121
239
  msgid "Archives"
240
  msgstr "Archief"
241
 
242
- #: ../admin/admin.php:122
243
  msgid "Categories"
244
  msgstr "Categorieen"
245
 
246
- #: ../admin/admin.php:123
247
  msgid "Search Results"
248
  msgstr "Zoekresultaten"
249
 
250
- #: ../admin/admin.php:124
251
  msgid "Tags"
252
  msgstr "Tags"
253
 
254
- #: ../admin/admin.php:125
255
  msgid "Author Page"
256
  msgstr "Auteur-pagina"
257
 
258
- #: ../admin/admin.php:127
259
  msgid "You can filter theses pages on auto display option."
260
  msgstr "Je kan deze pagina's automatisch filteren."
261
 
262
- #: ../admin/admin.php:132 ../admin/admin.php:178 ../admin/admin.php:214
263
  msgid "Only registered Users"
264
  msgstr "Alleen geregistreerde gebruikers"
265
 
266
- #: ../admin/admin.php:134
267
  msgid "<strong>Only</strong> registered users have permission to like posts."
268
  msgstr ""
269
  "<strong>Alleen</strong> geregistreerde gebruikers mogen deze post likes."
270
 
271
- #: ../admin/admin.php:139 ../admin/admin.php:185 ../admin/admin.php:228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  msgid "Show Liked Users Box"
273
  msgstr "Laat aantal likes zien"
274
 
275
- #: ../admin/admin.php:141 ../admin/admin.php:187 ../admin/admin.php:230
276
  msgid ""
277
  "Active this option to show liked users avatars in the bottom of button like."
278
  msgstr "Selecteer deze optie om avatars weer te geven naar de like knop"
279
 
280
- #: ../admin/admin.php:146 ../admin/admin.php:192 ../admin/admin.php:235
281
  msgid "Size of Gravatars"
282
  msgstr "Formaat avatars"
283
 
284
- #: ../admin/admin.php:147 ../admin/admin.php:193 ../admin/admin.php:236
285
  msgid "Size of Gravatars to return (max is 512)"
286
  msgstr "Grootte van avatars om weer te geven (max 512 px)"
287
 
288
- #: ../admin/admin.php:150
 
 
 
 
 
 
 
 
 
 
289
  msgid "Users who have LIKED this post:"
290
  msgstr "Gebruikers die dit bericht leuk vinden:"
291
 
292
- #: ../admin/admin.php:151 ../admin/admin.php:197 ../admin/admin.php:240
293
- msgid "Users Like Box Title"
 
294
  msgstr "Like box titel"
295
 
296
- #: ../admin/admin.php:156
 
 
 
 
 
 
 
 
 
 
 
297
  msgid "Comments"
298
  msgstr "Reacties"
299
 
300
- #: ../admin/admin.php:163
301
  msgid ""
302
  "If you disable this option, you have to put manually this code on comments "
303
  "text"
@@ -305,25 +451,25 @@ msgstr ""
305
  "Wanneer je deze optie uitschakelt, moet je handmatig code invoeren bij de "
306
  "reacties"
307
 
308
- #: ../admin/admin.php:180
309
  msgid ""
310
  "<strong>Only</strong> registered users have permission to like comments."
311
  msgstr "Alleen geregistreerde gebruikers mogen reacties liken."
312
 
313
- #: ../admin/admin.php:196
314
  msgid "Users who have LIKED this comment:"
315
  msgstr "Gebruikers die deze reactie leuk vinden:"
316
 
317
- #: ../admin/admin.php:202
318
  msgid "BuddyPress"
319
  msgstr "BuddyPress"
320
 
321
- #: ../admin/admin.php:208
322
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
323
  msgstr ""
324
  "<strong>Bij alle buddypress activiteiten</strong> onderaan de activiteit"
325
 
326
- #: ../admin/admin.php:209
327
  msgid ""
328
  "If you disable this option, you have to put manually this code on buddypres "
329
  "activities content"
@@ -331,101 +477,86 @@ msgstr ""
331
  "Wanneer je deze optie uitschakelt, moet je handmatig code invoeren bij de "
332
  "evenementen"
333
 
334
- #: ../admin/admin.php:216
335
  msgid ""
336
  "<strong>Only</strong> registered users have permission to like activities."
337
  msgstr "Alleen geregistreerde gebruikers mogen activiteiten liken."
338
 
339
- #: ../admin/admin.php:221
340
  msgid "BuddyPress Activity"
341
  msgstr "BuddyPress activiteiten"
342
 
343
- #: ../admin/admin.php:223
344
  msgid "insert new likes in buddyPress activity page"
345
  msgstr "nieuwe likes toevoegen aan buddyprefs activiteiten pagina"
346
 
347
- #: ../admin/admin.php:239
348
  msgid "Users who have liked this activity:"
349
  msgstr "Gebruikers die deze activiteit leuk vinden:"
350
 
351
- #: ../admin/admin.php:245
 
 
 
 
 
 
 
 
 
 
352
  msgid "Customize"
353
  msgstr "Aanpassen"
354
 
355
- #: ../admin/admin.php:250
356
  msgid "Custom Style"
357
  msgstr "Aangepaste stijl"
358
 
359
- #: ../admin/admin.php:255
360
  msgid "Active this option to see the custom style settings."
361
  msgstr "Aangepaste stijlen activeren"
362
 
363
- #: ../admin/admin.php:259
364
  msgid "Button style"
365
  msgstr "Button stijl"
366
 
367
- #: ../admin/admin.php:260 ../admin/admin.php:273
368
  msgid "Background"
369
  msgstr "Achtergrond"
370
 
371
- #: ../admin/admin.php:264 ../admin/admin.php:277
372
  msgid "Border Color"
373
  msgstr "Kleur lijn"
374
 
375
- #: ../admin/admin.php:268 ../admin/admin.php:281
376
  msgid "Text Color"
377
  msgstr "Kleur tekst"
378
 
379
- #: ../admin/admin.php:272
380
  msgid "Counter Style"
381
  msgstr "Teller stijl"
382
 
383
- #: ../admin/admin.php:285
384
  msgid "Loading Animation"
385
  msgstr "Animatie laden"
386
 
387
- #: ../admin/admin.php:291
388
- msgid "Dashboard"
389
- msgstr "Dashboard"
390
-
391
- #: ../admin/admin.php:296
392
- msgid "Visit Post Logs Menu"
393
- msgstr "Bezoek berichten logs"
394
-
395
- #: ../admin/admin.php:298
396
- msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
397
- msgstr "Logs berichten verbergen"
398
-
399
- #: ../admin/admin.php:303
400
- msgid "Visit Comment Logs Menu"
401
- msgstr "Bezoek reacties logs"
402
-
403
- #: ../admin/admin.php:305
404
- msgid "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
405
- msgstr "Logs reacties verbergen"
406
-
407
- #: ../admin/admin.php:310
408
- msgid "Visit Activity Logs Menu"
409
- msgstr "Bezoek activiteiten logs"
410
-
411
- #: ../admin/admin.php:312
412
- msgid ""
413
- "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
414
- msgstr "Logs activiteiten verbergen"
415
-
416
- #: ../admin/admin.php:324 ../admin/logs.php:34
417
  msgid "Post Likes Logs"
418
  msgstr "Berichten likes log"
419
 
420
- #: ../admin/admin.php:328 ../admin/logs.php:147
421
  msgid "Comment Likes Logs"
422
  msgstr "Reactie likes log"
423
 
424
- #: ../admin/admin.php:332 ../admin/logs.php:260
425
  msgid "Activity Likes Logs"
426
  msgstr "Evenementen likes log"
427
 
428
- #: ../admin/admin.php:335
 
 
 
 
429
  msgid "About WP ULike"
430
  msgstr "Over WP ULike"
431
 
@@ -470,298 +601,297 @@ msgstr "Verwijder %s"
470
  msgid "No action defined."
471
  msgstr "Geen acties gedefinieerd."
472
 
473
- #: ../admin/classes/class-widget.php:8
474
- msgid "WP Ulike - Most Liked Posts"
475
- msgstr "WP ULike - Berichten met meeste likes"
476
-
477
- #: ../admin/classes/class-widget.php:9
478
- msgid "This widget allows you to show most liked posts."
479
- msgstr "Deze widget laat je de berichten met meeste likes zien."
480
-
481
- #: ../admin/classes/class-widget.php:51
482
- msgid "Most Liked Posts"
483
- msgstr "Berichten met meeste likes"
484
-
485
- #: ../admin/classes/class-widget.php:55 ../admin/classes/class-widget.php:138
486
- #: ../admin/classes/class-widget.php:219
487
- msgid "Title:"
488
- msgstr "Titel:"
489
-
490
- #: ../admin/classes/class-widget.php:60
491
- msgid "Number of posts to show:"
492
- msgstr "Aantal weer te geven berichten:"
493
 
494
- #: ../admin/classes/class-widget.php:66 ../admin/classes/class-widget.php:149
495
- #: ../admin/classes/class-widget.php:235
496
- msgid "Activate Like Counter"
497
- msgstr "Activeer like teller"
498
-
499
- #: ../admin/classes/class-widget.php:88
500
- msgid "WP ULike - Most Liked Comments"
501
- msgstr "WP ULike - Meeste gelikede commentaar"
502
 
503
- #: ../admin/classes/class-widget.php:89
504
- msgid "This widget allows you to show most liked comments."
505
- msgstr "Met deze widget kun je de populairste reacties weergeven."
506
 
507
- #: ../admin/classes/class-widget.php:109
508
  msgid "on"
509
  msgstr "op"
510
 
511
- #: ../admin/classes/class-widget.php:134
512
- msgid "Most Liked Comments"
513
- msgstr "Meest gelikede reacties"
514
 
515
- #: ../admin/classes/class-widget.php:143
516
- msgid "Number of comments to show:"
517
- msgstr "Aantal reacties wat weergegeven moet worden:"
518
 
519
- #: ../admin/classes/class-widget.php:170
520
- msgid "WP Ulike - Most Liked Users"
521
- msgstr "WP ULike - Gebruikers met meeste likes"
 
522
 
523
- #: ../admin/classes/class-widget.php:171
524
- msgid "This widget allows you to show most liked users avatars."
525
- msgstr ""
526
- "Deze widget laat de avatars zien van de gebruikers die de meeste berichten "
527
- "leuk vinden."
528
 
529
- #: ../admin/classes/class-widget.php:215
 
 
 
 
530
  msgid "Most Liked Users"
531
  msgstr "Gebruikers met meeste likes"
532
 
533
- #: ../admin/classes/class-widget.php:224
534
- msgid "Number of users to show:"
535
- msgstr "Aantal gebruikers weer te geven:"
 
536
 
537
- #: ../admin/classes/class-widget.php:229
 
 
 
 
 
538
  msgid "User avatar size:"
539
  msgstr "Grootte van avatar:"
540
 
541
- #: ../admin/logs.php:33 ../admin/logs.php:146 ../admin/logs.php:259
 
 
 
 
542
  msgid "WP ULike Logs"
543
  msgstr "WP ULike log"
544
 
545
- #: ../admin/logs.php:43 ../admin/logs.php:156 ../admin/logs.php:269
546
  msgid "ID"
547
  msgstr "ID"
548
 
549
- #: ../admin/logs.php:44 ../admin/logs.php:157 ../admin/logs.php:270
550
  msgid "Username"
551
  msgstr "Gebruikersnaam"
552
 
553
- #: ../admin/logs.php:45 ../admin/logs.php:158 ../admin/logs.php:271
554
  msgid "Status"
555
  msgstr "Status"
556
 
557
- #: ../admin/logs.php:46
558
  msgid "Post ID"
559
  msgstr "Berichten ID"
560
 
561
- #: ../admin/logs.php:47
562
  msgid "Post Title"
563
  msgstr "Titel bericht"
564
 
565
- #: ../admin/logs.php:48 ../admin/logs.php:161 ../admin/logs.php:273
566
  msgid "Date / Time"
567
  msgstr "Datum & tijd"
568
 
569
- #: ../admin/logs.php:49 ../admin/logs.php:162 ../admin/logs.php:274
570
  msgid "IP"
571
  msgstr "IP"
572
 
573
- #: ../admin/logs.php:96
574
- msgid "Post Likes Logs Stats"
575
- msgstr "Statistieken van likes op berichten"
576
-
577
- #: ../admin/logs.php:100 ../admin/logs.php:213 ../admin/logs.php:322
578
- msgid "Total Users Liked:"
579
- msgstr "Aantal gebruikers die iets leuk vinden:"
580
-
581
- #: ../admin/logs.php:104
582
- msgid "Total Posts Liked:"
583
- msgstr "Aantal berichten die gebruikers leuk vinden:"
584
-
585
- #: ../admin/logs.php:108 ../admin/logs.php:221 ../admin/logs.php:330
586
- msgid "Total Likes Sum:"
587
- msgstr "Totaal aantal likes:"
588
 
589
- #: ../admin/logs.php:115 ../admin/logs.php:228 ../admin/logs.php:337
590
  msgid ""
591
  "<strong>ERROR:</strong> No Record Found. (This problem is created because "
592
  "you don't have any data on this table)"
593
  msgstr "Foutmelding: geen record gevonden."
594
 
595
- #: ../admin/logs.php:159
596
  msgid "Comment ID"
597
  msgstr "Reactie ID"
598
 
599
- #: ../admin/logs.php:160
600
  msgid "Comment Author"
601
  msgstr "Reactie auteur"
602
 
603
- #: ../admin/logs.php:209
604
- msgid "Comment Likes Logs Stats"
605
- msgstr "Reactie likes statistieken"
606
-
607
- #: ../admin/logs.php:217
608
- msgid "Total Comments Liked:"
609
- msgstr "Aantal reactie die men leuk vindt:"
610
 
611
- #: ../admin/logs.php:272
612
  msgid "Activity ID"
613
  msgstr "Evenementen ID"
614
 
615
- #: ../admin/logs.php:318
616
- msgid "Activity Likes Logs Stats"
617
- msgstr "Evenementen likes statistieken"
618
 
619
- #: ../admin/logs.php:326
620
- msgid "Total Activities Liked:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
621
  msgstr "Aantal evenementen dat men leuk vindt:"
622
 
623
- #: ../inc/wp-functions.php:204
624
- msgid "WP ULike Activity"
625
- msgstr "WP ULike activiteiten"
626
 
627
- #: ../inc/wp-functions.php:214 ../inc/wp-functions.php:224
628
- msgid "liked"
629
- msgstr "vind ik leuk"
630
 
631
- #: ../inc/wp-functions.php:214
632
- msgid "comment"
633
- msgstr "reactie"
634
 
635
- #: ../inc/wp-strings.php:3
636
- msgid "WP ULike - Most Liked Activities"
637
- msgstr "WP ULike - Meest gelikede acitiviteiten"
638
 
639
- #: ../inc/wp-strings.php:4
640
- msgid "This widget allows you to show most liked activities."
641
- msgstr "Met deze widget kun je de populairste activiteiten weergeven."
642
 
643
- #: ../inc/wp-strings.php:5
644
- msgid "Most Liked Activities"
645
- msgstr "Meest gelikede activiteiten"
646
 
647
- #: ../inc/wp-strings.php:6
648
- msgid "Users Login Text"
649
- msgstr "Login tekst gebruikers"
 
650
 
651
- #: ../inc/wp-strings.php:7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
652
  msgid "Allow To Like"
653
  msgstr "Toestaan te liken"
654
 
655
- #: ../inc/wp-strings.php:8
656
  msgid "Guests Only"
657
  msgstr "Alleen gasten"
658
 
659
- #: ../inc/wp-strings.php:9
660
  msgid "Registered Users Only"
661
  msgstr "Alleen geregistreerde gebruikers"
662
 
663
- #: ../inc/wp-strings.php:10
664
  msgid "Registered Users And Guests"
665
  msgstr "Geregistreerde gebruikers en gasten"
666
 
667
- #: ../inc/wp-strings.php:11
668
  msgid "Who Is Allowed To Like?"
669
  msgstr "Wie mag like?"
670
 
671
- #: ../inc/wp-strings.php:12
672
  msgid "Filter Options:"
673
  msgstr "Filter opties:"
674
 
675
- #: ../inc/wp-strings.php:13
676
  msgid "Sort Options:"
677
  msgstr "Sorteer opties:"
678
 
679
- #: ../inc/wp-strings.php:14
680
- msgid "Logging Method"
681
- msgstr "Logging methode"
682
-
683
- #: ../inc/wp-strings.php:15
684
- msgid "Do Not Log"
685
- msgstr "Niet loggen"
686
-
687
- #: ../inc/wp-strings.php:16
688
- msgid "Logged By Cookie"
689
- msgstr "Loggen met een cookie"
690
-
691
- #: ../inc/wp-strings.php:17
692
- msgid "Logged By IP"
693
- msgstr "Loggen door IP"
694
-
695
- #: ../inc/wp-strings.php:18
696
- msgid "Logged By Cookie & IP"
697
- msgstr "Loggen met cookie en IP"
698
-
699
- #: ../inc/wp-strings.php:19
700
- msgid "Logged By Username"
701
- msgstr "Loggen met gebruikersnaam"
702
-
703
- #: ../inc/wp-strings.php:20
704
  msgid "Themes"
705
  msgstr "Thema's"
706
 
707
- #: ../inc/wp-strings.php:21
708
  msgid "Dislike"
709
  msgstr "Niet meer liken"
710
 
711
- #: ../inc/wp-strings.php:22
712
  msgid "Dislike Support"
713
  msgstr "Niet meer like ondersteuning"
714
 
715
- #: ../inc/wp-strings.php:23
716
  msgid "Text After Dislike"
717
  msgstr "Tekst na disliken"
718
 
719
- #: ../inc/wp-strings.php:24
720
  msgid "Show Counter"
721
  msgstr "Laat teller zien"
722
 
723
- #: ../inc/wp-strings.php:25
724
  msgid "Show tooltips"
725
  msgstr "Tooltips weergeven"
726
 
727
- #: ../inc/wp-strings.php:29
728
  msgid "Alignment"
729
  msgstr "Uitlijning"
730
 
731
- #: ../inc/wp-strings.php:30
732
  msgid "Left"
733
  msgstr "Links"
734
 
735
- #: ../inc/wp-strings.php:31
736
  msgid "Center"
737
  msgstr "Midden"
738
 
739
- #: ../inc/wp-strings.php:32
740
  msgid "Right"
741
  msgstr "Rechts"
742
 
743
- #: ../inc/wp-strings.php:33
744
  msgid "Cookie Life time"
745
  msgstr "Cookie verwijderen na"
746
 
747
- #: ../inc/wp-strings.php:34
748
  msgid "BuddyPress Notifications"
749
  msgstr "BuddyPress notificaties"
750
 
751
- #: ../inc/wp-ulike-buddypress.php:73
752
  msgid "You need to login in order to like this activity: "
753
  msgstr "Je moet inloggen om deze activiteit te linken."
754
 
755
- #: ../inc/wp-ulike-buddypress.php:73 ../inc/wp-ulike-comments.php:73
756
- #: ../inc/wp-ulike-posts.php:75
757
  msgid "click here"
758
  msgstr "klik hier"
759
 
760
- #: ../inc/wp-ulike-comments.php:73
761
  msgid "You need to login in order to like this comment: "
762
  msgstr "Je moet inloggen om deze reactie leuk te vinden:"
763
 
764
- #: ../inc/wp-ulike-posts.php:75
765
  msgid "You need to login in order to like this post: "
766
  msgstr "Je moet inloggen om dit bericht leuk te vinden:"
767
 
@@ -775,6 +905,76 @@ msgstr ""
775
  "Met WP ULike kun je een Ajax like-button weergeven bij pagina's, berichten, "
776
  "reacties en BuddyPress activiteiten."
777
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
778
  #~ msgid ""
779
  #~ "<strong>On all posts</strong> (home, archives, search) at the bottom of "
780
  #~ "the post"
@@ -819,9 +1019,6 @@ msgstr ""
819
  #~ msgid "Comment likes"
820
  #~ msgstr "Reactie likes"
821
 
822
- #~ msgid "Activity likes"
823
- #~ msgstr "Evenementen likes"
824
-
825
  #~ msgid "Already Voted"
826
  #~ msgstr "Reeds gestemd"
827
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
+ "POT-Creation-Date: 2015-02-01 11:16+0330\n"
5
+ "PO-Revision-Date: 2015-02-01 11:24+0330\n"
6
  "Last-Translator: Alimir <info@alimir.ir>\n"
7
  "Language-Team: \n"
8
  "Language: nl\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
+ #: ../admin/about.php:74
21
  msgid "Welcome to WP ULike"
22
  msgstr "Welkom bij WP ULike"
23
 
24
+ #: ../admin/about.php:76
25
  msgid ""
26
  "Thank you for choosing WP ULike! This version is our leanest and most "
27
  "powerful version yet."
28
  msgstr ""
29
  "Dank je voor het gebruik van WP ULike! Dit is de meest recente versie.\t"
30
 
31
+ #: ../admin/about.php:77
32
  msgid "Visit our homepage"
33
  msgstr "Bezoek onze website"
34
 
35
+ #: ../admin/about.php:79
36
+ msgid "Version"
37
+ msgstr "versie"
38
+
39
+ #: ../admin/about.php:82
40
  msgid "Getting Started"
41
  msgstr "Aan de slag"
42
 
43
+ #: ../admin/about.php:83
44
  msgid "Credits"
45
  msgstr "Met dank aan"
46
 
47
+ #: ../admin/about.php:84
48
  msgid "Support"
49
  msgstr "Ondersteuning"
50
 
51
+ #: ../admin/about.php:85
52
  msgid "FAQ"
53
  msgstr "Veelgestelde vragen"
54
 
55
+ #: ../admin/about.php:86
56
  msgid "Reviews"
57
  msgstr "Beoordelingen"
58
 
59
+ #: ../admin/about.php:87
60
  msgid "Contact"
61
  msgstr "Contact"
62
 
63
+ #: ../admin/about.php:99
64
  msgid "Novelty Of WP ULike"
65
  msgstr "Nieuw in WP ULike"
66
 
67
+ #: ../admin/about.php:103
68
+ msgid "New Statistics Page"
69
+ msgstr ""
70
+
71
+ #: ../admin/about.php:108
72
+ msgid "New Class-based programming"
73
+ msgstr ""
74
+
75
+ #: ../admin/about.php:115 ../admin/classes/class-widget.php:240
76
+ msgid "Most Liked Comments"
77
+ msgstr "Meest gelikede reacties"
78
+
79
+ #: ../admin/about.php:120 ../admin/admin.php:193 ../admin/admin.php:269
80
+ #: ../admin/admin.php:335
81
+ msgid "Logging Method"
82
+ msgstr "Logging methode"
83
+
84
+ #: ../admin/about.php:128
85
+ msgid "New options in logs pages"
86
+ msgstr ""
87
+
88
+ #: ../admin/about.php:133
89
  msgid "New setting panel"
90
  msgstr "Nieuw configuratiescherm"
91
 
92
+ #: ../admin/about.php:141
93
  msgid "Better coding on plugin files"
94
  msgstr "Betere code in de plugin"
95
 
96
+ #: ../admin/about.php:146
97
  msgid "Buddypress likes support"
98
  msgstr "Buddypress Like ondersteuning"
99
 
100
+ #: ../admin/about.php:151
101
  msgid "Likes logs support"
102
  msgstr "Ondersteuning voor likes logs"
103
 
104
+ #: ../admin/about.php:160
105
  msgid "WP ULike is created by many love and time. Enjoy it :)"
106
  msgstr "WP ULike is gemaakt met veel liefde en tijd. Veel plezier ermee :)"
107
 
108
+ #: ../admin/about.php:161
109
  msgid "Project Leaders"
110
  msgstr "Projectleiders"
111
 
112
+ #: ../admin/about.php:166
113
  msgid "Project Lead & Developer"
114
  msgstr "Projectleider en ontwikkelaar"
115
 
116
+ #: ../admin/about.php:170
117
  msgid "Translations"
118
  msgstr "Vertalingen"
119
 
120
+ #: ../admin/about.php:180
121
+ msgid "Other Plugins"
122
+ msgstr ""
123
+
124
+ #: ../admin/about.php:199
125
  msgid "Like this plugin?"
126
  msgstr "Vind je deze plugin leuk?"
127
 
128
+ #: ../admin/about.php:200
129
  msgid ""
130
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
131
  "wp-ulike\"> Plugin Directory reviews</a>"
133
  "Geef hem een 5 sterren rating op in <a href=\"http://wordpress.org/plugins/"
134
  "wp-ulike\"> Plugin Directory reviews</a>"
135
 
136
+ #: ../admin/admin.php:39
137
+ #, php-format
138
+ msgid ""
139
+ " Thank you for choosing <a href=\"%s\" title=\"Wordpress ULike\" target="
140
+ "\"_blank\">WP ULike</a>. Created by <a href=\"%s\" title=\"Wordpress ULike\" "
141
+ "target=\"_blank\">Ali Mirzaei</a>"
142
+ msgstr ""
143
+
144
+ #: ../admin/admin.php:70
145
  msgid "WP ULike Settings"
146
  msgstr "WP ULike Instellingen"
147
 
148
+ #: ../admin/admin.php:73
149
  msgid "WP ULike"
150
  msgstr "WP ULike"
151
 
152
+ #: ../admin/admin.php:78
153
  msgid "General"
154
  msgstr "Algemeen"
155
 
156
+ #: ../admin/admin.php:82
157
  msgid "Button Type"
158
  msgstr "Type knop"
159
 
160
+ #: ../admin/admin.php:85
161
  msgid "Icon"
162
  msgstr "Icoon"
163
 
164
+ #: ../admin/admin.php:86
165
  msgid "Text"
166
  msgstr "Tekst"
167
 
168
+ #: ../admin/admin.php:90 ../admin/classes/class-widget.php:177
169
  msgid "Like"
170
  msgstr "Vind ik leuk"
171
 
172
+ #: ../admin/admin.php:91
173
  msgid "Button Text"
174
  msgstr "Knop tekst"
175
 
176
+ #: ../admin/admin.php:95
177
  msgid "Button Icon"
178
  msgstr "Knop icoon"
179
 
180
+ #: ../admin/admin.php:96 ../admin/admin.php:442
181
  msgid "Best size: 16x16"
182
  msgstr "Beste formaat: 16x16 px"
183
 
184
+ #: ../admin/admin.php:101
185
  msgid "Format Number"
186
  msgstr "Formaat van aantal likes"
187
 
188
+ #: ../admin/admin.php:102 ../admin/admin.php:113 ../admin/admin.php:155
189
+ #: ../admin/admin.php:187 ../admin/admin.php:216 ../admin/admin.php:246
190
+ #: ../admin/admin.php:263 ../admin/admin.php:292 ../admin/admin.php:329
191
+ #: ../admin/admin.php:358 ../admin/admin.php:365 ../admin/admin.php:407
 
192
  msgid "Activate"
193
  msgstr "Activeren"
194
 
195
+ #: ../admin/admin.php:103
196
  msgid "Convert numbers of Likes with string (kilobyte) format."
197
  msgstr "Zet aantal likes om naar string (kilobyte) formaat."
198
 
199
+ #: ../admin/admin.php:106
200
  msgid "Unlike"
201
  msgstr "Unlike"
202
 
203
+ #: ../admin/admin.php:107
204
  msgid "Text After Like"
205
  msgstr "Tekst na like"
206
 
207
+ #: ../admin/admin.php:112
208
+ msgid "Return To The Initial"
209
+ msgstr ""
210
+
211
+ #: ../admin/admin.php:114
212
+ msgid ""
213
+ "Return to the initial Like button after Unlike. (Not Showing text after "
214
+ "unlike)"
215
+ msgstr ""
216
+
217
+ #: ../admin/admin.php:117
218
  msgid "Like Me Again!"
219
  msgstr "Like me opnieuw!"
220
 
221
+ #: ../admin/admin.php:118
222
  msgid "Text After Unlike"
223
  msgstr "Tekst na unlike"
224
 
225
+ #: ../admin/admin.php:121
226
  msgid "You have not permission to unlike"
227
  msgstr "Je hebt geen toestemming om te unliken"
228
 
229
+ #: ../admin/admin.php:122
230
  msgid "Permission Text"
231
  msgstr "Toestemming tekst"
232
 
233
+ #: ../admin/admin.php:126
234
+ msgid "Users Login Type"
235
+ msgstr "Login tekst type"
236
+
237
+ #: ../admin/admin.php:129
238
+ msgid "Alert Box"
239
+ msgstr ""
240
+
241
+ #: ../admin/admin.php:130
242
+ msgid "Like Button"
243
+ msgstr "Like Knoop"
244
+
245
+ #: ../admin/admin.php:134
246
+ msgid "You Should Login To Submit Your Like"
247
+ msgstr ""
248
+
249
+ #: ../admin/admin.php:135
250
+ msgid "Users Login Text"
251
+ msgstr "Login tekst gebruikers"
252
+
253
+ #: ../admin/admin.php:142
254
  msgid "Settings saved."
255
  msgstr "Instellingen opgeslagen."
256
 
257
+ #: ../admin/admin.php:149
258
  msgid "Posts"
259
  msgstr "Berichten"
260
 
261
+ #: ../admin/admin.php:154 ../admin/admin.php:245 ../admin/admin.php:321
262
  msgid "Automatic display"
263
  msgstr "Automatisch tonen"
264
 
265
+ #: ../admin/admin.php:156
266
  msgid ""
267
  "If you disable this option, you have to put manually this code on wordpress "
268
  "while loop"
269
  msgstr ""
270
  "Deze optie uitzetten om handmatig code toe te voegen aan de WP While-loop"
271
 
272
+ #: ../admin/admin.php:160 ../admin/admin.php:251
273
  msgid "Auto Display Position"
274
  msgstr "Automatische positie"
275
 
276
+ #: ../admin/admin.php:163 ../admin/admin.php:254
277
  msgid "Top of Content"
278
  msgstr "Boven bericht"
279
 
280
+ #: ../admin/admin.php:164 ../admin/admin.php:255
281
  msgid "Bottom of Content"
282
  msgstr "Onder bericht"
283
 
284
+ #: ../admin/admin.php:165 ../admin/admin.php:256
285
  msgid "Top and Bottom"
286
  msgstr "Boven en onder"
287
 
288
+ #: ../admin/admin.php:170
289
  msgid "Auto Display Filter"
290
  msgstr "Automatisch weergave filter"
291
 
292
+ #: ../admin/admin.php:172
293
  msgid "Home"
294
  msgstr "Home"
295
 
296
+ #: ../admin/admin.php:173
297
  msgid "Single Posts"
298
  msgstr "Enkel bericht"
299
 
300
+ #: ../admin/admin.php:174
301
  msgid "Pages"
302
  msgstr "Pagina's"
303
 
304
+ #: ../admin/admin.php:175
305
  msgid "Archives"
306
  msgstr "Archief"
307
 
308
+ #: ../admin/admin.php:176
309
  msgid "Categories"
310
  msgstr "Categorieen"
311
 
312
+ #: ../admin/admin.php:177
313
  msgid "Search Results"
314
  msgstr "Zoekresultaten"
315
 
316
+ #: ../admin/admin.php:178
317
  msgid "Tags"
318
  msgstr "Tags"
319
 
320
+ #: ../admin/admin.php:179
321
  msgid "Author Page"
322
  msgstr "Auteur-pagina"
323
 
324
+ #: ../admin/admin.php:181
325
  msgid "You can filter theses pages on auto display option."
326
  msgstr "Je kan deze pagina's automatisch filteren."
327
 
328
+ #: ../admin/admin.php:186 ../admin/admin.php:262 ../admin/admin.php:328
329
  msgid "Only registered Users"
330
  msgstr "Alleen geregistreerde gebruikers"
331
 
332
+ #: ../admin/admin.php:188
333
  msgid "<strong>Only</strong> registered users have permission to like posts."
334
  msgstr ""
335
  "<strong>Alleen</strong> geregistreerde gebruikers mogen deze post likes."
336
 
337
+ #: ../admin/admin.php:195 ../admin/admin.php:271 ../admin/admin.php:337
338
+ msgid "Do Not Log"
339
+ msgstr "Niet loggen"
340
+
341
+ #: ../admin/admin.php:196 ../admin/admin.php:272 ../admin/admin.php:338
342
+ msgid "Logged By Cookie"
343
+ msgstr "Loggen met een cookie"
344
+
345
+ #: ../admin/admin.php:197 ../admin/admin.php:273 ../admin/admin.php:339
346
+ msgid "Logged By IP"
347
+ msgstr "Loggen door IP"
348
+
349
+ #: ../admin/admin.php:198 ../admin/admin.php:274 ../admin/admin.php:340
350
+ msgid "Logged By Cookie & IP"
351
+ msgstr "Loggen met cookie en IP"
352
+
353
+ #: ../admin/admin.php:199 ../admin/admin.php:275 ../admin/admin.php:341
354
+ msgid "Logged By Username"
355
+ msgstr "Loggen met gebruikersnaam"
356
+
357
+ #: ../admin/admin.php:203 ../admin/admin.php:279 ../admin/admin.php:345
358
+ msgid "Attention!"
359
+ msgstr ""
360
+
361
+ #: ../admin/admin.php:205 ../admin/admin.php:281 ../admin/admin.php:347
362
+ msgid ""
363
+ "If you select <strong>\"Do Not Log\"</strong> method: Any data logs can't "
364
+ "save, There is no limitation in the like/dislike, unlike/undislike capacity "
365
+ "do not work"
366
+ msgstr ""
367
+
368
+ #: ../admin/admin.php:206 ../admin/admin.php:282 ../admin/admin.php:348
369
+ msgid ""
370
+ "If you select <strong>\"Logged By Cookie\"</strong> method: Any data logs "
371
+ "can't save, The like/dislike condition will be limited by SetCookie, unlike/"
372
+ "undislike capacity do not work"
373
+ msgstr ""
374
+
375
+ #: ../admin/admin.php:207 ../admin/admin.php:283 ../admin/admin.php:349
376
+ msgid ""
377
+ "If you select <strong>\"Logged By IP\"</strong> method: Data logs will save "
378
+ "for all users, the convey of like/dislike condition will check by user IP"
379
+ msgstr ""
380
+
381
+ #: ../admin/admin.php:208 ../admin/admin.php:284 ../admin/admin.php:350
382
+ msgid ""
383
+ "If you select <strong>\"Logged By Cookie & IP\"</strong> method: Data logs "
384
+ "will save for all users, the convey of like/dislike condition will check by "
385
+ "user IP & SetCookie"
386
+ msgstr ""
387
+
388
+ #: ../admin/admin.php:209 ../admin/admin.php:285 ../admin/admin.php:351
389
+ msgid ""
390
+ "If you select <strong>\"Logged By Username\"</strong> method: data logs only "
391
+ "is saved for registered users, the convey of like/dislike condition will "
392
+ "check by username, There is no permission for guest users to unlike/undislike"
393
+ msgstr ""
394
+
395
+ #: ../admin/admin.php:215 ../admin/admin.php:291 ../admin/admin.php:364
396
  msgid "Show Liked Users Box"
397
  msgstr "Laat aantal likes zien"
398
 
399
+ #: ../admin/admin.php:217 ../admin/admin.php:293 ../admin/admin.php:366
400
  msgid ""
401
  "Active this option to show liked users avatars in the bottom of button like."
402
  msgstr "Selecteer deze optie om avatars weer te geven naar de like knop"
403
 
404
+ #: ../admin/admin.php:222 ../admin/admin.php:298 ../admin/admin.php:371
405
  msgid "Size of Gravatars"
406
  msgstr "Formaat avatars"
407
 
408
+ #: ../admin/admin.php:223 ../admin/admin.php:299 ../admin/admin.php:372
409
  msgid "Size of Gravatars to return (max is 512)"
410
  msgstr "Grootte van avatars om weer te geven (max 512 px)"
411
 
412
+ #: ../admin/admin.php:228 ../admin/admin.php:304 ../admin/admin.php:377
413
+ msgid "Number Of The Users"
414
+ msgstr "Nummer van de gebruikers"
415
+
416
+ #: ../admin/admin.php:229 ../admin/admin.php:305 ../admin/admin.php:378
417
+ #, fuzzy
418
+ msgid "The number of users to show in the users liked box"
419
+ msgstr "Laat aantal likes zien"
420
+
421
+ #: ../admin/admin.php:233 ../admin/admin.php:235
422
+ #: ../inc/classes/class-ulike.php:409
423
  msgid "Users who have LIKED this post:"
424
  msgstr "Gebruikers die dit bericht leuk vinden:"
425
 
426
+ #: ../admin/admin.php:234 ../admin/admin.php:310 ../admin/admin.php:383
427
+ #, fuzzy
428
+ msgid "Users Like Box Template"
429
  msgstr "Like box titel"
430
 
431
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
432
+ #: ../admin/admin.php:390 ../admin/admin.php:396
433
+ #, fuzzy
434
+ msgid "Allowed Variables:"
435
+ msgstr "Wie mag like?"
436
+
437
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
438
+ #: ../admin/admin.php:390 ../admin/admin.php:396
439
+ msgid "Default Template:"
440
+ msgstr ""
441
+
442
+ #: ../admin/admin.php:240
443
  msgid "Comments"
444
  msgstr "Reacties"
445
 
446
+ #: ../admin/admin.php:247
447
  msgid ""
448
  "If you disable this option, you have to put manually this code on comments "
449
  "text"
451
  "Wanneer je deze optie uitschakelt, moet je handmatig code invoeren bij de "
452
  "reacties"
453
 
454
+ #: ../admin/admin.php:264
455
  msgid ""
456
  "<strong>Only</strong> registered users have permission to like comments."
457
  msgstr "Alleen geregistreerde gebruikers mogen reacties liken."
458
 
459
+ #: ../admin/admin.php:309 ../admin/admin.php:311
460
  msgid "Users who have LIKED this comment:"
461
  msgstr "Gebruikers die deze reactie leuk vinden:"
462
 
463
+ #: ../admin/admin.php:316
464
  msgid "BuddyPress"
465
  msgstr "BuddyPress"
466
 
467
+ #: ../admin/admin.php:322
468
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
469
  msgstr ""
470
  "<strong>Bij alle buddypress activiteiten</strong> onderaan de activiteit"
471
 
472
+ #: ../admin/admin.php:323
473
  msgid ""
474
  "If you disable this option, you have to put manually this code on buddypres "
475
  "activities content"
477
  "Wanneer je deze optie uitschakelt, moet je handmatig code invoeren bij de "
478
  "evenementen"
479
 
480
+ #: ../admin/admin.php:330
481
  msgid ""
482
  "<strong>Only</strong> registered users have permission to like activities."
483
  msgstr "Alleen geregistreerde gebruikers mogen activiteiten liken."
484
 
485
+ #: ../admin/admin.php:357
486
  msgid "BuddyPress Activity"
487
  msgstr "BuddyPress activiteiten"
488
 
489
+ #: ../admin/admin.php:359
490
  msgid "insert new likes in buddyPress activity page"
491
  msgstr "nieuwe likes toevoegen aan buddyprefs activiteiten pagina"
492
 
493
+ #: ../admin/admin.php:382 ../admin/admin.php:384
494
  msgid "Users who have liked this activity:"
495
  msgstr "Gebruikers die deze activiteit leuk vinden:"
496
 
497
+ #: ../admin/admin.php:389
498
+ #, fuzzy
499
+ msgid "Post Activity Text"
500
+ msgstr "Tekst"
501
+
502
+ #: ../admin/admin.php:395
503
+ #, fuzzy
504
+ msgid "Comment Activity Text"
505
+ msgstr "reactie"
506
+
507
+ #: ../admin/admin.php:401
508
  msgid "Customize"
509
  msgstr "Aanpassen"
510
 
511
+ #: ../admin/admin.php:406
512
  msgid "Custom Style"
513
  msgstr "Aangepaste stijl"
514
 
515
+ #: ../admin/admin.php:411
516
  msgid "Active this option to see the custom style settings."
517
  msgstr "Aangepaste stijlen activeren"
518
 
519
+ #: ../admin/admin.php:415
520
  msgid "Button style"
521
  msgstr "Button stijl"
522
 
523
+ #: ../admin/admin.php:416 ../admin/admin.php:429
524
  msgid "Background"
525
  msgstr "Achtergrond"
526
 
527
+ #: ../admin/admin.php:420 ../admin/admin.php:433
528
  msgid "Border Color"
529
  msgstr "Kleur lijn"
530
 
531
+ #: ../admin/admin.php:424 ../admin/admin.php:437
532
  msgid "Text Color"
533
  msgstr "Kleur tekst"
534
 
535
+ #: ../admin/admin.php:428
536
  msgid "Counter Style"
537
  msgstr "Teller stijl"
538
 
539
+ #: ../admin/admin.php:441
540
  msgid "Loading Animation"
541
  msgstr "Animatie laden"
542
 
543
+ #: ../admin/admin.php:460 ../admin/logs.php:44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
544
  msgid "Post Likes Logs"
545
  msgstr "Berichten likes log"
546
 
547
+ #: ../admin/admin.php:462 ../admin/logs.php:161
548
  msgid "Comment Likes Logs"
549
  msgstr "Reactie likes log"
550
 
551
+ #: ../admin/admin.php:464 ../admin/logs.php:284
552
  msgid "Activity Likes Logs"
553
  msgstr "Evenementen likes log"
554
 
555
+ #: ../admin/admin.php:466
556
+ msgid "WP ULike Statistics"
557
+ msgstr "WP ULike statistiek"
558
+
559
+ #: ../admin/admin.php:468
560
  msgid "About WP ULike"
561
  msgstr "Over WP ULike"
562
 
601
  msgid "No action defined."
602
  msgstr "Geen acties gedefinieerd."
603
 
604
+ #: ../admin/classes/class-widget.php:11
605
+ msgid "WP Ulike Widget"
606
+ msgstr "WP ULike widget"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
607
 
608
+ #: ../admin/classes/class-widget.php:12
609
+ msgid ""
610
+ "An advanced widget that gives you all most liked records with different types"
611
+ msgstr ""
 
 
 
 
612
 
613
+ #: ../admin/classes/class-widget.php:78
614
+ msgid "you haven't liked any post yet!"
615
+ msgstr ""
616
 
617
+ #: ../admin/classes/class-widget.php:107
618
  msgid "on"
619
  msgstr "op"
620
 
621
+ #: ../admin/classes/class-widget.php:228
622
+ msgid "Most Liked"
623
+ msgstr "De meeste bevallen"
624
 
625
+ #: ../admin/classes/class-widget.php:232
626
+ msgid "Title:"
627
+ msgstr "Titel:"
628
 
629
+ #: ../admin/classes/class-widget.php:237
630
+ #, fuzzy
631
+ msgid "Type:"
632
+ msgstr "Type knop"
633
 
634
+ #: ../admin/classes/class-widget.php:239
635
+ msgid "Most Liked Posts"
636
+ msgstr "Berichten met meeste likes"
 
 
637
 
638
+ #: ../admin/classes/class-widget.php:241
639
+ msgid "Most Liked Activities"
640
+ msgstr "Meest gelikede activiteiten"
641
+
642
+ #: ../admin/classes/class-widget.php:242
643
  msgid "Most Liked Users"
644
  msgstr "Gebruikers met meeste likes"
645
 
646
+ #: ../admin/classes/class-widget.php:243
647
+ #, fuzzy
648
+ msgid "Last Posts Liked By User"
649
+ msgstr "Berichten met meeste likes"
650
 
651
+ #: ../admin/classes/class-widget.php:248
652
+ #, fuzzy
653
+ msgid "Number of items to show:"
654
+ msgstr "Aantal weer te geven berichten:"
655
+
656
+ #: ../admin/classes/class-widget.php:253
657
  msgid "User avatar size:"
658
  msgstr "Grootte van avatar:"
659
 
660
+ #: ../admin/classes/class-widget.php:259
661
+ msgid "Activate Like Counter"
662
+ msgstr "Activeer like teller"
663
+
664
+ #: ../admin/logs.php:43 ../admin/logs.php:160 ../admin/logs.php:283
665
  msgid "WP ULike Logs"
666
  msgstr "WP ULike log"
667
 
668
+ #: ../admin/logs.php:53 ../admin/logs.php:170 ../admin/logs.php:293
669
  msgid "ID"
670
  msgstr "ID"
671
 
672
+ #: ../admin/logs.php:54 ../admin/logs.php:171 ../admin/logs.php:294
673
  msgid "Username"
674
  msgstr "Gebruikersnaam"
675
 
676
+ #: ../admin/logs.php:55 ../admin/logs.php:172 ../admin/logs.php:295
677
  msgid "Status"
678
  msgstr "Status"
679
 
680
+ #: ../admin/logs.php:56
681
  msgid "Post ID"
682
  msgstr "Berichten ID"
683
 
684
+ #: ../admin/logs.php:57
685
  msgid "Post Title"
686
  msgstr "Titel bericht"
687
 
688
+ #: ../admin/logs.php:58 ../admin/logs.php:176 ../admin/logs.php:298
689
  msgid "Date / Time"
690
  msgstr "Datum & tijd"
691
 
692
+ #: ../admin/logs.php:59 ../admin/logs.php:177 ../admin/logs.php:299
693
  msgid "IP"
694
  msgstr "IP"
695
 
696
+ #: ../admin/logs.php:77 ../admin/logs.php:195 ../admin/logs.php:317
697
+ #, fuzzy
698
+ msgid "Guest User"
699
+ msgstr "Laat aantal likes zien"
 
 
 
 
 
 
 
 
 
 
 
700
 
701
+ #: ../admin/logs.php:120 ../admin/logs.php:242 ../admin/logs.php:361
702
  msgid ""
703
  "<strong>ERROR:</strong> No Record Found. (This problem is created because "
704
  "you don't have any data on this table)"
705
  msgstr "Foutmelding: geen record gevonden."
706
 
707
+ #: ../admin/logs.php:173
708
  msgid "Comment ID"
709
  msgstr "Reactie ID"
710
 
711
+ #: ../admin/logs.php:174
712
  msgid "Comment Author"
713
  msgstr "Reactie auteur"
714
 
715
+ #: ../admin/logs.php:175
716
+ #, fuzzy
717
+ msgid "Comment Text"
718
+ msgstr "reactie"
 
 
 
719
 
720
+ #: ../admin/logs.php:296
721
  msgid "Activity ID"
722
  msgstr "Evenementen ID"
723
 
724
+ #: ../admin/logs.php:297
725
+ msgid "Permalink"
726
+ msgstr ""
727
 
728
+ #: ../admin/logs.php:333
729
+ #, php-format
730
+ msgid "<a href=\"%1$s\">Activity Permalink</a>"
731
+ msgstr ""
732
+
733
+ #: ../admin/stats.php:26
734
+ #, fuzzy
735
+ msgid "Posts Likes Summary"
736
+ msgstr "Berichten"
737
+
738
+ #: ../admin/stats.php:32
739
+ #, fuzzy
740
+ msgid "Comments Likes Summary"
741
+ msgstr "Reacties"
742
+
743
+ #: ../admin/stats.php:38
744
+ #, fuzzy
745
+ msgid "Activities Likes Summary"
746
  msgstr "Aantal evenementen dat men leuk vindt:"
747
 
748
+ #: ../admin/stats.php:43
749
+ msgid "Welcome to WP ULike Statistics!"
750
+ msgstr "Welkom bij WP ULike Statistiek"
751
 
752
+ #: ../admin/stats.php:44
753
+ msgid "We have provided some useful statistics tools in this page:"
754
+ msgstr ""
755
 
756
+ #: ../admin/stats.php:53
757
+ msgid "Today"
758
+ msgstr ""
759
 
760
+ #: ../admin/stats.php:54
761
+ msgid "Yesterday"
762
+ msgstr ""
763
 
764
+ #: ../admin/stats.php:55
765
+ msgid "Week"
766
+ msgstr ""
767
 
768
+ #: ../admin/stats.php:56
769
+ msgid "Month"
770
+ msgstr ""
771
 
772
+ #: ../admin/stats.php:57
773
+ #, fuzzy
774
+ msgid "Total"
775
+ msgstr "Aantal gebruikers die iets leuk vinden:"
776
 
777
+ #: ../admin/stats.php:74 ../admin/stats.php:80 ../admin/stats.php:86
778
+ #, fuzzy
779
+ msgid "View Logs"
780
+ msgstr "Ondersteuning voor likes logs"
781
+
782
+ #: ../admin/stats.php:75
783
+ #, fuzzy
784
+ msgid "Posts Likes Stats"
785
+ msgstr "Statistieken van likes op berichten"
786
+
787
+ #: ../admin/stats.php:81
788
+ #, fuzzy
789
+ msgid "Activities Likes Stats"
790
+ msgstr "Statistieken van likes op berichten"
791
+
792
+ #: ../admin/stats.php:87
793
+ #, fuzzy
794
+ msgid "Comments Likes Stats"
795
+ msgstr "Statistieken van likes op berichten"
796
+
797
+ #: ../admin/stats.php:93
798
+ msgid "Likes Percent In The Last 20 Days"
799
+ msgstr ""
800
+
801
+ #: ../inc/wp-functions.php:168
802
+ msgid "WP ULike Activity"
803
+ msgstr "WP ULike activiteiten"
804
+
805
+ #: ../inc/wp-strings.php:3
806
  msgid "Allow To Like"
807
  msgstr "Toestaan te liken"
808
 
809
+ #: ../inc/wp-strings.php:4
810
  msgid "Guests Only"
811
  msgstr "Alleen gasten"
812
 
813
+ #: ../inc/wp-strings.php:5
814
  msgid "Registered Users Only"
815
  msgstr "Alleen geregistreerde gebruikers"
816
 
817
+ #: ../inc/wp-strings.php:6
818
  msgid "Registered Users And Guests"
819
  msgstr "Geregistreerde gebruikers en gasten"
820
 
821
+ #: ../inc/wp-strings.php:7
822
  msgid "Who Is Allowed To Like?"
823
  msgstr "Wie mag like?"
824
 
825
+ #: ../inc/wp-strings.php:8
826
  msgid "Filter Options:"
827
  msgstr "Filter opties:"
828
 
829
+ #: ../inc/wp-strings.php:9
830
  msgid "Sort Options:"
831
  msgstr "Sorteer opties:"
832
 
833
+ #: ../inc/wp-strings.php:10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
  msgid "Themes"
835
  msgstr "Thema's"
836
 
837
+ #: ../inc/wp-strings.php:11
838
  msgid "Dislike"
839
  msgstr "Niet meer liken"
840
 
841
+ #: ../inc/wp-strings.php:12
842
  msgid "Dislike Support"
843
  msgstr "Niet meer like ondersteuning"
844
 
845
+ #: ../inc/wp-strings.php:13
846
  msgid "Text After Dislike"
847
  msgstr "Tekst na disliken"
848
 
849
+ #: ../inc/wp-strings.php:14
850
  msgid "Show Counter"
851
  msgstr "Laat teller zien"
852
 
853
+ #: ../inc/wp-strings.php:15
854
  msgid "Show tooltips"
855
  msgstr "Tooltips weergeven"
856
 
857
+ #: ../inc/wp-strings.php:16
858
  msgid "Alignment"
859
  msgstr "Uitlijning"
860
 
861
+ #: ../inc/wp-strings.php:17
862
  msgid "Left"
863
  msgstr "Links"
864
 
865
+ #: ../inc/wp-strings.php:18
866
  msgid "Center"
867
  msgstr "Midden"
868
 
869
+ #: ../inc/wp-strings.php:19
870
  msgid "Right"
871
  msgstr "Rechts"
872
 
873
+ #: ../inc/wp-strings.php:20
874
  msgid "Cookie Life time"
875
  msgstr "Cookie verwijderen na"
876
 
877
+ #: ../inc/wp-strings.php:21
878
  msgid "BuddyPress Notifications"
879
  msgstr "BuddyPress notificaties"
880
 
881
+ #: ../inc/wp-ulike-buddypress.php:69
882
  msgid "You need to login in order to like this activity: "
883
  msgstr "Je moet inloggen om deze activiteit te linken."
884
 
885
+ #: ../inc/wp-ulike-buddypress.php:69 ../inc/wp-ulike-comments.php:69
886
+ #: ../inc/wp-ulike-posts.php:69
887
  msgid "click here"
888
  msgstr "klik hier"
889
 
890
+ #: ../inc/wp-ulike-comments.php:69
891
  msgid "You need to login in order to like this comment: "
892
  msgstr "Je moet inloggen om deze reactie leuk te vinden:"
893
 
894
+ #: ../inc/wp-ulike-posts.php:69
895
  msgid "You need to login in order to like this post: "
896
  msgstr "Je moet inloggen om dit bericht leuk te vinden:"
897
 
905
  "Met WP ULike kun je een Ajax like-button weergeven bij pagina's, berichten, "
906
  "reacties en BuddyPress activiteiten."
907
 
908
+ #~ msgid "Dashboard"
909
+ #~ msgstr "Dashboard"
910
+
911
+ #~ msgid "Visit Post Logs Menu"
912
+ #~ msgstr "Bezoek berichten logs"
913
+
914
+ #~ msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
915
+ #~ msgstr "Logs berichten verbergen"
916
+
917
+ #~ msgid "Visit Comment Logs Menu"
918
+ #~ msgstr "Bezoek reacties logs"
919
+
920
+ #~ msgid ""
921
+ #~ "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
922
+ #~ msgstr "Logs reacties verbergen"
923
+
924
+ #~ msgid "Visit Activity Logs Menu"
925
+ #~ msgstr "Bezoek activiteiten logs"
926
+
927
+ #~ msgid ""
928
+ #~ "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
929
+ #~ msgstr "Logs activiteiten verbergen"
930
+
931
+ #~ msgid "WP Ulike - Most Liked Posts"
932
+ #~ msgstr "WP ULike - Berichten met meeste likes"
933
+
934
+ #~ msgid "This widget allows you to show most liked posts."
935
+ #~ msgstr "Deze widget laat je de berichten met meeste likes zien."
936
+
937
+ #~ msgid "WP ULike - Most Liked Comments"
938
+ #~ msgstr "WP ULike - Meeste gelikede commentaar"
939
+
940
+ #~ msgid "This widget allows you to show most liked comments."
941
+ #~ msgstr "Met deze widget kun je de populairste reacties weergeven."
942
+
943
+ #~ msgid "Number of comments to show:"
944
+ #~ msgstr "Aantal reacties wat weergegeven moet worden:"
945
+
946
+ #~ msgid "WP Ulike - Most Liked Users"
947
+ #~ msgstr "WP ULike - Gebruikers met meeste likes"
948
+
949
+ #~ msgid "This widget allows you to show most liked users avatars."
950
+ #~ msgstr ""
951
+ #~ "Deze widget laat de avatars zien van de gebruikers die de meeste "
952
+ #~ "berichten leuk vinden."
953
+
954
+ #~ msgid "Total Users Liked:"
955
+ #~ msgstr "Aantal gebruikers die iets leuk vinden:"
956
+
957
+ #~ msgid "Total Posts Liked:"
958
+ #~ msgstr "Aantal berichten die gebruikers leuk vinden:"
959
+
960
+ #~ msgid "Total Comments Liked:"
961
+ #~ msgstr "Aantal reactie die men leuk vindt:"
962
+
963
+ #~ msgid "Total Activities Liked:"
964
+ #~ msgstr "Aantal evenementen dat men leuk vindt:"
965
+
966
+ #~ msgid "liked"
967
+ #~ msgstr "vind ik leuk"
968
+
969
+ #~ msgid "comment"
970
+ #~ msgstr "reactie"
971
+
972
+ #~ msgid "WP ULike - Most Liked Activities"
973
+ #~ msgstr "WP ULike - Meest gelikede acitiviteiten"
974
+
975
+ #~ msgid "This widget allows you to show most liked activities."
976
+ #~ msgstr "Met deze widget kun je de populairste activiteiten weergeven."
977
+
978
  #~ msgid ""
979
  #~ "<strong>On all posts</strong> (home, archives, search) at the bottom of "
980
  #~ "the post"
1019
  #~ msgid "Comment likes"
1020
  #~ msgstr "Reactie likes"
1021
 
 
 
 
1022
  #~ msgid "Already Voted"
1023
  #~ msgstr "Reeds gestemd"
1024
 
lang/alimir-zh_CN.mo CHANGED
Binary file
lang/alimir-zh_CN.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-11-25 12:58+0330\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Alimir <info@alimir.ir>\n"
8
  "Language-Team: 倡萌@WordPress大学 <admin@cmhello.com>\n"
@@ -12,90 +12,119 @@ msgstr ""
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
- "X-Generator: Poedit 1.6.5\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
- #: ../admin/about.php:45
21
  msgid "Welcome to WP ULike"
22
  msgstr "欢迎使用 WP ULike"
23
 
24
- #: ../admin/about.php:47
25
  msgid ""
26
  "Thank you for choosing WP ULike! This version is our leanest and most "
27
  "powerful version yet."
28
  msgstr "感谢您选择 WP ULike!这个版本是我们目前最轻巧、最强大的版本哦!"
29
 
30
- #: ../admin/about.php:48
31
  msgid "Visit our homepage"
32
  msgstr "访问我们的主页"
33
 
34
- #: ../admin/about.php:53
 
 
 
 
35
  msgid "Getting Started"
36
  msgstr "开始"
37
 
38
- #: ../admin/about.php:54
39
  msgid "Credits"
40
  msgstr "积分"
41
 
42
- #: ../admin/about.php:55
43
  msgid "Support"
44
  msgstr "支持"
45
 
46
- #: ../admin/about.php:56
47
  msgid "FAQ"
48
  msgstr "常见问答"
49
 
50
- #: ../admin/about.php:57
51
  msgid "Reviews"
52
  msgstr "点评"
53
 
54
- #: ../admin/about.php:58
55
  msgid "Contact"
56
  msgstr "联系"
57
 
58
- #: ../admin/about.php:70
59
  msgid "Novelty Of WP ULike"
60
  msgstr "WP ULike 的新特色"
61
 
62
- #: ../admin/about.php:74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  msgid "New setting panel"
64
  msgstr "新设置面板"
65
 
66
- #: ../admin/about.php:79
67
  msgid "Better coding on plugin files"
68
  msgstr "更好的文件编码"
69
 
70
- #: ../admin/about.php:86
71
  msgid "Buddypress likes support"
72
  msgstr "Buddypress 喜欢支持"
73
 
74
- #: ../admin/about.php:91
75
  msgid "Likes logs support"
76
  msgstr "喜欢日志支持"
77
 
78
- #: ../admin/about.php:100
79
  msgid "WP ULike is created by many love and time. Enjoy it :)"
80
  msgstr "WP ULike 已经使用了很多关爱和时间来创建,好好享用吧 :)"
81
 
82
- #: ../admin/about.php:101
83
  msgid "Project Leaders"
84
  msgstr "项目负责人"
85
 
86
- #: ../admin/about.php:106
87
  msgid "Project Lead & Developer"
88
  msgstr "项目主管和开发"
89
 
90
- #: ../admin/about.php:110
91
  msgid "Translations"
92
  msgstr "翻译"
93
 
94
- #: ../admin/about.php:120
 
 
 
 
95
  msgid "Like this plugin?"
96
  msgstr "喜欢这个插件?"
97
 
98
- #: ../admin/about.php:121
99
  msgid ""
100
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
101
  "wp-ulike\"> Plugin Directory reviews</a>"
@@ -103,274 +132,418 @@ msgstr ""
103
  "支持本插件,请在 <a href=\"http://wordpress.org/plugins/wp-ulike\"> 插件目录"
104
  "评论 </a> 提交 5 星级投票"
105
 
106
- #: ../admin/admin.php:35
 
 
 
 
 
 
 
 
107
  msgid "WP ULike Settings"
108
  msgstr "WP ULike 设置"
109
 
110
- #: ../admin/admin.php:38 ../wp-ulike.php:16
111
  msgid "WP ULike"
112
  msgstr "WP ULike"
113
 
114
- #: ../admin/admin.php:43
115
  msgid "General"
116
  msgstr "常规"
117
 
118
- #: ../admin/admin.php:47
119
  msgid "Button Type"
120
  msgstr "按钮样式"
121
 
122
- #: ../admin/admin.php:50
123
  msgid "Icon"
124
  msgstr "图标"
125
 
126
- #: ../admin/admin.php:51
127
  msgid "Text"
128
  msgstr "文本"
129
 
130
- #: ../admin/admin.php:55 ../admin/classes/class-widget.php:106
131
  msgid "Like"
132
  msgstr "喜欢"
133
 
134
- #: ../admin/admin.php:56
135
  msgid "Button Text"
136
  msgstr "按钮文本"
137
 
138
- #: ../admin/admin.php:60
139
  msgid "Button Icon"
140
  msgstr "按钮图标"
141
 
142
- #: ../admin/admin.php:61 ../admin/admin.php:250
143
  msgid "Best size: 16x16"
144
  msgstr "最适合的大小: 16x16"
145
 
146
- #: ../admin/admin.php:66
147
  msgid "Format Number"
148
  msgstr "格式化数字"
149
 
150
- #: ../admin/admin.php:67 ../admin/admin.php:107 ../admin/admin.php:114
151
- #: ../admin/admin.php:143 ../admin/admin.php:150 ../admin/admin.php:179
152
- #: ../admin/admin.php:186 ../admin/admin.php:193 ../admin/admin.php:215
153
- #: ../admin/admin.php:261 ../admin/admin.php:268 ../admin/admin.php:275
154
  msgid "Activate"
155
  msgstr "激活"
156
 
157
- #: ../admin/admin.php:68
158
  msgid "Convert numbers of Likes with string (kilobyte) format."
159
  msgstr "使用字符串(千字节)格式化喜欢数目"
160
 
161
- #: ../admin/admin.php:71
162
  msgid "Unlike"
163
  msgstr "不喜欢"
164
 
165
- #: ../admin/admin.php:72
166
  msgid "Text After Like"
167
  msgstr "[喜欢]后的文字"
168
 
169
- #: ../admin/admin.php:75
 
 
 
 
 
 
 
 
 
 
170
  msgid "Like Me Again!"
171
  msgstr "再喜欢一次!"
172
 
173
- #: ../admin/admin.php:76
174
  msgid "Text After Unlike"
175
  msgstr "[不喜欢]后的文字"
176
 
177
- #: ../admin/admin.php:79
178
  msgid "You have not permission to unlike"
179
  msgstr "您没有权限选择不喜欢"
180
 
181
- #: ../admin/admin.php:80
182
  msgid "Permission Text"
183
  msgstr "权限文本"
184
 
185
- #: ../admin/admin.php:87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  msgid "Settings saved."
187
  msgstr "设置已保存"
188
 
189
- #: ../admin/admin.php:94
190
  msgid "Posts"
191
  msgstr "文章"
192
 
193
- #: ../admin/admin.php:99 ../admin/admin.php:135 ../admin/admin.php:171
194
  msgid "Automatic display"
195
  msgstr "自动显示"
196
 
197
- #: ../admin/admin.php:100
198
- msgid ""
199
- "<strong>On all posts</strong> (home, archives, search) at the bottom of the "
200
- "post"
201
- msgstr "<strong>在所有文章</strong>(首页、存档、搜索)文章的底部"
202
-
203
- #: ../admin/admin.php:101
204
  msgid ""
205
  "If you disable this option, you have to put manually this code on wordpress "
206
  "while loop"
207
  msgstr "如果你禁用这个选项,你必须手动添加这个代码到WordPress的循环代码中"
208
 
209
- #: ../admin/admin.php:106 ../admin/admin.php:142 ../admin/admin.php:178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  msgid "Only registered Users"
211
  msgstr "只有已注册的用户"
212
 
213
- #: ../admin/admin.php:108
214
  msgid "<strong>Only</strong> registered users have permission to like posts."
215
  msgstr "<strong>只有</strong> 已注册的用户才有权限喜欢文章。"
216
 
217
- #: ../admin/admin.php:113 ../admin/admin.php:149 ../admin/admin.php:192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  msgid "Show Liked Users Box"
219
  msgstr "显示已喜欢的用户盒子"
220
 
221
- #: ../admin/admin.php:115 ../admin/admin.php:151 ../admin/admin.php:194
222
  msgid ""
223
  "Active this option to show liked users avatars in the bottom of button like."
224
  msgstr "启用这个选项,可以在喜欢按钮的底部显示已喜欢的用户头像"
225
 
226
- #: ../admin/admin.php:120 ../admin/admin.php:156 ../admin/admin.php:199
227
  msgid "Size of Gravatars"
228
  msgstr "头像大小"
229
 
230
- #: ../admin/admin.php:121 ../admin/admin.php:157 ../admin/admin.php:200
231
  msgid "Size of Gravatars to return (max is 512)"
232
  msgstr "头像大小(最大为 512)"
233
 
234
- #: ../admin/admin.php:124
 
 
 
 
 
 
 
 
 
235
  msgid "Users who have LIKED this post:"
236
  msgstr "喜欢该文章的用户:"
237
 
238
- #: ../admin/admin.php:125 ../admin/admin.php:161 ../admin/admin.php:204
239
- msgid "Users Like Box Title"
240
- msgstr "用户喜欢盒子的标题"
241
 
242
- #: ../admin/admin.php:130
 
 
 
 
 
 
 
 
 
 
243
  msgid "Comments"
244
  msgstr "评论"
245
 
246
- #: ../admin/admin.php:136
247
- msgid "<strong>On all comments</strong> at the bottom of the comment"
248
- msgstr "<strong>在所有评论</strong>的评论底部"
249
-
250
- #: ../admin/admin.php:137
251
  msgid ""
252
  "If you disable this option, you have to put manually this code on comments "
253
  "text"
254
  msgstr "如果禁用此选项,你必须手动添加这个代码到评论文本"
255
 
256
- #: ../admin/admin.php:144
257
  msgid ""
258
  "<strong>Only</strong> registered users have permission to like comments."
259
  msgstr "<strong>只有</strong> 已注册的用户才有权限喜欢评论。"
260
 
261
- #: ../admin/admin.php:160
262
  msgid "Users who have LIKED this comment:"
263
  msgstr "谁也喜欢这个评论用户:"
264
 
265
- #: ../admin/admin.php:166
266
  msgid "BuddyPress"
267
  msgstr "BuddyPress"
268
 
269
- #: ../admin/admin.php:172
270
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
271
  msgstr "<strong>在所有 buddypress 活动</strong>的活动顶部"
272
 
273
- #: ../admin/admin.php:173
274
  msgid ""
275
  "If you disable this option, you have to put manually this code on buddypres "
276
  "activities content"
277
  msgstr "如果你禁用这个选项,你必须手动添加这个代码到buddypres活动内容"
278
 
279
- #: ../admin/admin.php:180
280
  msgid ""
281
  "<strong>Only</strong> registered users have permission to like activities."
282
  msgstr "<strong>只有</strong> 已注册的用户才有权限喜欢活动。"
283
 
284
- #: ../admin/admin.php:185
285
  msgid "BuddyPress Activity"
286
  msgstr "BuddyPress 活动"
287
 
288
- #: ../admin/admin.php:187
289
  msgid "insert new likes in buddyPress activity page"
290
  msgstr "插入喜欢按钮到buddyPress活动页面"
291
 
292
- #: ../admin/admin.php:203
293
  msgid "Users who have liked this activity:"
294
  msgstr "喜欢该活动的用户:"
295
 
296
- #: ../admin/admin.php:209
 
 
 
 
 
 
 
 
297
  msgid "Customize"
298
  msgstr "定制"
299
 
300
- #: ../admin/admin.php:214
301
  msgid "Custom Style"
302
  msgstr "自定义样式"
303
 
304
- #: ../admin/admin.php:219
305
  msgid "Active this option to see the custom style settings."
306
  msgstr "启用这个选项可以看到自定义样式设置。"
307
 
308
- #: ../admin/admin.php:223
309
  msgid "Button style"
310
  msgstr "按钮样式"
311
 
312
- #: ../admin/admin.php:224 ../admin/admin.php:237
313
  msgid "Background"
314
  msgstr "背景"
315
 
316
- #: ../admin/admin.php:228 ../admin/admin.php:241
317
  msgid "Border Color"
318
  msgstr "背景颜色"
319
 
320
- #: ../admin/admin.php:232 ../admin/admin.php:245
321
  msgid "Text Color"
322
  msgstr "文本颜色"
323
 
324
- #: ../admin/admin.php:236
325
  msgid "Counter Style"
326
  msgstr "计数样式"
327
 
328
- #: ../admin/admin.php:249
329
  msgid "Loading Animation"
330
  msgstr "加载动画"
331
 
332
- #: ../admin/admin.php:255
333
- msgid "Dashboard"
334
- msgstr "仪表盘"
335
-
336
- #: ../admin/admin.php:260
337
- msgid "Visit Post Logs Menu"
338
- msgstr "访问文章日志菜单"
339
-
340
- #: ../admin/admin.php:262
341
- msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
342
- msgstr "如果你禁用这个选项,\"文章喜欢日志\"菜单将被隐藏。"
343
-
344
- #: ../admin/admin.php:267
345
- msgid "Visit Comment Logs Menu"
346
- msgstr "访问评论日志菜单"
347
-
348
- #: ../admin/admin.php:269
349
- msgid "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
350
- msgstr "如果你禁用这个选项,\"评论喜欢日志\"菜单将被隐藏。"
351
-
352
- #: ../admin/admin.php:274
353
- msgid "Visit Activity Logs Menu"
354
- msgstr "访问活动日志菜单"
355
-
356
- #: ../admin/admin.php:276
357
- msgid ""
358
- "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
359
- msgstr "如果你禁用这个选项,\"活动喜欢日志\"菜单将被隐藏。"
360
-
361
- #: ../admin/admin.php:288 ../admin/logs.php:34
362
  msgid "Post Likes Logs"
363
  msgstr "文章喜欢日志"
364
 
365
- #: ../admin/admin.php:292 ../admin/logs.php:147
366
  msgid "Comment Likes Logs"
367
  msgstr "评论喜欢日志"
368
 
369
- #: ../admin/admin.php:296 ../admin/logs.php:260
370
  msgid "Activity Likes Logs"
371
  msgstr "活动喜欢日志"
372
 
373
- #: ../admin/admin.php:299
 
 
 
 
374
  msgid "About WP ULike"
375
  msgstr "关于 WP ULike"
376
 
@@ -415,99 +588,100 @@ msgstr "移除 %s"
415
  msgid "No action defined."
416
  msgstr "没有定义任何操作。"
417
 
418
- #: ../admin/classes/class-widget.php:8
419
- msgid "WP Ulike - Most Liked Posts"
420
- msgstr "WP Ulike -最多人喜欢的文章"
421
 
422
- #: ../admin/classes/class-widget.php:9
423
- msgid "This widget allows you to show most liked posts."
424
- msgstr "该小工具可以显示最多人喜欢的文章。"
 
425
 
426
- #: ../admin/classes/class-widget.php:51
427
- msgid "Most Liked Posts"
428
- msgstr "最多人喜欢的文章"
429
 
430
- #: ../admin/classes/class-widget.php:55 ../admin/classes/class-widget.php:136
 
 
 
 
 
 
 
 
431
  msgid "Title:"
432
  msgstr "标题:"
433
 
434
- #: ../admin/classes/class-widget.php:60
435
- msgid "Number of posts to show:"
436
- msgstr "要显示的文章数量:"
437
-
438
- #: ../admin/classes/class-widget.php:66 ../admin/classes/class-widget.php:152
439
- msgid "Activate Like Counter"
440
- msgstr "启用喜欢计数"
441
 
442
- #: ../admin/classes/class-widget.php:87
443
- msgid "WP Ulike - Most Liked Users"
444
- msgstr "WP Ulike - 最多人喜欢的用户"
445
 
446
- #: ../admin/classes/class-widget.php:88
447
- msgid "This widget allows you to show most liked users avatars."
448
- msgstr "该小工具可以显示最多人喜欢的用户头像。"
449
 
450
- #: ../admin/classes/class-widget.php:132
451
  msgid "Most Liked Users"
452
  msgstr "最多人喜欢的用户"
453
 
454
- #: ../admin/classes/class-widget.php:141
455
- msgid "Number of users to show:"
456
- msgstr "要显示的用户数:"
457
 
458
- #: ../admin/classes/class-widget.php:146
 
 
 
 
459
  msgid "User avatar size:"
460
  msgstr "用户头像大小:"
461
 
462
- #: ../admin/logs.php:33 ../admin/logs.php:146 ../admin/logs.php:259
 
 
 
 
463
  msgid "WP ULike Logs"
464
  msgstr "WP ULike 日志"
465
 
466
- #: ../admin/logs.php:43 ../admin/logs.php:156 ../admin/logs.php:269
467
  msgid "ID"
468
  msgstr "ID"
469
 
470
- #: ../admin/logs.php:44 ../admin/logs.php:157 ../admin/logs.php:270
471
  msgid "Username"
472
  msgstr "用户名"
473
 
474
- #: ../admin/logs.php:45 ../admin/logs.php:158 ../admin/logs.php:271
475
  msgid "Status"
476
  msgstr "状态"
477
 
478
- #: ../admin/logs.php:46
479
  msgid "Post ID"
480
  msgstr "文章ID"
481
 
482
- #: ../admin/logs.php:47
483
  msgid "Post Title"
484
  msgstr "文章标题"
485
 
486
- #: ../admin/logs.php:48 ../admin/logs.php:161 ../admin/logs.php:273
487
  msgid "Date / Time"
488
  msgstr "日期/时间"
489
 
490
- #: ../admin/logs.php:49 ../admin/logs.php:162 ../admin/logs.php:274
491
  msgid "IP"
492
  msgstr "IP"
493
 
494
- #: ../admin/logs.php:96
495
- msgid "Post Likes Logs Stats"
496
- msgstr "文章喜欢日志统计"
497
-
498
- #: ../admin/logs.php:100 ../admin/logs.php:213 ../admin/logs.php:322
499
- msgid "Total Users Liked:"
500
- msgstr "所有喜欢的用户:"
501
-
502
- #: ../admin/logs.php:104
503
- msgid "Total Posts Liked:"
504
- msgstr "所有喜欢的文章:"
505
-
506
- #: ../admin/logs.php:108 ../admin/logs.php:221 ../admin/logs.php:330
507
- msgid "Total Likes Sum:"
508
- msgstr "喜欢总数:"
509
 
510
- #: ../admin/logs.php:115 ../admin/logs.php:228 ../admin/logs.php:337
511
  msgid ""
512
  "<strong>ERROR:</strong> No Record Found. (This problem is created because "
513
  "you don't have any data on this table)"
@@ -515,156 +689,185 @@ msgstr ""
515
  "<strong>错误:</strong> 没有找到相关记录 (发生这个问题,是由于这个数据表中没"
516
  "有任何数据)"
517
 
518
- #: ../admin/logs.php:159
519
  msgid "Comment ID"
520
  msgstr "评论ID"
521
 
522
- #: ../admin/logs.php:160
523
  msgid "Comment Author"
524
  msgstr "评论作者"
525
 
526
- #: ../admin/logs.php:209
527
- msgid "Comment Likes Logs Stats"
528
- msgstr "评论喜欢日志统计"
529
-
530
- #: ../admin/logs.php:217
531
- msgid "Total Comments Liked:"
532
- msgstr "所有喜欢的评论:"
533
 
534
- #: ../admin/logs.php:272
535
  msgid "Activity ID"
536
  msgstr "活动ID"
537
 
538
- #: ../admin/logs.php:318
539
- msgid "Activity Likes Logs Stats"
540
- msgstr "活动喜欢日志统计"
541
 
542
- #: ../admin/logs.php:326
543
- msgid "Total Activities Liked:"
544
- msgstr "所有喜欢的活动:"
 
545
 
546
- #: ../inc/wp-functions.php:158
547
- msgid "WP ULike Activity"
548
- msgstr "WP ULike 活动"
549
 
550
- #: ../inc/wp-functions.php:168 ../inc/wp-functions.php:178
551
- msgid "liked"
552
- msgstr "已喜欢"
553
 
554
- #: ../inc/wp-functions.php:168
555
- msgid "comment"
556
- msgstr "评论"
557
 
558
- #: ../inc/wp-strings.php:3
559
- msgid "WP Ulike - Most Liked Comments"
560
- msgstr "WP Ulike - 最多人喜欢的评论"
561
 
562
- #: ../inc/wp-strings.php:4
563
- msgid "This widget allows you to show most liked comments."
564
- msgstr "这个小工具允许你显示最多人喜欢的评论。"
565
 
566
- #: ../inc/wp-strings.php:5
567
- msgid "Most Liked Comments"
568
- msgstr "最多人喜欢的评论"
569
 
570
- #: ../inc/wp-strings.php:6
571
- msgid "WP Ulike - Most Liked Activities"
572
- msgstr "WP Ulike - 最多人喜欢的活动"
573
 
574
- #: ../inc/wp-strings.php:7
575
- msgid "This widget allows you to show most liked activities."
576
- msgstr "这个小工具允许你显示最多人喜欢的活动。"
577
 
578
- #: ../inc/wp-strings.php:8
579
- msgid "Most Liked Activities"
580
- msgstr "最多人喜欢的活动"
581
 
582
- #: ../inc/wp-strings.php:9
583
- msgid "Users Login Text"
584
- msgstr "用户登录文本"
585
 
586
- #: ../inc/wp-strings.php:10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
  msgid "Allow To Like"
588
  msgstr "允许喜欢"
589
 
590
- #: ../inc/wp-strings.php:11
591
  msgid "Guests Only"
592
  msgstr "仅仅游客"
593
 
594
- #: ../inc/wp-strings.php:12
595
  msgid "Registered Users Only"
596
  msgstr "仅仅已注册用户"
597
 
598
- #: ../inc/wp-strings.php:13
599
  msgid "Registered Users And Guests"
600
  msgstr "已注册用户和游客"
601
 
602
- #: ../inc/wp-strings.php:14
603
  msgid "Who Is Allowed To Like?"
604
  msgstr "谁将被允许喜欢?"
605
 
606
- #: ../inc/wp-strings.php:15
607
  msgid "Filter Options:"
608
  msgstr "过滤选项:"
609
 
610
- #: ../inc/wp-strings.php:16
611
  msgid "Sort Options:"
612
  msgstr "排序选项:"
613
 
614
- #: ../inc/wp-strings.php:17
615
- msgid "Logging Method"
616
- msgstr "记录方法"
617
-
618
- #: ../inc/wp-strings.php:18
619
- msgid "Do Not Log"
620
- msgstr "不记录"
621
-
622
- #: ../inc/wp-strings.php:19
623
- msgid "Logged By Cookie"
624
- msgstr "通过 Cookie 记录"
625
-
626
- #: ../inc/wp-strings.php:20
627
- msgid "Logged By IP"
628
- msgstr "通过 IP 记录"
629
-
630
- #: ../inc/wp-strings.php:21
631
- msgid "Logged By Cookie & IP"
632
- msgstr "通过 Cookie 和 IP 记录"
633
-
634
- #: ../inc/wp-strings.php:22
635
- msgid "Logged By Username"
636
- msgstr "通过用户名记录"
637
-
638
- #: ../inc/wp-strings.php:23
639
- msgid "Wp ULike Template"
640
- msgstr "Wp ULike 模板"
641
 
642
- #: ../inc/wp-strings.php:24
643
  msgid "Dislike"
644
  msgstr "不喜欢"
645
 
646
- #: ../inc/wp-strings.php:25
647
  msgid "Dislike Support"
648
  msgstr "[不喜欢]支持"
649
 
650
- #: ../inc/wp-strings.php:26
651
  msgid "Text After Dislike"
652
  msgstr "不喜欢后的文字"
653
 
654
- #: ../inc/wp-ulike-buddypress.php:73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
655
  msgid "You need to login in order to like this activity: "
656
  msgstr "你需要登录后才能喜欢这个活动:"
657
 
658
- #: ../inc/wp-ulike-buddypress.php:73 ../inc/wp-ulike-comments.php:73
659
- #: ../inc/wp-ulike-posts.php:75
660
  msgid "click here"
661
  msgstr "点击这里"
662
 
663
- #: ../inc/wp-ulike-comments.php:73
664
  msgid "You need to login in order to like this comment: "
665
  msgstr "你需要为了喜欢这个评论登陆"
666
 
667
- #: ../inc/wp-ulike-posts.php:75
668
  msgid "You need to login in order to like this post: "
669
  msgstr "你需要登录后才能喜欢这篇文章:"
670
 
@@ -679,6 +882,104 @@ msgstr ""
679
  "让访客喜欢或不喜欢页面、文章、评论和 buddypress 评论。它不仅简单易用,而且支"
680
  "持很多选项设置。"
681
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
682
  #~ msgid "Activate user like count"
683
  #~ msgstr "启用用户喜欢计数"
684
 
@@ -715,9 +1016,6 @@ msgstr ""
715
  #~ msgid "Comment likes"
716
  #~ msgstr "评论喜欢"
717
 
718
- #~ msgid "Activity likes"
719
- #~ msgstr "活动喜欢"
720
-
721
  #~ msgid "Already Voted"
722
  #~ msgstr "已经投票"
723
 
@@ -743,17 +1041,11 @@ msgstr ""
743
  #~ msgid "<strong>Active</strong> this option."
744
  #~ msgstr "<strong>激活</strong>这个选项"
745
 
746
- #~ msgid "WP Ulike Widget"
747
- #~ msgstr "WP Ulike 小工具"
748
-
749
  #~ msgid ""
750
  #~ "This plugin allows your visitors to simply like your posts instead of "
751
  #~ "comment it."
752
  #~ msgstr "该插件允许你的访客简单地喜欢您的文章而不是评论它。"
753
 
754
- #~ msgid "Show post count"
755
- #~ msgstr "显示文章计数"
756
-
757
  #~ msgid "jQuery framework"
758
  #~ msgstr "Librairie jQuery"
759
 
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-01-29 13:02+0330\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Alimir <info@alimir.ir>\n"
8
  "Language-Team: 倡萌@WordPress大学 <admin@cmhello.com>\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
+ "X-Generator: Poedit 1.6.10\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
+ #: ../admin/about.php:74
21
  msgid "Welcome to WP ULike"
22
  msgstr "欢迎使用 WP ULike"
23
 
24
+ #: ../admin/about.php:76
25
  msgid ""
26
  "Thank you for choosing WP ULike! This version is our leanest and most "
27
  "powerful version yet."
28
  msgstr "感谢您选择 WP ULike!这个版本是我们目前最轻巧、最强大的版本哦!"
29
 
30
+ #: ../admin/about.php:77
31
  msgid "Visit our homepage"
32
  msgstr "访问我们的主页"
33
 
34
+ #: ../admin/about.php:79
35
+ msgid "Version"
36
+ msgstr ""
37
+
38
+ #: ../admin/about.php:82
39
  msgid "Getting Started"
40
  msgstr "开始"
41
 
42
+ #: ../admin/about.php:83
43
  msgid "Credits"
44
  msgstr "积分"
45
 
46
+ #: ../admin/about.php:84
47
  msgid "Support"
48
  msgstr "支持"
49
 
50
+ #: ../admin/about.php:85
51
  msgid "FAQ"
52
  msgstr "常见问答"
53
 
54
+ #: ../admin/about.php:86
55
  msgid "Reviews"
56
  msgstr "点评"
57
 
58
+ #: ../admin/about.php:87
59
  msgid "Contact"
60
  msgstr "联系"
61
 
62
+ #: ../admin/about.php:99
63
  msgid "Novelty Of WP ULike"
64
  msgstr "WP ULike 的新特色"
65
 
66
+ #: ../admin/about.php:103
67
+ msgid "New Statistics Page"
68
+ msgstr ""
69
+
70
+ #: ../admin/about.php:108
71
+ msgid "New Class-based programming"
72
+ msgstr ""
73
+
74
+ #: ../admin/about.php:115 ../admin/classes/class-widget.php:241
75
+ msgid "Most Liked Comments"
76
+ msgstr "最多人喜欢的评论"
77
+
78
+ #: ../admin/about.php:120 ../admin/admin.php:193 ../admin/admin.php:269
79
+ #: ../admin/admin.php:335
80
+ msgid "Logging Method"
81
+ msgstr "记录方法"
82
+
83
+ #: ../admin/about.php:128
84
+ msgid "New options in logs pages"
85
+ msgstr ""
86
+
87
+ #: ../admin/about.php:133
88
  msgid "New setting panel"
89
  msgstr "新设置面板"
90
 
91
+ #: ../admin/about.php:141
92
  msgid "Better coding on plugin files"
93
  msgstr "更好的文件编码"
94
 
95
+ #: ../admin/about.php:146
96
  msgid "Buddypress likes support"
97
  msgstr "Buddypress 喜欢支持"
98
 
99
+ #: ../admin/about.php:151
100
  msgid "Likes logs support"
101
  msgstr "喜欢日志支持"
102
 
103
+ #: ../admin/about.php:160
104
  msgid "WP ULike is created by many love and time. Enjoy it :)"
105
  msgstr "WP ULike 已经使用了很多关爱和时间来创建,好好享用吧 :)"
106
 
107
+ #: ../admin/about.php:161
108
  msgid "Project Leaders"
109
  msgstr "项目负责人"
110
 
111
+ #: ../admin/about.php:166
112
  msgid "Project Lead & Developer"
113
  msgstr "项目主管和开发"
114
 
115
+ #: ../admin/about.php:170
116
  msgid "Translations"
117
  msgstr "翻译"
118
 
119
+ #: ../admin/about.php:180
120
+ msgid "Other Plugins"
121
+ msgstr ""
122
+
123
+ #: ../admin/about.php:199
124
  msgid "Like this plugin?"
125
  msgstr "喜欢这个插件?"
126
 
127
+ #: ../admin/about.php:200
128
  msgid ""
129
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
130
  "wp-ulike\"> Plugin Directory reviews</a>"
132
  "支持本插件,请在 <a href=\"http://wordpress.org/plugins/wp-ulike\"> 插件目录"
133
  "评论 </a> 提交 5 星级投票"
134
 
135
+ #: ../admin/admin.php:39
136
+ #, php-format
137
+ msgid ""
138
+ " Thank you for choosing <a href=\"%s\" title=\"Wordpress ULike\" target="
139
+ "\"_blank\">WP ULike</a>. Created by <a href=\"%s\" title=\"Wordpress ULike\" "
140
+ "target=\"_blank\">Ali Mirzaei</a>"
141
+ msgstr ""
142
+
143
+ #: ../admin/admin.php:70
144
  msgid "WP ULike Settings"
145
  msgstr "WP ULike 设置"
146
 
147
+ #: ../admin/admin.php:73
148
  msgid "WP ULike"
149
  msgstr "WP ULike"
150
 
151
+ #: ../admin/admin.php:78
152
  msgid "General"
153
  msgstr "常规"
154
 
155
+ #: ../admin/admin.php:82
156
  msgid "Button Type"
157
  msgstr "按钮样式"
158
 
159
+ #: ../admin/admin.php:85
160
  msgid "Icon"
161
  msgstr "图标"
162
 
163
+ #: ../admin/admin.php:86
164
  msgid "Text"
165
  msgstr "文本"
166
 
167
+ #: ../admin/admin.php:90 ../admin/classes/class-widget.php:178
168
  msgid "Like"
169
  msgstr "喜欢"
170
 
171
+ #: ../admin/admin.php:91
172
  msgid "Button Text"
173
  msgstr "按钮文本"
174
 
175
+ #: ../admin/admin.php:95
176
  msgid "Button Icon"
177
  msgstr "按钮图标"
178
 
179
+ #: ../admin/admin.php:96 ../admin/admin.php:442
180
  msgid "Best size: 16x16"
181
  msgstr "最适合的大小: 16x16"
182
 
183
+ #: ../admin/admin.php:101
184
  msgid "Format Number"
185
  msgstr "格式化数字"
186
 
187
+ #: ../admin/admin.php:102 ../admin/admin.php:113 ../admin/admin.php:155
188
+ #: ../admin/admin.php:187 ../admin/admin.php:216 ../admin/admin.php:246
189
+ #: ../admin/admin.php:263 ../admin/admin.php:292 ../admin/admin.php:329
190
+ #: ../admin/admin.php:358 ../admin/admin.php:365 ../admin/admin.php:407
191
  msgid "Activate"
192
  msgstr "激活"
193
 
194
+ #: ../admin/admin.php:103
195
  msgid "Convert numbers of Likes with string (kilobyte) format."
196
  msgstr "使用字符串(千字节)格式化喜欢数目"
197
 
198
+ #: ../admin/admin.php:106
199
  msgid "Unlike"
200
  msgstr "不喜欢"
201
 
202
+ #: ../admin/admin.php:107
203
  msgid "Text After Like"
204
  msgstr "[喜欢]后的文字"
205
 
206
+ #: ../admin/admin.php:112
207
+ msgid "Return To The Initial"
208
+ msgstr ""
209
+
210
+ #: ../admin/admin.php:114
211
+ msgid ""
212
+ "Return to the initial Like button after Unlike. (Not Showing text after "
213
+ "unlike)"
214
+ msgstr ""
215
+
216
+ #: ../admin/admin.php:117
217
  msgid "Like Me Again!"
218
  msgstr "再喜欢一次!"
219
 
220
+ #: ../admin/admin.php:118
221
  msgid "Text After Unlike"
222
  msgstr "[不喜欢]后的文字"
223
 
224
+ #: ../admin/admin.php:121
225
  msgid "You have not permission to unlike"
226
  msgstr "您没有权限选择不喜欢"
227
 
228
+ #: ../admin/admin.php:122
229
  msgid "Permission Text"
230
  msgstr "权限文本"
231
 
232
+ #: ../admin/admin.php:126
233
+ msgid "Users Login Type"
234
+ msgstr ""
235
+
236
+ #: ../admin/admin.php:129
237
+ msgid "Alert Box"
238
+ msgstr ""
239
+
240
+ #: ../admin/admin.php:130
241
+ msgid "Like Button"
242
+ msgstr ""
243
+
244
+ #: ../admin/admin.php:134
245
+ msgid "You Should Login To Submit Your Like"
246
+ msgstr ""
247
+
248
+ #: ../admin/admin.php:135
249
+ msgid "Users Login Text"
250
+ msgstr "用户登录文本"
251
+
252
+ #: ../admin/admin.php:142
253
  msgid "Settings saved."
254
  msgstr "设置已保存"
255
 
256
+ #: ../admin/admin.php:149
257
  msgid "Posts"
258
  msgstr "文章"
259
 
260
+ #: ../admin/admin.php:154 ../admin/admin.php:245 ../admin/admin.php:321
261
  msgid "Automatic display"
262
  msgstr "自动显示"
263
 
264
+ #: ../admin/admin.php:156
 
 
 
 
 
 
265
  msgid ""
266
  "If you disable this option, you have to put manually this code on wordpress "
267
  "while loop"
268
  msgstr "如果你禁用这个选项,你必须手动添加这个代码到WordPress的循环代码中"
269
 
270
+ #: ../admin/admin.php:160 ../admin/admin.php:251
271
+ msgid "Auto Display Position"
272
+ msgstr ""
273
+
274
+ #: ../admin/admin.php:163 ../admin/admin.php:254
275
+ msgid "Top of Content"
276
+ msgstr ""
277
+
278
+ #: ../admin/admin.php:164 ../admin/admin.php:255
279
+ msgid "Bottom of Content"
280
+ msgstr ""
281
+
282
+ #: ../admin/admin.php:165 ../admin/admin.php:256
283
+ msgid "Top and Bottom"
284
+ msgstr ""
285
+
286
+ #: ../admin/admin.php:170
287
+ msgid "Auto Display Filter"
288
+ msgstr ""
289
+
290
+ #: ../admin/admin.php:172
291
+ msgid "Home"
292
+ msgstr ""
293
+
294
+ #: ../admin/admin.php:173
295
+ msgid "Single Posts"
296
+ msgstr ""
297
+
298
+ #: ../admin/admin.php:174
299
+ msgid "Pages"
300
+ msgstr ""
301
+
302
+ #: ../admin/admin.php:175
303
+ msgid "Archives"
304
+ msgstr ""
305
+
306
+ #: ../admin/admin.php:176
307
+ msgid "Categories"
308
+ msgstr ""
309
+
310
+ #: ../admin/admin.php:177
311
+ msgid "Search Results"
312
+ msgstr ""
313
+
314
+ #: ../admin/admin.php:178
315
+ msgid "Tags"
316
+ msgstr ""
317
+
318
+ #: ../admin/admin.php:179
319
+ msgid "Author Page"
320
+ msgstr ""
321
+
322
+ #: ../admin/admin.php:181
323
+ msgid "You can filter theses pages on auto display option."
324
+ msgstr ""
325
+
326
+ #: ../admin/admin.php:186 ../admin/admin.php:262 ../admin/admin.php:328
327
  msgid "Only registered Users"
328
  msgstr "只有已注册的用户"
329
 
330
+ #: ../admin/admin.php:188
331
  msgid "<strong>Only</strong> registered users have permission to like posts."
332
  msgstr "<strong>只有</strong> 已注册的用户才有权限喜欢文章。"
333
 
334
+ #: ../admin/admin.php:195 ../admin/admin.php:271 ../admin/admin.php:337
335
+ msgid "Do Not Log"
336
+ msgstr "不记录"
337
+
338
+ #: ../admin/admin.php:196 ../admin/admin.php:272 ../admin/admin.php:338
339
+ msgid "Logged By Cookie"
340
+ msgstr "通过 Cookie 记录"
341
+
342
+ #: ../admin/admin.php:197 ../admin/admin.php:273 ../admin/admin.php:339
343
+ msgid "Logged By IP"
344
+ msgstr "通过 IP 记录"
345
+
346
+ #: ../admin/admin.php:198 ../admin/admin.php:274 ../admin/admin.php:340
347
+ msgid "Logged By Cookie & IP"
348
+ msgstr "通过 Cookie 和 IP 记录"
349
+
350
+ #: ../admin/admin.php:199 ../admin/admin.php:275 ../admin/admin.php:341
351
+ msgid "Logged By Username"
352
+ msgstr "通过用户名记录"
353
+
354
+ #: ../admin/admin.php:203 ../admin/admin.php:279 ../admin/admin.php:345
355
+ msgid "Attention!"
356
+ msgstr ""
357
+
358
+ #: ../admin/admin.php:205 ../admin/admin.php:281 ../admin/admin.php:347
359
+ msgid ""
360
+ "If you select <strong>\"Do Not Log\"</strong> method: Any data logs can't "
361
+ "save, There is no limitation in the like/dislike, unlike/undislike capacity "
362
+ "do not work"
363
+ msgstr ""
364
+
365
+ #: ../admin/admin.php:206 ../admin/admin.php:282 ../admin/admin.php:348
366
+ msgid ""
367
+ "If you select <strong>\"Logged By Cookie\"</strong> method: Any data logs "
368
+ "can't save, The like/dislike condition will be limited by SetCookie, unlike/"
369
+ "undislike capacity do not work"
370
+ msgstr ""
371
+
372
+ #: ../admin/admin.php:207 ../admin/admin.php:283 ../admin/admin.php:349
373
+ msgid ""
374
+ "If you select <strong>\"Logged By IP\"</strong> method: Data logs will save "
375
+ "for all users, the convey of like/dislike condition will check by user IP"
376
+ msgstr ""
377
+
378
+ #: ../admin/admin.php:208 ../admin/admin.php:284 ../admin/admin.php:350
379
+ msgid ""
380
+ "If you select <strong>\"Logged By Cookie & IP\"</strong> method: Data logs "
381
+ "will save for all users, the convey of like/dislike condition will check by "
382
+ "user IP & SetCookie"
383
+ msgstr ""
384
+
385
+ #: ../admin/admin.php:209 ../admin/admin.php:285 ../admin/admin.php:351
386
+ msgid ""
387
+ "If you select <strong>\"Logged By Username\"</strong> method: data logs only "
388
+ "is saved for registered users, the convey of like/dislike condition will "
389
+ "check by username, There is no permission for guest users to unlike/undislike"
390
+ msgstr ""
391
+
392
+ #: ../admin/admin.php:215 ../admin/admin.php:291 ../admin/admin.php:364
393
  msgid "Show Liked Users Box"
394
  msgstr "显示已喜欢的用户盒子"
395
 
396
+ #: ../admin/admin.php:217 ../admin/admin.php:293 ../admin/admin.php:366
397
  msgid ""
398
  "Active this option to show liked users avatars in the bottom of button like."
399
  msgstr "启用这个选项,可以在喜欢按钮的底部显示已喜欢的用户头像"
400
 
401
+ #: ../admin/admin.php:222 ../admin/admin.php:298 ../admin/admin.php:371
402
  msgid "Size of Gravatars"
403
  msgstr "头像大小"
404
 
405
+ #: ../admin/admin.php:223 ../admin/admin.php:299 ../admin/admin.php:372
406
  msgid "Size of Gravatars to return (max is 512)"
407
  msgstr "头像大小(最大为 512)"
408
 
409
+ #: ../admin/admin.php:228 ../admin/admin.php:304 ../admin/admin.php:377
410
+ msgid "Number Of The Users"
411
+ msgstr ""
412
+
413
+ #: ../admin/admin.php:229 ../admin/admin.php:305 ../admin/admin.php:378
414
+ msgid "The number of users to show in the users liked box"
415
+ msgstr ""
416
+
417
+ #: ../admin/admin.php:233 ../admin/admin.php:235
418
+ #: ../inc/classes/class-ulike.php:409
419
  msgid "Users who have LIKED this post:"
420
  msgstr "喜欢该文章的用户:"
421
 
422
+ #: ../admin/admin.php:234 ../admin/admin.php:310 ../admin/admin.php:383
423
+ msgid "Users Like Box Template"
424
+ msgstr ""
425
 
426
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
427
+ #: ../admin/admin.php:390 ../admin/admin.php:396
428
+ msgid "Allowed Variables:"
429
+ msgstr ""
430
+
431
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
432
+ #: ../admin/admin.php:390 ../admin/admin.php:396
433
+ msgid "Default Template:"
434
+ msgstr ""
435
+
436
+ #: ../admin/admin.php:240
437
  msgid "Comments"
438
  msgstr "评论"
439
 
440
+ #: ../admin/admin.php:247
 
 
 
 
441
  msgid ""
442
  "If you disable this option, you have to put manually this code on comments "
443
  "text"
444
  msgstr "如果禁用此选项,你必须手动添加这个代码到评论文本"
445
 
446
+ #: ../admin/admin.php:264
447
  msgid ""
448
  "<strong>Only</strong> registered users have permission to like comments."
449
  msgstr "<strong>只有</strong> 已注册的用户才有权限喜欢评论。"
450
 
451
+ #: ../admin/admin.php:309 ../admin/admin.php:311
452
  msgid "Users who have LIKED this comment:"
453
  msgstr "谁也喜欢这个评论用户:"
454
 
455
+ #: ../admin/admin.php:316
456
  msgid "BuddyPress"
457
  msgstr "BuddyPress"
458
 
459
+ #: ../admin/admin.php:322
460
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
461
  msgstr "<strong>在所有 buddypress 活动</strong>的活动顶部"
462
 
463
+ #: ../admin/admin.php:323
464
  msgid ""
465
  "If you disable this option, you have to put manually this code on buddypres "
466
  "activities content"
467
  msgstr "如果你禁用这个选项,你必须手动添加这个代码到buddypres活动内容"
468
 
469
+ #: ../admin/admin.php:330
470
  msgid ""
471
  "<strong>Only</strong> registered users have permission to like activities."
472
  msgstr "<strong>只有</strong> 已注册的用户才有权限喜欢活动。"
473
 
474
+ #: ../admin/admin.php:357
475
  msgid "BuddyPress Activity"
476
  msgstr "BuddyPress 活动"
477
 
478
+ #: ../admin/admin.php:359
479
  msgid "insert new likes in buddyPress activity page"
480
  msgstr "插入喜欢按钮到buddyPress活动页面"
481
 
482
+ #: ../admin/admin.php:382 ../admin/admin.php:384
483
  msgid "Users who have liked this activity:"
484
  msgstr "喜欢该活动的用户:"
485
 
486
+ #: ../admin/admin.php:389
487
+ msgid "Post Activity Text"
488
+ msgstr ""
489
+
490
+ #: ../admin/admin.php:395
491
+ msgid "Comment Activity Text"
492
+ msgstr ""
493
+
494
+ #: ../admin/admin.php:401
495
  msgid "Customize"
496
  msgstr "定制"
497
 
498
+ #: ../admin/admin.php:406
499
  msgid "Custom Style"
500
  msgstr "自定义样式"
501
 
502
+ #: ../admin/admin.php:411
503
  msgid "Active this option to see the custom style settings."
504
  msgstr "启用这个选项可以看到自定义样式设置。"
505
 
506
+ #: ../admin/admin.php:415
507
  msgid "Button style"
508
  msgstr "按钮样式"
509
 
510
+ #: ../admin/admin.php:416 ../admin/admin.php:429
511
  msgid "Background"
512
  msgstr "背景"
513
 
514
+ #: ../admin/admin.php:420 ../admin/admin.php:433
515
  msgid "Border Color"
516
  msgstr "背景颜色"
517
 
518
+ #: ../admin/admin.php:424 ../admin/admin.php:437
519
  msgid "Text Color"
520
  msgstr "文本颜色"
521
 
522
+ #: ../admin/admin.php:428
523
  msgid "Counter Style"
524
  msgstr "计数样式"
525
 
526
+ #: ../admin/admin.php:441
527
  msgid "Loading Animation"
528
  msgstr "加载动画"
529
 
530
+ #: ../admin/admin.php:460 ../admin/logs.php:44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
531
  msgid "Post Likes Logs"
532
  msgstr "文章喜欢日志"
533
 
534
+ #: ../admin/admin.php:462 ../admin/logs.php:161
535
  msgid "Comment Likes Logs"
536
  msgstr "评论喜欢日志"
537
 
538
+ #: ../admin/admin.php:464 ../admin/logs.php:284
539
  msgid "Activity Likes Logs"
540
  msgstr "活动喜欢日志"
541
 
542
+ #: ../admin/admin.php:466
543
+ msgid "WP ULike Statistics"
544
+ msgstr ""
545
+
546
+ #: ../admin/admin.php:468
547
  msgid "About WP ULike"
548
  msgstr "关于 WP ULike"
549
 
588
  msgid "No action defined."
589
  msgstr "没有定义任何操作。"
590
 
591
+ #: ../admin/classes/class-widget.php:11
592
+ msgid "WP Ulike Widget"
593
+ msgstr "WP Ulike 小工具"
594
 
595
+ #: ../admin/classes/class-widget.php:12
596
+ msgid ""
597
+ "An advanced widget that gives you all most liked records with different types"
598
+ msgstr ""
599
 
600
+ #: ../admin/classes/class-widget.php:78
601
+ msgid "you haven't liked any post yet!"
602
+ msgstr ""
603
 
604
+ #: ../admin/classes/class-widget.php:107
605
+ msgid "on"
606
+ msgstr ""
607
+
608
+ #: ../admin/classes/class-widget.php:229
609
+ msgid "Most Liked"
610
+ msgstr ""
611
+
612
+ #: ../admin/classes/class-widget.php:233
613
  msgid "Title:"
614
  msgstr "标题:"
615
 
616
+ #: ../admin/classes/class-widget.php:238
617
+ msgid "Type:"
618
+ msgstr ""
 
 
 
 
619
 
620
+ #: ../admin/classes/class-widget.php:240
621
+ msgid "Most Liked Posts"
622
+ msgstr "最多人喜欢的文章"
623
 
624
+ #: ../admin/classes/class-widget.php:242
625
+ msgid "Most Liked Activities"
626
+ msgstr "最多人喜欢的活动"
627
 
628
+ #: ../admin/classes/class-widget.php:243
629
  msgid "Most Liked Users"
630
  msgstr "最多人喜欢的用户"
631
 
632
+ #: ../admin/classes/class-widget.php:244
633
+ msgid "Last Posts Liked By User"
634
+ msgstr ""
635
 
636
+ #: ../admin/classes/class-widget.php:249
637
+ msgid "Number of items to show:"
638
+ msgstr ""
639
+
640
+ #: ../admin/classes/class-widget.php:254
641
  msgid "User avatar size:"
642
  msgstr "用户头像大小:"
643
 
644
+ #: ../admin/classes/class-widget.php:260
645
+ msgid "Activate Like Counter"
646
+ msgstr "启用喜欢计数"
647
+
648
+ #: ../admin/logs.php:43 ../admin/logs.php:160 ../admin/logs.php:283
649
  msgid "WP ULike Logs"
650
  msgstr "WP ULike 日志"
651
 
652
+ #: ../admin/logs.php:53 ../admin/logs.php:170 ../admin/logs.php:293
653
  msgid "ID"
654
  msgstr "ID"
655
 
656
+ #: ../admin/logs.php:54 ../admin/logs.php:171 ../admin/logs.php:294
657
  msgid "Username"
658
  msgstr "用户名"
659
 
660
+ #: ../admin/logs.php:55 ../admin/logs.php:172 ../admin/logs.php:295
661
  msgid "Status"
662
  msgstr "状态"
663
 
664
+ #: ../admin/logs.php:56
665
  msgid "Post ID"
666
  msgstr "文章ID"
667
 
668
+ #: ../admin/logs.php:57
669
  msgid "Post Title"
670
  msgstr "文章标题"
671
 
672
+ #: ../admin/logs.php:58 ../admin/logs.php:176 ../admin/logs.php:298
673
  msgid "Date / Time"
674
  msgstr "日期/时间"
675
 
676
+ #: ../admin/logs.php:59 ../admin/logs.php:177 ../admin/logs.php:299
677
  msgid "IP"
678
  msgstr "IP"
679
 
680
+ #: ../admin/logs.php:77 ../admin/logs.php:195 ../admin/logs.php:317
681
+ msgid "Guest User"
682
+ msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
683
 
684
+ #: ../admin/logs.php:120 ../admin/logs.php:242 ../admin/logs.php:361
685
  msgid ""
686
  "<strong>ERROR:</strong> No Record Found. (This problem is created because "
687
  "you don't have any data on this table)"
689
  "<strong>错误:</strong> 没有找到相关记录 (发生这个问题,是由于这个数据表中没"
690
  "有任何数据)"
691
 
692
+ #: ../admin/logs.php:173
693
  msgid "Comment ID"
694
  msgstr "评论ID"
695
 
696
+ #: ../admin/logs.php:174
697
  msgid "Comment Author"
698
  msgstr "评论作者"
699
 
700
+ #: ../admin/logs.php:175
701
+ msgid "Comment Text"
702
+ msgstr ""
 
 
 
 
703
 
704
+ #: ../admin/logs.php:296
705
  msgid "Activity ID"
706
  msgstr "活动ID"
707
 
708
+ #: ../admin/logs.php:297
709
+ msgid "Permalink"
710
+ msgstr ""
711
 
712
+ #: ../admin/logs.php:333
713
+ #, php-format
714
+ msgid "<a href=\"%1$s\">Activity Permalink</a>"
715
+ msgstr ""
716
 
717
+ #: ../admin/stats.php:26
718
+ msgid "Posts Likes Summary"
719
+ msgstr ""
720
 
721
+ #: ../admin/stats.php:32
722
+ msgid "Comments Likes Summary"
723
+ msgstr ""
724
 
725
+ #: ../admin/stats.php:38
726
+ msgid "Activities Likes Summary"
727
+ msgstr ""
728
 
729
+ #: ../admin/stats.php:43
730
+ msgid "Welcome to WP ULike Statistics!"
731
+ msgstr ""
732
 
733
+ #: ../admin/stats.php:44
734
+ msgid "We have provided some useful statistics tools in this page:"
735
+ msgstr ""
736
 
737
+ #: ../admin/stats.php:53
738
+ msgid "Today"
739
+ msgstr ""
740
 
741
+ #: ../admin/stats.php:54
742
+ msgid "Yesterday"
743
+ msgstr ""
744
 
745
+ #: ../admin/stats.php:55
746
+ msgid "Week"
747
+ msgstr ""
748
 
749
+ #: ../admin/stats.php:56
750
+ msgid "Month"
751
+ msgstr ""
752
 
753
+ #: ../admin/stats.php:57
754
+ msgid "All The Times"
755
+ msgstr ""
756
 
757
+ #: ../admin/stats.php:74 ../admin/stats.php:80 ../admin/stats.php:86
758
+ msgid "View Logs"
759
+ msgstr ""
760
+
761
+ #: ../admin/stats.php:75
762
+ msgid "Posts Likes Stats"
763
+ msgstr ""
764
+
765
+ #: ../admin/stats.php:81
766
+ msgid "Activities Likes Stats"
767
+ msgstr ""
768
+
769
+ #: ../admin/stats.php:87
770
+ msgid "Comments Likes Stats"
771
+ msgstr ""
772
+
773
+ #: ../admin/stats.php:93
774
+ msgid "Likes Percent In The Last 20 Days"
775
+ msgstr ""
776
+
777
+ #: ../inc/wp-functions.php:207
778
+ msgid "WP ULike Activity"
779
+ msgstr "WP ULike 活动"
780
+
781
+ #: ../inc/wp-strings.php:3
782
  msgid "Allow To Like"
783
  msgstr "允许喜欢"
784
 
785
+ #: ../inc/wp-strings.php:4
786
  msgid "Guests Only"
787
  msgstr "仅仅游客"
788
 
789
+ #: ../inc/wp-strings.php:5
790
  msgid "Registered Users Only"
791
  msgstr "仅仅已注册用户"
792
 
793
+ #: ../inc/wp-strings.php:6
794
  msgid "Registered Users And Guests"
795
  msgstr "已注册用户和游客"
796
 
797
+ #: ../inc/wp-strings.php:7
798
  msgid "Who Is Allowed To Like?"
799
  msgstr "谁将被允许喜欢?"
800
 
801
+ #: ../inc/wp-strings.php:8
802
  msgid "Filter Options:"
803
  msgstr "过滤选项:"
804
 
805
+ #: ../inc/wp-strings.php:9
806
  msgid "Sort Options:"
807
  msgstr "排序选项:"
808
 
809
+ #: ../inc/wp-strings.php:10
810
+ msgid "Themes"
811
+ msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
812
 
813
+ #: ../inc/wp-strings.php:11
814
  msgid "Dislike"
815
  msgstr "不喜欢"
816
 
817
+ #: ../inc/wp-strings.php:12
818
  msgid "Dislike Support"
819
  msgstr "[不喜欢]支持"
820
 
821
+ #: ../inc/wp-strings.php:13
822
  msgid "Text After Dislike"
823
  msgstr "不喜欢后的文字"
824
 
825
+ #: ../inc/wp-strings.php:14
826
+ msgid "Show Counter"
827
+ msgstr ""
828
+
829
+ #: ../inc/wp-strings.php:15
830
+ msgid "Show tooltips"
831
+ msgstr ""
832
+
833
+ #: ../inc/wp-strings.php:16
834
+ msgid "Alignment"
835
+ msgstr ""
836
+
837
+ #: ../inc/wp-strings.php:17
838
+ msgid "Left"
839
+ msgstr ""
840
+
841
+ #: ../inc/wp-strings.php:18
842
+ msgid "Center"
843
+ msgstr ""
844
+
845
+ #: ../inc/wp-strings.php:19
846
+ msgid "Right"
847
+ msgstr ""
848
+
849
+ #: ../inc/wp-strings.php:20
850
+ msgid "Cookie Life time"
851
+ msgstr ""
852
+
853
+ #: ../inc/wp-strings.php:21
854
+ msgid "BuddyPress Notifications"
855
+ msgstr ""
856
+
857
+ #: ../inc/wp-ulike-buddypress.php:68
858
  msgid "You need to login in order to like this activity: "
859
  msgstr "你需要登录后才能喜欢这个活动:"
860
 
861
+ #: ../inc/wp-ulike-buddypress.php:68 ../inc/wp-ulike-comments.php:68
862
+ #: ../inc/wp-ulike-posts.php:68
863
  msgid "click here"
864
  msgstr "点击这里"
865
 
866
+ #: ../inc/wp-ulike-comments.php:68
867
  msgid "You need to login in order to like this comment: "
868
  msgstr "你需要为了喜欢这个评论登陆"
869
 
870
+ #: ../inc/wp-ulike-posts.php:68
871
  msgid "You need to login in order to like this post: "
872
  msgstr "你需要登录后才能喜欢这篇文章:"
873
 
882
  "让访客喜欢或不喜欢页面、文章、评论和 buddypress 评论。它不仅简单易用,而且支"
883
  "持很多选项设置。"
884
 
885
+ #~ msgid "Users Like Box Title"
886
+ #~ msgstr "用户喜欢盒子的标题"
887
+
888
+ #, fuzzy
889
+ #~ msgid "WP Ulike - Most Liked"
890
+ #~ msgstr "WP Ulike -最多人喜欢的文章"
891
+
892
+ #~ msgid "WP Ulike - Most Liked Users"
893
+ #~ msgstr "WP Ulike - 最多人喜欢的用户"
894
+
895
+ #~ msgid "This widget allows you to show most liked users avatars."
896
+ #~ msgstr "该小工具可以显示最多人喜欢的用户头像。"
897
+
898
+ #~ msgid "Number of users to show:"
899
+ #~ msgstr "要显示的用户数:"
900
+
901
+ #, fuzzy
902
+ #~ msgid "Posts Stats"
903
+ #~ msgstr "文章喜欢日志统计"
904
+
905
+ #, fuzzy
906
+ #~ msgid "Comments Stats"
907
+ #~ msgstr "文章喜欢日志统计"
908
+
909
+ #, fuzzy
910
+ #~ msgid "Activities Stats"
911
+ #~ msgstr "文章喜欢日志统计"
912
+
913
+ #~ msgid ""
914
+ #~ "<strong>On all posts</strong> (home, archives, search) at the bottom of "
915
+ #~ "the post"
916
+ #~ msgstr "<strong>在所有文章</strong>(首页、存档、搜索)文章的底部"
917
+
918
+ #~ msgid "<strong>On all comments</strong> at the bottom of the comment"
919
+ #~ msgstr "<strong>在所有评论</strong>的评论底部"
920
+
921
+ #~ msgid "Dashboard"
922
+ #~ msgstr "仪表盘"
923
+
924
+ #~ msgid "Visit Post Logs Menu"
925
+ #~ msgstr "访问文章日志菜单"
926
+
927
+ #~ msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
928
+ #~ msgstr "如果你禁用这个选项,\"文章喜欢日志\"菜单将被隐藏。"
929
+
930
+ #~ msgid "Visit Comment Logs Menu"
931
+ #~ msgstr "访问评论日志菜单"
932
+
933
+ #~ msgid ""
934
+ #~ "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
935
+ #~ msgstr "如果你禁用这个选项,\"评论喜欢日志\"菜单将被隐藏。"
936
+
937
+ #~ msgid "Visit Activity Logs Menu"
938
+ #~ msgstr "访问活动日志菜单"
939
+
940
+ #~ msgid ""
941
+ #~ "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
942
+ #~ msgstr "如果你禁用这个选项,\"活动喜欢日志\"菜单将被隐藏。"
943
+
944
+ #~ msgid "This widget allows you to show most liked posts."
945
+ #~ msgstr "该小工具可以显示最多人喜欢的文章。"
946
+
947
+ #~ msgid "Total Users Liked:"
948
+ #~ msgstr "所有喜欢的用户:"
949
+
950
+ #~ msgid "Total Posts Liked:"
951
+ #~ msgstr "所有喜欢的文章:"
952
+
953
+ #~ msgid "Total Likes Sum:"
954
+ #~ msgstr "喜欢总数:"
955
+
956
+ #~ msgid "Total Comments Liked:"
957
+ #~ msgstr "所有喜欢的评论:"
958
+
959
+ #~ msgid "Total Activities Liked:"
960
+ #~ msgstr "所有喜欢的活动:"
961
+
962
+ #~ msgid "liked"
963
+ #~ msgstr "已喜欢"
964
+
965
+ #~ msgid "comment"
966
+ #~ msgstr "评论"
967
+
968
+ #~ msgid "WP Ulike - Most Liked Comments"
969
+ #~ msgstr "WP Ulike - 最多人喜欢的评论"
970
+
971
+ #~ msgid "This widget allows you to show most liked comments."
972
+ #~ msgstr "这个小工具允许你显示最多人喜欢的评论。"
973
+
974
+ #~ msgid "WP Ulike - Most Liked Activities"
975
+ #~ msgstr "WP Ulike - 最多人喜欢的活动"
976
+
977
+ #~ msgid "This widget allows you to show most liked activities."
978
+ #~ msgstr "这个小工具允许你显示最多人喜欢的活动。"
979
+
980
+ #~ msgid "Wp ULike Template"
981
+ #~ msgstr "Wp ULike 模板"
982
+
983
  #~ msgid "Activate user like count"
984
  #~ msgstr "启用用户喜欢计数"
985
 
1016
  #~ msgid "Comment likes"
1017
  #~ msgstr "评论喜欢"
1018
 
 
 
 
1019
  #~ msgid "Already Voted"
1020
  #~ msgstr "已经投票"
1021
 
1041
  #~ msgid "<strong>Active</strong> this option."
1042
  #~ msgstr "<strong>激活</strong>这个选项"
1043
 
 
 
 
1044
  #~ msgid ""
1045
  #~ "This plugin allows your visitors to simply like your posts instead of "
1046
  #~ "comment it."
1047
  #~ msgstr "该插件允许你的访客简单地喜欢您的文章而不是评论它。"
1048
 
 
 
 
1049
  #~ msgid "jQuery framework"
1050
  #~ msgstr "Librairie jQuery"
1051
 
lang/defualt.mo CHANGED
Binary file
lang/defualt.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
- "POT-Creation-Date: 2014-12-10 16:36+0330\n"
5
- "PO-Revision-Date: 2014-12-10 16:36+0330\n"
6
  "Last-Translator: Alimir <info@alimir.ir>\n"
7
  "Language-Team: \n"
8
  "Language: en_PW\n"
@@ -17,482 +17,531 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
- #: ../admin/about.php:56
21
  msgid "Welcome to WP ULike"
22
  msgstr ""
23
 
24
- #: ../admin/about.php:58
25
  msgid ""
26
  "Thank you for choosing WP ULike! This version is our leanest and most "
27
  "powerful version yet."
28
  msgstr ""
29
 
30
- #: ../admin/about.php:59
31
  msgid "Visit our homepage"
32
  msgstr ""
33
 
34
- #: ../admin/about.php:64
 
 
 
 
35
  msgid "Getting Started"
36
  msgstr ""
37
 
38
- #: ../admin/about.php:65
39
  msgid "Credits"
40
  msgstr ""
41
 
42
- #: ../admin/about.php:66
43
  msgid "Support"
44
  msgstr ""
45
 
46
- #: ../admin/about.php:67
47
  msgid "FAQ"
48
  msgstr ""
49
 
50
- #: ../admin/about.php:68
51
  msgid "Reviews"
52
  msgstr ""
53
 
54
- #: ../admin/about.php:69
55
  msgid "Contact"
56
  msgstr ""
57
 
58
- #: ../admin/about.php:81
59
  msgid "Novelty Of WP ULike"
60
  msgstr ""
61
 
62
- #: ../admin/about.php:85 ../admin/classes/class-widget.php:134
 
 
 
 
 
 
 
 
63
  msgid "Most Liked Comments"
64
  msgstr ""
65
 
66
- #: ../admin/about.php:90 ../admin/admin.php:146 ../admin/admin.php:214
67
- #: ../admin/admin.php:272
68
  msgid "Logging Method"
69
  msgstr ""
70
 
71
- #: ../admin/about.php:97
 
 
 
 
72
  msgid "New setting panel"
73
  msgstr ""
74
 
75
- #: ../admin/about.php:102
76
  msgid "Better coding on plugin files"
77
  msgstr ""
78
 
79
- #: ../admin/about.php:109
80
  msgid "Buddypress likes support"
81
  msgstr ""
82
 
83
- #: ../admin/about.php:114
84
  msgid "Likes logs support"
85
  msgstr ""
86
 
87
- #: ../admin/about.php:123
88
  msgid "WP ULike is created by many love and time. Enjoy it :)"
89
  msgstr ""
90
 
91
- #: ../admin/about.php:124
92
  msgid "Project Leaders"
93
  msgstr ""
94
 
95
- #: ../admin/about.php:129
96
  msgid "Project Lead & Developer"
97
  msgstr ""
98
 
99
- #: ../admin/about.php:133
100
  msgid "Translations"
101
  msgstr ""
102
 
103
- #: ../admin/about.php:143
 
 
 
 
104
  msgid "Like this plugin?"
105
  msgstr ""
106
 
107
- #: ../admin/about.php:144
108
  msgid ""
109
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
110
  "wp-ulike\"> Plugin Directory reviews</a>"
111
  msgstr ""
112
 
113
- #: ../admin/admin.php:36
 
 
 
 
 
 
 
 
114
  msgid "WP ULike Settings"
115
  msgstr ""
116
 
117
- #: ../admin/admin.php:39 ../wp-ulike.php:16
118
  msgid "WP ULike"
119
  msgstr ""
120
 
121
- #: ../admin/admin.php:44
122
  msgid "General"
123
  msgstr ""
124
 
125
- #: ../admin/admin.php:48
126
  msgid "Button Type"
127
  msgstr ""
128
 
129
- #: ../admin/admin.php:51
130
  msgid "Icon"
131
  msgstr ""
132
 
133
- #: ../admin/admin.php:52
134
  msgid "Text"
135
  msgstr ""
136
 
137
- #: ../admin/admin.php:56 ../admin/classes/class-widget.php:189
138
  msgid "Like"
139
  msgstr ""
140
 
141
- #: ../admin/admin.php:57
142
  msgid "Button Text"
143
  msgstr ""
144
 
145
- #: ../admin/admin.php:61
146
  msgid "Button Icon"
147
  msgstr ""
148
 
149
- #: ../admin/admin.php:62 ../admin/admin.php:359
150
  msgid "Best size: 16x16"
151
  msgstr ""
152
 
153
- #: ../admin/admin.php:67
154
  msgid "Format Number"
155
  msgstr ""
156
 
157
- #: ../admin/admin.php:68 ../admin/admin.php:79 ../admin/admin.php:108
158
- #: ../admin/admin.php:140 ../admin/admin.php:169 ../admin/admin.php:191
159
- #: ../admin/admin.php:208 ../admin/admin.php:237 ../admin/admin.php:266
160
- #: ../admin/admin.php:295 ../admin/admin.php:302 ../admin/admin.php:324
161
- #: ../admin/admin.php:370 ../admin/admin.php:377 ../admin/admin.php:384
162
  msgid "Activate"
163
  msgstr ""
164
 
165
- #: ../admin/admin.php:69
166
  msgid "Convert numbers of Likes with string (kilobyte) format."
167
  msgstr ""
168
 
169
- #: ../admin/admin.php:72
170
  msgid "Unlike"
171
  msgstr ""
172
 
173
- #: ../admin/admin.php:73
174
  msgid "Text After Like"
175
  msgstr ""
176
 
177
- #: ../admin/admin.php:78
178
  msgid "Return To The Initial"
179
  msgstr ""
180
 
181
- #: ../admin/admin.php:80
182
  msgid ""
183
  "Return to the initial Like button after Unlike. (Not Showing text after "
184
  "unlike)"
185
  msgstr ""
186
 
187
- #: ../admin/admin.php:83
188
  msgid "Like Me Again!"
189
  msgstr ""
190
 
191
- #: ../admin/admin.php:84
192
  msgid "Text After Unlike"
193
  msgstr ""
194
 
195
- #: ../admin/admin.php:87
196
  msgid "You have not permission to unlike"
197
  msgstr ""
198
 
199
- #: ../admin/admin.php:88
200
  msgid "Permission Text"
201
  msgstr ""
202
 
203
- #: ../admin/admin.php:95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  msgid "Settings saved."
205
  msgstr ""
206
 
207
- #: ../admin/admin.php:102
208
  msgid "Posts"
209
  msgstr ""
210
 
211
- #: ../admin/admin.php:107 ../admin/admin.php:190 ../admin/admin.php:258
212
  msgid "Automatic display"
213
  msgstr ""
214
 
215
- #: ../admin/admin.php:109
216
  msgid ""
217
  "If you disable this option, you have to put manually this code on wordpress "
218
  "while loop"
219
  msgstr ""
220
 
221
- #: ../admin/admin.php:113 ../admin/admin.php:196
222
  msgid "Auto Display Position"
223
  msgstr ""
224
 
225
- #: ../admin/admin.php:116 ../admin/admin.php:199
226
  msgid "Top of Content"
227
  msgstr ""
228
 
229
- #: ../admin/admin.php:117 ../admin/admin.php:200
230
  msgid "Bottom of Content"
231
  msgstr ""
232
 
233
- #: ../admin/admin.php:118 ../admin/admin.php:201
234
  msgid "Top and Bottom"
235
  msgstr ""
236
 
237
- #: ../admin/admin.php:123
238
  msgid "Auto Display Filter"
239
  msgstr ""
240
 
241
- #: ../admin/admin.php:125
242
  msgid "Home"
243
  msgstr ""
244
 
245
- #: ../admin/admin.php:126
246
  msgid "Single Posts"
247
  msgstr ""
248
 
249
- #: ../admin/admin.php:127
250
  msgid "Pages"
251
  msgstr ""
252
 
253
- #: ../admin/admin.php:128
254
  msgid "Archives"
255
  msgstr ""
256
 
257
- #: ../admin/admin.php:129
258
  msgid "Categories"
259
  msgstr ""
260
 
261
- #: ../admin/admin.php:130
262
  msgid "Search Results"
263
  msgstr ""
264
 
265
- #: ../admin/admin.php:131
266
  msgid "Tags"
267
  msgstr ""
268
 
269
- #: ../admin/admin.php:132
270
  msgid "Author Page"
271
  msgstr ""
272
 
273
- #: ../admin/admin.php:134
274
  msgid "You can filter theses pages on auto display option."
275
  msgstr ""
276
 
277
- #: ../admin/admin.php:139 ../admin/admin.php:207 ../admin/admin.php:265
278
  msgid "Only registered Users"
279
  msgstr ""
280
 
281
- #: ../admin/admin.php:141
282
  msgid "<strong>Only</strong> registered users have permission to like posts."
283
  msgstr ""
284
 
285
- #: ../admin/admin.php:148 ../admin/admin.php:216 ../admin/admin.php:274
286
  msgid "Do Not Log"
287
  msgstr ""
288
 
289
- #: ../admin/admin.php:149 ../admin/admin.php:217 ../admin/admin.php:275
290
  msgid "Logged By Cookie"
291
  msgstr ""
292
 
293
- #: ../admin/admin.php:150 ../admin/admin.php:218 ../admin/admin.php:276
294
  msgid "Logged By IP"
295
  msgstr ""
296
 
297
- #: ../admin/admin.php:151 ../admin/admin.php:219 ../admin/admin.php:277
298
  msgid "Logged By Cookie & IP"
299
  msgstr ""
300
 
301
- #: ../admin/admin.php:152 ../admin/admin.php:220 ../admin/admin.php:278
302
  msgid "Logged By Username"
303
  msgstr ""
304
 
305
- #: ../admin/admin.php:156 ../admin/admin.php:224 ../admin/admin.php:282
306
  msgid "Attention!"
307
  msgstr ""
308
 
309
- #: ../admin/admin.php:158 ../admin/admin.php:226 ../admin/admin.php:284
310
  msgid ""
311
  "If you select <strong>\"Do Not Log\"</strong> method: Any data logs can't "
312
  "save, There is no limitation in the like/dislike, unlike/undislike capacity "
313
  "do not work"
314
  msgstr ""
315
 
316
- #: ../admin/admin.php:159 ../admin/admin.php:227 ../admin/admin.php:285
317
  msgid ""
318
  "If you select <strong>\"Logged By Cookie\"</strong> method: Any data logs "
319
  "can't save, The like/dislike condition will be limited by SetCookie, unlike/"
320
  "undislike capacity do not work"
321
  msgstr ""
322
 
323
- #: ../admin/admin.php:160 ../admin/admin.php:228 ../admin/admin.php:286
324
  msgid ""
325
  "If you select <strong>\"Logged By IP\"</strong> method: Data logs will save "
326
  "for all users, the convey of like/dislike condition will check by user IP"
327
  msgstr ""
328
 
329
- #: ../admin/admin.php:161 ../admin/admin.php:229 ../admin/admin.php:287
330
  msgid ""
331
  "If you select <strong>\"Logged By Cookie & IP\"</strong> method: Data logs "
332
  "will save for all users, the convey of like/dislike condition will check by "
333
  "user IP & SetCookie"
334
  msgstr ""
335
 
336
- #: ../admin/admin.php:162 ../admin/admin.php:230 ../admin/admin.php:288
337
  msgid ""
338
  "If you select <strong>\"Logged By Username\"</strong> method: data logs only "
339
  "is saved for registered users, the convey of like/dislike condition will "
340
  "check by username, There is no permission for guest users to unlike/undislike"
341
  msgstr ""
342
 
343
- #: ../admin/admin.php:168 ../admin/admin.php:236 ../admin/admin.php:301
344
  msgid "Show Liked Users Box"
345
  msgstr ""
346
 
347
- #: ../admin/admin.php:170 ../admin/admin.php:238 ../admin/admin.php:303
348
  msgid ""
349
  "Active this option to show liked users avatars in the bottom of button like."
350
  msgstr ""
351
 
352
- #: ../admin/admin.php:175 ../admin/admin.php:243 ../admin/admin.php:308
353
  msgid "Size of Gravatars"
354
  msgstr ""
355
 
356
- #: ../admin/admin.php:176 ../admin/admin.php:244 ../admin/admin.php:309
357
  msgid "Size of Gravatars to return (max is 512)"
358
  msgstr ""
359
 
360
- #: ../admin/admin.php:179
 
 
 
 
 
 
 
 
 
361
  msgid "Users who have LIKED this post:"
362
  msgstr ""
363
 
364
- #: ../admin/admin.php:180 ../admin/admin.php:248 ../admin/admin.php:313
365
- msgid "Users Like Box Title"
 
 
 
 
 
366
  msgstr ""
367
 
368
- #: ../admin/admin.php:185
 
 
 
 
 
369
  msgid "Comments"
370
  msgstr ""
371
 
372
- #: ../admin/admin.php:192
373
  msgid ""
374
  "If you disable this option, you have to put manually this code on comments "
375
  "text"
376
  msgstr ""
377
 
378
- #: ../admin/admin.php:209
379
  msgid ""
380
  "<strong>Only</strong> registered users have permission to like comments."
381
  msgstr ""
382
 
383
- #: ../admin/admin.php:247
384
  msgid "Users who have LIKED this comment:"
385
  msgstr ""
386
 
387
- #: ../admin/admin.php:253
388
  msgid "BuddyPress"
389
  msgstr ""
390
 
391
- #: ../admin/admin.php:259
392
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
393
  msgstr ""
394
 
395
- #: ../admin/admin.php:260
396
  msgid ""
397
  "If you disable this option, you have to put manually this code on buddypres "
398
  "activities content"
399
  msgstr ""
400
 
401
- #: ../admin/admin.php:267
402
  msgid ""
403
  "<strong>Only</strong> registered users have permission to like activities."
404
  msgstr ""
405
 
406
- #: ../admin/admin.php:294
407
  msgid "BuddyPress Activity"
408
  msgstr ""
409
 
410
- #: ../admin/admin.php:296
411
  msgid "insert new likes in buddyPress activity page"
412
  msgstr ""
413
 
414
- #: ../admin/admin.php:312
415
  msgid "Users who have liked this activity:"
416
  msgstr ""
417
 
418
- #: ../admin/admin.php:318
 
 
 
 
 
 
 
 
419
  msgid "Customize"
420
  msgstr ""
421
 
422
- #: ../admin/admin.php:323
423
  msgid "Custom Style"
424
  msgstr ""
425
 
426
- #: ../admin/admin.php:328
427
  msgid "Active this option to see the custom style settings."
428
  msgstr ""
429
 
430
- #: ../admin/admin.php:332
431
  msgid "Button style"
432
  msgstr ""
433
 
434
- #: ../admin/admin.php:333 ../admin/admin.php:346
435
  msgid "Background"
436
  msgstr ""
437
 
438
- #: ../admin/admin.php:337 ../admin/admin.php:350
439
  msgid "Border Color"
440
  msgstr ""
441
 
442
- #: ../admin/admin.php:341 ../admin/admin.php:354
443
  msgid "Text Color"
444
  msgstr ""
445
 
446
- #: ../admin/admin.php:345
447
  msgid "Counter Style"
448
  msgstr ""
449
 
450
- #: ../admin/admin.php:358
451
  msgid "Loading Animation"
452
  msgstr ""
453
 
454
- #: ../admin/admin.php:364
455
- msgid "Dashboard"
456
- msgstr ""
457
-
458
- #: ../admin/admin.php:369
459
- msgid "Visit Post Logs Menu"
460
- msgstr ""
461
-
462
- #: ../admin/admin.php:371
463
- msgid "If you deactivate this option, \"Post Likes Logs\" Menu will hidden."
464
- msgstr ""
465
-
466
- #: ../admin/admin.php:376
467
- msgid "Visit Comment Logs Menu"
468
- msgstr ""
469
-
470
- #: ../admin/admin.php:378
471
- msgid "If you deactivate this option, \"Comment Likes Logs\" Menu will hidden."
472
- msgstr ""
473
-
474
- #: ../admin/admin.php:383
475
- msgid "Visit Activity Logs Menu"
476
- msgstr ""
477
-
478
- #: ../admin/admin.php:385
479
- msgid ""
480
- "If you deactivate this option, \"Activity Likes Logs\" Menu will hidden."
481
- msgstr ""
482
-
483
- #: ../admin/admin.php:397 ../admin/logs.php:34
484
  msgid "Post Likes Logs"
485
  msgstr ""
486
 
487
- #: ../admin/admin.php:401 ../admin/logs.php:155
488
  msgid "Comment Likes Logs"
489
  msgstr ""
490
 
491
- #: ../admin/admin.php:405 ../admin/logs.php:280
492
  msgid "Activity Likes Logs"
493
  msgstr ""
494
 
495
- #: ../admin/admin.php:408
 
 
 
 
496
  msgid "About WP ULike"
497
  msgstr ""
498
 
@@ -537,276 +586,284 @@ msgstr ""
537
  msgid "No action defined."
538
  msgstr ""
539
 
540
- #: ../admin/classes/class-widget.php:8
541
- msgid "WP Ulike - Most Liked Posts"
542
- msgstr ""
543
-
544
- #: ../admin/classes/class-widget.php:9
545
- msgid "This widget allows you to show most liked posts."
546
  msgstr ""
547
 
548
- #: ../admin/classes/class-widget.php:51
549
- msgid "Most Liked Posts"
 
550
  msgstr ""
551
 
552
- #: ../admin/classes/class-widget.php:55 ../admin/classes/class-widget.php:138
553
- #: ../admin/classes/class-widget.php:220
554
- msgid "Title:"
555
  msgstr ""
556
 
557
- #: ../admin/classes/class-widget.php:60
558
- msgid "Number of posts to show:"
559
  msgstr ""
560
 
561
- #: ../admin/classes/class-widget.php:66 ../admin/classes/class-widget.php:149
562
- #: ../admin/classes/class-widget.php:236
563
- msgid "Activate Like Counter"
564
  msgstr ""
565
 
566
- #: ../admin/classes/class-widget.php:88
567
- msgid "WP ULike - Most Liked Comments"
568
  msgstr ""
569
 
570
- #: ../admin/classes/class-widget.php:89
571
- msgid "This widget allows you to show most liked comments."
572
  msgstr ""
573
 
574
- #: ../admin/classes/class-widget.php:109
575
- msgid "on"
576
  msgstr ""
577
 
578
- #: ../admin/classes/class-widget.php:143
579
- msgid "Number of comments to show:"
580
  msgstr ""
581
 
582
- #: ../admin/classes/class-widget.php:170
583
- msgid "WP Ulike - Most Liked Users"
584
  msgstr ""
585
 
586
- #: ../admin/classes/class-widget.php:171
587
- msgid "This widget allows you to show most liked users avatars."
588
  msgstr ""
589
 
590
- #: ../admin/classes/class-widget.php:216
591
- msgid "Most Liked Users"
592
  msgstr ""
593
 
594
- #: ../admin/classes/class-widget.php:225
595
- msgid "Number of users to show:"
596
  msgstr ""
597
 
598
- #: ../admin/classes/class-widget.php:230
599
- msgid "User avatar size:"
600
  msgstr ""
601
 
602
- #: ../admin/logs.php:33 ../admin/logs.php:154 ../admin/logs.php:279
603
  msgid "WP ULike Logs"
604
  msgstr ""
605
 
606
- #: ../admin/logs.php:43 ../admin/logs.php:164 ../admin/logs.php:289
607
  msgid "ID"
608
  msgstr ""
609
 
610
- #: ../admin/logs.php:44 ../admin/logs.php:165 ../admin/logs.php:290
611
  msgid "Username"
612
  msgstr ""
613
 
614
- #: ../admin/logs.php:45 ../admin/logs.php:166 ../admin/logs.php:291
615
  msgid "Status"
616
  msgstr ""
617
 
618
- #: ../admin/logs.php:46
619
  msgid "Post ID"
620
  msgstr ""
621
 
622
- #: ../admin/logs.php:47
623
  msgid "Post Title"
624
  msgstr ""
625
 
626
- #: ../admin/logs.php:48 ../admin/logs.php:170 ../admin/logs.php:293
627
  msgid "Date / Time"
628
  msgstr ""
629
 
630
- #: ../admin/logs.php:49 ../admin/logs.php:171 ../admin/logs.php:294
631
  msgid "IP"
632
  msgstr ""
633
 
634
- #: ../admin/logs.php:67 ../admin/logs.php:189 ../admin/logs.php:312
635
  msgid "Guest User"
636
  msgstr ""
637
 
638
- #: ../admin/logs.php:104
639
- msgid "Post Likes Logs Stats"
 
 
640
  msgstr ""
641
 
642
- #: ../admin/logs.php:108 ../admin/logs.php:233 ../admin/logs.php:350
643
- msgid "Total Users Liked:"
644
  msgstr ""
645
 
646
- #: ../admin/logs.php:112
647
- msgid "Total Posts Liked:"
648
  msgstr ""
649
 
650
- #: ../admin/logs.php:116 ../admin/logs.php:241 ../admin/logs.php:358
651
- msgid "Total Likes Sum:"
652
  msgstr ""
653
 
654
- #: ../admin/logs.php:123 ../admin/logs.php:248 ../admin/logs.php:365
655
- msgid ""
656
- "<strong>ERROR:</strong> No Record Found. (This problem is created because "
657
- "you don't have any data on this table)"
658
  msgstr ""
659
 
660
- #: ../admin/logs.php:167
661
- msgid "Comment ID"
662
  msgstr ""
663
 
664
- #: ../admin/logs.php:168
665
- msgid "Comment Author"
 
666
  msgstr ""
667
 
668
- #: ../admin/logs.php:169
669
- msgid "Comment Text"
670
  msgstr ""
671
 
672
- #: ../admin/logs.php:229
673
- msgid "Comment Likes Logs Stats"
674
  msgstr ""
675
 
676
- #: ../admin/logs.php:237
677
- msgid "Total Comments Liked:"
678
  msgstr ""
679
 
680
- #: ../admin/logs.php:292
681
- msgid "Activity ID"
682
  msgstr ""
683
 
684
- #: ../admin/logs.php:346
685
- msgid "Activity Likes Logs Stats"
686
  msgstr ""
687
 
688
- #: ../admin/logs.php:354
689
- msgid "Total Activities Liked:"
690
  msgstr ""
691
 
692
- #: ../inc/wp-functions.php:236
693
- msgid "WP ULike Activity"
694
  msgstr ""
695
 
696
- #: ../inc/wp-functions.php:246 ../inc/wp-functions.php:256
697
- msgid "liked"
698
  msgstr ""
699
 
700
- #: ../inc/wp-functions.php:246
701
- msgid "comment"
702
  msgstr ""
703
 
704
- #: ../inc/wp-strings.php:3
705
- msgid "WP ULike - Most Liked Activities"
706
  msgstr ""
707
 
708
- #: ../inc/wp-strings.php:4
709
- msgid "This widget allows you to show most liked activities."
710
  msgstr ""
711
 
712
- #: ../inc/wp-strings.php:5
713
- msgid "Most Liked Activities"
714
  msgstr ""
715
 
716
- #: ../inc/wp-strings.php:6
717
- msgid "Users Login Text"
718
  msgstr ""
719
 
720
- #: ../inc/wp-strings.php:7
 
 
 
 
 
 
 
 
 
 
 
 
721
  msgid "Allow To Like"
722
  msgstr ""
723
 
724
- #: ../inc/wp-strings.php:8
725
  msgid "Guests Only"
726
  msgstr ""
727
 
728
- #: ../inc/wp-strings.php:9
729
  msgid "Registered Users Only"
730
  msgstr ""
731
 
732
- #: ../inc/wp-strings.php:10
733
  msgid "Registered Users And Guests"
734
  msgstr ""
735
 
736
- #: ../inc/wp-strings.php:11
737
  msgid "Who Is Allowed To Like?"
738
  msgstr ""
739
 
740
- #: ../inc/wp-strings.php:12
741
  msgid "Filter Options:"
742
  msgstr ""
743
 
744
- #: ../inc/wp-strings.php:13
745
  msgid "Sort Options:"
746
  msgstr ""
747
 
748
- #: ../inc/wp-strings.php:14
749
  msgid "Themes"
750
  msgstr ""
751
 
752
- #: ../inc/wp-strings.php:15
753
  msgid "Dislike"
754
  msgstr ""
755
 
756
- #: ../inc/wp-strings.php:16
757
  msgid "Dislike Support"
758
  msgstr ""
759
 
760
- #: ../inc/wp-strings.php:17
761
  msgid "Text After Dislike"
762
  msgstr ""
763
 
764
- #: ../inc/wp-strings.php:18
765
  msgid "Show Counter"
766
  msgstr ""
767
 
768
- #: ../inc/wp-strings.php:19
769
  msgid "Show tooltips"
770
  msgstr ""
771
 
772
- #: ../inc/wp-strings.php:20
773
  msgid "Alignment"
774
  msgstr ""
775
 
776
- #: ../inc/wp-strings.php:21
777
  msgid "Left"
778
  msgstr ""
779
 
780
- #: ../inc/wp-strings.php:22
781
  msgid "Center"
782
  msgstr ""
783
 
784
- #: ../inc/wp-strings.php:23
785
  msgid "Right"
786
  msgstr ""
787
 
788
- #: ../inc/wp-strings.php:24
789
  msgid "Cookie Life time"
790
  msgstr ""
791
 
792
- #: ../inc/wp-strings.php:25
793
  msgid "BuddyPress Notifications"
794
  msgstr ""
795
 
796
- #: ../inc/wp-ulike-buddypress.php:45
797
  msgid "You need to login in order to like this activity: "
798
  msgstr ""
799
 
800
- #: ../inc/wp-ulike-buddypress.php:45 ../inc/wp-ulike-comments.php:45
801
- #: ../inc/wp-ulike-posts.php:46
802
  msgid "click here"
803
  msgstr ""
804
 
805
- #: ../inc/wp-ulike-comments.php:45
806
  msgid "You need to login in order to like this comment: "
807
  msgstr ""
808
 
809
- #: ../inc/wp-ulike-posts.php:46
810
  msgid "You need to login in order to like this post: "
811
  msgstr ""
812
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP ULike\n"
4
+ "POT-Creation-Date: 2015-01-29 16:30+0330\n"
5
+ "PO-Revision-Date: 2015-01-29 16:30+0330\n"
6
  "Last-Translator: Alimir <info@alimir.ir>\n"
7
  "Language-Team: \n"
8
  "Language: en_PW\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
+ #: ../admin/about.php:74
21
  msgid "Welcome to WP ULike"
22
  msgstr ""
23
 
24
+ #: ../admin/about.php:76
25
  msgid ""
26
  "Thank you for choosing WP ULike! This version is our leanest and most "
27
  "powerful version yet."
28
  msgstr ""
29
 
30
+ #: ../admin/about.php:77
31
  msgid "Visit our homepage"
32
  msgstr ""
33
 
34
+ #: ../admin/about.php:79
35
+ msgid "Version"
36
+ msgstr ""
37
+
38
+ #: ../admin/about.php:82
39
  msgid "Getting Started"
40
  msgstr ""
41
 
42
+ #: ../admin/about.php:83
43
  msgid "Credits"
44
  msgstr ""
45
 
46
+ #: ../admin/about.php:84
47
  msgid "Support"
48
  msgstr ""
49
 
50
+ #: ../admin/about.php:85
51
  msgid "FAQ"
52
  msgstr ""
53
 
54
+ #: ../admin/about.php:86
55
  msgid "Reviews"
56
  msgstr ""
57
 
58
+ #: ../admin/about.php:87
59
  msgid "Contact"
60
  msgstr ""
61
 
62
+ #: ../admin/about.php:99
63
  msgid "Novelty Of WP ULike"
64
  msgstr ""
65
 
66
+ #: ../admin/about.php:103
67
+ msgid "New Statistics Page"
68
+ msgstr ""
69
+
70
+ #: ../admin/about.php:108
71
+ msgid "New Class-based programming"
72
+ msgstr ""
73
+
74
+ #: ../admin/about.php:115 ../admin/classes/class-widget.php:241
75
  msgid "Most Liked Comments"
76
  msgstr ""
77
 
78
+ #: ../admin/about.php:120 ../admin/admin.php:193 ../admin/admin.php:269
79
+ #: ../admin/admin.php:335
80
  msgid "Logging Method"
81
  msgstr ""
82
 
83
+ #: ../admin/about.php:128
84
+ msgid "New options in logs pages"
85
+ msgstr ""
86
+
87
+ #: ../admin/about.php:133
88
  msgid "New setting panel"
89
  msgstr ""
90
 
91
+ #: ../admin/about.php:141
92
  msgid "Better coding on plugin files"
93
  msgstr ""
94
 
95
+ #: ../admin/about.php:146
96
  msgid "Buddypress likes support"
97
  msgstr ""
98
 
99
+ #: ../admin/about.php:151
100
  msgid "Likes logs support"
101
  msgstr ""
102
 
103
+ #: ../admin/about.php:160
104
  msgid "WP ULike is created by many love and time. Enjoy it :)"
105
  msgstr ""
106
 
107
+ #: ../admin/about.php:161
108
  msgid "Project Leaders"
109
  msgstr ""
110
 
111
+ #: ../admin/about.php:166
112
  msgid "Project Lead & Developer"
113
  msgstr ""
114
 
115
+ #: ../admin/about.php:170
116
  msgid "Translations"
117
  msgstr ""
118
 
119
+ #: ../admin/about.php:180
120
+ msgid "Other Plugins"
121
+ msgstr ""
122
+
123
+ #: ../admin/about.php:199
124
  msgid "Like this plugin?"
125
  msgstr ""
126
 
127
+ #: ../admin/about.php:200
128
  msgid ""
129
  "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/"
130
  "wp-ulike\"> Plugin Directory reviews</a>"
131
  msgstr ""
132
 
133
+ #: ../admin/admin.php:39
134
+ #, php-format
135
+ msgid ""
136
+ " Thank you for choosing <a href=\"%s\" title=\"Wordpress ULike\" target="
137
+ "\"_blank\">WP ULike</a>. Created by <a href=\"%s\" title=\"Wordpress ULike\" "
138
+ "target=\"_blank\">Ali Mirzaei</a>"
139
+ msgstr ""
140
+
141
+ #: ../admin/admin.php:70
142
  msgid "WP ULike Settings"
143
  msgstr ""
144
 
145
+ #: ../admin/admin.php:73
146
  msgid "WP ULike"
147
  msgstr ""
148
 
149
+ #: ../admin/admin.php:78
150
  msgid "General"
151
  msgstr ""
152
 
153
+ #: ../admin/admin.php:82
154
  msgid "Button Type"
155
  msgstr ""
156
 
157
+ #: ../admin/admin.php:85
158
  msgid "Icon"
159
  msgstr ""
160
 
161
+ #: ../admin/admin.php:86
162
  msgid "Text"
163
  msgstr ""
164
 
165
+ #: ../admin/admin.php:90 ../admin/classes/class-widget.php:178
166
  msgid "Like"
167
  msgstr ""
168
 
169
+ #: ../admin/admin.php:91
170
  msgid "Button Text"
171
  msgstr ""
172
 
173
+ #: ../admin/admin.php:95
174
  msgid "Button Icon"
175
  msgstr ""
176
 
177
+ #: ../admin/admin.php:96 ../admin/admin.php:442
178
  msgid "Best size: 16x16"
179
  msgstr ""
180
 
181
+ #: ../admin/admin.php:101
182
  msgid "Format Number"
183
  msgstr ""
184
 
185
+ #: ../admin/admin.php:102 ../admin/admin.php:113 ../admin/admin.php:155
186
+ #: ../admin/admin.php:187 ../admin/admin.php:216 ../admin/admin.php:246
187
+ #: ../admin/admin.php:263 ../admin/admin.php:292 ../admin/admin.php:329
188
+ #: ../admin/admin.php:358 ../admin/admin.php:365 ../admin/admin.php:407
 
189
  msgid "Activate"
190
  msgstr ""
191
 
192
+ #: ../admin/admin.php:103
193
  msgid "Convert numbers of Likes with string (kilobyte) format."
194
  msgstr ""
195
 
196
+ #: ../admin/admin.php:106
197
  msgid "Unlike"
198
  msgstr ""
199
 
200
+ #: ../admin/admin.php:107
201
  msgid "Text After Like"
202
  msgstr ""
203
 
204
+ #: ../admin/admin.php:112
205
  msgid "Return To The Initial"
206
  msgstr ""
207
 
208
+ #: ../admin/admin.php:114
209
  msgid ""
210
  "Return to the initial Like button after Unlike. (Not Showing text after "
211
  "unlike)"
212
  msgstr ""
213
 
214
+ #: ../admin/admin.php:117
215
  msgid "Like Me Again!"
216
  msgstr ""
217
 
218
+ #: ../admin/admin.php:118
219
  msgid "Text After Unlike"
220
  msgstr ""
221
 
222
+ #: ../admin/admin.php:121
223
  msgid "You have not permission to unlike"
224
  msgstr ""
225
 
226
+ #: ../admin/admin.php:122
227
  msgid "Permission Text"
228
  msgstr ""
229
 
230
+ #: ../admin/admin.php:126
231
+ msgid "Users Login Type"
232
+ msgstr ""
233
+
234
+ #: ../admin/admin.php:129
235
+ msgid "Alert Box"
236
+ msgstr ""
237
+
238
+ #: ../admin/admin.php:130
239
+ msgid "Like Button"
240
+ msgstr ""
241
+
242
+ #: ../admin/admin.php:134
243
+ msgid "You Should Login To Submit Your Like"
244
+ msgstr ""
245
+
246
+ #: ../admin/admin.php:135
247
+ msgid "Users Login Text"
248
+ msgstr ""
249
+
250
+ #: ../admin/admin.php:142
251
  msgid "Settings saved."
252
  msgstr ""
253
 
254
+ #: ../admin/admin.php:149
255
  msgid "Posts"
256
  msgstr ""
257
 
258
+ #: ../admin/admin.php:154 ../admin/admin.php:245 ../admin/admin.php:321
259
  msgid "Automatic display"
260
  msgstr ""
261
 
262
+ #: ../admin/admin.php:156
263
  msgid ""
264
  "If you disable this option, you have to put manually this code on wordpress "
265
  "while loop"
266
  msgstr ""
267
 
268
+ #: ../admin/admin.php:160 ../admin/admin.php:251
269
  msgid "Auto Display Position"
270
  msgstr ""
271
 
272
+ #: ../admin/admin.php:163 ../admin/admin.php:254
273
  msgid "Top of Content"
274
  msgstr ""
275
 
276
+ #: ../admin/admin.php:164 ../admin/admin.php:255
277
  msgid "Bottom of Content"
278
  msgstr ""
279
 
280
+ #: ../admin/admin.php:165 ../admin/admin.php:256
281
  msgid "Top and Bottom"
282
  msgstr ""
283
 
284
+ #: ../admin/admin.php:170
285
  msgid "Auto Display Filter"
286
  msgstr ""
287
 
288
+ #: ../admin/admin.php:172
289
  msgid "Home"
290
  msgstr ""
291
 
292
+ #: ../admin/admin.php:173
293
  msgid "Single Posts"
294
  msgstr ""
295
 
296
+ #: ../admin/admin.php:174
297
  msgid "Pages"
298
  msgstr ""
299
 
300
+ #: ../admin/admin.php:175
301
  msgid "Archives"
302
  msgstr ""
303
 
304
+ #: ../admin/admin.php:176
305
  msgid "Categories"
306
  msgstr ""
307
 
308
+ #: ../admin/admin.php:177
309
  msgid "Search Results"
310
  msgstr ""
311
 
312
+ #: ../admin/admin.php:178
313
  msgid "Tags"
314
  msgstr ""
315
 
316
+ #: ../admin/admin.php:179
317
  msgid "Author Page"
318
  msgstr ""
319
 
320
+ #: ../admin/admin.php:181
321
  msgid "You can filter theses pages on auto display option."
322
  msgstr ""
323
 
324
+ #: ../admin/admin.php:186 ../admin/admin.php:262 ../admin/admin.php:328
325
  msgid "Only registered Users"
326
  msgstr ""
327
 
328
+ #: ../admin/admin.php:188
329
  msgid "<strong>Only</strong> registered users have permission to like posts."
330
  msgstr ""
331
 
332
+ #: ../admin/admin.php:195 ../admin/admin.php:271 ../admin/admin.php:337
333
  msgid "Do Not Log"
334
  msgstr ""
335
 
336
+ #: ../admin/admin.php:196 ../admin/admin.php:272 ../admin/admin.php:338
337
  msgid "Logged By Cookie"
338
  msgstr ""
339
 
340
+ #: ../admin/admin.php:197 ../admin/admin.php:273 ../admin/admin.php:339
341
  msgid "Logged By IP"
342
  msgstr ""
343
 
344
+ #: ../admin/admin.php:198 ../admin/admin.php:274 ../admin/admin.php:340
345
  msgid "Logged By Cookie & IP"
346
  msgstr ""
347
 
348
+ #: ../admin/admin.php:199 ../admin/admin.php:275 ../admin/admin.php:341
349
  msgid "Logged By Username"
350
  msgstr ""
351
 
352
+ #: ../admin/admin.php:203 ../admin/admin.php:279 ../admin/admin.php:345
353
  msgid "Attention!"
354
  msgstr ""
355
 
356
+ #: ../admin/admin.php:205 ../admin/admin.php:281 ../admin/admin.php:347
357
  msgid ""
358
  "If you select <strong>\"Do Not Log\"</strong> method: Any data logs can't "
359
  "save, There is no limitation in the like/dislike, unlike/undislike capacity "
360
  "do not work"
361
  msgstr ""
362
 
363
+ #: ../admin/admin.php:206 ../admin/admin.php:282 ../admin/admin.php:348
364
  msgid ""
365
  "If you select <strong>\"Logged By Cookie\"</strong> method: Any data logs "
366
  "can't save, The like/dislike condition will be limited by SetCookie, unlike/"
367
  "undislike capacity do not work"
368
  msgstr ""
369
 
370
+ #: ../admin/admin.php:207 ../admin/admin.php:283 ../admin/admin.php:349
371
  msgid ""
372
  "If you select <strong>\"Logged By IP\"</strong> method: Data logs will save "
373
  "for all users, the convey of like/dislike condition will check by user IP"
374
  msgstr ""
375
 
376
+ #: ../admin/admin.php:208 ../admin/admin.php:284 ../admin/admin.php:350
377
  msgid ""
378
  "If you select <strong>\"Logged By Cookie & IP\"</strong> method: Data logs "
379
  "will save for all users, the convey of like/dislike condition will check by "
380
  "user IP & SetCookie"
381
  msgstr ""
382
 
383
+ #: ../admin/admin.php:209 ../admin/admin.php:285 ../admin/admin.php:351
384
  msgid ""
385
  "If you select <strong>\"Logged By Username\"</strong> method: data logs only "
386
  "is saved for registered users, the convey of like/dislike condition will "
387
  "check by username, There is no permission for guest users to unlike/undislike"
388
  msgstr ""
389
 
390
+ #: ../admin/admin.php:215 ../admin/admin.php:291 ../admin/admin.php:364
391
  msgid "Show Liked Users Box"
392
  msgstr ""
393
 
394
+ #: ../admin/admin.php:217 ../admin/admin.php:293 ../admin/admin.php:366
395
  msgid ""
396
  "Active this option to show liked users avatars in the bottom of button like."
397
  msgstr ""
398
 
399
+ #: ../admin/admin.php:222 ../admin/admin.php:298 ../admin/admin.php:371
400
  msgid "Size of Gravatars"
401
  msgstr ""
402
 
403
+ #: ../admin/admin.php:223 ../admin/admin.php:299 ../admin/admin.php:372
404
  msgid "Size of Gravatars to return (max is 512)"
405
  msgstr ""
406
 
407
+ #: ../admin/admin.php:228 ../admin/admin.php:304 ../admin/admin.php:377
408
+ msgid "Number Of The Users"
409
+ msgstr ""
410
+
411
+ #: ../admin/admin.php:229 ../admin/admin.php:305 ../admin/admin.php:378
412
+ msgid "The number of users to show in the users liked box"
413
+ msgstr ""
414
+
415
+ #: ../admin/admin.php:233 ../admin/admin.php:235
416
+ #: ../inc/classes/class-ulike.php:409
417
  msgid "Users who have LIKED this post:"
418
  msgstr ""
419
 
420
+ #: ../admin/admin.php:234 ../admin/admin.php:310 ../admin/admin.php:383
421
+ msgid "Users Like Box Template"
422
+ msgstr ""
423
+
424
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
425
+ #: ../admin/admin.php:390 ../admin/admin.php:396
426
+ msgid "Allowed Variables:"
427
  msgstr ""
428
 
429
+ #: ../admin/admin.php:235 ../admin/admin.php:311 ../admin/admin.php:384
430
+ #: ../admin/admin.php:390 ../admin/admin.php:396
431
+ msgid "Default Template:"
432
+ msgstr ""
433
+
434
+ #: ../admin/admin.php:240
435
  msgid "Comments"
436
  msgstr ""
437
 
438
+ #: ../admin/admin.php:247
439
  msgid ""
440
  "If you disable this option, you have to put manually this code on comments "
441
  "text"
442
  msgstr ""
443
 
444
+ #: ../admin/admin.php:264
445
  msgid ""
446
  "<strong>Only</strong> registered users have permission to like comments."
447
  msgstr ""
448
 
449
+ #: ../admin/admin.php:309 ../admin/admin.php:311
450
  msgid "Users who have LIKED this comment:"
451
  msgstr ""
452
 
453
+ #: ../admin/admin.php:316
454
  msgid "BuddyPress"
455
  msgstr ""
456
 
457
+ #: ../admin/admin.php:322
458
  msgid "<strong>On all buddypress activities</strong> at the top of activity"
459
  msgstr ""
460
 
461
+ #: ../admin/admin.php:323
462
  msgid ""
463
  "If you disable this option, you have to put manually this code on buddypres "
464
  "activities content"
465
  msgstr ""
466
 
467
+ #: ../admin/admin.php:330
468
  msgid ""
469
  "<strong>Only</strong> registered users have permission to like activities."
470
  msgstr ""
471
 
472
+ #: ../admin/admin.php:357
473
  msgid "BuddyPress Activity"
474
  msgstr ""
475
 
476
+ #: ../admin/admin.php:359
477
  msgid "insert new likes in buddyPress activity page"
478
  msgstr ""
479
 
480
+ #: ../admin/admin.php:382 ../admin/admin.php:384
481
  msgid "Users who have liked this activity:"
482
  msgstr ""
483
 
484
+ #: ../admin/admin.php:389
485
+ msgid "Post Activity Text"
486
+ msgstr ""
487
+
488
+ #: ../admin/admin.php:395
489
+ msgid "Comment Activity Text"
490
+ msgstr ""
491
+
492
+ #: ../admin/admin.php:401
493
  msgid "Customize"
494
  msgstr ""
495
 
496
+ #: ../admin/admin.php:406
497
  msgid "Custom Style"
498
  msgstr ""
499
 
500
+ #: ../admin/admin.php:411
501
  msgid "Active this option to see the custom style settings."
502
  msgstr ""
503
 
504
+ #: ../admin/admin.php:415
505
  msgid "Button style"
506
  msgstr ""
507
 
508
+ #: ../admin/admin.php:416 ../admin/admin.php:429
509
  msgid "Background"
510
  msgstr ""
511
 
512
+ #: ../admin/admin.php:420 ../admin/admin.php:433
513
  msgid "Border Color"
514
  msgstr ""
515
 
516
+ #: ../admin/admin.php:424 ../admin/admin.php:437
517
  msgid "Text Color"
518
  msgstr ""
519
 
520
+ #: ../admin/admin.php:428
521
  msgid "Counter Style"
522
  msgstr ""
523
 
524
+ #: ../admin/admin.php:441
525
  msgid "Loading Animation"
526
  msgstr ""
527
 
528
+ #: ../admin/admin.php:460 ../admin/logs.php:44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
529
  msgid "Post Likes Logs"
530
  msgstr ""
531
 
532
+ #: ../admin/admin.php:462 ../admin/logs.php:161
533
  msgid "Comment Likes Logs"
534
  msgstr ""
535
 
536
+ #: ../admin/admin.php:464 ../admin/logs.php:284
537
  msgid "Activity Likes Logs"
538
  msgstr ""
539
 
540
+ #: ../admin/admin.php:466
541
+ msgid "WP ULike Statistics"
542
+ msgstr ""
543
+
544
+ #: ../admin/admin.php:468
545
  msgid "About WP ULike"
546
  msgstr ""
547
 
586
  msgid "No action defined."
587
  msgstr ""
588
 
589
+ #: ../admin/classes/class-widget.php:11
590
+ msgid "WP Ulike Widget"
 
 
 
 
591
  msgstr ""
592
 
593
+ #: ../admin/classes/class-widget.php:12
594
+ msgid ""
595
+ "An advanced widget that gives you all most liked records with different types"
596
  msgstr ""
597
 
598
+ #: ../admin/classes/class-widget.php:78
599
+ msgid "you haven't liked any post yet!"
 
600
  msgstr ""
601
 
602
+ #: ../admin/classes/class-widget.php:107
603
+ msgid "on"
604
  msgstr ""
605
 
606
+ #: ../admin/classes/class-widget.php:229
607
+ msgid "Most Liked"
 
608
  msgstr ""
609
 
610
+ #: ../admin/classes/class-widget.php:233
611
+ msgid "Title:"
612
  msgstr ""
613
 
614
+ #: ../admin/classes/class-widget.php:238
615
+ msgid "Type:"
616
  msgstr ""
617
 
618
+ #: ../admin/classes/class-widget.php:240
619
+ msgid "Most Liked Posts"
620
  msgstr ""
621
 
622
+ #: ../admin/classes/class-widget.php:242
623
+ msgid "Most Liked Activities"
624
  msgstr ""
625
 
626
+ #: ../admin/classes/class-widget.php:243
627
+ msgid "Most Liked Users"
628
  msgstr ""
629
 
630
+ #: ../admin/classes/class-widget.php:244
631
+ msgid "Last Posts Liked By User"
632
  msgstr ""
633
 
634
+ #: ../admin/classes/class-widget.php:249
635
+ msgid "Number of items to show:"
636
  msgstr ""
637
 
638
+ #: ../admin/classes/class-widget.php:254
639
+ msgid "User avatar size:"
640
  msgstr ""
641
 
642
+ #: ../admin/classes/class-widget.php:260
643
+ msgid "Activate Like Counter"
644
  msgstr ""
645
 
646
+ #: ../admin/logs.php:43 ../admin/logs.php:160 ../admin/logs.php:283
647
  msgid "WP ULike Logs"
648
  msgstr ""
649
 
650
+ #: ../admin/logs.php:53 ../admin/logs.php:170 ../admin/logs.php:293
651
  msgid "ID"
652
  msgstr ""
653
 
654
+ #: ../admin/logs.php:54 ../admin/logs.php:171 ../admin/logs.php:294
655
  msgid "Username"
656
  msgstr ""
657
 
658
+ #: ../admin/logs.php:55 ../admin/logs.php:172 ../admin/logs.php:295
659
  msgid "Status"
660
  msgstr ""
661
 
662
+ #: ../admin/logs.php:56
663
  msgid "Post ID"
664
  msgstr ""
665
 
666
+ #: ../admin/logs.php:57
667
  msgid "Post Title"
668
  msgstr ""
669
 
670
+ #: ../admin/logs.php:58 ../admin/logs.php:176 ../admin/logs.php:298
671
  msgid "Date / Time"
672
  msgstr ""
673
 
674
+ #: ../admin/logs.php:59 ../admin/logs.php:177 ../admin/logs.php:299
675
  msgid "IP"
676
  msgstr ""
677
 
678
+ #: ../admin/logs.php:77 ../admin/logs.php:195 ../admin/logs.php:317
679
  msgid "Guest User"
680
  msgstr ""
681
 
682
+ #: ../admin/logs.php:120 ../admin/logs.php:242 ../admin/logs.php:361
683
+ msgid ""
684
+ "<strong>ERROR:</strong> No Record Found. (This problem is created because "
685
+ "you don't have any data on this table)"
686
  msgstr ""
687
 
688
+ #: ../admin/logs.php:173
689
+ msgid "Comment ID"
690
  msgstr ""
691
 
692
+ #: ../admin/logs.php:174
693
+ msgid "Comment Author"
694
  msgstr ""
695
 
696
+ #: ../admin/logs.php:175
697
+ msgid "Comment Text"
698
  msgstr ""
699
 
700
+ #: ../admin/logs.php:296
701
+ msgid "Activity ID"
 
 
702
  msgstr ""
703
 
704
+ #: ../admin/logs.php:297
705
+ msgid "Permalink"
706
  msgstr ""
707
 
708
+ #: ../admin/logs.php:333
709
+ #, php-format
710
+ msgid "<a href=\"%1$s\">Activity Permalink</a>"
711
  msgstr ""
712
 
713
+ #: ../admin/stats.php:26
714
+ msgid "Posts Likes Summary"
715
  msgstr ""
716
 
717
+ #: ../admin/stats.php:32
718
+ msgid "Comments Likes Summary"
719
  msgstr ""
720
 
721
+ #: ../admin/stats.php:38
722
+ msgid "Activities Likes Summary"
723
  msgstr ""
724
 
725
+ #: ../admin/stats.php:43
726
+ msgid "Welcome to WP ULike Statistics!"
727
  msgstr ""
728
 
729
+ #: ../admin/stats.php:44
730
+ msgid "We have provided some useful statistics tools in this page:"
731
  msgstr ""
732
 
733
+ #: ../admin/stats.php:53
734
+ msgid "Today"
735
  msgstr ""
736
 
737
+ #: ../admin/stats.php:54
738
+ msgid "Yesterday"
739
  msgstr ""
740
 
741
+ #: ../admin/stats.php:55
742
+ msgid "Week"
743
  msgstr ""
744
 
745
+ #: ../admin/stats.php:56
746
+ msgid "Month"
747
  msgstr ""
748
 
749
+ #: ../admin/stats.php:57
750
+ msgid "All The Times"
751
  msgstr ""
752
 
753
+ #: ../admin/stats.php:74 ../admin/stats.php:80 ../admin/stats.php:86
754
+ msgid "View Logs"
755
  msgstr ""
756
 
757
+ #: ../admin/stats.php:75
758
+ msgid "Posts Likes Stats"
759
  msgstr ""
760
 
761
+ #: ../admin/stats.php:81
762
+ msgid "Activities Likes Stats"
763
  msgstr ""
764
 
765
+ #: ../admin/stats.php:87
766
+ msgid "Comments Likes Stats"
767
+ msgstr ""
768
+
769
+ #: ../admin/stats.php:93
770
+ msgid "Likes Percent In The Last 20 Days"
771
+ msgstr ""
772
+
773
+ #: ../inc/wp-functions.php:207
774
+ msgid "WP ULike Activity"
775
+ msgstr ""
776
+
777
+ #: ../inc/wp-strings.php:3
778
  msgid "Allow To Like"
779
  msgstr ""
780
 
781
+ #: ../inc/wp-strings.php:4
782
  msgid "Guests Only"
783
  msgstr ""
784
 
785
+ #: ../inc/wp-strings.php:5
786
  msgid "Registered Users Only"
787
  msgstr ""
788
 
789
+ #: ../inc/wp-strings.php:6
790
  msgid "Registered Users And Guests"
791
  msgstr ""
792
 
793
+ #: ../inc/wp-strings.php:7
794
  msgid "Who Is Allowed To Like?"
795
  msgstr ""
796
 
797
+ #: ../inc/wp-strings.php:8
798
  msgid "Filter Options:"
799
  msgstr ""
800
 
801
+ #: ../inc/wp-strings.php:9
802
  msgid "Sort Options:"
803
  msgstr ""
804
 
805
+ #: ../inc/wp-strings.php:10
806
  msgid "Themes"
807
  msgstr ""
808
 
809
+ #: ../inc/wp-strings.php:11
810
  msgid "Dislike"
811
  msgstr ""
812
 
813
+ #: ../inc/wp-strings.php:12
814
  msgid "Dislike Support"
815
  msgstr ""
816
 
817
+ #: ../inc/wp-strings.php:13
818
  msgid "Text After Dislike"
819
  msgstr ""
820
 
821
+ #: ../inc/wp-strings.php:14
822
  msgid "Show Counter"
823
  msgstr ""
824
 
825
+ #: ../inc/wp-strings.php:15
826
  msgid "Show tooltips"
827
  msgstr ""
828
 
829
+ #: ../inc/wp-strings.php:16
830
  msgid "Alignment"
831
  msgstr ""
832
 
833
+ #: ../inc/wp-strings.php:17
834
  msgid "Left"
835
  msgstr ""
836
 
837
+ #: ../inc/wp-strings.php:18
838
  msgid "Center"
839
  msgstr ""
840
 
841
+ #: ../inc/wp-strings.php:19
842
  msgid "Right"
843
  msgstr ""
844
 
845
+ #: ../inc/wp-strings.php:20
846
  msgid "Cookie Life time"
847
  msgstr ""
848
 
849
+ #: ../inc/wp-strings.php:21
850
  msgid "BuddyPress Notifications"
851
  msgstr ""
852
 
853
+ #: ../inc/wp-ulike-buddypress.php:68
854
  msgid "You need to login in order to like this activity: "
855
  msgstr ""
856
 
857
+ #: ../inc/wp-ulike-buddypress.php:68 ../inc/wp-ulike-comments.php:68
858
+ #: ../inc/wp-ulike-posts.php:68
859
  msgid "click here"
860
  msgstr ""
861
 
862
+ #: ../inc/wp-ulike-comments.php:68
863
  msgid "You need to login in order to like this comment: "
864
  msgstr ""
865
 
866
+ #: ../inc/wp-ulike-posts.php:68
867
  msgid "You need to login in order to like this post: "
868
  msgstr ""
869
 
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: alimir
3
  Donate link: http://alimir.ir
4
  Author: Ali Mirzaei
5
- Tags: wp ulike, wordpress youlike plugin, like button, rating, vote, voting, most liked posts, wordpress like page, wordpress like post, wordpress vote page, wordpress vote post, wp like page, wp like post, wp like plugin, buddypress like system, buddypress votes, comment like system, voting button
6
  Requires at least: 3.5
7
- Tested up to: 4.0.1
8
- Stable tag: 1.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -13,7 +13,7 @@ WP ULike enables you to add Ajax Like button into your WordPress and allowing yo
13
 
14
  == Description ==
15
 
16
- WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
17
 
18
  = Demo =
19
 
@@ -22,19 +22,25 @@ WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordP
22
  = Features =
23
 
24
  * Clean Design.
 
25
  * Ajax feature to update the data without reloading.
26
  * Visitors do not have to register or log in to use the Like Button.
27
- * Compatible with WP version 3.0 & above.
28
- * Added automatically (no Code required).
29
- * Logging method options.
30
  * Shortcode support.
 
31
  * Comment likes support.
32
  * Full likes logs support.
33
  * BuddyPress activity support.
34
  * Simple user like box with avatar support.
35
- * Custom Like-Dislike Texts.
36
  * Simple custom style with color picker settings.
37
- * Widget to show 'Most Liked Posts','Most Liked Comments' And 'Most Liked Users Avatars'.
 
 
 
 
38
  * Powerful configuration panel.
39
  * Support RTL & language file.
40
  * And so on...
@@ -59,6 +65,7 @@ Also you can use this function and shortcode for the post likes:
59
 
60
  = Plugin Author =
61
  Website: <a href="http://about.alimir.ir" target="_blank">Ali Mirzaei</a><br />
 
62
  Follow on <a href="https://www.facebook.com/alimir.ir" target="_blank">Facebook</a><br />
63
  You can catch me on twitter as @alimirir
64
 
@@ -125,8 +132,28 @@ endif;
125
  ?>
126
  </code>
127
 
 
 
 
 
128
  == Changelog ==
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  = 1.9 =
131
  * Added: New logging method options.
132
  * Added: Option for auto display position.
@@ -198,6 +225,9 @@ endif;
198
 
199
  == Upgrade Notice ==
200
 
 
 
 
201
  = 1.8 =
202
  In this version, we have made many changes on plugin functions and settings. So if you lose your last settings, try to add them again. :)
203
 
2
  Contributors: alimir
3
  Donate link: http://alimir.ir
4
  Author: Ali Mirzaei
5
+ Tags: wp ulike, wordpress youlike plugin, like button, rating, vote, voting, most liked posts, wordpress like page, wordpress like post, wordpress vote page, wordpress vote post, wp like page, wp like post, wp like plugin, buddypress like system, buddypress votes, comment like system, voting button, wordpress, statistics, stats likes
6
  Requires at least: 3.5
7
+ Tested up to: 4.1
8
+ Stable tag: 2.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
13
 
14
  == Description ==
15
 
16
+ WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options and full Statistics tools. And all of these are free :)
17
 
18
  = Demo =
19
 
22
  = Features =
23
 
24
  * Clean Design.
25
+ * Support full Statistics tools.
26
  * Ajax feature to update the data without reloading.
27
  * Visitors do not have to register or log in to use the Like Button.
28
+ * Compatible with WP version 3.5 & above.
29
+ * Added automatically with filtering options (no Code required).
30
+ * Different logging method options.
31
  * Shortcode support.
32
+ * Support custom templates with separate variables.
33
  * Comment likes support.
34
  * Full likes logs support.
35
  * BuddyPress activity support.
36
  * Simple user like box with avatar support.
37
+ * Custom Like-UnLike Texts fields.
38
  * Simple custom style with color picker settings.
39
+ * Widget to show 'Most Liked Posts'.
40
+ * Widget to show 'Most Liked Comments'.
41
+ * Widget to show 'Most Liked Activities'.
42
+ * Widget to show 'Most Liked Users' with avatar.
43
+ * Widget to show 'Last Posts Liked By Current User'.
44
  * Powerful configuration panel.
45
  * Support RTL & language file.
46
  * And so on...
65
 
66
  = Plugin Author =
67
  Website: <a href="http://about.alimir.ir" target="_blank">Ali Mirzaei</a><br />
68
+ Novelty: <a href="http://preview.alimir.ir/all-abilities-that-coming-with-wp-ulike-2-0/" target="_blank">All Abilities That Coming With WP ULike 2.0</a><br />
69
  Follow on <a href="https://www.facebook.com/alimir.ir" target="_blank">Facebook</a><br />
70
  You can catch me on twitter as @alimirir
71
 
132
  ?>
133
  </code>
134
 
135
+ = How Can I Create Custom Template In Users Liked Box? =
136
+ * We have provided some variables in setting panel. You can use them in textarea and then save the new options.
137
+ * Attention: `%START_WHILE%` And `%END_WHILE%` variables are very important and you should use them out of the frequent string. (Such as `<li></li>` tags sample in default template)
138
+
139
  == Changelog ==
140
 
141
+ = 2.0 =
142
+ * Added: New Statistics Page with many useful tools ("Line Charts", "Pie Chart", "Summary Stats" ) :)
143
+ * Added: New Class-based programming :)
144
+ * Added: Custom text option for BP Add Activity (Posts/Comments).
145
+ * Added: Custom template setting for the "Users Like Box".
146
+ * Added: New option to setting the "Number Of Users" in liked box.
147
+ * Added: "Last Posts Liked By Current User" widget.
148
+ * Added: "Most liked activities" widget.
149
+ * Added: Logs menu links in the statistics page.
150
+ * Added: New option for the "only registered users" with selecting login type.
151
+ * Modified: Widgets in one packet.
152
+ * Modified: "Most Liked Users" widget to get data from all the tables (posts/comments/activities).
153
+ * Removed: Some old functions (Such as wp_ulike_reutrn_userID, get_status functions, get_user_data functions, ...)
154
+ * Updated: Plugin FAQ page.
155
+ * Updated: Persian language file. (Thanks Me :))
156
+
157
  = 1.9 =
158
  * Added: New logging method options.
159
  * Added: Option for auto display position.
225
 
226
  == Upgrade Notice ==
227
 
228
+ = 2.0 =
229
+ In this version, we have mixed widgets in one packet. So you should upgrade your last widgets with new one. Have fun :)
230
+
231
  = 1.8 =
232
  In this version, we have made many changes on plugin functions and settings. So if you lose your last settings, try to add them again. :)
233
 
wp-ulike.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name:WP ULike
4
  Plugin URI: http://wordpress.org/plugins/wp-ulike
5
  Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
6
- Version: 1.9
7
  Author: Ali Mirzaei
8
  Author URI: http://about.alimir.ir
9
  Text Domain: alimir
@@ -13,13 +13,21 @@ License: GPL2
13
 
14
  //Load Translations
15
  load_plugin_textdomain( 'alimir', false, dirname( plugin_basename( __FILE__ ) ) .'/lang/' );
16
- __('WP ULike', 'alimir');
17
  __('WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.', 'alimir');
18
 
19
  //Do not change this value
20
  define('WP_ULIKE_DB_VERSION', '1.2');
21
 
22
- //register activation hook
 
 
 
 
 
 
 
 
23
  function wp_ulike_install() {
24
  global $wpdb;
25
 
@@ -78,9 +86,14 @@ License: GPL2
78
  }
79
 
80
  }
81
- register_activation_hook(__FILE__, 'wp_ulike_install');
82
 
83
- //plugin update check
 
 
 
 
 
 
84
  add_action( 'plugins_loaded', 'wp_ulike_update_db_check' );
85
  function wp_ulike_update_db_check() {
86
  if ( get_site_option( 'wp_ulike_dbVersion' ) != WP_ULIKE_DB_VERSION ) {
@@ -88,20 +101,26 @@ License: GPL2
88
  }
89
  }
90
 
91
- //get the plugin version
 
 
 
 
 
 
92
  function wp_ulike_get_version() {
93
  $plugin_data = get_plugin_data( __FILE__ );
94
  $plugin_version = $plugin_data['Version'];
95
  return $plugin_version;
96
  }
97
 
98
- //Load plugin setting panel
99
  include( plugin_dir_path( __FILE__ ) . 'admin/admin.php');
100
 
101
- //Load general functions
102
  include( plugin_dir_path( __FILE__ ) . 'inc/wp-functions.php');
103
 
104
- //Load plugin scripts
105
  include( plugin_dir_path( __FILE__ ) . 'inc/wp-script.php');
106
 
107
  //Load WP ULike posts functions
3
  Plugin Name:WP ULike
4
  Plugin URI: http://wordpress.org/plugins/wp-ulike
5
  Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
6
+ Version: 2.0
7
  Author: Ali Mirzaei
8
  Author URI: http://about.alimir.ir
9
  Text Domain: alimir
13
 
14
  //Load Translations
15
  load_plugin_textdomain( 'alimir', false, dirname( plugin_basename( __FILE__ ) ) .'/lang/' );
16
+
17
  __('WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.', 'alimir');
18
 
19
  //Do not change this value
20
  define('WP_ULIKE_DB_VERSION', '1.2');
21
 
22
+ /**
23
+ * When the plugin is activated, This function will install wp_ulike tables in database (If not exist table)
24
+ *
25
+ * @author Alimir
26
+ * @since 1.1
27
+ * @updated 1.7
28
+ * @return Void
29
+ */
30
+ register_activation_hook(__FILE__, 'wp_ulike_install');
31
  function wp_ulike_install() {
32
  global $wpdb;
33
 
86
  }
87
 
88
  }
 
89
 
90
+ /**
91
+ * This hook is called once any activated plugins have been loaded.
92
+ *
93
+ * @author Alimir
94
+ * @since 1.7
95
+ * @return Void
96
+ */
97
  add_action( 'plugins_loaded', 'wp_ulike_update_db_check' );
98
  function wp_ulike_update_db_check() {
99
  if ( get_site_option( 'wp_ulike_dbVersion' ) != WP_ULIKE_DB_VERSION ) {
101
  }
102
  }
103
 
104
+ /**
105
+ * This function is getting the plugin version
106
+ *
107
+ * @author Alimir
108
+ * @since 1.8
109
+ * @return String
110
+ */
111
  function wp_ulike_get_version() {
112
  $plugin_data = get_plugin_data( __FILE__ );
113
  $plugin_version = $plugin_data['Version'];
114
  return $plugin_version;
115
  }
116
 
117
+ //Include plugin setting file
118
  include( plugin_dir_path( __FILE__ ) . 'admin/admin.php');
119
 
120
+ //Include general functions
121
  include( plugin_dir_path( __FILE__ ) . 'inc/wp-functions.php');
122
 
123
+ //Include plugin scripts
124
  include( plugin_dir_path( __FILE__ ) . 'inc/wp-script.php');
125
 
126
  //Load WP ULike posts functions