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
if (true) { | |
let x = 10; | |
var y = 10; | |
} | |
// `x` can't be accessed from outside of the if block | |
console.log(x) // return: Uncaught ReferenceError: x is not defined | |
// `y` can be accessed from outside of the if block | |
console.log(y) // return 10 |
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 | |
/** | |
* Fires Before Tutor Global Login Form | |
* @Hook: tutor_load_template_before | |
* @Template: global.login | |
*/ | |
add_action('tutor_load_template_before', 'tutor_global_login_before', 10, 2); | |
function tutor_global_login_before($template, $variable){ |
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 | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. | |
* |
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
flat.portfolio_isotope = $('.portfolio-isotope'); | |
flat.portfolio_menu = $('.isotope-menu li'); | |
flat.portfolio_isotope.isotope({ | |
itemSelector: '.single-portfolio', | |
layoutMode: 'fitRows' | |
}); | |
flat.portfolio_menu.on('click', function () { | |
flat.portfolio_menu.removeClass("active"); | |
$(this).addClass("active"); |
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
{URL}?license=regular&open_purchase_for_item_id={ID}&purchasable=source&ref=idea420 |
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
$provision_toolkit_allowed_html_in_st = array( | |
'a' => array( | |
'href' => array(), | |
'class' => array(), | |
'target' => array(), | |
), | |
'img' => array( | |
'href' => array(), | |
'class' => array(), | |
'alt' => array(), |
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
/* Medium Layout: 1280px. */ | |
@media only screen and (min-width: 992px) and (max-width: 1200px) { | |
} | |
/* Tablet Layout: 768px. */ | |
@media only screen and (min-width: 768px) and (max-width: 991px) { | |
} |
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 | |
/** | |
* Set a max limit on the number of times | |
* a repeating group can be added. | |
*/ | |
/** | |
* Setup the group field metabox | |
*/ | |
function js_limited_group_setup() { |
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
Demo & Download Link: http://dimsemenov.com/plugins/magnific-popup/ | |
01. Youtube video >> | |
// html markup | |
<a href="http://www.youtube.com/watch?v=0O2aH4XLbto" class="videoBtn">Watch Video</a> | |
// javascript |
NewerOlder