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 // Get terms for post | |
$terms = get_the_terms( $post->ID , 'oil' ); | |
// Loop over each item since it's an array | |
if ( $terms != null ){ | |
foreach( $terms as $term ) { | |
// Print the name method from $term which is an OBJECT | |
print $term->slug ; | |
?> |
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 | |
// Add custom meta to user profile screen | |
add_action( 'show_user_profile', 'example_show_extra_profile_fields' ); | |
add_action( 'edit_user_profile', 'example_show_extra_profile_fields' ); | |
function example_show_extra_profile_fields( $user ) { ?> | |
<h3>Payment information</h3> |
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 f in *.eps; do echo "Converting $f"; convert -colorspace sRGB $f -density 300 -quality 100% -colorspace rgb -flatten -resize 1200x1000^ -gravity center -crop 1200x1000+0+0 /var/www/suivisalades/public/media/images-produits/png/"$(basename "$f" .eps).png"; done |
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
.gform_wrapper ul { | |
.list-unstyled(); | |
} | |
.gform_wrapper li { | |
.form-group(); | |
} | |
.gform_wrapper form { | |
margin-bottom: 0; | |
} | |
.gform_wrapper .gfield_required { |
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
#!/bin/sh | |
# --- README --- | |
# Run this patch after every update or the game will crash before loading | |
# adjust paths if needed | |
# get tuxlol https://bitbucket.org/Xargoth/tuxlol/downloads | |
# get mono: apt-get install mono-runtime libmono-system-core4.0-cil | |
cd ~/.PlayOnLinux/wineprefix/LeagueOfLegends/tuxlol/ | |
mono tuxlol.exe patch --dir ../drive_c/Riot\ Games/League\ of\ Legends/ -- no-backup |
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"]}' />"; | |
} |
OlderNewer