From 843a8949588365c54d70a54f94d991214a8eb62a Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 14 Jan 2014 04:43:18 +1100 Subject: [PATCH] Add fit image size for team logos --- admin/hooks/plugins-loaded.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/admin/hooks/plugins-loaded.php b/admin/hooks/plugins-loaded.php index 6375bc82..4c990cca 100644 --- a/admin/hooks/plugins-loaded.php +++ b/admin/hooks/plugins-loaded.php @@ -4,8 +4,10 @@ function sportspress_plugins_loaded() { // Load plugin textdomain if ( function_exists( 'load_plugin_textdomain' ) ) { + // SportsPress load_plugin_textdomain ( 'sportspress', false, dirname( SPORTSPRESS_PLUGIN_BASENAME ) . '/languages/' ); + // Countries load_plugin_textdomain ( 'countries', false, dirname( SPORTSPRESS_PLUGIN_BASENAME ) . '/languages/' ); } @@ -13,22 +15,26 @@ function sportspress_plugins_loaded() { // Add image sizes if ( function_exists( 'add_image_size' ) ) { + // Header (1680 width minus 15 for scrollbar) + add_image_size( 'sportspress-header', 1665, 705, true ); + // Standard (4:3) add_image_size( 'sportspress-standard', 800, 600, true ); add_image_size( 'sportspress-standard-thumbnail', 400, 300, true ); // Wide (16:9) - add_image_size( 'sportspress-wide', 640, 360, true ); + add_image_size( 'sportspress-wide', 800, 450, true ); add_image_size( 'sportspress-wide-thumbnail', 400, 225, true ); // Square (1:1) add_image_size( 'sportspress-square', 612, 612, true ); add_image_size( 'sportspress-square-thumbnail', 200, 200, true ); - // Header (1680 width minus 15 for scrollbar) - add_image_size( 'sportspress-header', 1665, 705, true ); + // Fit (Proportional) + add_image_size( 'sportspress-fit', 300, 300, false ); + add_image_size( 'sportspress-fit-thumbnail', 150, 150, false ); - // Icon (32px uncropped) + // Icon (Proportional) add_image_size( 'sportspress-icon', 32, 32, false ); }