Version Description
- New feature added, COMMENTZ - enjoy styling the Post Comments from Elementor!
Download this release
Release Info
Developer | ooohboi |
Plugin | OoohBoi Steroids for Elementor |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- assets/css/editor.css +4 -2
- assets/css/main.css +48 -0
- assets/js/ooohboi-steroids-min.js +1 -1
- assets/js/ooohboi-steroids.js +44 -2
- controls/ooohboi-commentz.php +1073 -0
- inc/common-functions.php +6 -0
- lang/ooohboi-steroids.pot +203 -27
- ooohboi-steroids.php +6 -3
- readme.txt +13 -70
assets/css/editor.css
CHANGED
@@ -14,7 +14,8 @@
|
|
14 |
.elementor-control-_ob_butterbutton:after,
|
15 |
.elementor-control-_ob_perspektive:after,
|
16 |
.elementor-control-_ob_shadough:after,
|
17 |
-
.elementor-control-_ob_photomorph:after
|
|
|
18 |
content: "";
|
19 |
position: absolute;
|
20 |
height: 20px;
|
@@ -40,7 +41,8 @@
|
|
40 |
.rtl .elementor-control-_ob_butterbutton:after,
|
41 |
.rtl .elementor-control-_ob_perspektive:after,
|
42 |
.rtl .elementor-control-_ob_shadough:after,
|
43 |
-
.rtl .elementor-control-_ob_photomorph:after
|
|
|
44 |
left: 20px;
|
45 |
right: unset;
|
46 |
}
|
14 |
.elementor-control-_ob_butterbutton:after,
|
15 |
.elementor-control-_ob_perspektive:after,
|
16 |
.elementor-control-_ob_shadough:after,
|
17 |
+
.elementor-control-_ob_photomorph:after,
|
18 |
+
.elementor-control-_ob_commentz:after {
|
19 |
content: "";
|
20 |
position: absolute;
|
21 |
height: 20px;
|
41 |
.rtl .elementor-control-_ob_butterbutton:after,
|
42 |
.rtl .elementor-control-_ob_perspektive:after,
|
43 |
.rtl .elementor-control-_ob_shadough:after,
|
44 |
+
.rtl .elementor-control-_ob_photomorph:after,
|
45 |
+
.rtl .elementor-control-_ob_commentz:after {
|
46 |
left: 20px;
|
47 |
right: unset;
|
48 |
}
|
assets/css/main.css
CHANGED
@@ -187,6 +187,54 @@ div[class*='ob-teleporter-'] {
|
|
187 |
opacity: 1;
|
188 |
}
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
/* wooc */
|
191 |
.button[class*='product_type'] {
|
192 |
transition: all 0.25s ease;
|
187 |
opacity: 1;
|
188 |
}
|
189 |
|
190 |
+
/* COMMENTZ */
|
191 |
+
.ob-commentz #comments footer.comment-meta {
|
192 |
+
display: block;
|
193 |
+
}
|
194 |
+
.ob-commentz #comments b.fn {
|
195 |
+
margin-right: 5px;
|
196 |
+
font-weight: inherit;
|
197 |
+
}
|
198 |
+
.ob-commentz #comments span.says {
|
199 |
+
display: none;
|
200 |
+
}
|
201 |
+
.ob-commentz #comments ol.comment-list .children::before {
|
202 |
+
display: none;
|
203 |
+
}
|
204 |
+
.ob-commentz #comments .reply a.comment-reply-link {
|
205 |
+
transition: all 0.25s ease;
|
206 |
+
}
|
207 |
+
.ob-commentz #comments .comment img.avatar,
|
208 |
+
.ob-commentz #comments .pingback img.avatar {
|
209 |
+
position: absolute;
|
210 |
+
float: inherit;
|
211 |
+
}
|
212 |
+
.ob-commentz #comments .comment .comment-body {
|
213 |
+
border-bottom: none;
|
214 |
+
}
|
215 |
+
.ob-commentz #comments #cancel-comment-reply-link {
|
216 |
+
display: inline-block;
|
217 |
+
vertical-align: middle;
|
218 |
+
font-family: var(--e-global-typography-text-font-family);
|
219 |
+
font-size: 1rem;
|
220 |
+
font-weight: normal;
|
221 |
+
line-height: 1.2;
|
222 |
+
}
|
223 |
+
.ob-commentz #comments #reply-title {
|
224 |
+
display: flex;
|
225 |
+
flex-wrap: wrap;
|
226 |
+
justify-content: space-between;
|
227 |
+
}
|
228 |
+
.ob-commentz #comments .nav-links {
|
229 |
+
display: flex;
|
230 |
+
flex-wrap: wrap;
|
231 |
+
justify-content: space-between;
|
232 |
+
}
|
233 |
+
.ob-commentz #comments ol #respond {
|
234 |
+
margin-top: 20px !important;
|
235 |
+
margin-bottom: 20px !important;
|
236 |
+
}
|
237 |
+
|
238 |
/* wooc */
|
239 |
.button[class*='product_type'] {
|
240 |
transition: all 0.25s ease;
|
assets/js/ooohboi-steroids-min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";!function(e,t){var o=e(t);o.on("elementor/frontend/init",(function(){var t=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initPoopArtPerspektive()},initPoopArtPerspektive:function(){this.isEdit&&(this.$element.addClass("ob-has-background-overlay"),"yes"===this.getElementSettings("_ob_perspektive_use")&&this.$element.addClass("ob-use-perspektive"))},onElementChange:function(e){"_ob_perspektive_use"===e&&("yes"===this.getElementSettings("_ob_perspektive_use")?this.$element.addClass("ob-use-perspektive"):this.$element.removeClass("ob-use-perspektive"))},isPerspektive:function(){return this.$element.hasClass("ob-use-perspektive")}}),s=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initHarakiri()},initHarakiri:function(){this.isEdit&&"inherit"!==this.getElementSettings("_ob_harakiri_writing_mode")&&this.$element.addClass("ob-harakiri")},onElementChange:function(e){"_ob_harakiri_writing_mode"===e&&("inherit"!==this.getElementSettings("_ob_harakiri_writing_mode")?this.$element.addClass("ob-harakiri"):this.$element.removeClass("ob-harakiri"))}}),r={widget:t,"heading.default":s,"text-editor.default":s,section:elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initSectionExtends()},isBreakingBad:function(){return this.$element.hasClass("ob-is-breaking-bad")},isGlider:function(){return this.$element.hasClass("ob-is-glider")},onElementChange:function(e){"_ob_bbad_use_it"===e&&("yes"===this.getElementSettings("_ob_bbad_use_it")?this.$element.addClass("ob-is-breaking-bad"):this.$element.removeClass("ob-is-breaking-bad")),"_ob_glider_is_slider"===e&&("yes"===this.getElementSettings("_ob_glider_is_slider")?(this.$element.addClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"addClass"),this.initSwiperElements()):"yes"!=this.getElementSettings("_ob_glider_is_slider")&&(this.$element.removeClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"removeClass")))},addClassesRouteGlider:function(t,o){var n=e(t).children(".elementor-container").first();n.length&&n.addClass("swiper-container");var s=e(n).children(".elementor-row").first();s.length&&"addClass"==o?(s.addClass("swiper-wrapper"),e(s).children("div.elementor-column").addClass("swiper-slide")):(e(n).children("div.elementor-column").wrapAll('<div class="swiper-wrapper" />'),e(n).children(".swiper-wrapper").first().children("div.elementor-column").addClass("swiper-slide")),s.length&&"removeClass"==o?(s.removeClass("swiper-wrapper"),e(s).children("div.elementor-column").removeClass("swiper-slide")):(e(n).children("div.elementor-column").unwrap(),e(n).children("div.elementor-column").removeClass("swiper-slide"))},initSectionExtends:function(){this.isEdit?("yes"!==this.getElementSettings("_ob_bbad_use_it")||this.isBreakingBad()||this.$element.addClass("ob-is-breaking-bad"),"yes"===this.getElementSettings("_ob_glider_is_slider")&&(this.$element.addClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"addClass"),this.initSwiperElements())):"yes"===this.getElementSettings("_ob_glider_is_slider")&&(this.$element.addClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"addClass"),this.initSwiperElements())},initSwiperElements:function(){this.$element.children(".elementor-container .swiper-button-next").first().length||this.$element.children(".elementor-container").first().append('<div class="swiper-button-next"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin" viewBox="0 0 27 44"><path d="M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z"></path></svg></div>'),this.$element.children(".elementor-container .swiper-button-prev").first().length||this.$element.children(".elementor-container").first().append('<div class="swiper-button-prev"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin" viewBox="0 0 27 44"><path d="M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z"></path></svg></div>'),this.$element.children(".elementor-container .swiper-pagination").first().length||this.$element.children(".elementor-container").first().append('<div class="swiper-pagination"></div>');var e={};e.pagination_type=this.getElementSettings("_ob_glider_pagination_type"),e.allowTouchMove=this.getElementSettings("_ob_glider_allow_touch_move"),e.autoheight=this.getElementSettings("_ob_glider_auto_h"),e.effect=this.getElementSettings("_ob_glider_effect"),e.loop=this.getElementSettings("_ob_glider_loop"),e.direction=this.getElementSettings("_ob_glider_direction"),e.parallax=this.getElementSettings("_ob_glider_parallax"),e.speed=this.getElementSettings("_ob_glider_speed");var t=this.getElementSettings("_ob_glider_autoplay");e.autoplay=!!t&&{delay:this.getElementSettings("_ob_glider_autoplay_delay")},n(this.$element.attr("data-id"),e)}}),column:elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.$element.find(".elementor-column-wrap").first().length||this.$element.addClass("ob-is-e3");var e=navigator.userAgent.toLowerCase();e.indexOf("chrome")>-1&&this.teleporterChromeResize(),this.initColumnExtends()},teleporterChromeResize:function(){if(this.isTeleporter()){var e=this,t=this.$element.attr("data-id");o.on("resize",(function(){e.$element.closest(".ob-is-teleporter").addClass("ob-chrome-resize"),clearTimeout(t),t=setTimeout((function(){var t=parseInt(e.$element.closest(".ob-is-teleporter").css("height")),o=e.$element.find(".elementor-column-wrap").first();o.length?o.css({height:t}):e.$element.find(".elementor-widget-wrap").first().css({height:t}),e.$element.closest(".ob-is-teleporter").removeClass("ob-chrome-resize")}),500)})),o.trigger("resize")}},isTeleporter:function(){return this.$element.hasClass("ob-is-teleporter")},initColumnExtends:function(){this.isEdit&&"use-teleporter"===this.getElementSettings("_ob_teleporter_use")&&(this.$element.addClass("ob-is-teleporter"),this.$element.find(".elementor-widget-wrap").first().addClass("ob-tele-midget"),this.doTeleporterEditor()),!this.isEdit&&this.isTeleporter()&&(this.$element.find(".elementor-widget-wrap").first().addClass("ob-tele-midget"),this.doTeleporter())},onElementChange:function(e){"_ob_teleporter_overlay_color"===e?this.$element.find('div[class*="ob-teleporter-"] > .ob-tele-overlay').css("background-color",this.getElementSettings("_ob_teleporter_overlay_color")):"_ob_teleporter_no_pass_tablet"===e?"no-tablet"===this.getElementSettings("_ob_teleporter_no_pass_tablet")?this.$element.addClass("ob-tele-no-tablet"):this.$element.removeClass("ob-tele-no-tablet"):"_ob_teleporter_no_pass_mobile"===e&&("no-mobile"===this.getElementSettings("_ob_teleporter_no_pass_mobile")?this.$element.addClass("ob-tele-no-mobile"):this.$element.removeClass("ob-tele-no-mobile"))},doTeleporterEditor:function(){if("use-teleporter"===this.getElementSettings("_ob_teleporter_use")){var t=this.$element.find(".elementor-widget-wrap").first();if(t.length&&(t.wrapInner('<div class="widget-wrap-children" />'),t.find(".elementor-background-overlay").first().length&&t.find(".elementor-background-overlay").first().insertBefore(t.find(".elementor-background-overlay").first().parent())),"do-pass"===this.getElementSettings("_ob_teleporter_pass")){var o=this,n=this.$element,s=this.$element.attr("data-id");"no-tablet"===this.getElementSettings("_ob_teleporter_no_pass_tablet")&&this.$element.addClass("ob-tele-no-tablet"),"no-mobile"===this.getElementSettings("_ob_teleporter_no_pass_mobile")&&this.$element.addClass("ob-tele-no-mobile");var r="section"===this.getElementSettings("_ob_teleporter_pass_element")?this.$element.closest(".elementor-section"):this.$element.closest(".elementor-container");if(r.length){r.css("overflow","hidden");var i=this.getElementSettings("_ob_teleporter_pass_effect"),l='<div class="ob-teleporter-'+s+" ob-tele-eff-"+i+'" data-id-teleporter="'+s+'"><div class="ob-tele-overlay" style="background-color: '+this.getElementSettings("_ob_teleporter_overlay_color")+';"></div></div>';e(".ob-teleporter-"+s).length||this.$element.prepend(l),this.$element.off("mouseenter mouseleave"),this.$element.on("mouseenter mouseleave",(function(t){if("mouseenter"===t.type){if("no-tablet"===o.getElementSettings("_ob_teleporter_no_pass_tablet")&&"tablet"===elementorFrontend.getCurrentDeviceMode())return;if("no-mobile"===o.getElementSettings("_ob_teleporter_no_pass_mobile")&&"mobile"===elementorFrontend.getCurrentDeviceMode())return;if("do-pass"!==o.getElementSettings("_ob_teleporter_pass"))return;var i={"background-color":e(".ob-teleporter-"+s).css("background-color"),"background-image":e(".ob-teleporter-"+s).css("background-image"),"background-position":e(".ob-teleporter-"+s).css("background-position"),"background-size":e(".ob-teleporter-"+s).css("background-size"),"background-repeat":e(".ob-teleporter-"+s).css("background-repeat")};if("section"===o.getElementSettings("_ob_teleporter_pass_element")){var l=r.children().not(".elementor-container").detach();r.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s)),r.prepend(l)}else r.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s));e(".ob-teleporter-"+s).css(i).hide(),e(".ob-teleporter-"+s).addClass("ob-teleporter-hover").show()}else r.removeClass("ob-tele-mom-hover"),setTimeout((function(){e(".ob-teleporter-"+s).removeAttr("style").removeClass("ob-teleporter-hover"),n.prepend(e(".ob-teleporter-"+s))}),100)}))}}}},doTeleporter:function(){var t=e.parseJSON(this.$element.attr("data-settings"));if("use-teleporter"===t._ob_teleporter_use){var o=this.$element.find(".elementor-widget-wrap").first();if(o.length&&(o.wrapInner('<div class="widget-wrap-children" />'),o.find(".elementor-background-overlay").first().length&&o.find(".elementor-background-overlay").first().insertBefore(o.find(".elementor-background-overlay").first().parent())),"do-pass"===t._ob_teleporter_pass){var n=this.$element,s=this.$element.attr("data-id");"no-tablet"===t._ob_teleporter_no_pass_tablet&&this.$element.addClass("ob-tele-no-tablet"),"no-mobile"===t._ob_teleporter_no_pass_mobile&&this.$element.addClass("ob-tele-no-mobile");var r="section"===t._ob_teleporter_pass_element?this.$element.closest(".elementor-section"):this.$element.closest(".elementor-container");if(r.length){r.css("overflow","hidden");var i=t._ob_teleporter_pass_effect,l='<div class="ob-teleporter-'+s+" ob-tele-eff-"+i+'" data-id-teleporter="'+s+'"><div class="ob-tele-overlay" style="background-color: '+t._ob_teleporter_overlay_color+';"></div>';if(e(".ob-teleporter-"+s).length||this.$element.prepend(l),this.$element.off("mouseenter mouseleave"),this.$element.on("mouseenter",(function(){if(!("no-tablet"===t._ob_teleporter_no_pass_tablet&&"tablet"===elementorFrontend.getCurrentDeviceMode()||"no-mobile"===t._ob_teleporter_no_pass_mobile&&"mobile"===elementorFrontend.getCurrentDeviceMode())){var o={"background-color":e(".ob-teleporter-"+s).css("background-color"),"background-image":e(".ob-teleporter-"+s).css("background-image"),"background-position":e(".ob-teleporter-"+s).css("background-position"),"background-size":e(".ob-teleporter-"+s).css("background-size"),"background-repeat":e(".ob-teleporter-"+s).css("background-repeat")};if("section"===t._ob_teleporter_pass_element){var n=r.children().not(".elementor-container").detach();r.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s)),r.prepend(n)}else r.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s));e(".ob-teleporter-"+s).css(o).hide(),e(".ob-teleporter-"+s).show().addClass("ob-teleporter-hover")}})),this.$element.on("mouseleave",(function(){r.removeClass("ob-tele-mom-hover"),setTimeout((function(){e(".ob-teleporter-"+s).removeAttr("style").removeClass("ob-teleporter-hover"),n.prepend(e(".ob-teleporter-"+s))}),100)})),void 0!==t._ob_teleporter_link){var a=t._ob_teleporter_link;if(""===a.url)return;this.$element.off("click.obTeleporter"),this.$element.on("click.obTeleporter",(function(){a.is_external?window.open(a.url):location.href=a.url}))}}}}}}),"search-form.default":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initSearchCop()},onElementChange:function(e){"_ob_searchcop_srch_options"===e&&this.routeSearchCop()},initSearchCop:function(){this.routeSearchCop()},routeSearchCop:function(){var e=this.getElementSettings("_ob_searchcop_srch_options");if("post"===e||"page"===e){var t=this.$element.find(".elementor-search-form__container");if(!t.length)return;var o='<input type="hidden" name="post_type" value="'+e+'" />';t.prepend(o)}}}),"button.default":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initButterButton()},isButterButton:function(){return this.$element.hasClass("ob-is-butterbutton")},onElementChange:function(e){"_ob_butterbutton_use_it"===e&&this.routeButterButton()},initButterButton:function(){this.isEdit&&"yes"===this.getElementSettings("_ob_butterbutton_use_it")&&this.$element.addClass("ob-is-butterbutton")},routeButterButton:function(){this.isButterButton()||"yes"!==this.getElementSettings("_ob_butterbutton_use_it")?this.$element.removeClass("ob-is-butterbutton"):this.$element.addClass("ob-is-butterbutton")}}),"image.default":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initPhotoMorph()},isPhotoMorph:function(){return this.$element.hasClass("ob-photomorph")},onElementChange:function(e){"_ob_photomorph_use"===e&&this.routePhotoMorph()},initPhotoMorph:function(){this.isEdit&&"yes"===this.getElementSettings("_ob_photomorph_use")&&this.$element.addClass("ob-photomorph")},routePhotoMorph:function(){this.isPhotoMorph()||"yes"!==this.getElementSettings("_ob_photomorph_use")?this.$element.removeClass("ob-photomorph"):this.$element.addClass("ob-photomorph")}})};e.each(r,(function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,(function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})}))}))}));var n=function(t,o){var n=e(".elementor-element-"+t+" .swiper-container").first(),s=new Swiper(n,{allowTouchMove:"yes"===o.allowTouchMove,autoHeight:"yes"===o.autoheight,effect:o.effect,loop:o.loop,direction:"fade"===o.effect?"horizontal":o.direction,parallax:"yes"===o.parallax,speed:o.speed,navigation:{nextEl:".elementor-element-"+t+" .swiper-button-next",prevEl:".elementor-element-"+t+" .swiper-button-prev"},pagination:{el:".elementor-element-"+t+" .swiper-pagination",type:o.pagination_type,clickable:!0},autoplay:o.autoplay,watchOverflow:!0});n.find(".glider-control").on("click",(function(t){void 0!==e(this).data("gotoslide")&&s.slideTo(parseInt(e(this).data("gotoslide"))-1),t.preventDefault()}))}}(jQuery,window);
|
1 |
+
"use strict";!function(e,t){var o=e(t);o.on("elementor/frontend/init",(function(){var t=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initPoopArtPerspektive()},initPoopArtPerspektive:function(){this.isEdit&&(this.$element.addClass("ob-has-background-overlay"),"yes"===this.getElementSettings("_ob_perspektive_use")&&this.$element.addClass("ob-use-perspektive"))},onElementChange:function(e){"_ob_perspektive_use"===e&&("yes"===this.getElementSettings("_ob_perspektive_use")?this.$element.addClass("ob-use-perspektive"):this.$element.removeClass("ob-use-perspektive"))},isPerspektive:function(){return this.$element.hasClass("ob-use-perspektive")}}),s=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initHarakiri()},initHarakiri:function(){this.isEdit&&"inherit"!==this.getElementSettings("_ob_harakiri_writing_mode")&&this.$element.addClass("ob-harakiri")},onElementChange:function(e){"_ob_harakiri_writing_mode"===e&&("inherit"!==this.getElementSettings("_ob_harakiri_writing_mode")?this.$element.addClass("ob-harakiri"):this.$element.removeClass("ob-harakiri"))}}),i={widget:t,"heading.default":s,"text-editor.default":s,section:elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initSectionExtends()},isBreakingBad:function(){return this.$element.hasClass("ob-is-breaking-bad")},isGlider:function(){return this.$element.hasClass("ob-is-glider")},onElementChange:function(e){"_ob_bbad_use_it"===e&&("yes"===this.getElementSettings("_ob_bbad_use_it")?this.$element.addClass("ob-is-breaking-bad"):this.$element.removeClass("ob-is-breaking-bad")),"_ob_glider_is_slider"===e&&("yes"===this.getElementSettings("_ob_glider_is_slider")?(this.$element.addClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"addClass"),this.initSwiperElements()):"yes"!=this.getElementSettings("_ob_glider_is_slider")&&(this.$element.removeClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"removeClass")))},addClassesRouteGlider:function(t,o){var n=e(t).children(".elementor-container").first();n.length&&n.addClass("swiper-container");var s=e(n).children(".elementor-row").first();s.length&&"addClass"==o?(s.addClass("swiper-wrapper"),e(s).children("div.elementor-column").addClass("swiper-slide")):(e(n).children("div.elementor-column").wrapAll('<div class="swiper-wrapper" />'),e(n).children(".swiper-wrapper").first().children("div.elementor-column").addClass("swiper-slide")),s.length&&"removeClass"==o?(s.removeClass("swiper-wrapper"),e(s).children("div.elementor-column").removeClass("swiper-slide")):(e(n).children("div.elementor-column").unwrap(),e(n).children("div.elementor-column").removeClass("swiper-slide"))},initSectionExtends:function(){this.isEdit?("yes"!==this.getElementSettings("_ob_bbad_use_it")||this.isBreakingBad()||this.$element.addClass("ob-is-breaking-bad"),"yes"===this.getElementSettings("_ob_glider_is_slider")&&(this.$element.addClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"addClass"),this.initSwiperElements())):"yes"===this.getElementSettings("_ob_glider_is_slider")&&(this.$element.addClass("ob-is-glider"),this.addClassesRouteGlider(".elementor-element-"+this.$element.attr("data-id"),"addClass"),this.initSwiperElements())},initSwiperElements:function(){this.$element.children(".elementor-container .swiper-button-next").first().length||this.$element.children(".elementor-container").first().append('<div class="swiper-button-next"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin" viewBox="0 0 27 44"><path d="M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z"></path></svg></div>'),this.$element.children(".elementor-container .swiper-button-prev").first().length||this.$element.children(".elementor-container").first().append('<div class="swiper-button-prev"><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin" viewBox="0 0 27 44"><path d="M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z"></path></svg></div>'),this.$element.children(".elementor-container .swiper-pagination").first().length||this.$element.children(".elementor-container").first().append('<div class="swiper-pagination"></div>');var e={};e.pagination_type=this.getElementSettings("_ob_glider_pagination_type"),e.allowTouchMove=this.getElementSettings("_ob_glider_allow_touch_move"),e.autoheight=this.getElementSettings("_ob_glider_auto_h"),e.effect=this.getElementSettings("_ob_glider_effect"),e.loop=this.getElementSettings("_ob_glider_loop"),e.direction=this.getElementSettings("_ob_glider_direction"),e.parallax=this.getElementSettings("_ob_glider_parallax"),e.speed=this.getElementSettings("_ob_glider_speed");var t=this.getElementSettings("_ob_glider_autoplay");e.autoplay=!!t&&{delay:this.getElementSettings("_ob_glider_autoplay_delay")},n(this.$element.attr("data-id"),e)}}),column:elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.$element.find(".elementor-column-wrap").first().length||this.$element.addClass("ob-is-e3");var e=navigator.userAgent.toLowerCase();e.indexOf("chrome")>-1&&this.teleporterChromeResize(),this.initColumnExtends()},teleporterChromeResize:function(){if(this.isTeleporter()){var e=this,t=this.$element.attr("data-id");o.on("resize",(function(){e.$element.closest(".ob-is-teleporter").addClass("ob-chrome-resize"),clearTimeout(t),t=setTimeout((function(){var t=parseInt(e.$element.closest(".ob-is-teleporter").css("height")),o=e.$element.find(".elementor-column-wrap").first();o.length?o.css({height:t}):e.$element.find(".elementor-widget-wrap").first().css({height:t}),e.$element.closest(".ob-is-teleporter").removeClass("ob-chrome-resize")}),500)})),o.trigger("resize")}},isTeleporter:function(){return this.$element.hasClass("ob-is-teleporter")},initColumnExtends:function(){this.isEdit&&"use-teleporter"===this.getElementSettings("_ob_teleporter_use")&&(this.$element.addClass("ob-is-teleporter"),this.$element.find(".elementor-widget-wrap").first().addClass("ob-tele-midget"),this.doTeleporterEditor()),!this.isEdit&&this.isTeleporter()&&(this.$element.find(".elementor-widget-wrap").first().addClass("ob-tele-midget"),this.doTeleporter())},onElementChange:function(e){"_ob_teleporter_overlay_color"===e?this.$element.find('div[class*="ob-teleporter-"] > .ob-tele-overlay').css("background-color",this.getElementSettings("_ob_teleporter_overlay_color")):"_ob_teleporter_no_pass_tablet"===e?"no-tablet"===this.getElementSettings("_ob_teleporter_no_pass_tablet")?this.$element.addClass("ob-tele-no-tablet"):this.$element.removeClass("ob-tele-no-tablet"):"_ob_teleporter_no_pass_mobile"===e&&("no-mobile"===this.getElementSettings("_ob_teleporter_no_pass_mobile")?this.$element.addClass("ob-tele-no-mobile"):this.$element.removeClass("ob-tele-no-mobile"))},doTeleporterEditor:function(){if("use-teleporter"===this.getElementSettings("_ob_teleporter_use")){var t=this.$element.find(".elementor-widget-wrap").first();if(t.length&&(t.wrapInner('<div class="widget-wrap-children" />'),t.find(".elementor-background-overlay").first().length&&t.find(".elementor-background-overlay").first().insertBefore(t.find(".elementor-background-overlay").first().parent())),"do-pass"===this.getElementSettings("_ob_teleporter_pass")){var o=this,n=this.$element,s=this.$element.attr("data-id");"no-tablet"===this.getElementSettings("_ob_teleporter_no_pass_tablet")&&this.$element.addClass("ob-tele-no-tablet"),"no-mobile"===this.getElementSettings("_ob_teleporter_no_pass_mobile")&&this.$element.addClass("ob-tele-no-mobile");var i="section"===this.getElementSettings("_ob_teleporter_pass_element")?this.$element.closest(".elementor-section"):this.$element.closest(".elementor-container");if(i.length){i.css("overflow","hidden");var r=this.getElementSettings("_ob_teleporter_pass_effect"),l='<div class="ob-teleporter-'+s+" ob-tele-eff-"+r+'" data-id-teleporter="'+s+'"><div class="ob-tele-overlay" style="background-color: '+this.getElementSettings("_ob_teleporter_overlay_color")+';"></div></div>';e(".ob-teleporter-"+s).length||this.$element.prepend(l),this.$element.off("mouseenter mouseleave"),this.$element.on("mouseenter mouseleave",(function(t){if("mouseenter"===t.type){if("no-tablet"===o.getElementSettings("_ob_teleporter_no_pass_tablet")&&"tablet"===elementorFrontend.getCurrentDeviceMode())return;if("no-mobile"===o.getElementSettings("_ob_teleporter_no_pass_mobile")&&"mobile"===elementorFrontend.getCurrentDeviceMode())return;if("do-pass"!==o.getElementSettings("_ob_teleporter_pass"))return;var r={"background-color":e(".ob-teleporter-"+s).css("background-color"),"background-image":e(".ob-teleporter-"+s).css("background-image"),"background-position":e(".ob-teleporter-"+s).css("background-position"),"background-size":e(".ob-teleporter-"+s).css("background-size"),"background-repeat":e(".ob-teleporter-"+s).css("background-repeat")};if("section"===o.getElementSettings("_ob_teleporter_pass_element")){var l=i.children().not(".elementor-container").detach();i.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s)),i.prepend(l)}else i.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s));e(".ob-teleporter-"+s).css(r).hide(),e(".ob-teleporter-"+s).addClass("ob-teleporter-hover").show()}else i.removeClass("ob-tele-mom-hover"),setTimeout((function(){e(".ob-teleporter-"+s).removeAttr("style").removeClass("ob-teleporter-hover"),n.prepend(e(".ob-teleporter-"+s))}),100)}))}}}},doTeleporter:function(){var t=e.parseJSON(this.$element.attr("data-settings"));if("use-teleporter"===t._ob_teleporter_use){var o=this.$element.find(".elementor-widget-wrap").first();if(o.length&&(o.wrapInner('<div class="widget-wrap-children" />'),o.find(".elementor-background-overlay").first().length&&o.find(".elementor-background-overlay").first().insertBefore(o.find(".elementor-background-overlay").first().parent())),"do-pass"===t._ob_teleporter_pass){var n=this.$element,s=this.$element.attr("data-id");"no-tablet"===t._ob_teleporter_no_pass_tablet&&this.$element.addClass("ob-tele-no-tablet"),"no-mobile"===t._ob_teleporter_no_pass_mobile&&this.$element.addClass("ob-tele-no-mobile");var i="section"===t._ob_teleporter_pass_element?this.$element.closest(".elementor-section"):this.$element.closest(".elementor-container");if(i.length){i.css("overflow","hidden");var r=t._ob_teleporter_pass_effect,l='<div class="ob-teleporter-'+s+" ob-tele-eff-"+r+'" data-id-teleporter="'+s+'"><div class="ob-tele-overlay" style="background-color: '+t._ob_teleporter_overlay_color+';"></div>';if(e(".ob-teleporter-"+s).length||this.$element.prepend(l),this.$element.off("mouseenter mouseleave"),this.$element.on("mouseenter",(function(){if(!("no-tablet"===t._ob_teleporter_no_pass_tablet&&"tablet"===elementorFrontend.getCurrentDeviceMode()||"no-mobile"===t._ob_teleporter_no_pass_mobile&&"mobile"===elementorFrontend.getCurrentDeviceMode())){var o={"background-color":e(".ob-teleporter-"+s).css("background-color"),"background-image":e(".ob-teleporter-"+s).css("background-image"),"background-position":e(".ob-teleporter-"+s).css("background-position"),"background-size":e(".ob-teleporter-"+s).css("background-size"),"background-repeat":e(".ob-teleporter-"+s).css("background-repeat")};if("section"===t._ob_teleporter_pass_element){var n=i.children().not(".elementor-container").detach();i.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s)),i.prepend(n)}else i.addClass("ob-tele-mom-hover").prepend(e(".ob-teleporter-"+s));e(".ob-teleporter-"+s).css(o).hide(),e(".ob-teleporter-"+s).show().addClass("ob-teleporter-hover")}})),this.$element.on("mouseleave",(function(){i.removeClass("ob-tele-mom-hover"),setTimeout((function(){e(".ob-teleporter-"+s).removeAttr("style").removeClass("ob-teleporter-hover"),n.prepend(e(".ob-teleporter-"+s))}),100)})),void 0!==t._ob_teleporter_link){var a=t._ob_teleporter_link;if(""===a.url)return;this.$element.off("click.obTeleporter"),this.$element.on("click.obTeleporter",(function(){a.is_external?window.open(a.url):location.href=a.url}))}}}}}}),"search-form.default":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initSearchCop()},onElementChange:function(e){"_ob_searchcop_srch_options"===e&&this.routeSearchCop()},initSearchCop:function(){this.routeSearchCop()},routeSearchCop:function(){var e=this.getElementSettings("_ob_searchcop_srch_options");if("post"===e||"page"===e){var t=this.$element.find(".elementor-search-form__container");if(!t.length)return;var o='<input type="hidden" name="post_type" value="'+e+'" />';t.prepend(o)}}}),"button.default":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initButterButton()},isButterButton:function(){return this.$element.hasClass("ob-is-butterbutton")},onElementChange:function(e){"_ob_butterbutton_use_it"===e&&this.routeButterButton()},initButterButton:function(){this.isEdit&&"yes"===this.getElementSettings("_ob_butterbutton_use_it")&&this.$element.addClass("ob-is-butterbutton")},routeButterButton:function(){this.isButterButton()||"yes"!==this.getElementSettings("_ob_butterbutton_use_it")?this.$element.removeClass("ob-is-butterbutton"):this.$element.addClass("ob-is-butterbutton")}}),"image.default":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initPhotoMorph()},isPhotoMorph:function(){return this.$element.hasClass("ob-photomorph")},onElementChange:function(e){"_ob_photomorph_use"===e&&this.routePhotoMorph()},initPhotoMorph:function(){this.isEdit&&"yes"===this.getElementSettings("_ob_photomorph_use")&&this.$element.addClass("ob-photomorph")},routePhotoMorph:function(){this.isPhotoMorph()||"yes"!==this.getElementSettings("_ob_photomorph_use")?this.$element.removeClass("ob-photomorph"):this.$element.addClass("ob-photomorph")}}),"post-comments.theme_comments":elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initCommentz()},isCommentz:function(){return this.$element.hasClass("ob-commentz")},onElementChange:function(e){"_ob_commentz_use"===e&&this.routeCommentz()},initCommentz:function(){this.isEdit&&"yes"===this.getElementSettings("_ob_commentz_use")&&this.$element.addClass("ob-commentz")},routeCommentz:function(){this.isCommentz()||"yes"!==this.getElementSettings("_ob_commentz_use")?this.$element.removeClass("ob-commentz"):this.$element.addClass("ob-commentz")}})};e.each(i,(function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+e,(function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})}))}))}));var n=function(t,o){var n=e(".elementor-element-"+t+" .swiper-container").first(),s=new Swiper(n,{allowTouchMove:"yes"===o.allowTouchMove,autoHeight:"yes"===o.autoheight,effect:o.effect,loop:o.loop,direction:"fade"===o.effect?"horizontal":o.direction,parallax:"yes"===o.parallax,speed:o.speed,navigation:{nextEl:".elementor-element-"+t+" .swiper-button-next",prevEl:".elementor-element-"+t+" .swiper-button-prev"},pagination:{el:".elementor-element-"+t+" .swiper-pagination",type:o.pagination_type,clickable:!0},autoplay:o.autoplay,watchOverflow:!0});n.find(".glider-control").on("click",(function(t){void 0!==e(this).data("gotoslide")&&s.slideTo(parseInt(e(this).data("gotoslide"))-1),t.preventDefault()}))}}(jQuery,window);
|
assets/js/ooohboi-steroids.js
CHANGED
@@ -562,6 +562,47 @@
|
|
562 |
},
|
563 |
|
564 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
} );
|
566 |
|
567 |
var handlersList = {
|
@@ -572,8 +613,9 @@
|
|
572 |
'section': SectionExtends,
|
573 |
'column': ColumnExtends,
|
574 |
'search-form.default': SearchCop,
|
575 |
-
'button.default'
|
576 |
-
'image.default'
|
|
|
577 |
|
578 |
};
|
579 |
|
562 |
},
|
563 |
|
564 |
|
565 |
+
} );
|
566 |
+
|
567 |
+
var Commentz = elementorModules.frontend.handlers.Base.extend( {
|
568 |
+
|
569 |
+
onInit: function() {
|
570 |
+
|
571 |
+
elementorModules.frontend.handlers.Base.prototype.onInit.apply( this, arguments );
|
572 |
+
this.initCommentz();
|
573 |
+
|
574 |
+
},
|
575 |
+
|
576 |
+
isCommentz: function() {
|
577 |
+
|
578 |
+
return this.$element.hasClass( 'ob-commentz' );
|
579 |
+
|
580 |
+
},
|
581 |
+
|
582 |
+
onElementChange: function( changedProp ) {
|
583 |
+
|
584 |
+
if( changedProp === '_ob_commentz_use' ) {
|
585 |
+
this.routeCommentz();
|
586 |
+
}
|
587 |
+
|
588 |
+
},
|
589 |
+
|
590 |
+
initCommentz: function() {
|
591 |
+
|
592 |
+
if( this.isEdit && 'yes' === this.getElementSettings( '_ob_commentz_use' ) ) {
|
593 |
+
this.$element.addClass( 'ob-commentz' );
|
594 |
+
}
|
595 |
+
|
596 |
+
},
|
597 |
+
|
598 |
+
routeCommentz: function() {
|
599 |
+
|
600 |
+
if( ! this.isCommentz() && 'yes' === this.getElementSettings( '_ob_commentz_use' ) ) this.$element.addClass( 'ob-commentz' );
|
601 |
+
else this.$element.removeClass( 'ob-commentz' );
|
602 |
+
|
603 |
+
},
|
604 |
+
|
605 |
+
|
606 |
} );
|
607 |
|
608 |
var handlersList = {
|
613 |
'section': SectionExtends,
|
614 |
'column': ColumnExtends,
|
615 |
'search-form.default': SearchCop,
|
616 |
+
'button.default': ButterButton,
|
617 |
+
'image.default': PhotoMorph,
|
618 |
+
'post-comments.theme_comments': Commentz
|
619 |
|
620 |
};
|
621 |
|
controls/ooohboi-commentz.php
ADDED
@@ -0,0 +1,1073 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use Elementor\Controls_Manager;
|
3 |
+
use Elementor\Controls_Stack;
|
4 |
+
use Elementor\Element_Base;
|
5 |
+
use Elementor\Group_Control_Border;
|
6 |
+
use Elementor\Group_Control_Typography;
|
7 |
+
use Elementor\Scheme_Color;
|
8 |
+
use Elementor\Scheme_Typography;
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit; // Exit if accessed directly.
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Main OoohBoi OoohBoi_Commentz
|
16 |
+
*
|
17 |
+
* The main class that initiates and runs the plugin.
|
18 |
+
*
|
19 |
+
* @since 1.5.1
|
20 |
+
*/
|
21 |
+
final class OoohBoi_Commentz {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Initialize
|
25 |
+
*
|
26 |
+
* @since 1.5.1
|
27 |
+
*
|
28 |
+
* @access public
|
29 |
+
*/
|
30 |
+
public static function init() {
|
31 |
+
|
32 |
+
add_action( 'elementor/element/post-comments/section_content/after_section_end', [ __CLASS__, 'add_section' ] );
|
33 |
+
add_action( 'elementor/element/after_add_attributes', [ __CLASS__, 'add_attributes' ] );
|
34 |
+
|
35 |
+
}
|
36 |
+
|
37 |
+
public static function add_attributes( $element ) {
|
38 |
+
|
39 |
+
if ( 'post-comments' !== $element->get_name() ) return;
|
40 |
+
if ( \Elementor\Plugin::instance()->editor->is_edit_mode() ) return;
|
41 |
+
|
42 |
+
$settings = $element->get_settings_for_display();
|
43 |
+
|
44 |
+
if ( isset( $settings[ '_ob_commentz_use' ] ) && 'yes' === $settings[ '_ob_commentz_use' ] ) {
|
45 |
+
|
46 |
+
$element->add_render_attribute( '_wrapper', [
|
47 |
+
'class' => 'ob-commentz'
|
48 |
+
] );
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
}
|
53 |
+
|
54 |
+
public static function add_section( Element_Base $element ) {
|
55 |
+
|
56 |
+
$element->start_controls_section(
|
57 |
+
'_ob_commentz',
|
58 |
+
[
|
59 |
+
'label' => 'C O M M E N T Z',
|
60 |
+
'type' => Controls_Manager::TAB_CONTENT,
|
61 |
+
]
|
62 |
+
);
|
63 |
+
|
64 |
+
// ------------------------------------------------------------------------- CONTROL: Yes 4 Comments !
|
65 |
+
$element->add_control(
|
66 |
+
'_ob_commentz_use',
|
67 |
+
[
|
68 |
+
'label' => __( 'Enable Commentz', 'ooohboi-steroids' ),
|
69 |
+
'description' => __( 'That will allow you to style up the post comments.', 'ooohboi-steroids' ),
|
70 |
+
'type' => Controls_Manager::SWITCHER,
|
71 |
+
'label_on' => __( 'Yes', 'ooohboi-steroids' ),
|
72 |
+
'label_off' => __( 'No', 'ooohboi-steroids' ),
|
73 |
+
'return_value' => 'yes',
|
74 |
+
'default' => 'no',
|
75 |
+
'separator' => 'after',
|
76 |
+
'frontend_available' => true,
|
77 |
+
]
|
78 |
+
);
|
79 |
+
|
80 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comments title
|
81 |
+
$element->add_group_control(
|
82 |
+
Group_Control_Typography::get_type(),
|
83 |
+
[
|
84 |
+
'name' => '_ob_commentz_title_typo',
|
85 |
+
'label' => __( 'Heading', 'ooohboi-steroids' ),
|
86 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
87 |
+
'selector' => '{{WRAPPER}}.ob-commentz .title-comments',
|
88 |
+
'condition' => [
|
89 |
+
'_ob_commentz_use' => 'yes',
|
90 |
+
],
|
91 |
+
]
|
92 |
+
);
|
93 |
+
|
94 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comments title styles
|
95 |
+
$element->add_control(
|
96 |
+
'_ob_commentz_title',
|
97 |
+
[
|
98 |
+
'label' => __( 'Heading style', 'ooohboi-steroids' ),
|
99 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
100 |
+
'return_value' => 'yes',
|
101 |
+
'condition' => [
|
102 |
+
'_ob_commentz_use' => 'yes',
|
103 |
+
],
|
104 |
+
]
|
105 |
+
);
|
106 |
+
|
107 |
+
$element->start_popover();
|
108 |
+
|
109 |
+
// --------------------------------------------------------------------------------------------- CONTROL: Text COLOR
|
110 |
+
$element->add_control(
|
111 |
+
'_ob_commentz_title_color',
|
112 |
+
[
|
113 |
+
'label' => __( 'Color', 'ooohboi-steroids' ),
|
114 |
+
'type' => Controls_Manager::COLOR,
|
115 |
+
'default' => '#000000',
|
116 |
+
'selectors' => [
|
117 |
+
'{{WRAPPER}}.ob-commentz .title-comments' => 'color: {{VALUE}};',
|
118 |
+
],
|
119 |
+
'condition' => [
|
120 |
+
'_ob_commentz_use' => 'yes',
|
121 |
+
],
|
122 |
+
]
|
123 |
+
);
|
124 |
+
|
125 |
+
// ------------------------------------------------------------------------- CONTROL: Comments title alignment
|
126 |
+
$element->add_responsive_control(
|
127 |
+
'_ob_commentz_title_align',
|
128 |
+
[
|
129 |
+
'label' => __( 'Text alignment', 'ooohboi-steroids' ),
|
130 |
+
'type' => Controls_Manager::SELECT,
|
131 |
+
'default' => 'left',
|
132 |
+
'options' => [
|
133 |
+
'left' => __( 'Left', 'ooohboi-steroids' ),
|
134 |
+
'center' => __( 'Center', 'ooohboi-steroids' ),
|
135 |
+
'right' => __( 'Right', 'ooohboi-steroids' ),
|
136 |
+
],
|
137 |
+
'selectors' => [
|
138 |
+
'{{WRAPPER}}.ob-commentz .title-comments' => 'text-align: {{VALUE}};',
|
139 |
+
],
|
140 |
+
'condition' => [
|
141 |
+
'_ob_commentz_use' => 'yes',
|
142 |
+
],
|
143 |
+
]
|
144 |
+
);
|
145 |
+
|
146 |
+
// ------------------------------------------------------------------------- CONTROL: Comments title PADDING
|
147 |
+
$element->add_responsive_control(
|
148 |
+
'_ob_commentz_title_paddingz',
|
149 |
+
[
|
150 |
+
'label' => __( 'Padding', 'ooohboi-steroids' ),
|
151 |
+
'type' => Controls_Manager::DIMENSIONS,
|
152 |
+
'size_units' => [ 'px', 'em', '%' ],
|
153 |
+
'default' => [
|
154 |
+
'unit' => 'px',
|
155 |
+
'size' => 0,
|
156 |
+
],
|
157 |
+
'selectors' => [
|
158 |
+
'{{WRAPPER}}.ob-commentz .title-comments' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
159 |
+
],
|
160 |
+
'condition' => [
|
161 |
+
'_ob_commentz_use' => 'yes',
|
162 |
+
],
|
163 |
+
]
|
164 |
+
);
|
165 |
+
// ------------------------------------------------------------------------- CONTROL: Comments title MARGIN
|
166 |
+
$element->add_responsive_control(
|
167 |
+
'_ob_commentz_title_marginz',
|
168 |
+
[
|
169 |
+
'label' => __( 'Margin', 'ooohboi-steroids' ),
|
170 |
+
'type' => Controls_Manager::DIMENSIONS,
|
171 |
+
'size_units' => [ 'px', 'em', '%' ],
|
172 |
+
'default' => [
|
173 |
+
'unit' => 'px',
|
174 |
+
'size' => 0,
|
175 |
+
],
|
176 |
+
'selectors' => [
|
177 |
+
'{{WRAPPER}}.ob-commentz .title-comments' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
178 |
+
],
|
179 |
+
'condition' => [
|
180 |
+
'_ob_commentz_use' => 'yes',
|
181 |
+
],
|
182 |
+
]
|
183 |
+
);
|
184 |
+
|
185 |
+
$element->end_popover(); // popover Title styles end
|
186 |
+
|
187 |
+
// --------------------------------------------------------------------------------------------- CONTROL DIVIDER !!!!!
|
188 |
+
$element->add_control(
|
189 |
+
'_ob_dummy_separator_0',
|
190 |
+
[
|
191 |
+
'type' => Controls_Manager::DIVIDER,
|
192 |
+
'condition' => [
|
193 |
+
'_ob_commentz_use' => 'yes',
|
194 |
+
],
|
195 |
+
]
|
196 |
+
);
|
197 |
+
|
198 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comments General styles
|
199 |
+
$element->add_control(
|
200 |
+
'_ob_comment_list_styles',
|
201 |
+
[
|
202 |
+
'label' => __( 'Comment list style', 'ooohboi-steroids' ),
|
203 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
204 |
+
'return_value' => 'yes',
|
205 |
+
'condition' => [
|
206 |
+
'_ob_commentz_use' => 'yes',
|
207 |
+
],
|
208 |
+
]
|
209 |
+
);
|
210 |
+
|
211 |
+
$element->start_popover();
|
212 |
+
|
213 |
+
// ------------------------------------------------------------------------- CONTROL: Comment body PADDINGs
|
214 |
+
$element->add_responsive_control(
|
215 |
+
'_ob_comment_body_padding',
|
216 |
+
[
|
217 |
+
'label' => __( 'Comment body padding', 'ooohboi-steroids' ),
|
218 |
+
'type' => Controls_Manager::DIMENSIONS,
|
219 |
+
'size_units' => [ 'px', 'em', '%' ],
|
220 |
+
'selectors' => [
|
221 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-body' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
222 |
+
],
|
223 |
+
'condition' => [
|
224 |
+
'_ob_commentz_use' => 'yes',
|
225 |
+
],
|
226 |
+
]
|
227 |
+
);
|
228 |
+
// ------------------------------------------------------------------------- CONTROL: Comment body MARGINs
|
229 |
+
$element->add_responsive_control(
|
230 |
+
'_ob_comment_body_margin',
|
231 |
+
[
|
232 |
+
'label' => __( 'Comment body margin', 'ooohboi-steroids' ),
|
233 |
+
'type' => Controls_Manager::DIMENSIONS,
|
234 |
+
'size_units' => [ 'px', 'em', '%' ],
|
235 |
+
'selectors' => [
|
236 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-body' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
237 |
+
],
|
238 |
+
'condition' => [
|
239 |
+
'_ob_commentz_use' => 'yes',
|
240 |
+
],
|
241 |
+
]
|
242 |
+
);
|
243 |
+
// ------------------------------------------------------------------------- CONTROL: Comment body border
|
244 |
+
$element->add_group_control(
|
245 |
+
Group_Control_Border::get_type(), [
|
246 |
+
'name' => '_ob_comment_body_border',
|
247 |
+
'label' => __( 'Border', 'ooohboi-steroids' ),
|
248 |
+
'default' => 0,
|
249 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments .comment-body',
|
250 |
+
]
|
251 |
+
);
|
252 |
+
$element->add_responsive_control(
|
253 |
+
'_ob_comment_body_bord_rad',
|
254 |
+
[
|
255 |
+
'label' => __( 'Border Radius', 'ooohboi-steroids' ),
|
256 |
+
'type' => Controls_Manager::DIMENSIONS,
|
257 |
+
'size_units' => [ 'px', '%' ],
|
258 |
+
'selectors' => [
|
259 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-body' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
260 |
+
],
|
261 |
+
'condition' => [
|
262 |
+
'_ob_commentz_use' => 'yes',
|
263 |
+
],
|
264 |
+
]
|
265 |
+
);
|
266 |
+
// ------------------------------------------------------------------------- CONTROL: Comment body BG Color
|
267 |
+
$element->add_control(
|
268 |
+
'_ob_comment_body_bg_color',
|
269 |
+
[
|
270 |
+
'label' => __( 'Background color', 'ooohboi-steroids' ),
|
271 |
+
'type' => Controls_Manager::COLOR,
|
272 |
+
'default' => '#00000000',
|
273 |
+
'selectors' => [
|
274 |
+
'{{WRAPPER}}.ob-commentz #comments ol:not(.children) .comment-body' => 'background-color: {{VALUE}};',
|
275 |
+
],
|
276 |
+
'condition' => [
|
277 |
+
'_ob_commentz_use' => 'yes',
|
278 |
+
],
|
279 |
+
]
|
280 |
+
);
|
281 |
+
// ------------------------------------------------------------------------- CONTROL: Comment body BG Color Children
|
282 |
+
$element->add_control(
|
283 |
+
'_ob_comment_body_bg_color_child',
|
284 |
+
[
|
285 |
+
'label' => __( 'Background color replies', 'ooohboi-steroids' ),
|
286 |
+
'type' => Controls_Manager::COLOR,
|
287 |
+
'default' => '#00000000',
|
288 |
+
'selectors' => [
|
289 |
+
'{{WRAPPER}}.ob-commentz #comments ol.children .comment-body' => 'background-color: {{VALUE}};',
|
290 |
+
],
|
291 |
+
'condition' => [
|
292 |
+
'_ob_commentz_use' => 'yes',
|
293 |
+
],
|
294 |
+
]
|
295 |
+
);
|
296 |
+
|
297 |
+
// --------------------------------------------------------------------------------------------- CONTROL Gravatar size
|
298 |
+
$element->add_responsive_control(
|
299 |
+
'_ob_child_comments_indent',
|
300 |
+
[
|
301 |
+
'label' => __( 'Child comments indent', 'ooohboi-steroids' ),
|
302 |
+
'type' => Controls_Manager::SLIDER,
|
303 |
+
'range' => [
|
304 |
+
'px' => [
|
305 |
+
'max' => 500,
|
306 |
+
'step' => 1,
|
307 |
+
],
|
308 |
+
'em' => [
|
309 |
+
'max' => 100,
|
310 |
+
'step' => 0.1,
|
311 |
+
],
|
312 |
+
],
|
313 |
+
'size_units' => [ 'px', 'em' ],
|
314 |
+
'selectors' => [
|
315 |
+
'{{WRAPPER}}.ob-commentz #comments ol.children' => 'padding-left: {{SIZE}}{{UNIT}};',
|
316 |
+
],
|
317 |
+
'default' => [
|
318 |
+
'unit' => 'px',
|
319 |
+
'size' => 50,
|
320 |
+
],
|
321 |
+
'condition' => [
|
322 |
+
'_ob_commentz_use' => 'yes',
|
323 |
+
],
|
324 |
+
]
|
325 |
+
);
|
326 |
+
|
327 |
+
$element->end_popover(); // popover General styles end
|
328 |
+
|
329 |
+
// ------------------------------------------------------------------------- CONTROL: Show Gravatar
|
330 |
+
$element->add_control(
|
331 |
+
'_ob_commentz_show_gravatar',
|
332 |
+
[
|
333 |
+
'label' => __( 'Gravatar', 'ooohboi-steroids' ),
|
334 |
+
'type' => Controls_Manager::SWITCHER,
|
335 |
+
'return_value' => 'none',
|
336 |
+
'default' => 'block',
|
337 |
+
'label_off' => __( 'Hide', 'elementor-pro' ),
|
338 |
+
'label_on' => __( 'Show', 'elementor-pro' ),
|
339 |
+
'separator' => 'before',
|
340 |
+
'selectors' => [
|
341 |
+
'{{WRAPPER}}.ob-commentz #comments img.avatar' => 'display: {{VALUE}};',
|
342 |
+
],
|
343 |
+
'condition' => [
|
344 |
+
'_ob_commentz_use' => 'yes',
|
345 |
+
],
|
346 |
+
]
|
347 |
+
);
|
348 |
+
|
349 |
+
// --------------------------------------------------------------------------------------------- CONTROL Gravatar styles
|
350 |
+
|
351 |
+
$element->add_control(
|
352 |
+
'_ob_gravatar_style',
|
353 |
+
[
|
354 |
+
'label' => __( 'Gravatar style', 'ooohboi-steroids' ),
|
355 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
356 |
+
'return_value' => 'yes',
|
357 |
+
'condition' => [
|
358 |
+
'_ob_commentz_use' => 'yes',
|
359 |
+
'_ob_commentz_show_gravatar!' => 'none',
|
360 |
+
],
|
361 |
+
]
|
362 |
+
);
|
363 |
+
|
364 |
+
$element->start_popover();
|
365 |
+
|
366 |
+
// --------------------------------------------------------------------------------------------- CONTROL Gravatar size
|
367 |
+
$element->add_responsive_control(
|
368 |
+
'_ob_gravatar_size',
|
369 |
+
[
|
370 |
+
'label' => __( 'Size', 'ooohboi-steroids' ),
|
371 |
+
'type' => Controls_Manager::SLIDER,
|
372 |
+
'range' => [
|
373 |
+
'px' => [
|
374 |
+
'max' => 500,
|
375 |
+
'step' => 1,
|
376 |
+
],
|
377 |
+
'em' => [
|
378 |
+
'max' => 100,
|
379 |
+
'step' => 0.1,
|
380 |
+
],
|
381 |
+
],
|
382 |
+
'size_units' => [ 'px', 'em' ],
|
383 |
+
'selectors' => [
|
384 |
+
'{{WRAPPER}}.ob-commentz #comments img.avatar' => 'width: {{SIZE}}{{UNIT}};',
|
385 |
+
],
|
386 |
+
'default' => [
|
387 |
+
'unit' => 'px',
|
388 |
+
'size' => 40,
|
389 |
+
],
|
390 |
+
'condition' => [
|
391 |
+
'_ob_commentz_use' => 'yes',
|
392 |
+
'_ob_commentz_show_gravatar!' => 'none',
|
393 |
+
],
|
394 |
+
]
|
395 |
+
);
|
396 |
+
|
397 |
+
// ------------------------------------------------------------------------- CONTROL: Gravatar position
|
398 |
+
$element->add_responsive_control(
|
399 |
+
'_ob_gravatar_position',
|
400 |
+
[
|
401 |
+
'label' => __( 'Position', 'ooohboi-steroids' ),
|
402 |
+
'type' => Controls_Manager::DIMENSIONS,
|
403 |
+
'size_units' => [ 'px', 'em', '%' ],
|
404 |
+
'selectors' => [
|
405 |
+
'{{WRAPPER}}.ob-commentz #comments img.avatar' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
406 |
+
],
|
407 |
+
'condition' => [
|
408 |
+
'_ob_commentz_use' => 'yes',
|
409 |
+
'_ob_commentz_show_gravatar!' => 'none',
|
410 |
+
],
|
411 |
+
]
|
412 |
+
);
|
413 |
+
|
414 |
+
// --------------------------------------------------------------------------------------------- CONTROL Gravatar border props
|
415 |
+
$element->add_group_control(
|
416 |
+
Group_Control_Border::get_type(), [
|
417 |
+
'name' => '_ob_gravatar_border',
|
418 |
+
'label' => __( 'Border', 'ooohboi-steroids' ),
|
419 |
+
'default' => 0,
|
420 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments img.avatar',
|
421 |
+
]
|
422 |
+
);
|
423 |
+
$element->add_responsive_control(
|
424 |
+
'_ob_gravatar_bord_rad',
|
425 |
+
[
|
426 |
+
'label' => __( 'Border Radius', 'ooohboi-steroids' ),
|
427 |
+
'type' => Controls_Manager::DIMENSIONS,
|
428 |
+
'size_units' => [ 'px', '%' ],
|
429 |
+
'selectors' => [
|
430 |
+
'{{WRAPPER}}.ob-commentz #comments img.avatar' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
431 |
+
],
|
432 |
+
'condition' => [
|
433 |
+
'_ob_commentz_use' => 'yes',
|
434 |
+
'_ob_commentz_show_gravatar!' => 'none',
|
435 |
+
],
|
436 |
+
]
|
437 |
+
);
|
438 |
+
|
439 |
+
$element->end_popover(); // popover Gravatar styles end
|
440 |
+
|
441 |
+
// --------------------------------------------------------------------------------------------- CONTROL DIVIDER !!!!!
|
442 |
+
$element->add_control(
|
443 |
+
'_ob_dummy_separator',
|
444 |
+
[
|
445 |
+
'type' => Controls_Manager::DIVIDER,
|
446 |
+
'condition' => [
|
447 |
+
'_ob_commentz_use' => 'yes',
|
448 |
+
],
|
449 |
+
]
|
450 |
+
);
|
451 |
+
|
452 |
+
// --------------------------------------------------------------------------------------------- CONTROL Meta font-family
|
453 |
+
$element->add_group_control(
|
454 |
+
Group_Control_Typography::get_type(),
|
455 |
+
[
|
456 |
+
'name' => '_ob_meta_typo_user',
|
457 |
+
'label' => __( 'Meta-data User', 'ooohboi-steroids' ),
|
458 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
459 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments .comment-author',
|
460 |
+
'condition' => [
|
461 |
+
'_ob_commentz_use' => 'yes',
|
462 |
+
],
|
463 |
+
]
|
464 |
+
);
|
465 |
+
$element->add_group_control(
|
466 |
+
Group_Control_Typography::get_type(),
|
467 |
+
[
|
468 |
+
'name' => '_ob_meta_typo_time',
|
469 |
+
'label' => __( 'Meta-data Time', 'ooohboi-steroids' ),
|
470 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
471 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments .comment-metadata',
|
472 |
+
'condition' => [
|
473 |
+
'_ob_commentz_use' => 'yes',
|
474 |
+
],
|
475 |
+
]
|
476 |
+
);
|
477 |
+
|
478 |
+
// --------------------------------------------------------------------------------------------- CONTROL Meta styles
|
479 |
+
$element->add_control(
|
480 |
+
'_ob_meta_style',
|
481 |
+
[
|
482 |
+
'label' => __( 'Meta-data style', 'ooohboi-steroids' ),
|
483 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
484 |
+
'return_value' => 'yes',
|
485 |
+
'condition' => [
|
486 |
+
'_ob_commentz_use' => 'yes',
|
487 |
+
],
|
488 |
+
]
|
489 |
+
);
|
490 |
+
|
491 |
+
$element->start_popover();
|
492 |
+
|
493 |
+
$element->add_control(
|
494 |
+
'_ob_meta_color',
|
495 |
+
[
|
496 |
+
'label' => __( 'Color', 'ooohboi-steroids' ),
|
497 |
+
'type' => Controls_Manager::COLOR,
|
498 |
+
'selectors' => [
|
499 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-meta' => 'color: {{VALUE}};',
|
500 |
+
],
|
501 |
+
'condition' => [
|
502 |
+
'_ob_commentz_use' => 'yes',
|
503 |
+
],
|
504 |
+
]
|
505 |
+
);
|
506 |
+
|
507 |
+
// ------------------------------------------------------------------------- CONTROL: Meta MARGINs
|
508 |
+
$element->add_responsive_control(
|
509 |
+
'_ob_meta_marginz',
|
510 |
+
[
|
511 |
+
'label' => __( 'Outer Margin', 'ooohboi-steroids' ),
|
512 |
+
'type' => Controls_Manager::DIMENSIONS,
|
513 |
+
'size_units' => [ 'px', 'em', '%' ],
|
514 |
+
'selectors' => [
|
515 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-meta' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
516 |
+
],
|
517 |
+
'condition' => [
|
518 |
+
'_ob_commentz_use' => 'yes',
|
519 |
+
],
|
520 |
+
]
|
521 |
+
);
|
522 |
+
|
523 |
+
$element->end_popover(); // popover Meta styles end
|
524 |
+
|
525 |
+
// --------------------------------------------------------------------------------------------- CONTROL DIVIDER !!!!!
|
526 |
+
$element->add_control(
|
527 |
+
'_ob_dummy_separator_2',
|
528 |
+
[
|
529 |
+
'type' => Controls_Manager::DIVIDER,
|
530 |
+
'condition' => [
|
531 |
+
'_ob_commentz_use' => 'yes',
|
532 |
+
],
|
533 |
+
]
|
534 |
+
);
|
535 |
+
|
536 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comment text
|
537 |
+
$element->add_group_control(
|
538 |
+
Group_Control_Typography::get_type(),
|
539 |
+
[
|
540 |
+
'name' => '_ob_comment_text_typo',
|
541 |
+
'label' => __( 'Comment text', 'ooohboi-steroids' ),
|
542 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
543 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments .comment-content',
|
544 |
+
'condition' => [
|
545 |
+
'_ob_commentz_use' => 'yes',
|
546 |
+
],
|
547 |
+
]
|
548 |
+
);
|
549 |
+
|
550 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comment text styles
|
551 |
+
$element->add_control(
|
552 |
+
'_ob_comment_text_style',
|
553 |
+
[
|
554 |
+
'label' => __( 'Comment text style', 'ooohboi-steroids' ),
|
555 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
556 |
+
'return_value' => 'yes',
|
557 |
+
'condition' => [
|
558 |
+
'_ob_commentz_use' => 'yes',
|
559 |
+
],
|
560 |
+
]
|
561 |
+
);
|
562 |
+
|
563 |
+
$element->start_popover();
|
564 |
+
|
565 |
+
// ------------------------------------------------------------------------- CONTROL: Text Color
|
566 |
+
$element->add_control(
|
567 |
+
'_ob_comment_text_color',
|
568 |
+
[
|
569 |
+
'label' => __( 'Color', 'ooohboi-steroids' ),
|
570 |
+
'type' => Controls_Manager::COLOR,
|
571 |
+
'selectors' => [
|
572 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-content' => 'color: {{VALUE}};',
|
573 |
+
],
|
574 |
+
'condition' => [
|
575 |
+
'_ob_commentz_use' => 'yes',
|
576 |
+
],
|
577 |
+
]
|
578 |
+
);
|
579 |
+
|
580 |
+
// ------------------------------------------------------------------------- CONTROL: MARGINs
|
581 |
+
$element->add_responsive_control(
|
582 |
+
'_ob_comment_text_marginz',
|
583 |
+
[
|
584 |
+
'label' => __( 'Margin', 'ooohboi-steroids' ),
|
585 |
+
'type' => Controls_Manager::DIMENSIONS,
|
586 |
+
'size_units' => [ 'px', 'em', '%' ],
|
587 |
+
'selectors' => [
|
588 |
+
'{{WRAPPER}}.ob-commentz #comments .comment-content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
589 |
+
],
|
590 |
+
'condition' => [
|
591 |
+
'_ob_commentz_use' => 'yes',
|
592 |
+
],
|
593 |
+
]
|
594 |
+
);
|
595 |
+
|
596 |
+
$element->end_popover(); // popover Comment text styles end
|
597 |
+
|
598 |
+
// --------------------------------------------------------------------------------------------- CONTROL DIVIDER !!!!!
|
599 |
+
$element->add_control(
|
600 |
+
'_ob_dummy_separator_3',
|
601 |
+
[
|
602 |
+
'type' => Controls_Manager::DIVIDER,
|
603 |
+
'condition' => [
|
604 |
+
'_ob_commentz_use' => 'yes',
|
605 |
+
],
|
606 |
+
]
|
607 |
+
);
|
608 |
+
|
609 |
+
// --------------------------------------------------------------------------------------------- CONTROL REPLY
|
610 |
+
$element->add_group_control(
|
611 |
+
Group_Control_Typography::get_type(),
|
612 |
+
[
|
613 |
+
'name' => '_ob_reply_typo',
|
614 |
+
'label' => __( 'Reply button', 'ooohboi-steroids' ),
|
615 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
616 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link',
|
617 |
+
'condition' => [
|
618 |
+
'_ob_commentz_use' => 'yes',
|
619 |
+
],
|
620 |
+
]
|
621 |
+
);
|
622 |
+
|
623 |
+
// --------------------------------------------------------------------------------------------- CONTROL REPLY styles
|
624 |
+
$element->add_control(
|
625 |
+
'_ob_reply_style',
|
626 |
+
[
|
627 |
+
'label' => __( 'Reply button style', 'ooohboi-steroids' ),
|
628 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
629 |
+
'return_value' => 'yes',
|
630 |
+
'condition' => [
|
631 |
+
'_ob_commentz_use' => 'yes',
|
632 |
+
],
|
633 |
+
]
|
634 |
+
);
|
635 |
+
|
636 |
+
$element->start_popover();
|
637 |
+
|
638 |
+
// ------------------------------------------------------------------------- CONTROL: Button alignment
|
639 |
+
$element->add_responsive_control(
|
640 |
+
'_ob_reply_align',
|
641 |
+
[
|
642 |
+
'label' => __( 'Align button', 'ooohboi-steroids' ),
|
643 |
+
'type' => Controls_Manager::SELECT,
|
644 |
+
'default' => 'left',
|
645 |
+
'options' => [
|
646 |
+
'left' => __( 'Left', 'ooohboi-steroids' ),
|
647 |
+
'center' => __( 'Center', 'ooohboi-steroids' ),
|
648 |
+
'right' => __( 'Right', 'ooohboi-steroids' ),
|
649 |
+
],
|
650 |
+
'selectors' => [
|
651 |
+
'{{WRAPPER}}.ob-commentz #comments .reply' => 'text-align: {{VALUE}};',
|
652 |
+
],
|
653 |
+
'condition' => [
|
654 |
+
'_ob_commentz_use' => 'yes',
|
655 |
+
],
|
656 |
+
]
|
657 |
+
);
|
658 |
+
|
659 |
+
// ------------------------------------------------------------------------- CONTROL: Text Color
|
660 |
+
$element->add_control(
|
661 |
+
'_ob_reply_text_color',
|
662 |
+
[
|
663 |
+
'label' => __( 'Text color normal', 'ooohboi-steroids' ),
|
664 |
+
'type' => Controls_Manager::COLOR,
|
665 |
+
'selectors' => [
|
666 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'color: {{VALUE}};',
|
667 |
+
],
|
668 |
+
'condition' => [
|
669 |
+
'_ob_commentz_use' => 'yes',
|
670 |
+
],
|
671 |
+
]
|
672 |
+
);
|
673 |
+
|
674 |
+
// ------------------------------------------------------------------------- CONTROL: Text Color Hover
|
675 |
+
$element->add_control(
|
676 |
+
'_ob_reply_text_color_hover',
|
677 |
+
[
|
678 |
+
'label' => __( 'Text color hover', 'ooohboi-steroids' ),
|
679 |
+
'type' => Controls_Manager::COLOR,
|
680 |
+
'selectors' => [
|
681 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link:hover' => 'color: {{VALUE}};',
|
682 |
+
],
|
683 |
+
'condition' => [
|
684 |
+
'_ob_commentz_use' => 'yes',
|
685 |
+
],
|
686 |
+
]
|
687 |
+
);
|
688 |
+
|
689 |
+
// ------------------------------------------------------------------------- CONTROL: BG Color
|
690 |
+
|
691 |
+
$element->add_control(
|
692 |
+
'_ob_reply_bg_color',
|
693 |
+
[
|
694 |
+
'label' => __( 'Background color normal', 'ooohboi-steroids' ),
|
695 |
+
'type' => Controls_Manager::COLOR,
|
696 |
+
'default' => '#00000000',
|
697 |
+
'selectors' => [
|
698 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'background-color: {{VALUE}};',
|
699 |
+
],
|
700 |
+
'condition' => [
|
701 |
+
'_ob_commentz_use' => 'yes',
|
702 |
+
],
|
703 |
+
]
|
704 |
+
);
|
705 |
+
|
706 |
+
// ------------------------------------------------------------------------- CONTROL: BG Color Hover
|
707 |
+
|
708 |
+
$element->add_control(
|
709 |
+
'_ob_reply_bg_hover',
|
710 |
+
[
|
711 |
+
'label' => __( 'Background color hover', 'ooohboi-steroids' ),
|
712 |
+
'type' => Controls_Manager::COLOR,
|
713 |
+
'default' => '#00000000',
|
714 |
+
'selectors' => [
|
715 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link:hover' => 'background-color: {{VALUE}};',
|
716 |
+
],
|
717 |
+
'condition' => [
|
718 |
+
'_ob_commentz_use' => 'yes',
|
719 |
+
],
|
720 |
+
]
|
721 |
+
);
|
722 |
+
|
723 |
+
// ------------------------------------------------------------------------- CONTROL: PADDINGs
|
724 |
+
$element->add_responsive_control(
|
725 |
+
'_ob_reply_padding',
|
726 |
+
[
|
727 |
+
'label' => __( 'Padding', 'ooohboi-steroids' ),
|
728 |
+
'type' => Controls_Manager::DIMENSIONS,
|
729 |
+
'size_units' => [ 'px', 'em', '%' ],
|
730 |
+
'selectors' => [
|
731 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'display: inline-block; padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
732 |
+
],
|
733 |
+
'condition' => [
|
734 |
+
'_ob_commentz_use' => 'yes',
|
735 |
+
],
|
736 |
+
]
|
737 |
+
);
|
738 |
+
|
739 |
+
// ------------------------------------------------------------------------- CONTROL: MARGINz
|
740 |
+
$element->add_responsive_control(
|
741 |
+
'_ob_reply_margin',
|
742 |
+
[
|
743 |
+
'label' => __( 'Margin', 'ooohboi-steroids' ),
|
744 |
+
'type' => Controls_Manager::DIMENSIONS,
|
745 |
+
'size_units' => [ 'px', 'em', '%' ],
|
746 |
+
'selectors' => [
|
747 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
748 |
+
],
|
749 |
+
'condition' => [
|
750 |
+
'_ob_commentz_use' => 'yes',
|
751 |
+
],
|
752 |
+
]
|
753 |
+
);
|
754 |
+
|
755 |
+
// --------------------------------------------------------------------------------------------- CONTROL REPLY border props
|
756 |
+
$element->add_control(
|
757 |
+
'_ob_reply_bord_color',
|
758 |
+
[
|
759 |
+
'label' => __( 'Border color normal', 'ooohboi-steroids' ),
|
760 |
+
'type' => Controls_Manager::COLOR,
|
761 |
+
'selectors' => [
|
762 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'border-color: {{VALUE}};',
|
763 |
+
],
|
764 |
+
'condition' => [
|
765 |
+
'_ob_commentz_use' => 'yes',
|
766 |
+
],
|
767 |
+
]
|
768 |
+
);
|
769 |
+
$element->add_control(
|
770 |
+
'_ob_reply_bord_color_hover',
|
771 |
+
[
|
772 |
+
'label' => __( 'Border color hover', 'ooohboi-steroids' ),
|
773 |
+
'type' => Controls_Manager::COLOR,
|
774 |
+
'selectors' => [
|
775 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link:hover' => 'border-color: {{VALUE}};',
|
776 |
+
],
|
777 |
+
'condition' => [
|
778 |
+
'_ob_commentz_use' => 'yes',
|
779 |
+
],
|
780 |
+
]
|
781 |
+
);
|
782 |
+
$element->add_responsive_control(
|
783 |
+
'_ob_reply_bord_width',
|
784 |
+
[
|
785 |
+
'label' => __( 'Border Width', 'ooohboi-steroids' ),
|
786 |
+
'type' => Controls_Manager::DIMENSIONS,
|
787 |
+
'size_units' => [ 'px' ],
|
788 |
+
'selectors' => [
|
789 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'border-style: solid; border-width: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
790 |
+
],
|
791 |
+
'condition' => [
|
792 |
+
'_ob_commentz_use' => 'yes',
|
793 |
+
],
|
794 |
+
]
|
795 |
+
);
|
796 |
+
$element->add_responsive_control(
|
797 |
+
'_ob_reply_bord_rad',
|
798 |
+
[
|
799 |
+
'label' => __( 'Border Radius', 'ooohboi-steroids' ),
|
800 |
+
'type' => Controls_Manager::DIMENSIONS,
|
801 |
+
'size_units' => [ 'px', '%' ],
|
802 |
+
'selectors' => [
|
803 |
+
'{{WRAPPER}}.ob-commentz #comments .reply a.comment-reply-link' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
804 |
+
],
|
805 |
+
'condition' => [
|
806 |
+
'_ob_commentz_use' => 'yes',
|
807 |
+
],
|
808 |
+
]
|
809 |
+
);
|
810 |
+
|
811 |
+
$element->end_popover(); // popover Comment text styles end
|
812 |
+
|
813 |
+
// --------------------------------------------------------------------------------------------- CONTROL DIVIDER !!!!!
|
814 |
+
|
815 |
+
$element->add_control(
|
816 |
+
'_ob_dummy_separator_4',
|
817 |
+
[
|
818 |
+
'type' => Controls_Manager::DIVIDER,
|
819 |
+
'condition' => [
|
820 |
+
'_ob_commentz_use' => 'yes',
|
821 |
+
],
|
822 |
+
]
|
823 |
+
);
|
824 |
+
|
825 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comment form heading
|
826 |
+
|
827 |
+
$element->add_group_control(
|
828 |
+
Group_Control_Typography::get_type(),
|
829 |
+
[
|
830 |
+
'name' => '_ob_comment_form_title_typo',
|
831 |
+
'label' => __( 'Comment form heading', 'ooohboi-steroids' ),
|
832 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
833 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments #reply-title',
|
834 |
+
'condition' => [
|
835 |
+
'_ob_commentz_use' => 'yes',
|
836 |
+
],
|
837 |
+
]
|
838 |
+
);
|
839 |
+
|
840 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comment form heading styles
|
841 |
+
|
842 |
+
$element->add_control(
|
843 |
+
'_ob_comment_form_title',
|
844 |
+
[
|
845 |
+
'label' => __( 'Comment form heading style', 'ooohboi-steroids' ),
|
846 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
847 |
+
'return_value' => 'yes',
|
848 |
+
'condition' => [
|
849 |
+
'_ob_commentz_use' => 'yes',
|
850 |
+
],
|
851 |
+
]
|
852 |
+
);
|
853 |
+
|
854 |
+
$element->start_popover();
|
855 |
+
|
856 |
+
// --------------------------------------------------------------------------------------------- CONTROL: Comment form heading COLOR
|
857 |
+
$element->add_control(
|
858 |
+
'_ob_comment_form_title_color',
|
859 |
+
[
|
860 |
+
'label' => __( 'Color', 'ooohboi-steroids' ),
|
861 |
+
'type' => Controls_Manager::COLOR,
|
862 |
+
'default' => '#000000',
|
863 |
+
'selectors' => [
|
864 |
+
'{{WRAPPER}}.ob-commentz #comments #reply-title' => 'color: {{VALUE}};',
|
865 |
+
],
|
866 |
+
'condition' => [
|
867 |
+
'_ob_commentz_use' => 'yes',
|
868 |
+
],
|
869 |
+
]
|
870 |
+
);
|
871 |
+
|
872 |
+
// ------------------------------------------------------------------------- CONTROL: Comments title alignment ----- Flex item can't be aligned
|
873 |
+
/*
|
874 |
+
$element->add_responsive_control(
|
875 |
+
'_ob_comment_form_title_align',
|
876 |
+
[
|
877 |
+
'label' => __( 'Text alignment', 'ooohboi-steroids' ),
|
878 |
+
'type' => Controls_Manager::SELECT,
|
879 |
+
'default' => 'left',
|
880 |
+
'options' => [
|
881 |
+
'left' => __( 'Left', 'ooohboi-steroids' ),
|
882 |
+
'center' => __( 'Center', 'ooohboi-steroids' ),
|
883 |
+
'right' => __( 'Right', 'ooohboi-steroids' ),
|
884 |
+
],
|
885 |
+
'selectors' => [
|
886 |
+
'{{WRAPPER}}.ob-commentz #comments #reply-title' => 'text-align: {{VALUE}};',
|
887 |
+
],
|
888 |
+
'condition' => [
|
889 |
+
'_ob_commentz_use' => 'yes',
|
890 |
+
],
|
891 |
+
]
|
892 |
+
);
|
893 |
+
*/
|
894 |
+
// ------------------------------------------------------------------------- CONTROL: Comments title MARGIN
|
895 |
+
$element->add_responsive_control(
|
896 |
+
'_ob_comment_form_title_marginz',
|
897 |
+
[
|
898 |
+
'label' => __( 'Margin', 'ooohboi-steroids' ),
|
899 |
+
'type' => Controls_Manager::DIMENSIONS,
|
900 |
+
'size_units' => [ 'px', 'em', '%' ],
|
901 |
+
'default' => [
|
902 |
+
'unit' => 'px',
|
903 |
+
'size' => 0,
|
904 |
+
],
|
905 |
+
'selectors' => [
|
906 |
+
'{{WRAPPER}}.ob-commentz #comments #reply-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
907 |
+
],
|
908 |
+
'condition' => [
|
909 |
+
'_ob_commentz_use' => 'yes',
|
910 |
+
],
|
911 |
+
]
|
912 |
+
);
|
913 |
+
|
914 |
+
$element->end_popover(); // popover Comment form styles end
|
915 |
+
|
916 |
+
// --------------------------------------------------------------------------------------------- CONTROL Comment form heading styles
|
917 |
+
|
918 |
+
$element->add_control(
|
919 |
+
'_ob_comment_form_styles',
|
920 |
+
[
|
921 |
+
'label' => __( 'Comment form style', 'ooohboi-steroids' ),
|
922 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
923 |
+
'return_value' => 'yes',
|
924 |
+
'condition' => [
|
925 |
+
'_ob_commentz_use' => 'yes',
|
926 |
+
],
|
927 |
+
]
|
928 |
+
);
|
929 |
+
|
930 |
+
$element->start_popover();
|
931 |
+
|
932 |
+
// ------------------------------------------------------------------------- CONTROL: Comment form border
|
933 |
+
$element->add_group_control(
|
934 |
+
Group_Control_Border::get_type(), [
|
935 |
+
'name' => '_ob_comment_form_border',
|
936 |
+
'label' => __( 'Border', 'ooohboi-steroids' ),
|
937 |
+
'default' => 0,
|
938 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments #respond',
|
939 |
+
]
|
940 |
+
);
|
941 |
+
$element->add_responsive_control(
|
942 |
+
'_ob_comment_form_bord_rad',
|
943 |
+
[
|
944 |
+
'label' => __( 'Border Radius', 'ooohboi-steroids' ),
|
945 |
+
'type' => Controls_Manager::DIMENSIONS,
|
946 |
+
'size_units' => [ 'px', '%' ],
|
947 |
+
'selectors' => [
|
948 |
+
'{{WRAPPER}}.ob-commentz #comments #respond' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
949 |
+
],
|
950 |
+
'condition' => [
|
951 |
+
'_ob_commentz_use' => 'yes',
|
952 |
+
],
|
953 |
+
]
|
954 |
+
);
|
955 |
+
// ------------------------------------------------------------------------- CONTROL: Comment form BG Color
|
956 |
+
$element->add_control(
|
957 |
+
'_ob_comment_form_bg_color',
|
958 |
+
[
|
959 |
+
'label' => __( 'Background color', 'ooohboi-steroids' ),
|
960 |
+
'type' => Controls_Manager::COLOR,
|
961 |
+
'default' => '#00000000',
|
962 |
+
'selectors' => [
|
963 |
+
'{{WRAPPER}}.ob-commentz #comments #respond' => 'background-color: {{VALUE}};',
|
964 |
+
],
|
965 |
+
'condition' => [
|
966 |
+
'_ob_commentz_use' => 'yes',
|
967 |
+
],
|
968 |
+
]
|
969 |
+
);
|
970 |
+
// ------------------------------------------------------------------------- CONTROL: Comment form PADDING
|
971 |
+
$element->add_responsive_control(
|
972 |
+
'_ob_comment_form_paddingz',
|
973 |
+
[
|
974 |
+
'label' => __( 'Padding', 'ooohboi-steroids' ),
|
975 |
+
'type' => Controls_Manager::DIMENSIONS,
|
976 |
+
'size_units' => [ 'px', 'em', '%' ],
|
977 |
+
'default' => [
|
978 |
+
'unit' => 'px',
|
979 |
+
'size' => 0,
|
980 |
+
],
|
981 |
+
'selectors' => [
|
982 |
+
'{{WRAPPER}}.ob-commentz #comments #respond' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
983 |
+
],
|
984 |
+
'condition' => [
|
985 |
+
'_ob_commentz_use' => 'yes',
|
986 |
+
],
|
987 |
+
]
|
988 |
+
);
|
989 |
+
// ------------------------------------------------------------------------- CONTROL: Comment form MARGIN
|
990 |
+
$element->add_responsive_control(
|
991 |
+
'_ob_comment_form_marginz',
|
992 |
+
[
|
993 |
+
'label' => __( 'Margin', 'ooohboi-steroids' ),
|
994 |
+
'type' => Controls_Manager::DIMENSIONS,
|
995 |
+
'size_units' => [ 'px', 'em', '%' ],
|
996 |
+
'default' => [
|
997 |
+
'unit' => 'px',
|
998 |
+
'size' => 0,
|
999 |
+
],
|
1000 |
+
'selectors' => [
|
1001 |
+
'{{WRAPPER}}.ob-commentz #comments #respond' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1002 |
+
],
|
1003 |
+
'condition' => [
|
1004 |
+
'_ob_commentz_use' => 'yes',
|
1005 |
+
],
|
1006 |
+
]
|
1007 |
+
);
|
1008 |
+
|
1009 |
+
$element->end_popover(); // popover Comment form styles end
|
1010 |
+
|
1011 |
+
// --------------------------------------------------------------------------------------------- CONTROL DIVIDER !!!!!
|
1012 |
+
$element->add_control(
|
1013 |
+
'_ob_dummy_separator_x',
|
1014 |
+
[
|
1015 |
+
'type' => Controls_Manager::DIVIDER,
|
1016 |
+
'condition' => [
|
1017 |
+
'_ob_commentz_use' => 'yes',
|
1018 |
+
],
|
1019 |
+
]
|
1020 |
+
);
|
1021 |
+
|
1022 |
+
// --------------------------------------------------------------------------------------------- CONTROL Navig
|
1023 |
+
$element->add_group_control(
|
1024 |
+
Group_Control_Typography::get_type(),
|
1025 |
+
[
|
1026 |
+
'name' => '_ob_navig_typo',
|
1027 |
+
'label' => __( 'Comments Nav', 'ooohboi-steroids' ),
|
1028 |
+
'scheme' => Scheme_Typography::TYPOGRAPHY_3,
|
1029 |
+
'selector' => '{{WRAPPER}}.ob-commentz #comments .nav-links',
|
1030 |
+
'condition' => [
|
1031 |
+
'_ob_commentz_use' => 'yes',
|
1032 |
+
],
|
1033 |
+
]
|
1034 |
+
);
|
1035 |
+
|
1036 |
+
// --------------------------------------------------------------------------------------------- CONTROL Navig styles
|
1037 |
+
$element->add_control(
|
1038 |
+
'_ob_navig_style',
|
1039 |
+
[
|
1040 |
+
'label' => __( 'Comments Nav style', 'ooohboi-steroids' ),
|
1041 |
+
'type' => Controls_Manager::POPOVER_TOGGLE,
|
1042 |
+
'return_value' => 'yes',
|
1043 |
+
'condition' => [
|
1044 |
+
'_ob_commentz_use' => 'yes',
|
1045 |
+
],
|
1046 |
+
]
|
1047 |
+
);
|
1048 |
+
|
1049 |
+
$element->start_popover();
|
1050 |
+
|
1051 |
+
// ------------------------------------------------------------------------- CONTROL: MARGINz
|
1052 |
+
$element->add_responsive_control(
|
1053 |
+
'_ob_navig_margin',
|
1054 |
+
[
|
1055 |
+
'label' => __( 'Margin', 'ooohboi-steroids' ),
|
1056 |
+
'type' => Controls_Manager::DIMENSIONS,
|
1057 |
+
'size_units' => [ 'px', 'em', '%' ],
|
1058 |
+
'selectors' => [
|
1059 |
+
'{{WRAPPER}}.ob-commentz #comments .nav-links' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
1060 |
+
],
|
1061 |
+
'condition' => [
|
1062 |
+
'_ob_commentz_use' => 'yes',
|
1063 |
+
],
|
1064 |
+
]
|
1065 |
+
);
|
1066 |
+
|
1067 |
+
$element->end_popover(); // popover Comment form styles end
|
1068 |
+
|
1069 |
+
$element->end_controls_section();
|
1070 |
+
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
}
|
inc/common-functions.php
CHANGED
@@ -96,6 +96,12 @@ $options_page = array(
|
|
96 |
'type' => 'checkbox',
|
97 |
'text' => esc_attr__( 'Allows you to add the clip-path to the Image widget for Normal and Hover state.', 'ooohboi-steroids' ),
|
98 |
'checked' => 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
),
|
100 |
),
|
101 |
),
|
96 |
'type' => 'checkbox',
|
97 |
'text' => esc_attr__( 'Allows you to add the clip-path to the Image widget for Normal and Hover state.', 'ooohboi-steroids' ),
|
98 |
'checked' => 1,
|
99 |
+
),
|
100 |
+
'ob_use_commentz' => array(
|
101 |
+
'title' => 'COMMENTZ',
|
102 |
+
'type' => 'checkbox',
|
103 |
+
'text' => esc_attr__( 'Allows you to style up the post comments.', 'ooohboi-steroids' ),
|
104 |
+
'checked' => 1,
|
105 |
),
|
106 |
),
|
107 |
),
|
lang/ooohboi-steroids.pot
CHANGED
@@ -3,8 +3,8 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: OoohBoi Steroids for Elementor\n"
|
6 |
-
"POT-Creation-Date: 2020-09-
|
7 |
-
"PO-Revision-Date: 2020-09-
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -32,12 +32,13 @@ msgid ""
|
|
32 |
msgstr ""
|
33 |
|
34 |
#: controls/ooohboi-breaking-bad.php:65 controls/ooohboi-breaking-bad.php:214
|
35 |
-
#: controls/ooohboi-butter-button.php:71 controls/ooohboi-
|
36 |
-
#: controls/ooohboi-glider.php:
|
37 |
-
#: controls/ooohboi-glider.php:
|
38 |
-
#: controls/ooohboi-glider.php:
|
39 |
-
#: controls/ooohboi-glider.php:
|
40 |
-
#: controls/ooohboi-
|
|
|
41 |
#: controls/ooohboi-overlay-underlay.php:1222 controls/ooohboi-paginini.php:220
|
42 |
#: controls/ooohboi-perspektive.php:74 controls/ooohboi-photomorph.php:66
|
43 |
#: controls/ooohboi-photomorph.php:142 controls/ooohboi-shadough.php:50
|
@@ -45,12 +46,13 @@ msgid "Yes"
|
|
45 |
msgstr ""
|
46 |
|
47 |
#: controls/ooohboi-breaking-bad.php:66 controls/ooohboi-breaking-bad.php:215
|
48 |
-
#: controls/ooohboi-butter-button.php:72 controls/ooohboi-
|
49 |
-
#: controls/ooohboi-glider.php:
|
50 |
-
#: controls/ooohboi-glider.php:
|
51 |
-
#: controls/ooohboi-glider.php:
|
52 |
-
#: controls/ooohboi-glider.php:
|
53 |
-
#: controls/ooohboi-
|
|
|
54 |
#: controls/ooohboi-overlay-underlay.php:1223 controls/ooohboi-paginini.php:221
|
55 |
#: controls/ooohboi-perspektive.php:75 controls/ooohboi-photomorph.php:67
|
56 |
#: controls/ooohboi-photomorph.php:143 controls/ooohboi-shadough.php:51
|
@@ -66,6 +68,7 @@ msgid "Start"
|
|
66 |
msgstr ""
|
67 |
|
68 |
#: controls/ooohboi-breaking-bad.php:81 controls/ooohboi-breaking-bad.php:124
|
|
|
69 |
msgid "Center"
|
70 |
msgstr ""
|
71 |
|
@@ -149,8 +152,9 @@ msgstr ""
|
|
149 |
msgid "Transition Duration"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: controls/ooohboi-butter-button.php:158 controls/ooohboi-
|
153 |
-
#: controls/ooohboi-
|
|
|
154 |
msgid "Padding"
|
155 |
msgstr ""
|
156 |
|
@@ -170,8 +174,10 @@ msgid "Text Shadow"
|
|
170 |
msgstr ""
|
171 |
|
172 |
#: controls/ooohboi-butter-button.php:233
|
173 |
-
#: controls/ooohboi-butter-button.php:346 controls/ooohboi-
|
174 |
-
#: controls/ooohboi-
|
|
|
|
|
175 |
#: controls/ooohboi-overlay-underlay.php:442
|
176 |
#: controls/ooohboi-overlay-underlay.php:980
|
177 |
#: controls/ooohboi-overlay-underlay.php:997 controls/ooohboi-paginini.php:146
|
@@ -180,7 +186,9 @@ msgid "Border"
|
|
180 |
msgstr ""
|
181 |
|
182 |
#: controls/ooohboi-butter-button.php:246
|
183 |
-
#: controls/ooohboi-butter-button.php:359 controls/ooohboi-
|
|
|
|
|
184 |
#: controls/ooohboi-glider.php:423 controls/ooohboi-overlaiz.php:374
|
185 |
#: controls/ooohboi-overlay-underlay.php:453
|
186 |
#: controls/ooohboi-overlay-underlay.php:1005 controls/ooohboi-paginini.php:154
|
@@ -198,6 +206,178 @@ msgstr ""
|
|
198 |
msgid "Hover"
|
199 |
msgstr ""
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
#: controls/ooohboi-glider.php:64
|
202 |
msgid "Create Slider?"
|
203 |
msgstr ""
|
@@ -292,10 +472,6 @@ msgstr ""
|
|
292 |
msgid "Pagination Color - Active"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: controls/ooohboi-glider.php:400
|
296 |
-
msgid "Size"
|
297 |
-
msgstr ""
|
298 |
-
|
299 |
#: controls/ooohboi-glider.php:441
|
300 |
msgid "Transition type"
|
301 |
msgstr ""
|
@@ -696,10 +872,6 @@ msgstr ""
|
|
696 |
msgid "Horizontal Spacing"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: controls/ooohboi-paginini.php:75
|
700 |
-
msgid "Margin"
|
701 |
-
msgstr ""
|
702 |
-
|
703 |
#: controls/ooohboi-paginini.php:91
|
704 |
msgid "Page Number Padding"
|
705 |
msgstr ""
|
@@ -1037,6 +1209,10 @@ msgid ""
|
|
1037 |
"state."
|
1038 |
msgstr ""
|
1039 |
|
|
|
|
|
|
|
|
|
1040 |
#. Plugin Name of the plugin/theme
|
1041 |
msgid "OoohBoi Steroids for Elementor"
|
1042 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
5 |
"Project-Id-Version: OoohBoi Steroids for Elementor\n"
|
6 |
+
"POT-Creation-Date: 2020-09-12 13:25+0200\n"
|
7 |
+
"PO-Revision-Date: 2020-09-12 13:25+0200\n"
|
8 |
"Last-Translator: \n"
|
9 |
"Language-Team: \n"
|
10 |
"MIME-Version: 1.0\n"
|
32 |
msgstr ""
|
33 |
|
34 |
#: controls/ooohboi-breaking-bad.php:65 controls/ooohboi-breaking-bad.php:214
|
35 |
+
#: controls/ooohboi-butter-button.php:71 controls/ooohboi-commentz.php:71
|
36 |
+
#: controls/ooohboi-glider.php:68 controls/ooohboi-glider.php:83
|
37 |
+
#: controls/ooohboi-glider.php:134 controls/ooohboi-glider.php:319
|
38 |
+
#: controls/ooohboi-glider.php:463 controls/ooohboi-glider.php:503
|
39 |
+
#: controls/ooohboi-glider.php:538 controls/ooohboi-glider.php:556
|
40 |
+
#: controls/ooohboi-harakiri.php:81 controls/ooohboi-overlaiz.php:61
|
41 |
+
#: controls/ooohboi-overlay-underlay.php:1203
|
42 |
#: controls/ooohboi-overlay-underlay.php:1222 controls/ooohboi-paginini.php:220
|
43 |
#: controls/ooohboi-perspektive.php:74 controls/ooohboi-photomorph.php:66
|
44 |
#: controls/ooohboi-photomorph.php:142 controls/ooohboi-shadough.php:50
|
46 |
msgstr ""
|
47 |
|
48 |
#: controls/ooohboi-breaking-bad.php:66 controls/ooohboi-breaking-bad.php:215
|
49 |
+
#: controls/ooohboi-butter-button.php:72 controls/ooohboi-commentz.php:72
|
50 |
+
#: controls/ooohboi-glider.php:69 controls/ooohboi-glider.php:84
|
51 |
+
#: controls/ooohboi-glider.php:135 controls/ooohboi-glider.php:320
|
52 |
+
#: controls/ooohboi-glider.php:464 controls/ooohboi-glider.php:504
|
53 |
+
#: controls/ooohboi-glider.php:539 controls/ooohboi-glider.php:557
|
54 |
+
#: controls/ooohboi-harakiri.php:82 controls/ooohboi-overlaiz.php:62
|
55 |
+
#: controls/ooohboi-overlay-underlay.php:1204
|
56 |
#: controls/ooohboi-overlay-underlay.php:1223 controls/ooohboi-paginini.php:221
|
57 |
#: controls/ooohboi-perspektive.php:75 controls/ooohboi-photomorph.php:67
|
58 |
#: controls/ooohboi-photomorph.php:143 controls/ooohboi-shadough.php:51
|
68 |
msgstr ""
|
69 |
|
70 |
#: controls/ooohboi-breaking-bad.php:81 controls/ooohboi-breaking-bad.php:124
|
71 |
+
#: controls/ooohboi-commentz.php:134 controls/ooohboi-commentz.php:647
|
72 |
msgid "Center"
|
73 |
msgstr ""
|
74 |
|
152 |
msgid "Transition Duration"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: controls/ooohboi-butter-button.php:158 controls/ooohboi-commentz.php:150
|
156 |
+
#: controls/ooohboi-commentz.php:727 controls/ooohboi-commentz.php:974
|
157 |
+
#: controls/ooohboi-glider.php:253 controls/ooohboi-paginini.php:59
|
158 |
msgid "Padding"
|
159 |
msgstr ""
|
160 |
|
174 |
msgstr ""
|
175 |
|
176 |
#: controls/ooohboi-butter-button.php:233
|
177 |
+
#: controls/ooohboi-butter-button.php:346 controls/ooohboi-commentz.php:247
|
178 |
+
#: controls/ooohboi-commentz.php:418 controls/ooohboi-commentz.php:936
|
179 |
+
#: controls/ooohboi-overlaiz.php:343 controls/ooohboi-overlaiz.php:362
|
180 |
+
#: controls/ooohboi-overlay-underlay.php:425
|
181 |
#: controls/ooohboi-overlay-underlay.php:442
|
182 |
#: controls/ooohboi-overlay-underlay.php:980
|
183 |
#: controls/ooohboi-overlay-underlay.php:997 controls/ooohboi-paginini.php:146
|
186 |
msgstr ""
|
187 |
|
188 |
#: controls/ooohboi-butter-button.php:246
|
189 |
+
#: controls/ooohboi-butter-button.php:359 controls/ooohboi-commentz.php:255
|
190 |
+
#: controls/ooohboi-commentz.php:426 controls/ooohboi-commentz.php:799
|
191 |
+
#: controls/ooohboi-commentz.php:944 controls/ooohboi-glider.php:219
|
192 |
#: controls/ooohboi-glider.php:423 controls/ooohboi-overlaiz.php:374
|
193 |
#: controls/ooohboi-overlay-underlay.php:453
|
194 |
#: controls/ooohboi-overlay-underlay.php:1005 controls/ooohboi-paginini.php:154
|
206 |
msgid "Hover"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: controls/ooohboi-commentz.php:68
|
210 |
+
msgid "Enable Commentz"
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: controls/ooohboi-commentz.php:69
|
214 |
+
msgid "That will allow you to style up the post comments."
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: controls/ooohboi-commentz.php:85
|
218 |
+
msgid "Heading"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: controls/ooohboi-commentz.php:98
|
222 |
+
msgid "Heading style"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: controls/ooohboi-commentz.php:113 controls/ooohboi-commentz.php:496
|
226 |
+
#: controls/ooohboi-commentz.php:569 controls/ooohboi-commentz.php:860
|
227 |
+
msgid "Color"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: controls/ooohboi-commentz.php:129
|
231 |
+
msgid "Text alignment"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: controls/ooohboi-commentz.php:133 controls/ooohboi-commentz.php:646
|
235 |
+
msgid "Left"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#: controls/ooohboi-commentz.php:135 controls/ooohboi-commentz.php:648
|
239 |
+
msgid "Right"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: controls/ooohboi-commentz.php:169 controls/ooohboi-commentz.php:584
|
243 |
+
#: controls/ooohboi-commentz.php:743 controls/ooohboi-commentz.php:898
|
244 |
+
#: controls/ooohboi-commentz.php:993 controls/ooohboi-commentz.php:1055
|
245 |
+
#: controls/ooohboi-paginini.php:75
|
246 |
+
msgid "Margin"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: controls/ooohboi-commentz.php:202
|
250 |
+
msgid "Comment list style"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: controls/ooohboi-commentz.php:217
|
254 |
+
msgid "Comment body padding"
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: controls/ooohboi-commentz.php:232
|
258 |
+
msgid "Comment body margin"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: controls/ooohboi-commentz.php:270 controls/ooohboi-commentz.php:959
|
262 |
+
msgid "Background color"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: controls/ooohboi-commentz.php:285
|
266 |
+
msgid "Background color replies"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: controls/ooohboi-commentz.php:301
|
270 |
+
msgid "Child comments indent"
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: controls/ooohboi-commentz.php:333
|
274 |
+
msgid "Gravatar"
|
275 |
+
msgstr ""
|
276 |
+
|
277 |
+
#: controls/ooohboi-commentz.php:337
|
278 |
+
msgid "Hide"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: controls/ooohboi-commentz.php:338
|
282 |
+
msgid "Show"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: controls/ooohboi-commentz.php:354
|
286 |
+
msgid "Gravatar style"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: controls/ooohboi-commentz.php:370 controls/ooohboi-glider.php:400
|
290 |
+
msgid "Size"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: controls/ooohboi-commentz.php:401
|
294 |
+
msgid "Position"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: controls/ooohboi-commentz.php:457
|
298 |
+
msgid "Meta-data User"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: controls/ooohboi-commentz.php:469
|
302 |
+
msgid "Meta-data Time"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: controls/ooohboi-commentz.php:482
|
306 |
+
msgid "Meta-data style"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: controls/ooohboi-commentz.php:511
|
310 |
+
msgid "Outer Margin"
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: controls/ooohboi-commentz.php:541
|
314 |
+
msgid "Comment text"
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: controls/ooohboi-commentz.php:554
|
318 |
+
msgid "Comment text style"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: controls/ooohboi-commentz.php:614
|
322 |
+
msgid "Reply button"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: controls/ooohboi-commentz.php:627
|
326 |
+
msgid "Reply button style"
|
327 |
+
msgstr ""
|
328 |
+
|
329 |
+
#: controls/ooohboi-commentz.php:642
|
330 |
+
msgid "Align button"
|
331 |
+
msgstr ""
|
332 |
+
|
333 |
+
#: controls/ooohboi-commentz.php:663
|
334 |
+
msgid "Text color normal"
|
335 |
+
msgstr ""
|
336 |
+
|
337 |
+
#: controls/ooohboi-commentz.php:678
|
338 |
+
msgid "Text color hover"
|
339 |
+
msgstr ""
|
340 |
+
|
341 |
+
#: controls/ooohboi-commentz.php:694
|
342 |
+
msgid "Background color normal"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#: controls/ooohboi-commentz.php:711
|
346 |
+
msgid "Background color hover"
|
347 |
+
msgstr ""
|
348 |
+
|
349 |
+
#: controls/ooohboi-commentz.php:759
|
350 |
+
msgid "Border color normal"
|
351 |
+
msgstr ""
|
352 |
+
|
353 |
+
#: controls/ooohboi-commentz.php:772
|
354 |
+
msgid "Border color hover"
|
355 |
+
msgstr ""
|
356 |
+
|
357 |
+
#: controls/ooohboi-commentz.php:785
|
358 |
+
msgid "Border Width"
|
359 |
+
msgstr ""
|
360 |
+
|
361 |
+
#: controls/ooohboi-commentz.php:831
|
362 |
+
msgid "Comment form heading"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
#: controls/ooohboi-commentz.php:845
|
366 |
+
msgid "Comment form heading style"
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#: controls/ooohboi-commentz.php:921
|
370 |
+
msgid "Comment form style"
|
371 |
+
msgstr ""
|
372 |
+
|
373 |
+
#: controls/ooohboi-commentz.php:1027
|
374 |
+
msgid "Comments Nav"
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: controls/ooohboi-commentz.php:1040
|
378 |
+
msgid "Comments Nav style"
|
379 |
+
msgstr ""
|
380 |
+
|
381 |
#: controls/ooohboi-glider.php:64
|
382 |
msgid "Create Slider?"
|
383 |
msgstr ""
|
472 |
msgid "Pagination Color - Active"
|
473 |
msgstr ""
|
474 |
|
|
|
|
|
|
|
|
|
475 |
#: controls/ooohboi-glider.php:441
|
476 |
msgid "Transition type"
|
477 |
msgstr ""
|
872 |
msgid "Horizontal Spacing"
|
873 |
msgstr ""
|
874 |
|
|
|
|
|
|
|
|
|
875 |
#: controls/ooohboi-paginini.php:91
|
876 |
msgid "Page Number Padding"
|
877 |
msgstr ""
|
1209 |
"state."
|
1210 |
msgstr ""
|
1211 |
|
1212 |
+
#: inc/common-functions.php:103
|
1213 |
+
msgid "Allows you to style up the post comments."
|
1214 |
+
msgstr ""
|
1215 |
+
|
1216 |
#. Plugin Name of the plugin/theme
|
1217 |
msgid "OoohBoi Steroids for Elementor"
|
1218 |
msgstr ""
|
ooohboi-steroids.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: OoohBoi Steroids for Elementor
|
4 |
* Description: An awesome set of tools, options and settings that expand Elementor defaults. Instead of creating new Elementor Widgets, these act like an upgrade of existing options or the self-standing panels.
|
5 |
-
* Version: 1.5.
|
6 |
* Author: OoohBoi
|
7 |
* Author URI: https://www.youtube.com/c/OoohBoi
|
8 |
* Text Domain: ooohboi-steroids
|
@@ -31,7 +31,7 @@ final class OoohBoi_Steroids {
|
|
31 |
*
|
32 |
* @var string The plugin version.
|
33 |
*/
|
34 |
-
const VERSION = '1.5.
|
35 |
|
36 |
/**
|
37 |
* Minimum Elementor Version
|
@@ -213,6 +213,7 @@ final class OoohBoi_Steroids {
|
|
213 |
OoohBoi_Perspektive::init(); // OoohBoi Perspektive
|
214 |
OoohBoi_Shadough::init(); // OoohBoi Shadough
|
215 |
OoohBoi_PhotoMorph::init(); // OoohBoi PhotoMorph
|
|
|
216 |
} else {
|
217 |
// Init Extensions
|
218 |
if( isset( $ob_settings_options[ 'harakiri' ] ) && 'on' === $ob_settings_options[ 'harakiri' ] ) OoohBoi_Harakiri::init(); // OoohBoi Harakiri
|
@@ -228,7 +229,8 @@ final class OoohBoi_Steroids {
|
|
228 |
if( isset( $ob_settings_options[ 'butter_button' ] ) && 'on' === $ob_settings_options[ 'butter_button' ] ) OoohBoi_Butter_Button::init(); // OoohBoi Butter Button
|
229 |
if( isset( $ob_settings_options[ 'perspektive' ] ) && 'on' === $ob_settings_options[ 'perspektive' ] ) OoohBoi_Perspektive::init(); // OoohBoi Perspektive
|
230 |
if( isset( $ob_settings_options[ 'shadough' ] ) && 'on' === $ob_settings_options[ 'shadough' ] ) OoohBoi_Shadough::init(); // OoohBoi Shadough
|
231 |
-
if( isset( $ob_settings_options[ 'photo_morph' ] ) && 'on' === $ob_settings_options[ 'photo_morph' ] ) OoohBoi_PhotoMorph::init(); // OoohBoi PhotoMorph
|
|
|
232 |
}
|
233 |
|
234 |
}
|
@@ -301,6 +303,7 @@ final class OoohBoi_Steroids {
|
|
301 |
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-perspektive.php'; // OoohBoi Perspektive
|
302 |
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-shadough.php'; // OoohBoi Shadough
|
303 |
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-photomorph.php'; // OoohBoi PhotoMorph
|
|
|
304 |
|
305 |
}
|
306 |
|
2 |
/**
|
3 |
* Plugin Name: OoohBoi Steroids for Elementor
|
4 |
* Description: An awesome set of tools, options and settings that expand Elementor defaults. Instead of creating new Elementor Widgets, these act like an upgrade of existing options or the self-standing panels.
|
5 |
+
* Version: 1.5.1
|
6 |
* Author: OoohBoi
|
7 |
* Author URI: https://www.youtube.com/c/OoohBoi
|
8 |
* Text Domain: ooohboi-steroids
|
31 |
*
|
32 |
* @var string The plugin version.
|
33 |
*/
|
34 |
+
const VERSION = '1.5.1';
|
35 |
|
36 |
/**
|
37 |
* Minimum Elementor Version
|
213 |
OoohBoi_Perspektive::init(); // OoohBoi Perspektive
|
214 |
OoohBoi_Shadough::init(); // OoohBoi Shadough
|
215 |
OoohBoi_PhotoMorph::init(); // OoohBoi PhotoMorph
|
216 |
+
OoohBoi_Commentz::init(); // OoohBoi Commentz
|
217 |
} else {
|
218 |
// Init Extensions
|
219 |
if( isset( $ob_settings_options[ 'harakiri' ] ) && 'on' === $ob_settings_options[ 'harakiri' ] ) OoohBoi_Harakiri::init(); // OoohBoi Harakiri
|
229 |
if( isset( $ob_settings_options[ 'butter_button' ] ) && 'on' === $ob_settings_options[ 'butter_button' ] ) OoohBoi_Butter_Button::init(); // OoohBoi Butter Button
|
230 |
if( isset( $ob_settings_options[ 'perspektive' ] ) && 'on' === $ob_settings_options[ 'perspektive' ] ) OoohBoi_Perspektive::init(); // OoohBoi Perspektive
|
231 |
if( isset( $ob_settings_options[ 'shadough' ] ) && 'on' === $ob_settings_options[ 'shadough' ] ) OoohBoi_Shadough::init(); // OoohBoi Shadough
|
232 |
+
if( isset( $ob_settings_options[ 'photo_morph' ] ) && 'on' === $ob_settings_options[ 'photo_morph' ] ) OoohBoi_PhotoMorph::init(); // OoohBoi PhotoMorph
|
233 |
+
if( isset( $ob_settings_options[ 'commentz' ] ) && 'on' === $ob_settings_options[ 'commentz' ] ) OoohBoi_Commentz::init(); // OoohBoi Commentz
|
234 |
}
|
235 |
|
236 |
}
|
303 |
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-perspektive.php'; // OoohBoi Perspektive
|
304 |
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-shadough.php'; // OoohBoi Shadough
|
305 |
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-photomorph.php'; // OoohBoi PhotoMorph
|
306 |
+
include_once plugin_dir_path( __FILE__ ) . 'controls/ooohboi-commentz.php'; // OoohBoi Commentz
|
307 |
|
308 |
}
|
309 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page-builder, elementor, add-on, background-overlay, vertical text, ghost
|
|
4 |
Donate link: https://www.paypal.me/ooohboi
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.5
|
7 |
-
Stable tag: 1.5.
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0
|
@@ -19,9 +19,9 @@ Boost your Elementor with some fresh and yet innovative options.
|
|
19 |
|
20 |
An awesome set of tools, options and settings that expand Elementor defaults. Instead of creating new Elementor Widgets, these act like an upgrade of existing options or the self-standing panels thing.
|
21 |
|
22 |
-
= NEW ADD-ON NOW AVAILABLE -
|
23 |
|
24 |
-
|
25 |
|
26 |
= In the package so far =
|
27 |
|
@@ -70,7 +70,10 @@ This extension allows you to create the shadow that conforms the shape.
|
|
70 |
15. PHOTOMORPH
|
71 |
From now on you can add the clip-path to the Image widget for Normal and Hover state.
|
72 |
|
73 |
-
16.
|
|
|
|
|
|
|
74 |
|
75 |
== Installation ==
|
76 |
|
@@ -79,7 +82,7 @@ From now on you can add the clip-path to the Image widget for Normal and Hover s
|
|
79 |
|
80 |
== Upgrade Notice ==
|
81 |
|
82 |
-
1.5.
|
83 |
|
84 |
== Frequently Asked Questions ==
|
85 |
|
@@ -114,9 +117,12 @@ No, you don't. It'll work with both free version of Elementor and Elementor PRO.
|
|
114 |
17. PERSPEKTIVE options
|
115 |
18. SHADOUGH options
|
116 |
19. PHOTOMORPH options
|
117 |
-
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
120 |
= 1.5.0 =
|
121 |
- New feature added, PhotoMorph
|
122 |
- Glider, hash navigation disabled due to unwanted URL endings (#null)
|
@@ -162,67 +168,4 @@ No, you don't. It'll work with both free version of Elementor and Elementor PRO.
|
|
162 |
= 1.4.0 =
|
163 |
- Steroids are now Elementor 3.0 ready and still backwards compatible
|
164 |
- New feature added, Butter Button
|
165 |
-
- Teleporter, added control for the effect duration
|
166 |
-
|
167 |
-
= 1.3.5 =
|
168 |
-
- New feature added, Videomasq
|
169 |
-
- New feature added, the Baseline grid
|
170 |
-
- Teleporter, added option to position the content horizontally too (normal + hover)
|
171 |
-
- Teleporter, added option to set the content visibility
|
172 |
-
|
173 |
-
= 1.3.4 =
|
174 |
-
- Breaking Bad - new option: arrange the section columns in flex-direction "column"
|
175 |
-
- PoopArt - fixed problem with interactivity when either Overlay or Underlay is atop the host element
|
176 |
-
|
177 |
-
= 1.3.3 =
|
178 |
-
- New feature added: SEARCH COP
|
179 |
-
- Removed custom class names for inactive extensions (except PoopArt)
|
180 |
-
- PoopArt, fixed issue with Underlay's horizontal positioning
|
181 |
-
- z-index option added to Overlaiz extension
|
182 |
-
|
183 |
-
= 1.3.2 =
|
184 |
-
- Icon position fix for RTL
|
185 |
-
|
186 |
-
= 1.3.1 =
|
187 |
-
- New feature added: TELEPORTER - Awesome Column hover controls
|
188 |
-
- Overlaiz, fixed "Calc Height" bug
|
189 |
-
- Overlaiz, added box-shadow option
|
190 |
-
- Removed class name for inactive extensions
|
191 |
-
|
192 |
-
= 1.3.0 =
|
193 |
-
- New feature added: PHOTOGIRAFFE - Full-height Image Widget
|
194 |
-
- Breaking Bad scrollable column downgrade from being responsive to regular control
|
195 |
-
- Fixed Breaking Bad for Inner Section widget
|
196 |
-
- New Glider control added : allowTouchMove
|
197 |
-
|
198 |
-
= 1.2.1 =
|
199 |
-
- Fixed Glider control styles
|
200 |
-
- Added option to allow the column order control for Breaking Bad (columns part)
|
201 |
-
|
202 |
-
= 1.2.0 =
|
203 |
-
- New add-on has been added - GLIDER
|
204 |
-
- Fixed problem with non-editable Heading and Text Editor widgets
|
205 |
-
- Improved Overlaiz (z-index control added), fixed problem with responsiveness
|
206 |
-
- Fixed problem with Breaking Bad columns alignment
|
207 |
-
|
208 |
-
= 1.1.3 =
|
209 |
-
- All the options, across all add-ons are now fully responsive
|
210 |
-
|
211 |
-
= 1.1.2 =
|
212 |
-
- Fixed bug with scrollable columns
|
213 |
-
|
214 |
-
= 1.1.1 =
|
215 |
-
- Breaking Bad allows you to add scrollable column now
|
216 |
-
- Overlaiz now has a support for CSS' calc()
|
217 |
-
|
218 |
-
= 1.1.0 =
|
219 |
-
- Added new feature: BREAKING BAD
|
220 |
-
- Fixed problems with HARAKIRI addon that includes custom height and auto-width
|
221 |
-
- Many fixes and code improvements of existing components
|
222 |
-
|
223 |
-
= 1.0.1 =
|
224 |
-
- Added new feature: PAGININI
|
225 |
-
From now on you can style up the posts navigation within Elementor - visual way.
|
226 |
-
|
227 |
-
= 1.0.0 =
|
228 |
-
* Initial Launch
|
4 |
Donate link: https://www.paypal.me/ooohboi
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 1.5.1
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0
|
19 |
|
20 |
An awesome set of tools, options and settings that expand Elementor defaults. Instead of creating new Elementor Widgets, these act like an upgrade of existing options or the self-standing panels thing.
|
21 |
|
22 |
+
= NEW ADD-ON NOW AVAILABLE - COMMENTZ =
|
23 |
|
24 |
+
Commentz extension allows you to style up your Post Comments from Elementor! No more messing up with the custom CSS code, this is the ultimate solution for any WP theme.
|
25 |
|
26 |
= In the package so far =
|
27 |
|
70 |
15. PHOTOMORPH
|
71 |
From now on you can add the clip-path to the Image widget for Normal and Hover state.
|
72 |
|
73 |
+
16. COMMENTZ
|
74 |
+
Style up your Post Comments from Elementor.
|
75 |
+
|
76 |
+
17. MORE IS COMING SOON!
|
77 |
|
78 |
== Installation ==
|
79 |
|
82 |
|
83 |
== Upgrade Notice ==
|
84 |
|
85 |
+
1.5.1 - Beware of the changes in the language file!
|
86 |
|
87 |
== Frequently Asked Questions ==
|
88 |
|
117 |
17. PERSPEKTIVE options
|
118 |
18. SHADOUGH options
|
119 |
19. PHOTOMORPH options
|
120 |
+
20. COMMENTZ options
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 1.5.1 =
|
124 |
+
- New feature added, COMMENTZ - enjoy styling the Post Comments from Elementor!
|
125 |
+
|
126 |
= 1.5.0 =
|
127 |
- New feature added, PhotoMorph
|
128 |
- Glider, hash navigation disabled due to unwanted URL endings (#null)
|
168 |
= 1.4.0 =
|
169 |
- Steroids are now Elementor 3.0 ready and still backwards compatible
|
170 |
- New feature added, Butter Button
|
171 |
+
- Teleporter, added control for the effect duration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|