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
$slider_query = new WP_Query( array( 'post_type' => 'wlw_projekte', 'orderby' => 'menu_order title', 'order' => 'DESC', 'post_parent' => 0 )); |
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
$hide = get_post_meta( $post->ID, '_cmb_hideInList', true ); |
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 news | |
$args = array ('post_type'=> 'post', 'posts_per_page' => 5 ); | |
$the_query = new WP_Query( $args ); | |
if ( $the_query->have_posts() ) : | |
while ( $the_query->have_posts() ) : $the_query->the_post(); | |
get_template_part('news', 'compact'); | |
endwhile; endif; | |
wp_reset_postdata(); | |
?> |
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
$value = get_post_meta( $post->ID, '_cmb_FIELDNAME', true ); |
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
(* | |
modification of a file from: http://www.lawschoolmatt.com/workflows/taskpaper-tasks-with-finder-links | |
The code for copying a clickable link is from Petesh at Stack Overflow. http://stackoverflow.com/questions/9617029/how-to-get-the-a-file-url-in-osx-with-applescript-or-a-shell-script | |
*) | |
global sel | |
global PageLink | |
tell application "Finder" | |
set sel to the selection as text | |
set PageLink to "file:///" & my path2url(POSIX path of sel) |
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 | |
######################################### | |
# Script: Safely include files | |
######################################### | |
# | |
# Security measures: | |
# 1. First, use a regular expression to check if $seite contains anything but alphanumeric characters andunderscores | |
# 2. Check if the file exists before including | |
# 3. Include the file |
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 | |
/* | |
Template Name: My Custom Page | |
*/ | |
?> |
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 vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
.element p { | |
@include vertical-align; |
OlderNewer