Skip to content

Instantly share code, notes, and snippets.

Avatar

Puneet Sahalot psahalot

View GitHub Profile
@psahalot
psahalot / powerpack-countdown-js.js
Last active Apr 9, 2021
PowerPack for Beaver Countdown JS
View powerpack-countdown-js.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 / oxy-ultimate-countdown.js
Created Apr 9, 2021
Oxy Ultimate Countdown JS
View 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),
View powerpack-fancy-heading.css
@-webkit-keyframes pp-hue {
from {
-webkit-filter: hue-rotate(0deg);
}
to {
-webkit-filter: hue-rotate(-360deg);
}
}
@keyframes pp-hue {
from {
View oxy-ultimate-fancy-heading.css
/**
* Animation - Fancy Heading
*/
.oufh-text {
clear: both;
display: inline-block;
width: 100%;
}
@-webkit-keyframes oufh-hue {
View powerpack-category-slider.js
; (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 Apr 9, 2021
Oxy Ultimate Content Slider JS
View 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 = {}),
View oxy-ultimate-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 / slider.js
Created Apr 9, 2021
PowerPack for Beaver Builder Gallery Slider
View slider.js
;(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 / generatepress-elementor-locations.php
Last active Mar 20, 2020
Elementor Locations integration for GeneratePress
View generatepress-elementor-locations.php
<?php
/**
* Elementor Pro integration.
*
* @package GeneratePress
* @subpackage Integration
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );
@psahalot
psahalot / modalbox-function.php
Created Sep 13, 2019
Display Modal Box on all Pages except one.
View modalbox-function.php
function beaveraddons_popup_box() {
if (!is_page('your-page-slug')) {
echo do_shortcode('[fl_builder_insert_layout slug="site-wide-popup"]');
}
}
add_action('fl_after_content', 'beaveraddons_popup_box');