This file contains hidden or 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
/*-------------------------------------------------*/ | |
/* = Scroll between sections | |
/*-------------------------------------------------*/ | |
var $root = $('html, body'); | |
$('a.anchor[href*=#]').on("click",function(event) { | |
event.preventDefault(); | |
var offset = -150; |
This file contains hidden or 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
<script> | |
$('.ttabs').on("click", " .ttab", function () { | |
$(this).siblings().removeClass('active'); | |
$(this).addClass('active'); | |
var tabID = $(this).attr('data-ttab'); | |
var tabSelected = $(this).closest('.ttabs-wrap').find("[data-ttab='" + tabID + "']"); | |
tabSelected.siblings().removeClass('active'); | |
tabSelected.addClass('active'); |
This file contains hidden or 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
.wrap-video { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 25px; | |
height: 0; | |
iframe { | |
position: absolute; | |
top: 0; | |
left: 0; |
This file contains hidden or 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
[class$="test"] | |
elements that have a class that ends with “test” | |
[class*=“test"] | |
elements that have a class that contain “test” | |
[class~=“test”] | |
elements that have a class that contain at least class“test” | |
[class|=“test”] |
This file contains hidden or 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 widget( $args, $instance ) { | |
extract($args); | |
$title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance ); | |
} |
This file contains hidden or 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 lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="robots" content="noodp, noydir" /> | |
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
<link rel="canonical" href="http://mysite.com/" /> | |
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
This file contains hidden or 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
# This tag ensures the rewrite module is loaded | |
<IfModule mod_rewrite.c> | |
# enable the rewrite engine | |
RewriteEngine On | |
# Set your root directory | |
RewriteBase / | |
# remove the .html extension | |
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP | |
RewriteRule (.*)\.html$ $1 [R=301] |
This file contains hidden or 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 preloadImages(array) { | |
if (!preloadImages.list) { | |
preloadImages.list = []; | |
} | |
var list = preloadImages.list; | |
for (var i = 0; i < array.length; i++) { | |
var img = new Image(); | |
img.onload = function() { | |
var index = list.indexOf(this); | |
if (index !== -1) { |
This file contains hidden or 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
var images = ['<?=implode("', '", $cachedImages)?>']; |
This file contains hidden or 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
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/ | |
in the wpml settings insert parameters |