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
add_filter('wp_handle_upload_prefilter','tc_handle_upload_prefilter'); | |
function tc_handle_upload_prefilter($file) | |
{ | |
$img=getimagesize($file['tmp_name']); | |
$minimum = array('width' => '400', 'height' => '400'); | |
$width= $img[0]; | |
$height =$img[1]; | |
if ($width < $minimum['width'] ) |
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 ( $listing->get_categories__id() ) : | |
foreach ( $listing->get_categories() as $category ) : | |
$cats = array( 91, 92, 93, 94, 95 ); | |
$catarray = $category->get_id(); | |
if ( in_array( $catarray, $cats ) ) : | |
echo "Categorie ist Suche"; | |
else: | |
echo "nope!"; | |
endif; | |
endforeach; |
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
add_filter( | |
'hivepress/v1/templates/####TEMPLATE####', | |
function( $template ) { | |
return hivepress()->helper->merge_trees( | |
$template, | |
[ | |
'blocks' => [ | |
############### | |
], | |
], |
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 Tag": { | |
"prefix": "pp", | |
"body": [ | |
"<?php $code ?>", | |
], | |
}, | |
"AOS Tag": { |
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
{ | |
"jQuery Selector": { | |
"prefix": "sel", | |
"body": [ | |
"$('.$Selector')", | |
], | |
}, | |
"jQuery Selector without Class": { |
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
{ | |
"Break Point Min": { | |
"prefix": "bpmin", | |
"body": [ | |
"@include bpmin($Breakpoint) {", | |
"\t$CSS", | |
"}", | |
], | |
}, |
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 Tag": { | |
"prefix": "pp", | |
"body": [ | |
"<?php $code ?>", | |
], | |
}, | |
"AOS Tag": { |
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
@mixin bpmax($breakpoint) { | |
@media all and (max-width:($breakpoint+px)) { | |
@content; | |
} | |
} | |
@mixin bpmin($breakpoint) { | |
@media all and (min-width:($breakpoint+px)) { | |
@content; | |
} | |
} |
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
echo esc_html( $listing->get_vendor__name() ); |
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
delay 1 | |
tell application "Coda 2" to activate | |
tell application "System Events" | |
keystroke "p" using {command down, control down} | |
end tell |
NewerOlder