In the following, we're setting up mydomain.com
.
Challenges are served from /var/www/letsencrypt
.
First we create two snippets (to avoid duplicating code in every virtual host configuration).
$columns: 12; | |
$gap: 30px; | |
$breakpoints: ( | |
xs: 480px, | |
sm: 768px, | |
md: 960px, | |
lg: 1170px, | |
xl: 1280px | |
); |
import gsap from 'gsap' | |
import ScrollTrigger from 'gsap/ScrollTrigger' | |
import {SplitText} from 'gsap/SplitText' | |
import CustomEase from 'gsap/CustomEase' | |
gsap.registerPlugin(ScrollTrigger) | |
gsap.registerPlugin(SplitText) | |
document.addEventListener('DOMContentLoaded', () => { | |
const animations = { |
<?php | |
//If you're using this in your functions.php file, remove the opening <?php | |
//Replace style-login.css with the name of your custom CSS file | |
function my_custom_login_stylesheet() { | |
wp_enqueue_style( 'custom-login', get_stylesheet_directory_uri() . '/style-login.css' ); | |
} | |
//This loads the function above on the login page | |
add_action( 'login_enqueue_scripts', 'my_custom_login_stylesheet' ); |
function load_template_part($template_name, $part_name=null) { | |
ob_start(); | |
get_template_part($template_name, $part_name); | |
$var = ob_get_contents(); | |
ob_end_clean(); | |
return $var; | |
} |
(function($) { | |
$.fn.fSelect = function(options) { | |
if ('string' === typeof options) { | |
var settings = options; | |
} | |
else { | |
var settings = $.extend({ | |
placeholder: 'Select some options', |
/**************************\ | |
Basic Modal Styles | |
\**************************/ | |
.modal { | |
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
} | |
.modal__overlay { | |
position: fixed; |
<?php | |
// Create an empty array for storage | |
$post_data = array(); | |
// Set arguments for your query | |
$args = array( | |
'post_type' => 'trips', | |
'posts_per_page' => 999 | |
); |