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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>easepick 1.2.1 | configurator 1.0.8</title> | |
<script src="https://cdn.jsdelivr.net/npm/@easepick/[email protected]/dist/index.umd.min.js"></script> | |
</head> | |
<body> | |
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
# Match all script tags | |
<script(.|\n)*?</script> | |
# Match all style tags | |
<style(.|\n)*?</style> | |
# match all iframes | |
<iframe(.|\n)*?</iframe> |
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
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$site_url = $protocol.$_SERVER['HTTP_HOST']; | |
$config['tmpl_file_basepath'] = $_SERVER['DOCUMENT_ROOT'] . '/cmsadmin/expressionengine/templates'; | |
$config['share_analytics'] = 'y'; | |
$config['theme_folder_url'] = $site_url . '/themes/'; | |
$config['theme_folder_path'] = $_SERVER['DOCUMENT_ROOT'] . '/themes'; | |
$config['base_path'] = $_SERVER['DOCUMENT_ROOT']; | |
$config['base_url'] = $site_url; // CHECK this isn't defined below | |
$config['site_url'] = $site_url; | |
$config['cp_url'] = $site_url . "/cmsadmin/index.php"; |
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
add_action('spectrom_sync_api_process','clear_cache_after_sitesync_push',10,3); | |
function clear_cache_after_sitesync_push($action, $response, $apicontroller) { | |
if ($action==='push_complete' || $action==='push') { | |
if (function_exists('w3tc_flush_all')) { | |
w3tc_flush_all(); | |
} | |
} | |
} |
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
$config['reesponsive_breakpoints'] = array(0,569,769,1025,1920); | |
$config['reesponsive_densities'] = array(1,2); | |
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$site_url = $protocol.$_SERVER['HTTP_HOST']; | |
$config['theme_folder_url'] = $site_url . '/themes/'; | |
$config['theme_folder_path'] = $_SERVER['DOCUMENT_ROOT'] . '/themes'; | |
$config['base_path'] = $_SERVER['DOCUMENT_ROOT']; | |
$config['base_url'] = $site_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
<div class="pie-chart-block"> | |
<?php if (get_sub_field('chart_description')): ?> | |
<div class="pie-chart-description"> | |
<?= get_sub_field('chart_description'); ?> | |
</div> | |
<?php endif; ?> | |
<?php |
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 smoothAnchorScroll() { | |
// https://www.abeautifulsite.net/smoothly-scroll-to-an-element-without-a-jquery-plugin-2 | |
$('a[href*="#"]').on('click', function(event) { | |
if (this.getAttribute('href') == "#") return; | |
var target = $(this.getAttribute('href')); | |
if( target.length ) { | |
// event.preventDefault(); | |
$('html, body').stop().animate({ | |
scrollTop: target.offset().top | |
}, 1000); |
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 resizeVideos() { | |
var $allVideos = $("iframe[src^='https://player.vimeo.com'], iframe[src^='https://www.youtube.com'], object, embed"); | |
$allVideos.each(function() { | |
$(this) | |
// jQuery .data does not work on object/embed elements | |
.attr('data-aspectRatio', this.height / this.width) | |
.removeAttr('height') | |
.removeAttr('width'); |
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
/** | |
* Set font size so the text fits the width of the container | |
*/ | |
function setupTitleTextFill(container, textElement) { | |
// make element inline block and wrap a div so it still does a line break | |
$(container + " " + textElement).css("display","inline-block").wrap('<div class="title-text-fill-wrapper"></div>'); | |
resizeTitleTextFill(container, textElement); | |
$(window).resize(function() { | |
resizeTitleTextFill(container, textElement); |
NewerOlder