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
var userInfo = passport.deserializeUser(function(id){ | |
return id; | |
}); | |
User.findById(userInfo, function(err, user) { | |
}); |
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 cl_acf_set_language() { | |
return acf_get_setting('default_language'); | |
} | |
function get_global_option($name) { | |
echo acf_get_setting('current_language'); // it | |
add_filter('acf/settings/current_language', 'cl_acf_set_language'); | |
echo acf_get_setting('current_language'); // en | |
$option = get_field($name); | |
remove_filter('acf/settings/current_language', 'cl_acf_set_language'); | |
echo acf_get_setting('current_language'); // it |
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
$("#myformid").find("input, select").on('change', function(){ | |
$("#myElement").addClass("myclass"); | |
}); |
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 newsPost_block_func() { | |
global $post; | |
$args = array(); | |
$query = new WP_Query($args); | |
var_dump($query->have_posts()); | |
} | |
add_shortcode( 'newsPost_block', 'newsPost_block_func'); |
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 newsPost_block_func() { | |
global $post; | |
$args = array( | |
'post_type' => array( 'post' ), | |
); | |
$query = new WP_Query($args); | |
var_dump($query->have_posts()); | |
} | |
add_shortcode( 'newsPost_block', 'newsPost_block_func'); |
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
.clear {clear:both;display:block;height:0pt !important;overflow:hidden;position:relative;width:auto;} |
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 the week view relies only on the user entering an H2... | |
--> | |
<td class="content"> | |
<h3 class="weekdates">25 September - 1 October</h3> | |
<div class="summary"> | |
<h2>Intro to Web Site Design</h2> |
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
To fix the width; find "width:47%;" and change it to "width:auto;" -- it is in this line: | |
#header{margin:0;border:0 solid $bordercolor;color:$pagetitlecolor;float:left;width:47%;overflow:hidden;} | |
I don’t know if this is intentional or not, but to fix the overlap hidden thing; change "padding:30px 0px;" to "padding:0 0 100px 0;" -- it is in this line: |
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
for (vari=0, j=len=items.length; i<len || j===0; i++, j--) { | |
console.log(i,j); | |
} |
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
-- Based on John Gruber's PHP Syntax Checking script | |
-- from Daring Fireball | |
-- http://daringfireball.net/2003/12/php_syntax_checking_in_bbedit | |
-- Requires JavaScript Lint | |
-- http://www.javascriptlint.com/ | |
-- Assumes it is installed at /usr/local/bin/jsl | |
-- requires OS >=10.4 | |
-- Dual-licensed under the BSD or MIT licenses. |
OlderNewer