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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = 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
<?php | |
ini_set('memory_limit', '210000M'); | |
$command = "wkhtmltopdf-i386 --redirect-delay 100 --disable-smart-shrinking --print-media-type --margin-bottom 0mm --margin-left 0mm --margin-right 0mm --margin-top 0mm --dpi 96 'http://elwglobalarmour.com/shop/military-assault-vest/' /var/www/clients/carteweb.jeanstalaven.fr/www/2012_PDFHD/pdf-james.pdf"; | |
exec($command); | |
$file = "/var/www/clients/carteweb.jeanstalaven.fr/www/2012_PDFHD/pdf-james.pdf"; |
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
{"meta":{"version":"1.14.4","build":"1355831614"},"pods":{"1":{"name":"wd_video","label":"","is_toplevel":"1","detail_page":"","list_filters":"","pre_save_helpers":"","pre_drop_helpers":"","post_save_helpers":"","post_drop_helpers":"","fields":[{"name":"name","label":"Name","comment":null,"coltype":"txt","pickval":null,"weight":null,"display_helper":null,"input_helper":null,"pick_filter":null,"pick_orderby":null,"required":"1","unique":null,"multiple":null},{"name":"video_url_flv","label":null,"comment":null,"coltype":"txt","pickval":null,"weight":"4","display_helper":null,"input_helper":null,"pick_filter":null,"pick_orderby":null,"required":null,"unique":null,"multiple":null},{"name":"video_url_ogg","label":null,"comment":null,"coltype":"txt","pickval":null,"weight":"8","display_helper":null,"input_helper":null,"pick_filter":null,"pick_orderby":null,"required":null,"unique":null,"multiple":null},{"name":"video_length","label":null,"comment":null,"coltype":"txt","pickval":null,"weight":"11","display_helper":n |
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 | |
wp_enqueue_style( 'pods-select2' ); | |
wp_enqueue_script( 'pods-select2' ); | |
$attributes = array(); | |
$attributes[ 'tabindex' ] = 2; | |
$pick_limit = (int) pods_var( 'pick_limit', $options, 0 ); | |
$name .= '[]'; | |
$attributes[ 'multiple' ] = 'multiple'; | |
if ( !is_array( $options[ 'data' ] ) && false !== $options[ 'data' ] && 0 < strlen( $options[ 'data' ] ) ) |
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 | |
wp_enqueue_style( 'pods-select2' ); | |
wp_enqueue_script( 'pods-select2' ); | |
$attributes = array(); | |
$attributes[ 'type' ] = 'text'; | |
$attributes[ 'value' ] = $value; | |
$attributes[ 'tabindex' ] = 2; | |
$attributes = PodsForm::merge_attributes( $attributes, $name, PodsForm::$field_type, $options ); |
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
// filter the Gravity Forms button type | |
add_filter("gform_submit_button", "form_submit_button", 10, 2); | |
function form_submit_button($button, $form){ | |
return "<input type='submit' class='button gform_button btn btn-flat' id='gform_submit_button_{$form["id"]}' />"; | |
} |
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
// Use this script in the dev tools console in Google Chrome | |
// You might have to run it multiple times and refresh the page each time | |
table = $($0); // Select table with mail list in inspector | |
count = 0; | |
$('tr', table).each(function() { | |
row = $(this); | |
link = $('ul.dropdown-menu li:last-of-type a', row); | |
link_status = row.find(':nth-child(6)'); |
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
/* | |
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
* Better handling of scripts without supplied ids. | |
* | |
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
*/ | |
(function(d, u) { | |
var s = d.scripts[0], | |
i = u.length, g; |
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 | |
// A mettre dans functions.php | |
add_filter('the_content', 'clean_p_shortcode'); | |
function clean_p_shortcode($content){ | |
$array = array ( | |
'<p>[' => '[', | |
']</p>' => ']', | |
']<br />' => ']' | |
); |
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
/* | |
Allows for ajax requests to be run synchronously in a queue | |
Usage:: | |
var queue = new $.AjaxQueue(); | |
queue.add({ | |
url: 'url', |
OlderNewer