Skip to content

Instantly share code, notes, and snippets.

View psahalot's full-sized avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / slider.js
Created April 9, 2021 07:36
PowerPack for Beaver Builder Gallery Slider
;(function ($) {
PPImageCarousel = function (settings) {
this.id = settings.id;
this.nodeClass = '.fl-node-' + settings.id;
this.wrapperClass = this.nodeClass + ' .pp-image-carousel';
this.elements = '';
this.slidesPerView = settings.slidesPerView;
this.slidesToScroll = settings.slidesToScroll;
this.settings = settings;
@psahalot
psahalot / oxy-ultimate-countdown.js
Created April 9, 2021 09:21
Oxy Ultimate Countdown JS
!(function (t) {
(OUCountdown = function (e) {
if (
((this.params = e),
(this.id = e.id),
(this.timertype = e.timertype),
(this.timerid = "#countdown-" + e.id),
(this.timer_date = e.timer_date),
(this.timer_format = e.timer_format),
(this.timer_layout = e.timer_layout),
@psahalot
psahalot / powerpack-countdown-js.js
Last active April 9, 2021 12:25
PowerPack for Beaver Countdown JS
(function($) {
PPCountdown = function( settings )
{
this.timer_exp_text = "";
this.settings = settings;
this.nodeClass = '.fl-node-' + settings.id;
this.id = settings.id;
this.timertype = settings.timertype;
this.timerid = '#countdown-' + settings.id;
this.timer_date = settings.timer_date;
@psahalot
psahalot / powerpack-fancy-heading.css
Created April 9, 2021 08:48
PowerPack Fancy Heading
@-webkit-keyframes pp-hue {
from {
-webkit-filter: hue-rotate(0deg);
}
to {
-webkit-filter: hue-rotate(-360deg);
}
}
@keyframes pp-hue {
from {
@psahalot
psahalot / oxy-ultimate-fancy-heading.css
Created April 9, 2021 08:48
Oxy Ultimate Fancy Heading
/**
* Animation - Fancy Heading
*/
.oufh-text {
clear: both;
display: inline-block;
width: 100%;
}
@-webkit-keyframes oufh-hue {
@psahalot
psahalot / powerpack-category-slider.js
Created April 9, 2021 07:59
PowerPack Category Slider
; (function ($) {
PPCategoryGridSlider = function (settings) {
this.id = settings.id;
this.nodeClass = '.fl-node-' + settings.id;
this.wrapperClass = this.nodeClass + ' .swiper-wrapper';
this.elements = '';
this.slidesPerView = settings.slidesPerView;
this.slidesToScroll = settings.slidesToScroll;
this.settings = settings;
@psahalot
psahalot / oxy-ultimate-content-slider.js
Created April 9, 2021 07:56
Oxy Ultimate Content Slider JS
!(function (e) {
(OUContentSlider = function (t) {
(this.id = t.id),
(this.compClass = "." + t.id),
(this.elements = ""),
(this.slidesPerView = t.slidesPerView),
(this.slidesPerColumn = t.slidesPerColumn),
(this.slidesToScroll = t.slidesToScroll),
(this.settings = t),
(this.swipers = {}),
@psahalot
psahalot / oxy-ultimate-slider.js
Created April 9, 2021 07:38
OxyUltimate Slider JS
!(function (e) {
(OUGallerySlider = function (t) {
(this.id = t.id),
(this.compClass = ".ouacfg-slider-" + t.id),
(this.elements = ""),
(this.slidesPerView = t.slidesPerView),
(this.slidesPerColumn = t.slidesPerColumn),
(this.slidesToScroll = t.slidesToScroll),
(this.settings = t),
(this.swipers = {}),
@psahalot
psahalot / Add to Cart with Qty Input
Created November 14, 2014 04:28
WooCommerce Add to Cart with AJAX Quantity Input
<?php
// Display an "Add to cart" Button along with "Quantity" input
// for WooCommerce products using a custom Loop
// Reference: https://gist.github.com/webaware/6260468
global $product;
// not for variable, grouped or external products
@psahalot
psahalot / generatepress-elementor-locations.php
Last active March 20, 2020 10:10
Elementor Locations integration for GeneratePress
<?php
/**
* Elementor Pro integration.
*
* @package GeneratePress
* @subpackage Integration
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );