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
<div class="fluid-embed"> | |
<iframe frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="" class="lazyload" data-src="https://www.youtube.com/embed/4rfnJPhgd9E?feature=oembed"></iframe> | |
</div> |
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 | |
defined('ABSPATH') or die("Nothing to see!"); | |
/* | |
Plugin Name: Lazy Loading Responsive Images | |
Plugin URI: https://florianbrinkmann.de/1122/responsive-images-und-lazy-loading-in-wordpress/ | |
Description: Lazy loading Images plugin that works with responsive images introduced in Wordpress 4.4. | |
Version: 3.0 | |
Author: Florian Brinkmann, MarcDK | |
Author URI: http://www.marc.tv | |
License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
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_action('init', function() { // workaround to get correct field_object for regions filter, if searchwp admin search is enabled | |
$regions_field = get_field_object('field_552bd08a5e8bf', false, array('load_value' => false)); | |
// add filter by region for member data | |
add_action( 'restrict_manage_posts', function () use($regions_field) { | |
global $pagenow, $current_screen, $typenow; | |
if ( $pagenow != 'edit.php' OR $current_screen->post_type != 'mitglieder' OR $typenow != 'mitglieder' ) | |
return; |