Skip to content

Instantly share code, notes, and snippets.

// Entering video's top viewport
et_waypoint( $video_background_wrapper, {
offset: '100%',
handler : function( direction ) {
if ( $this_video_background.is(':visible') && direction === 'down' ) {
if ( this_video_background.paused && ! onplaying ) {
this_video_background.play();
}
} else if ( $this_video_background.is(':visible') && direction === 'up' ) {
if ( ! this_video_background.paused && ! onpause ) {
add_action('wp_head', 'et_add_shortcutimg');
function et_add_shortcutimg() {
echo '<link rel="apple-touch-icon-precomposed" sizes="57x57" href="LINK TO 57X57 IMAGE" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="LINK TO 72X72 IMAGE" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="LINK TO 114X114 IMAGE" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="LINK TO 144X144 IMAGE" />';
}
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
<script>
jQuery( document ).ready(function() {
jQuery(".et_bloom_submit_subscription").click(function(){
var form = jQuery(this).parent();
var name_val = form.find(".et_bloom_subscribe_name input").val();
if(name_val.trim() == '') {
form(".et_bloom_subscribe_name input").addClass('et_bloom_warn_field');
return false;
<script>
jQuery( document ).ready(function() {
jQuery(".et_bloom_submit_subscription").click(function(){
var form = jQuery(this).parent(), error = 0;
var name_val = form.find(".et_bloom_subscribe_name input").val();
if(name_val.trim() == '') {
form.find(".et_bloom_subscribe_name input").addClass('et_bloom_warn_field');
error = 1;
setTimeout(function(){
jQuery("video").each(function() { jQuery(this).get(0).play(); });
}, 1000); // 10 seconds = 10000 ms
setTimeout(function(){
jQuery("video")[0].play();
jQuery("video")[1].play();
jQuery("video")[2].play();
jQuery("video")[3].play();
jQuery("video")[4].play();
jQuery("video")[5].play();
jQuery("video")[6].play();
jQuery("video")[7].play();
jQuery("video")[8].play();
function add_mod_hatom_data($content) {
$iso8601_date = get_the_time('c');
$author = get_the_author();
$title = get_the_title();
if( is_single() || is_page() ) {
$content .= '<div class="hatom-extra"><span class="entry-title">'.$title.'</span>
ultima modifica: <span class="updated"> '.$iso8601_date.'</span>
da <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
}
return $content;
function add_mod_hatom_data($content) {
$iso8601_date = get_the_time('c');
$author = get_the_author();
$title = get_the_title();
if( is_single() ) {
$content .= '<div class="hatom-extra"><span class="entry-title">'.$title.'</span>
ultima modifica: <span class="updated"> '.$iso8601_date.'</span>
da <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
}
return $content;
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us2.list-manage.com","uuid":"4ea5ab16390558b6182fe6f27","lid":"53b8f2367d"}) })</script>