Created
February 18, 2015 22:39
-
-
Save zackkatz/9d28fb06ee600044edc8 to your computer and use it in GitHub Desktop.
IDX+ - Use a larger thumbnail size in galleries, good for Retina displays
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 | |
/* | |
* Plugin Name: IDX+ - Increase Gallery Thumbnail Size | |
* Description: Use a larger thumbnail size in IDX+ - good for Retina displays | |
* Version: 1.0 | |
* Author: Katz Web Services, Inc. | |
* Author URI: http://www.idxplus.net | |
*/ | |
add_filter('idx_plus_gallery_thumbnail_size', 'modify_idx_plus_gallery_thumbnail_size'); | |
/** | |
* Change the size of the thumbnail images. If you want Retina thumbnails, use 'medium' | |
* | |
* @param string $size Size of images ('tiny', 'medium', or 'full') | |
*/ | |
function idx_plus_gallery_thumbnail_size( $size = 'tiny' ) { | |
return 'medium'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment