Version Description
- Added: Object cache method for user status functionality.
- Updated: LiteSpeed purge cache method.
- Fixed: Some issues in popular items functionlity.
- Fixed: Button hover style issue.
Download this release
Release Info
Developer | alimir |
Plugin | WP ULike |
Version | 4.2.4 |
Comparing to | |
See all releases |
Code changes from version 4.2.3 to 4.2.4
- admin/admin-hooks.php +1 -1
- admin/assets/js/plugins.js +1 -1
- assets/css/wp-ulike.css +17 -0
- assets/css/wp-ulike.min.css +1 -1
- assets/js/wp-ulike.js +1 -1
- inc/classes/class-wp-ulike.php +30 -21
- inc/general-functions.php +3 -2
- inc/general-hooks.php +7 -2
- readme.txt +9 -3
- wp-ulike.php +2 -2
admin/admin-hooks.php
CHANGED
@@ -191,7 +191,7 @@ function wp_ulike_notice_manager(){
|
|
191 |
'buttons' => array(
|
192 |
array(
|
193 |
'label' => __( "Get More Information", WP_ULIKE_SLUG ),
|
194 |
-
'link' => WP_ULIKE_PLUGIN_URI . '
|
195 |
),
|
196 |
array(
|
197 |
'label' => __('No thanks and never ask me again', WP_ULIKE_SLUG),
|
191 |
'buttons' => array(
|
192 |
array(
|
193 |
'label' => __( "Get More Information", WP_ULIKE_SLUG ),
|
194 |
+
'link' => WP_ULIKE_PLUGIN_URI . 'blog/wordpress-rich-snippets-generator/?utm_source=seo-tools-banner&utm_campaign=gopro&utm_medium=wp-dash'
|
195 |
),
|
196 |
array(
|
197 |
'label' => __('No thanks and never ask me again', WP_ULIKE_SLUG),
|
admin/assets/js/plugins.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WP ULike - v4.2.
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2020;
|
4 |
*/
|
1 |
+
/*! WP ULike - v4.2.4
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2020;
|
4 |
*/
|
assets/css/wp-ulike.css
CHANGED
@@ -78,6 +78,11 @@
|
|
78 |
min-height: 30px;
|
79 |
min-width: 50px;
|
80 |
}
|
|
|
|
|
|
|
|
|
|
|
81 |
.wpulike-default .wp_ulike_btn[disabled=disabled]:hover, .wpulike-default .wp_ulike_btn[disabled=disabled]:active, .wpulike-default .wp_ulike_btn[disabled=disabled]:focus, .wpulike-default .wp_ulike_btn:disabled:hover, .wpulike-default .wp_ulike_btn:disabled:active, .wpulike-default .wp_ulike_btn:disabled:focus {
|
82 |
background-color: #e0e0e0;
|
83 |
}
|
@@ -175,6 +180,11 @@
|
|
175 |
.wpulike-heart .wp_ulike_btn {
|
176 |
background: transparent;
|
177 |
}
|
|
|
|
|
|
|
|
|
|
|
178 |
.wpulike-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) {
|
179 |
bottom: 10px;
|
180 |
}
|
@@ -257,6 +267,9 @@
|
|
257 |
border: 0;
|
258 |
background: transparent;
|
259 |
}
|
|
|
|
|
|
|
260 |
.wpulike-robeen .wp_ulike_btn:after {
|
261 |
content: '';
|
262 |
background: url(../img/icons/twitter-heart.png) no-repeat;
|
@@ -303,6 +316,10 @@
|
|
303 |
width: 50px;
|
304 |
height: 50px;
|
305 |
}
|
|
|
|
|
|
|
|
|
306 |
.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:hover, .wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:active, .wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:focus, .wpulike-animated-heart .wp_ulike_btn:disabled:hover, .wpulike-animated-heart .wp_ulike_btn:disabled:active, .wpulike-animated-heart .wp_ulike_btn:disabled:focus {
|
307 |
background-color: #ffffff;
|
308 |
}
|
78 |
min-height: 30px;
|
79 |
min-width: 50px;
|
80 |
}
|
81 |
+
.wpulike-default .wp_ulike_btn:hover, .wpulike-default .wp_ulike_btn:focus {
|
82 |
+
color: #616161;
|
83 |
+
background-color: #e0e0e0;
|
84 |
+
text-decoration: none;
|
85 |
+
}
|
86 |
.wpulike-default .wp_ulike_btn[disabled=disabled]:hover, .wpulike-default .wp_ulike_btn[disabled=disabled]:active, .wpulike-default .wp_ulike_btn[disabled=disabled]:focus, .wpulike-default .wp_ulike_btn:disabled:hover, .wpulike-default .wp_ulike_btn:disabled:active, .wpulike-default .wp_ulike_btn:disabled:focus {
|
87 |
background-color: #e0e0e0;
|
88 |
}
|
180 |
.wpulike-heart .wp_ulike_btn {
|
181 |
background: transparent;
|
182 |
}
|
183 |
+
.wpulike-heart .wp_ulike_btn:hover, .wpulike-heart .wp_ulike_btn:focus {
|
184 |
+
color: #757575;
|
185 |
+
background-color: transparent;
|
186 |
+
text-decoration: none;
|
187 |
+
}
|
188 |
.wpulike-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) {
|
189 |
bottom: 10px;
|
190 |
}
|
267 |
border: 0;
|
268 |
background: transparent;
|
269 |
}
|
270 |
+
.wpulike-robeen .wp_ulike_btn:hover, .wpulike-robeen .wp_ulike_btn:focus {
|
271 |
+
background-color: transparent;
|
272 |
+
}
|
273 |
.wpulike-robeen .wp_ulike_btn:after {
|
274 |
content: '';
|
275 |
background: url(../img/icons/twitter-heart.png) no-repeat;
|
316 |
width: 50px;
|
317 |
height: 50px;
|
318 |
}
|
319 |
+
.wpulike-animated-heart .wp_ulike_btn:hover, .wpulike-animated-heart .wp_ulike_btn:focus {
|
320 |
+
background-color: #ffffff;
|
321 |
+
background-image: none;
|
322 |
+
}
|
323 |
.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:hover, .wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:active, .wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:focus, .wpulike-animated-heart .wp_ulike_btn:disabled:hover, .wpulike-animated-heart .wp_ulike_btn:disabled:active, .wpulike-animated-heart .wp_ulike_btn:disabled:focus {
|
324 |
background-color: #ffffff;
|
325 |
}
|
assets/css/wp-ulike.min.css
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* WP ULike
|
4 |
* @author Alimir [https://wordpress.org/plugins/wp-ulike/]
|
5 |
===============================================================
|
6 |
-
*/.wpulike{display:block;position:relative;line-height:normal;margin:0;padding:10px 0}.wpulike .wp_ulike_btn{margin:0;position:relative;display:inline-block;vertical-align:middle;border-radius:.25em;box-shadow:none;padding:15px 25px;border:none;text-align:center;transition-property:none;cursor:pointer}.wpulike .wp_ulike_btn:active,.wpulike .wp_ulike_btn:focus,.wpulike .wp_ulike_btn:hover{outline:0}.wpulike .wp_ulike_btn::-moz-focus-inner{border:0}.wpulike .wp_ulike_btn:disabled:active,.wpulike .wp_ulike_btn:disabled:focus,.wpulike .wp_ulike_btn:disabled:hover,.wpulike .wp_ulike_btn[disabled=disabled]:active,.wpulike .wp_ulike_btn[disabled=disabled]:focus,.wpulike .wp_ulike_btn[disabled=disabled]:hover{outline:0;background-color:initial}.wpulike .wp_ulike_put_text{font-size:14px;font-weight:600;line-height:28px;padding:0 10px;min-width:50px}.wpulike .wp_ulike_general_class{display:inline-flex;align-items:center}.wpulike .wp_ulike_is_loading .wp_ulike_btn{background-image:url(../img/svg/loader.svg);background-repeat:no-repeat;background-position:center center}.wpulike .wp_ulike_is_loading .wp_ulike_btn span{visibility:hidden}.wpulike .wp_ulike_is_loading .wp_ulike_btn.wp_ulike_put_image:after{content:none}.wpulike.wpulike-hide-counter .count-box{display:none}.wp_ulike_click_is_disabled{pointer-events:none;cursor:default}.wp_ulike_hide_me{visibility:hidden}.wpulike-default .wp_ulike_btn{color:#616161;background-color:#e0e0e0;min-height:30px;min-width:50px}.wpulike-default .wp_ulike_btn:disabled:active,.wpulike-default .wp_ulike_btn:disabled:focus,.wpulike-default .wp_ulike_btn:disabled:hover,.wpulike-default .wp_ulike_btn[disabled=disabled]:active,.wpulike-default .wp_ulike_btn[disabled=disabled]:focus,.wpulike-default .wp_ulike_btn[disabled=disabled]:hover{background-color:#e0e0e0}.wpulike-default .wp_ulike_is_liked .wp_ulike_btn{color:#757575}.wpulike-default .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/like.svg) no-repeat;background-size:contain;width:16px;height:16px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-default .wp_ulike_put_image.wp_ulike_btn_is_active:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-default .count-box{position:relative;border-radius:.25em;font-size:12px;text-decoration:none;background-color:#fff;margin-left:8px;line-height:28px;display:inline-block;padding:0 10px;box-shadow:0 0 0 1px #bdbdbd inset;color:#616161;vertical-align:middle;text-align:center}.wpulike-default .count-box:before{content:'';position:absolute;border:1px solid transparent;background:#fff;border-bottom-color:#bdbdbd;left:-5px;top:50%;border-left-color:#bdbdbd;transform:rotate(45deg) translatey(-50%);width:5px;height:5px;margin:0}#buddypress #activity-stream .activity-comments .wpulike,#buddypress #activity-stream .activity-meta .wpulike{display:flex;align-items:center;padding:0}#buddypress #activity-stream .activity-comments .wpulike-default .wp_ulike_btn,#buddypress #activity-stream .activity-meta .wpulike-default .wp_ulike_btn{border-radius:0;background-color:#fff;box-shadow:0 0 0 1px #bdbdbd inset;font-size:initial;padding:initial}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker,#buddypress #activity-stream .wp_ulike_likers_wrapper li{border:none;padding:0}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker a,#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker img,#buddypress #activity-stream .wp_ulike_likers_wrapper li a,#buddypress #activity-stream .wp_ulike_likers_wrapper li img{float:none;padding:0;margin:0}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul{margin:0!important}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list li,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul li{list-style-type:none}.wpulike-heart .wp_ulike_general_class{box-shadow:0 0 0 1px #bdbdbd inset;border-radius:.25em;padding:5px}.wpulike-heart .wp_ulike_put_text{padding:0 5px;text-transform:uppercase;font-weight:600;color:#757575}.wpulike-heart .wp_ulike_btn{background:0 0}.wpulike-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:10px}.wpulike-heart .wp_ulike_put_image{background:0 0;padding:15px}.wpulike-heart .wp_ulike_put_image:disabled:active,.wpulike-heart .wp_ulike_put_image:disabled:focus,.wpulike-heart .wp_ulike_put_image:disabled:hover,.wpulike-heart .wp_ulike_put_image[disabled=disabled]:active,.wpulike-heart .wp_ulike_put_image[disabled=disabled]:focus,.wpulike-heart .wp_ulike_put_image[disabled=disabled]:hover{padding:15px}.wpulike-heart .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/love.svg) no-repeat;background-size:contain;width:20px;height:20px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-heart .wp_ulike_put_image.wp_ulike_btn_is_active:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-heart .count-box{font-size:14px;text-decoration:none;line-height:28px;display:inline-block;color:#616161;text-align:center;font-weight:600;vertical-align:middle;padding:0 5px}#buddypress #activity-stream .wpulike-heart .wp_ulike_btn{background:0 0;border:0;font-size:initial;padding:initial}#buddypress #activity-stream .wpulike-heart .wp_ulike_put_image{padding:10px 15px}#buddypress #activity-stream .wpulike-heart .wp_ulike_general_class{border-radius:0;padding:.2em .5em;margin-bottom:0}#buddypress #activity-stream .acomment-options,#buddypress #activity-stream .activity-meta{display:flex;align-items:center}.wpulike-robeen .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:5px}.wpulike-robeen .count-box{font-weight:600;padding:0 14px;font-size:16px}.wpulike-robeen .wp_ulike_is_loading .wp_ulike_btn{background-image:initial;padding:0}.wpulike-robeen .wp_ulike_is_loading .wp_ulike_btn.wp_ulike_put_image:after{content:''}.wpulike-robeen .wp_ulike_btn{width:30px;height:30px;overflow:hidden;padding:0;border:0;background:0 0}.wpulike-robeen .wp_ulike_btn:after{content:'';background:url(../img/icons/twitter-heart.png) no-repeat;background-position:0 0;transition:background-position 1s steps(28);transition-duration:0s;width:100px;height:100px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-robeen .wp_ulike_btn.wp_ulike_btn_is_active{overflow:visible}.wpulike-robeen .wp_ulike_btn.wp_ulike_btn_is_active:after{transition-duration:1s;background-position:-2800px 0}#buddypress #activity-stream .activity-comments .wpulike-robeen .wp_ulike_btn,#buddypress #activity-stream .activity-inner .wpulike-robeen .wp_ulike_btn,#buddypress #activity-stream .activity-meta .wpulike-robeen .wp_ulike_btn{background:0 0;border:0;width:30px;height:30px;border:0;padding:0}.wpulike-animated-heart .wp_ulike_is_loading .wp_ulike_btn{background-image:none}.wpulike-animated-heart .wp_ulike_btn{position:relative;border-radius:50em;background-color:#fff;padding:0;box-shadow:0 5px 30px rgba(255,111,99,.4);border:0;width:50px;height:50px}.wpulike-animated-heart .wp_ulike_btn:disabled:active,.wpulike-animated-heart .wp_ulike_btn:disabled:focus,.wpulike-animated-heart .wp_ulike_btn:disabled:hover,.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:active,.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:focus,.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:hover{background-color:#fff}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active{background-color:#ff6f63}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active:disabled:active,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active:disabled:focus,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active:disabled:hover,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active[disabled=disabled]:active,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active[disabled=disabled]:focus,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active[disabled=disabled]:hover{background-color:#ff6f63}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart{fill:#fff}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart-pop{animation-direction:normal}.wpulike-animated-heart .wp_ulike_btn:active{box-shadow:0 0 4px 0 rgba(0,0,0,.25)}.wpulike-animated-heart .wpulike-svg-heart{width:20px;fill:#ff6f63;transition:fill .5s,transform .5s;pointer-events:none;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-animated-heart .wpulike-svg-heart-pop{position:absolute;width:30%;fill:#ff6f63;opacity:0;left:0;animation:popHearts 1s ease forwards reverse}.wpulike-animated-heart .wpulike-svg-heart-pop.one{left:1%;transform:rotate(-10deg);animation-delay:.45s}.wpulike-animated-heart .wpulike-svg-heart-pop.two{left:15%;transform:rotate(8deg);animation-delay:.25s}.wpulike-animated-heart .wpulike-svg-heart-pop.three{left:30%;transform:rotate(-5deg);animation-delay:0s}.wpulike-animated-heart .wpulike-svg-heart-pop.four{left:50%;transform:rotate(-8deg);animation-delay:.3s}.wpulike-animated-heart .wpulike-svg-heart-pop.five{left:60%;transform:rotate(-10deg);animation-delay:.9s}.wpulike-animated-heart .wpulike-svg-heart-pop.six{left:70%;transform:rotate(-8deg);animation-delay:.2s}.wpulike-animated-heart .wpulike-svg-heart-pop.seven{left:85%;transform:rotate(6deg);animation-delay:.35s}.wpulike-animated-heart .wpulike-svg-heart-pop.eight{left:90%;transform:rotate(-4deg);animation-delay:.5s}.wpulike-animated-heart .wpulike-svg-heart-pop.nine{left:95%;transform:rotate(8deg);animation-delay:.2s}.wpulike-animated-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:30px}.wpulike-animated-heart .count-box{margin:0 15px;color:#ff6f63;display:inline-block;vertical-align:middle}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn{background:inherit;border:0;width:40px;height:40px}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active{background-color:#ff6f63}@keyframes popHearts{0%{left:calc(50% - 7px);top:10px}20%{opacity:1}80%{top:-20px}100%{opacity:0}}.wp_ulike_likers_wrapper{margin:10px 0;flex:0 0 100%}.wp_ulike_likers_wrapper:empty{display:none}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transition:all .5s cubic-bezier(.19,1,.22,1);display:block;position:absolute;left:0;transform:translateY(-30px);bottom:0;background:#eee;padding:5px;opacity:0;visibility:hidden;box-shadow:2px 2px 1px rgba(0,0,0,.1);border-radius:5px;z-index:9}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{content:'';position:absolute;top:100%;left:15px;width:0;height:0;border-top:8px solid #eee;border-right:8px solid transparent;border-left:8px solid transparent}.wp_ulike_likers_wrapper .tiles,.wp_ulike_likers_wrapper .wp-ulike-likers-list{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker,.wp_ulike_likers_wrapper .tiles li,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker,.wp_ulike_likers_wrapper .wp-ulike-likers-list li{padding:3px;margin:0;list-style:none}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .tiles li a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list li a>img{border-radius:5px;display:block;border:0;box-shadow:none}.wpulike:hover .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transform:translateY(-40px);opacity:1;visibility:visible}.most_liked_users{list-style-type:none!important;position:relative!important;margin:10px 0!important;padding:0!important}.most_liked_users li{display:inline-table!important;cursor:pointer!important;margin:0 2px!important}.most_liked_users li img{display:block!important;float:none!important}.most_liked_users li.inactive{visibility:hidden!important;opacity:0!important}.commentlist .tiles .avatar,.commentlist .wp-ulike-liker .avatar{left:0!important}.wp_ulike_thumbnail{vertical-align:middle;margin:0 10px 0 0}.most_liked_comment .avatar{vertical-align:middle;margin:0 10px 0 0}.wp_ulike_style_simple .wp_counter_span:before{content:"("}.wp_ulike_style_simple .wp_counter_span:after{content:")"}.wp_ulike_style_love .wp_counter_span{float:right;display:inline-block;background:#f1f1f1 url(../img/icons/heart.png) 5px center no-repeat;color:#333;font-size:9px;line-height:17px;font-weight:400;margin:2px 0 0 2px;vertical-align:middle;border-radius:10px;padding:0 5px 0 23px;z-index:26}.wpulike-notification{position:fixed;z-index:999999;pointer-events:none;right:20px;bottom:20px}.wpulike-notification *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.wpulike-notification .wpulike-message{position:relative;pointer-events:auto;word-wrap:break-word;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 55px;width:280px;border-radius:3px;background-color:#00bcd4;color:#fff;animation:wpUlikeNotifitcationsAnimation .2s backwards;box-shadow:0 3px 5px rgba(0,0,0,.08);font-size:14px;font-weight:500}.wpulike-notification .wpulike-message:hover{opacity:.9;cursor:pointer}.wpulike-notification .wpulike-message:before{content:"";background-position:center center;background-repeat:no-repeat;background-image:url(../img/svg/info.svg);position:absolute;left:0;width:45px;top:0;height:100%;background-color:rgba(0,0,0,.08)}.wpulike-notification .wpulike-message.wpulike-success{background-color:#8bc34a}.wpulike-notification .wpulike-message.wpulike-success:before{background-image:url(../img/svg/success.svg)}.wpulike-notification .wpulike-message.wpulike-error{background-color:#ef5350}.wpulike-notification .wpulike-message.wpulike-error:before{background-image:url(../img/svg/error.svg)}.wpulike-notification .wpulike-message.wpulike-warning{background-color:#ffab00}.wpulike-notification .wpulike-message.wpulike-warning:before{background-image:url(../img/svg/warning.svg)}@keyframes wpUlikeNotifitcationsAnimation{from{opacity:0;transform:translateY(100%)}to{opacity:.8;transform:translateY(0)}}@media all and (max-width:240px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:11em}}@media all and (min-width:241px) and (max-width:480px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:18em}}@media all and (min-width:481px) and (max-width:768px){.wpulike-notification .wpulike-message{padding:15px 15px 15px 55px;width:25em}}/*!>>>>>>>>>>>>>>>>>>>>>>> #RTL <<<<<<<<<<<<<<<<<<<<<<<<<<< */.rtl .wpulike-default .count-box{margin-right:8px;margin-left:inherit}.rtl .wpulike-default .count-box:before{right:-1px;left:auto;border-color:#bdbdbd #bdbdbd transparent transparent}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){left:auto;right:0}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{left:auto;right:15px}.rtl .commentlist .tiles .avatar{left:inherit!important;right:0!important}.rtl .wp_ulike_thumbnail{margin:0 0 0 10px}.rtl .most_liked_comment .avatar{margin:0 0 0 10px}.rtl .wp_ulike_style_love .wp_counter_span{float:left;background:#f1f1f1 url(../img/icons/heart.png) no-repeat scroll 85% center;margin:2px 2px 0 0;padding:0 23px 0 5px}.rtl .wpulike-notification{left:20px;right:inherit}.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}.rtl .wpulike-notification .wpulike-message:before{left:auto;right:0}@media all and (max-width:240px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:241px) and (max-width:480px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:481px) and (max-width:768px){.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}}
|
3 |
* WP ULike
|
4 |
* @author Alimir [https://wordpress.org/plugins/wp-ulike/]
|
5 |
===============================================================
|
6 |
+
*/.wpulike{display:block;position:relative;line-height:normal;margin:0;padding:10px 0}.wpulike .wp_ulike_btn{margin:0;position:relative;display:inline-block;vertical-align:middle;border-radius:.25em;box-shadow:none;padding:15px 25px;border:none;text-align:center;transition-property:none;cursor:pointer}.wpulike .wp_ulike_btn:active,.wpulike .wp_ulike_btn:focus,.wpulike .wp_ulike_btn:hover{outline:0}.wpulike .wp_ulike_btn::-moz-focus-inner{border:0}.wpulike .wp_ulike_btn:disabled:active,.wpulike .wp_ulike_btn:disabled:focus,.wpulike .wp_ulike_btn:disabled:hover,.wpulike .wp_ulike_btn[disabled=disabled]:active,.wpulike .wp_ulike_btn[disabled=disabled]:focus,.wpulike .wp_ulike_btn[disabled=disabled]:hover{outline:0;background-color:initial}.wpulike .wp_ulike_put_text{font-size:14px;font-weight:600;line-height:28px;padding:0 10px;min-width:50px}.wpulike .wp_ulike_general_class{display:inline-flex;align-items:center}.wpulike .wp_ulike_is_loading .wp_ulike_btn{background-image:url(../img/svg/loader.svg);background-repeat:no-repeat;background-position:center center}.wpulike .wp_ulike_is_loading .wp_ulike_btn span{visibility:hidden}.wpulike .wp_ulike_is_loading .wp_ulike_btn.wp_ulike_put_image:after{content:none}.wpulike.wpulike-hide-counter .count-box{display:none}.wp_ulike_click_is_disabled{pointer-events:none;cursor:default}.wp_ulike_hide_me{visibility:hidden}.wpulike-default .wp_ulike_btn{color:#616161;background-color:#e0e0e0;min-height:30px;min-width:50px}.wpulike-default .wp_ulike_btn:focus,.wpulike-default .wp_ulike_btn:hover{color:#616161;background-color:#e0e0e0;text-decoration:none}.wpulike-default .wp_ulike_btn:disabled:active,.wpulike-default .wp_ulike_btn:disabled:focus,.wpulike-default .wp_ulike_btn:disabled:hover,.wpulike-default .wp_ulike_btn[disabled=disabled]:active,.wpulike-default .wp_ulike_btn[disabled=disabled]:focus,.wpulike-default .wp_ulike_btn[disabled=disabled]:hover{background-color:#e0e0e0}.wpulike-default .wp_ulike_is_liked .wp_ulike_btn{color:#757575}.wpulike-default .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/like.svg) no-repeat;background-size:contain;width:16px;height:16px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-default .wp_ulike_put_image.wp_ulike_btn_is_active:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-default .count-box{position:relative;border-radius:.25em;font-size:12px;text-decoration:none;background-color:#fff;margin-left:8px;line-height:28px;display:inline-block;padding:0 10px;box-shadow:0 0 0 1px #bdbdbd inset;color:#616161;vertical-align:middle;text-align:center}.wpulike-default .count-box:before{content:'';position:absolute;border:1px solid transparent;background:#fff;border-bottom-color:#bdbdbd;left:-5px;top:50%;border-left-color:#bdbdbd;transform:rotate(45deg) translatey(-50%);width:5px;height:5px;margin:0}#buddypress #activity-stream .activity-comments .wpulike,#buddypress #activity-stream .activity-meta .wpulike{display:flex;align-items:center;padding:0}#buddypress #activity-stream .activity-comments .wpulike-default .wp_ulike_btn,#buddypress #activity-stream .activity-meta .wpulike-default .wp_ulike_btn{border-radius:0;background-color:#fff;box-shadow:0 0 0 1px #bdbdbd inset;font-size:initial;padding:initial}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker,#buddypress #activity-stream .wp_ulike_likers_wrapper li{border:none;padding:0}#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker a,#buddypress #activity-stream .wp_ulike_likers_wrapper .wp-ulike-liker img,#buddypress #activity-stream .wp_ulike_likers_wrapper li a,#buddypress #activity-stream .wp_ulike_likers_wrapper li img{float:none;padding:0;margin:0}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul{margin:0!important}#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) .wp-ulike-likers-list li,#bbpress-forums .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline) ul li{list-style-type:none}.wpulike-heart .wp_ulike_general_class{box-shadow:0 0 0 1px #bdbdbd inset;border-radius:.25em;padding:5px}.wpulike-heart .wp_ulike_put_text{padding:0 5px;text-transform:uppercase;font-weight:600;color:#757575}.wpulike-heart .wp_ulike_btn{background:0 0}.wpulike-heart .wp_ulike_btn:focus,.wpulike-heart .wp_ulike_btn:hover{color:#757575;background-color:transparent;text-decoration:none}.wpulike-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:10px}.wpulike-heart .wp_ulike_put_image{background:0 0;padding:15px}.wpulike-heart .wp_ulike_put_image:disabled:active,.wpulike-heart .wp_ulike_put_image:disabled:focus,.wpulike-heart .wp_ulike_put_image:disabled:hover,.wpulike-heart .wp_ulike_put_image[disabled=disabled]:active,.wpulike-heart .wp_ulike_put_image[disabled=disabled]:focus,.wpulike-heart .wp_ulike_put_image[disabled=disabled]:hover{padding:15px}.wpulike-heart .wp_ulike_put_image:after{content:'';display:block;background:url(../img/svg/love.svg) no-repeat;background-size:contain;width:20px;height:20px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-heart .wp_ulike_put_image.wp_ulike_btn_is_active:after{filter:invert(44%) sepia(40%) saturate(3852%) hue-rotate(329deg) brightness(100%) contrast(111%)}.wpulike-heart .count-box{font-size:14px;text-decoration:none;line-height:28px;display:inline-block;color:#616161;text-align:center;font-weight:600;vertical-align:middle;padding:0 5px}#buddypress #activity-stream .wpulike-heart .wp_ulike_btn{background:0 0;border:0;font-size:initial;padding:initial}#buddypress #activity-stream .wpulike-heart .wp_ulike_put_image{padding:10px 15px}#buddypress #activity-stream .wpulike-heart .wp_ulike_general_class{border-radius:0;padding:.2em .5em;margin-bottom:0}#buddypress #activity-stream .acomment-options,#buddypress #activity-stream .activity-meta{display:flex;align-items:center}.wpulike-robeen .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:5px}.wpulike-robeen .count-box{font-weight:600;padding:0 14px;font-size:16px}.wpulike-robeen .wp_ulike_is_loading .wp_ulike_btn{background-image:initial;padding:0}.wpulike-robeen .wp_ulike_is_loading .wp_ulike_btn.wp_ulike_put_image:after{content:''}.wpulike-robeen .wp_ulike_btn{width:30px;height:30px;overflow:hidden;padding:0;border:0;background:0 0}.wpulike-robeen .wp_ulike_btn:focus,.wpulike-robeen .wp_ulike_btn:hover{background-color:transparent}.wpulike-robeen .wp_ulike_btn:after{content:'';background:url(../img/icons/twitter-heart.png) no-repeat;background-position:0 0;transition:background-position 1s steps(28);transition-duration:0s;width:100px;height:100px;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-robeen .wp_ulike_btn.wp_ulike_btn_is_active{overflow:visible}.wpulike-robeen .wp_ulike_btn.wp_ulike_btn_is_active:after{transition-duration:1s;background-position:-2800px 0}#buddypress #activity-stream .activity-comments .wpulike-robeen .wp_ulike_btn,#buddypress #activity-stream .activity-inner .wpulike-robeen .wp_ulike_btn,#buddypress #activity-stream .activity-meta .wpulike-robeen .wp_ulike_btn{background:0 0;border:0;width:30px;height:30px;border:0;padding:0}.wpulike-animated-heart .wp_ulike_is_loading .wp_ulike_btn{background-image:none}.wpulike-animated-heart .wp_ulike_btn{position:relative;border-radius:50em;background-color:#fff;padding:0;box-shadow:0 5px 30px rgba(255,111,99,.4);border:0;width:50px;height:50px}.wpulike-animated-heart .wp_ulike_btn:focus,.wpulike-animated-heart .wp_ulike_btn:hover{background-color:#fff;background-image:none}.wpulike-animated-heart .wp_ulike_btn:disabled:active,.wpulike-animated-heart .wp_ulike_btn:disabled:focus,.wpulike-animated-heart .wp_ulike_btn:disabled:hover,.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:active,.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:focus,.wpulike-animated-heart .wp_ulike_btn[disabled=disabled]:hover{background-color:#fff}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active{background-color:#ff6f63}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active:disabled:active,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active:disabled:focus,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active:disabled:hover,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active[disabled=disabled]:active,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active[disabled=disabled]:focus,.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active[disabled=disabled]:hover{background-color:#ff6f63}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart{fill:#fff}.wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active .wpulike-svg-heart-pop{animation-direction:normal}.wpulike-animated-heart .wp_ulike_btn:active{box-shadow:0 0 4px 0 rgba(0,0,0,.25)}.wpulike-animated-heart .wpulike-svg-heart{width:20px;fill:#ff6f63;transition:fill .5s,transform .5s;pointer-events:none;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)}.wpulike-animated-heart .wpulike-svg-heart-pop{position:absolute;width:30%;fill:#ff6f63;opacity:0;left:0;animation:popHearts 1s ease forwards reverse}.wpulike-animated-heart .wpulike-svg-heart-pop.one{left:1%;transform:rotate(-10deg);animation-delay:.45s}.wpulike-animated-heart .wpulike-svg-heart-pop.two{left:15%;transform:rotate(8deg);animation-delay:.25s}.wpulike-animated-heart .wpulike-svg-heart-pop.three{left:30%;transform:rotate(-5deg);animation-delay:0s}.wpulike-animated-heart .wpulike-svg-heart-pop.four{left:50%;transform:rotate(-8deg);animation-delay:.3s}.wpulike-animated-heart .wpulike-svg-heart-pop.five{left:60%;transform:rotate(-10deg);animation-delay:.9s}.wpulike-animated-heart .wpulike-svg-heart-pop.six{left:70%;transform:rotate(-8deg);animation-delay:.2s}.wpulike-animated-heart .wpulike-svg-heart-pop.seven{left:85%;transform:rotate(6deg);animation-delay:.35s}.wpulike-animated-heart .wpulike-svg-heart-pop.eight{left:90%;transform:rotate(-4deg);animation-delay:.5s}.wpulike-animated-heart .wpulike-svg-heart-pop.nine{left:95%;transform:rotate(8deg);animation-delay:.2s}.wpulike-animated-heart .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){bottom:30px}.wpulike-animated-heart .count-box{margin:0 15px;color:#ff6f63;display:inline-block;vertical-align:middle}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn{background:inherit;border:0;width:40px;height:40px}#buddypress #activity-stream .wpulike-animated-heart .wp_ulike_btn.wp_ulike_btn_is_active{background-color:#ff6f63}@keyframes popHearts{0%{left:calc(50% - 7px);top:10px}20%{opacity:1}80%{top:-20px}100%{opacity:0}}.wp_ulike_likers_wrapper{margin:10px 0;flex:0 0 100%}.wp_ulike_likers_wrapper:empty{display:none}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transition:all .5s cubic-bezier(.19,1,.22,1);display:block;position:absolute;left:0;transform:translateY(-30px);bottom:0;background:#eee;padding:5px;opacity:0;visibility:hidden;box-shadow:2px 2px 1px rgba(0,0,0,.1);border-radius:5px;z-index:9}.wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{content:'';position:absolute;top:100%;left:15px;width:0;height:0;border-top:8px solid #eee;border-right:8px solid transparent;border-left:8px solid transparent}.wp_ulike_likers_wrapper .tiles,.wp_ulike_likers_wrapper .wp-ulike-likers-list{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker,.wp_ulike_likers_wrapper .tiles li,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker,.wp_ulike_likers_wrapper .wp-ulike-likers-list li{padding:3px;margin:0;list-style:none}.wp_ulike_likers_wrapper .tiles .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .tiles li a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list .wp-ulike-liker a>img,.wp_ulike_likers_wrapper .wp-ulike-likers-list li a>img{border-radius:5px;display:block;border:0;box-shadow:none}.wpulike:hover .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){transform:translateY(-40px);opacity:1;visibility:visible}.most_liked_users{list-style-type:none!important;position:relative!important;margin:10px 0!important;padding:0!important}.most_liked_users li{display:inline-table!important;cursor:pointer!important;margin:0 2px!important}.most_liked_users li img{display:block!important;float:none!important}.most_liked_users li.inactive{visibility:hidden!important;opacity:0!important}.commentlist .tiles .avatar,.commentlist .wp-ulike-liker .avatar{left:0!important}.wp_ulike_thumbnail{vertical-align:middle;margin:0 10px 0 0}.most_liked_comment .avatar{vertical-align:middle;margin:0 10px 0 0}.wp_ulike_style_simple .wp_counter_span:before{content:"("}.wp_ulike_style_simple .wp_counter_span:after{content:")"}.wp_ulike_style_love .wp_counter_span{float:right;display:inline-block;background:#f1f1f1 url(../img/icons/heart.png) 5px center no-repeat;color:#333;font-size:9px;line-height:17px;font-weight:400;margin:2px 0 0 2px;vertical-align:middle;border-radius:10px;padding:0 5px 0 23px;z-index:26}.wpulike-notification{position:fixed;z-index:999999;pointer-events:none;right:20px;bottom:20px}.wpulike-notification *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.wpulike-notification .wpulike-message{position:relative;pointer-events:auto;word-wrap:break-word;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 55px;width:280px;border-radius:3px;background-color:#00bcd4;color:#fff;animation:wpUlikeNotifitcationsAnimation .2s backwards;box-shadow:0 3px 5px rgba(0,0,0,.08);font-size:14px;font-weight:500}.wpulike-notification .wpulike-message:hover{opacity:.9;cursor:pointer}.wpulike-notification .wpulike-message:before{content:"";background-position:center center;background-repeat:no-repeat;background-image:url(../img/svg/info.svg);position:absolute;left:0;width:45px;top:0;height:100%;background-color:rgba(0,0,0,.08)}.wpulike-notification .wpulike-message.wpulike-success{background-color:#8bc34a}.wpulike-notification .wpulike-message.wpulike-success:before{background-image:url(../img/svg/success.svg)}.wpulike-notification .wpulike-message.wpulike-error{background-color:#ef5350}.wpulike-notification .wpulike-message.wpulike-error:before{background-image:url(../img/svg/error.svg)}.wpulike-notification .wpulike-message.wpulike-warning{background-color:#ffab00}.wpulike-notification .wpulike-message.wpulike-warning:before{background-image:url(../img/svg/warning.svg)}@keyframes wpUlikeNotifitcationsAnimation{from{opacity:0;transform:translateY(100%)}to{opacity:.8;transform:translateY(0)}}@media all and (max-width:240px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:11em}}@media all and (min-width:241px) and (max-width:480px){.wpulike-notification .wpulike-message{padding:8px 8px 8px 55px;width:18em}}@media all and (min-width:481px) and (max-width:768px){.wpulike-notification .wpulike-message{padding:15px 15px 15px 55px;width:25em}}/*!>>>>>>>>>>>>>>>>>>>>>>> #RTL <<<<<<<<<<<<<<<<<<<<<<<<<<< */.rtl .wpulike-default .count-box{margin-right:8px;margin-left:inherit}.rtl .wpulike-default .count-box:before{right:-1px;left:auto;border-color:#bdbdbd #bdbdbd transparent transparent}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline){left:auto;right:0}.rtl .wp_ulike_likers_wrapper:not(.wp_ulike_display_inline):after{left:auto;right:15px}.rtl .commentlist .tiles .avatar{left:inherit!important;right:0!important}.rtl .wp_ulike_thumbnail{margin:0 0 0 10px}.rtl .most_liked_comment .avatar{margin:0 0 0 10px}.rtl .wp_ulike_style_love .wp_counter_span{float:left;background:#f1f1f1 url(../img/icons/heart.png) no-repeat scroll 85% center;margin:2px 2px 0 0;padding:0 23px 0 5px}.rtl .wpulike-notification{left:20px;right:inherit}.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}.rtl .wpulike-notification .wpulike-message:before{left:auto;right:0}@media all and (max-width:240px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:241px) and (max-width:480px){.rtl .wpulike-notification .wpulike-message{padding:8px 55px 8px 8px}}@media all and (min-width:481px) and (max-width:768px){.rtl .wpulike-notification .wpulike-message{padding:15px 55px 15px 15px}}
|
assets/js/wp-ulike.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WP ULike - v4.2.
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2020;
|
4 |
*/
|
1 |
+
/*! WP ULike - v4.2.4
|
2 |
* https://wpulike.com
|
3 |
* TechnoWich 2020;
|
4 |
*/
|
inc/classes/class-wp-ulike.php
CHANGED
@@ -537,30 +537,39 @@ if ( ! class_exists( 'wp_ulike' ) ) {
|
|
537 |
$user_info = wp_ulike_get_meta_data( $this->user_id, 'user', $meta_key, true );
|
538 |
|
539 |
if( empty( $user_info ) || ! isset( $user_info[$item_type_val] ) ){
|
540 |
-
|
541 |
-
$
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
|
|
|
|
|
|
|
|
|
|
554 |
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
|
560 |
-
|
561 |
-
|
562 |
-
|
|
|
|
|
|
|
563 |
}
|
|
|
564 |
} elseif( empty( $user_info[$item_type_val] ) ) {
|
565 |
return false;
|
566 |
}
|
537 |
$user_info = wp_ulike_get_meta_data( $this->user_id, 'user', $meta_key, true );
|
538 |
|
539 |
if( empty( $user_info ) || ! isset( $user_info[$item_type_val] ) ){
|
540 |
+
$cache_key = sanitize_key( sprintf( '%s-%s-user-%s-status', $item_type, $item_type_val, $item_conditional_val ) );
|
541 |
+
$user_status = wp_cache_get( $cache_key, WP_ULIKE_SLUG );
|
542 |
+
|
543 |
+
// Make a cachable query to get user status
|
544 |
+
if( false === $user_status ){
|
545 |
+
// Create query string
|
546 |
+
$query = sprintf( '
|
547 |
+
SELECT `status`
|
548 |
+
FROM %s
|
549 |
+
WHERE `%s` = \'%s\'
|
550 |
+
AND `%s` = \'%s\'
|
551 |
+
ORDER BY id DESC LIMIT 1
|
552 |
+
',
|
553 |
+
esc_sql( $this->wpdb->prefix . $table ),
|
554 |
+
esc_sql( $item_conditional_col ),
|
555 |
+
esc_sql( $item_conditional_val ),
|
556 |
+
esc_sql( $item_type_col ),
|
557 |
+
esc_sql( $item_type_val )
|
558 |
+
);
|
559 |
|
560 |
+
// Get results
|
561 |
+
$user_status = $this->wpdb->get_var( stripslashes( $query ) );
|
562 |
+
// Check user info value
|
563 |
+
$user_info = empty( $user_info ) ? array() : $user_info;
|
564 |
|
565 |
+
if( $user_status !== NULL || $this->current_user ){
|
566 |
+
$user_info[$item_type_val] = $this->current_user && $user_status === NULL ? NULL : $user_status;
|
567 |
+
wp_ulike_update_meta_data( $this->user_id, 'user', $meta_key, $user_info );
|
568 |
+
}
|
569 |
+
|
570 |
+
wp_cache_set( $cache_key, $user_status, WP_ULIKE_SLUG, 300 );
|
571 |
}
|
572 |
+
|
573 |
} elseif( empty( $user_info[$item_type_val] ) ) {
|
574 |
return false;
|
575 |
}
|
inc/general-functions.php
CHANGED
@@ -722,7 +722,8 @@ if( ! function_exists( 'wp_ulike_get_most_liked_posts' ) ){
|
|
722 |
));
|
723 |
|
724 |
$args = array(
|
725 |
-
'post_type'
|
|
|
726 |
);
|
727 |
|
728 |
if( ! empty( $post__in ) ){
|
@@ -1412,7 +1413,7 @@ if( ! function_exists( 'wp_ulike_get_popular_items_info' ) ){
|
|
1412 |
SELECT t.item_id AS item_ID, MAX(CAST(t.meta_value AS UNSIGNED)) as counter
|
1413 |
FROM %1$s t
|
1414 |
INNER JOIN %2$s r ON t.item_id = r.%3$s %4$s
|
1415 |
-
WHERE t.meta_group = "%5$s" %6$s
|
1416 |
GROUP BY item_ID
|
1417 |
ORDER BY counter
|
1418 |
%7$s %8$s',
|
722 |
));
|
723 |
|
724 |
$args = array(
|
725 |
+
'post_type' => $post_type,
|
726 |
+
'posts_per_page' => $numberposts
|
727 |
);
|
728 |
|
729 |
if( ! empty( $post__in ) ){
|
1413 |
SELECT t.item_id AS item_ID, MAX(CAST(t.meta_value AS UNSIGNED)) as counter
|
1414 |
FROM %1$s t
|
1415 |
INNER JOIN %2$s r ON t.item_id = r.%3$s %4$s
|
1416 |
+
WHERE t.meta_group = "%5$s" AND t.meta_value > 0 %6$s
|
1417 |
GROUP BY item_ID
|
1418 |
ORDER BY counter
|
1419 |
%7$s %8$s',
|
inc/general-hooks.php
CHANGED
@@ -992,7 +992,7 @@ if( ! function_exists( 'wp_ulike_update_meta_data_info' ) ){
|
|
992 |
}
|
993 |
|
994 |
// Litespeed cache plugin
|
995 |
-
if( ! function_exists( 'wp_ulike_purge_litespeed_cache' ) &&
|
996 |
/**
|
997 |
* Purge litespeed post cache
|
998 |
*
|
@@ -1002,7 +1002,12 @@ if( ! function_exists( 'wp_ulike_purge_litespeed_cache' ) && method_exists( 'Lit
|
|
1002 |
*/
|
1003 |
function wp_ulike_purge_litespeed_cache( $ID, $type ){
|
1004 |
if( $type === '_liked' ){
|
1005 |
-
|
|
|
|
|
|
|
|
|
|
|
1006 |
}
|
1007 |
}
|
1008 |
add_action( 'wp_ulike_after_process', 'wp_ulike_purge_litespeed_cache' , 10, 2 );
|
992 |
}
|
993 |
|
994 |
// Litespeed cache plugin
|
995 |
+
if( ! function_exists( 'wp_ulike_purge_litespeed_cache' ) && class_exists( 'LiteSpeed\Core' ) ){
|
996 |
/**
|
997 |
* Purge litespeed post cache
|
998 |
*
|
1002 |
*/
|
1003 |
function wp_ulike_purge_litespeed_cache( $ID, $type ){
|
1004 |
if( $type === '_liked' ){
|
1005 |
+
do_action( 'litespeed_purge_post', $ID );
|
1006 |
+
} elseif( $type === '_commentliked' ){
|
1007 |
+
$comment = get_comment( $ID );
|
1008 |
+
if( isset( $comment->comment_post_ID ) ){
|
1009 |
+
do_action( 'litespeed_purge_post', $comment->comment_post_ID );
|
1010 |
+
}
|
1011 |
}
|
1012 |
}
|
1013 |
add_action( 'wp_ulike_after_process', 'wp_ulike_purge_litespeed_cache' , 10, 2 );
|
readme.txt
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
Contributors: alimir
|
3 |
Donate link: https://wpulike.com/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme
|
4 |
Author: Ali Mirzaei
|
5 |
-
Tags: wp ulike, like button, elementor, like, dislike, wordpress youlike plugin, 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, buddypress, statistics, stats likes, bbpress, bbPress like, WP-Translations, forums, community, credit, points, mycred, users, ultimate member, ranking
|
6 |
Requires PHP: 5.4
|
7 |
Requires at least: 3.5.0
|
8 |
-
Tested up to: 5.4.
|
9 |
-
Stable tag: 4.2.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -151,6 +151,12 @@ define( 'WP_MEMORY_LIMIT', '256M' );
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
= 4.2.3 =
|
155 |
* Added: Ultimate user profiles builder. [pro]
|
156 |
* Added: Easy shortcode generator for wordpress editor & Gutenberg. [PRO]
|
2 |
Contributors: alimir
|
3 |
Donate link: https://wpulike.com/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme
|
4 |
Author: Ali Mirzaei
|
5 |
+
Tags: wp ulike, like button, elementor, like, dislike, wordpress youlike plugin, rating, vote, voting, seo, marketing, 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, buddypress, statistics, stats likes, bbpress, bbPress like, WP-Translations, forums, community, credit, points, mycred, users, ultimate member, ranking
|
6 |
Requires PHP: 5.4
|
7 |
Requires at least: 3.5.0
|
8 |
+
Tested up to: 5.4.2
|
9 |
+
Stable tag: 4.2.4
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
151 |
|
152 |
== Changelog ==
|
153 |
|
154 |
+
= 4.2.4 =
|
155 |
+
* Added: Object cache method for user status functionality.
|
156 |
+
* Updated: LiteSpeed purge cache method.
|
157 |
+
* Fixed: Some issues in popular items functionlity.
|
158 |
+
* Fixed: Button hover style issue.
|
159 |
+
|
160 |
= 4.2.3 =
|
161 |
* Added: Ultimate user profiles builder. [pro]
|
162 |
* Added: Easy shortcode generator for wordpress editor & Gutenberg. [PRO]
|
wp-ulike.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: WP ULike
|
11 |
* Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
12 |
* 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.
|
13 |
-
* Version: 4.2.
|
14 |
* Author: Ali Mirzaei
|
15 |
* Author URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
16 |
* Text Domain: wp-ulike
|
@@ -46,7 +46,7 @@ if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
|
|
46 |
|
47 |
// Do not change these values
|
48 |
define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
|
49 |
-
define( 'WP_ULIKE_VERSION' , '4.2.
|
50 |
define( 'WP_ULIKE_DB_VERSION' , '2.1' );
|
51 |
define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
|
52 |
define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
|
10 |
* Plugin Name: WP ULike
|
11 |
* Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
12 |
* 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.
|
13 |
+
* Version: 4.2.4
|
14 |
* Author: Ali Mirzaei
|
15 |
* Author URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
16 |
* Text Domain: wp-ulike
|
46 |
|
47 |
// Do not change these values
|
48 |
define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
|
49 |
+
define( 'WP_ULIKE_VERSION' , '4.2.4' );
|
50 |
define( 'WP_ULIKE_DB_VERSION' , '2.1' );
|
51 |
define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
|
52 |
define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
|