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 parseBool( value ) | |
{ | |
return value == "true" || value == true || value == 1 ? true : false; | |
} |
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 inArray( needle , haystack ) | |
{ | |
for( var i = 0 ; i < haystack.length ; i++ ) | |
{ | |
if( haystack[i] == needle ) return i; | |
} | |
return -1; | |
} |
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 depend( url , callback ) | |
{ | |
var script = document.createElement( 'script' ); | |
var scripts = document.getElementsByTagName( 'script' )[0]; | |
script.async = true; | |
script.onload = function() | |
{ | |
script.onload = null; | |
callback(); | |
} |
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
<gmap data-lat='12.3456789' data-lan='2.345678' data-zoom='17' data-type='roadmap'> | |
<marker data-lat="12.3456789" data-lan="2.345678" data-open="true"> | |
<h4>Company name</h4> | |
<p>Here goes a company description</p> | |
</marker> | |
</gmap> |
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
<gmap data-type='roadmap' data-mapAutoCenter='true'> | |
<marker data-lat="12.3456789" data-lan="2.345678"> | |
<h4>Company name</h4> | |
<p>Here goes a company description</p> | |
</marker> | |
<marker data-lat="13.3456789" data-lan="3.345678"> |
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
/* | |
-- VA79 Typography | |
*/ | |
html, body { | |
font-family: 'Open Sans', Helvetica, sans-serif; | |
font-size: 15px; | |
} | |
* { | |
font-family: 'Open Sans', Helvetica, sans-serif; |
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
# | |
### HTACCESS RULES TO SPEED UP WORDPRESS | |
# | |
### / START DEFLATE COMPRESSION | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype |
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 | |
function mix_tutorial_enqueue_scripts() { | |
$theme = wp_get_theme(); | |
wp_enqueue_script( $theme->get('TextDomain') . '-manifest' , get_template_directory_uri() . '/public/js/manifest.js' , array() , $theme->get('Version') , true ); | |
wp_enqueue_script( $theme->get('TextDomain') . '-vendor' , get_template_directory_uri() . '/public/js/vendor.js' , array() , $theme->get('Version') , true ); | |
wp_enqueue_script( $theme->get('TextDomain') . '-app' , get_template_directory_uri() . '/public/js/app.js' , array() , $theme->get('Version') , true ); | |
} |
OlderNewer