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 | |
/** | |
* This file is for loading all mu-plugins within subfolders | |
* where the PHP file name is exactly like the directory name + .php. | |
* | |
* Example: /mu-tools/mu-tools.php | |
*/ | |
$dirs = glob(dirname(__FILE__) . '/*' , GLOB_ONLYDIR); |
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
// Lade erst wenn Dokument und Elemente ready | |
jQuery(function() { | |
// Für alle Bilder mit der Klasse .person-img... | |
jQuery('.person-img').each( function( image ) { | |
// Bilder preload im Hintergrund | |
imageObj = new Image(); | |
imageObj.src = jQuery(this).attr('src').replace(/_flat/g, '_pic'); | |
// Mouseover Funktionsbinding | |
jQuery(this).live('mouseover', function() { |
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 field function for ACF without using ACF and generating additional queries (normally) | |
function get( $selector, $post_id = false, $format_value = true ) { | |
if( function_exists( 'get_post_meta' ) && function_exists( 'acf_get_valid_post_id' ) ) { | |
$post_id = acf_get_valid_post_id( $post_id ); | |
// Search the data in post meta |
OlderNewer