This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$license = get_option( WNT_FUNCTION ); | |
if ( empty( $license ) ) { | |
// No license has been activated | |
// You can display the activation form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use LicenseKeys\Utility\Api; | |
use LicenseKeys\Utility\Client; | |
use LicenseKeys\Utility\LicenseRequest; | |
// ------------------------------------- | |
// ------------------------------------- | |
// ------------------------------------- | |
// ------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Customizations | |
Description: Customizations made to plugins or theme using Wordpress hooks. | |
Version: 9000 | |
*/ | |
// ----------------------------------------------- | |
// ADD CUSTOMER & ORDER INFORMATION TO RESPONSE | |
// ----------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'post_gallery_enqueue', function() { | |
// CSS | |
wp_enqueue_style( | |
'lightgallery', // Name / slug | |
get_stylesheet_directory_uri() . '/node_modules/lightgallery/dist/css/lightgallery.min.css', // File location | |
[], // Dependency | |
'1.6.11' // Version | |
); | |
// js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { $(document).ready(function() { | |
//Initialize for every .post-gallery found. | |
$('.post-gallery').each(function() { | |
// Init lightGallery with thumbnail option set to true. | |
$(this).lightGallery({ | |
thumbnail:true | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'post_gallery_enqueue', function() { | |
// CSS | |
wp_enqueue_style( | |
'lightgallery', // Name / slug | |
get_stylesheet_directory_uri() . '/node_modules/lightgallery/dist/css/lightgallery.min.css', // File location | |
[], // Dependency | |
'1.6.11' // Version | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Needed | |
import java.util.Calendar; | |
import java.util.TimeZone; | |
// Initialize calendar instance and set your datetime value | |
Calendar cal = Calendar.getInstance(); | |
cal.setTimeInMillis(dateTimeValue); | |
// Initialize timezone with your timezone value | |
TimeZone tz = TimeZone.getTimeZone("America/New_York"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.post-gallery a {position: relative;} | |
.post-gallery .is-video:before { | |
content: "\f236"; position: absolute; font-family: Dashicons; font-size: 50px; | |
color: #fff; top: calc(50% - 30px); left: calc(50% - 30px); text-shadow: 0 0 4px #000; | |
} | |
</style> | |
<div class="post-gallery"> | |
<?php foreach ( $post->gallery as $attachment ) : ?> | |
<a href="<?php echo $attachment->is_video ? $attachment->video_url : $attachment->url ?>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @hook post_gallery_enqueue | |
*/ | |
function enqueue_lightbox() { | |
wp_enqueue_style( | |
'lightbox', | |
'https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.10.0/css/lightbox.min.css', | |
[], | |
'2.10.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const bigquery = require('@google-cloud/bigquery')(); | |
const cors = require('cors')({ origin: true }); | |
admin.initializeApp(functions.config().firebase); | |
const db = admin.database(); | |
/** |
NewerOlder