From 12f3d9cf5a100968cf707d03e6ea1d3c69110387 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 20 Jan 2014 11:48:12 +1100 Subject: [PATCH] Localize scripts --- admin-functions.php | 2 +- admin/hooks/admin-enqueue-scripts.php | 6 ++++-- admin/hooks/plugins-loaded.php | 22 +++++++++++----------- admin/hooks/wp-enqueue-scripts.php | 3 +-- admin/post-types/event.php | 2 +- assets/js/admin.js | 4 ++-- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/admin-functions.php b/admin-functions.php index 0b08c15d..057ab9ae 100644 --- a/admin-functions.php +++ b/admin-functions.php @@ -437,7 +437,7 @@ if ( !function_exists( 'sportspress_get_equation_selector' ) ) { $options[ __( 'Constants', 'sportspress' ) ] = (array) $constants; ?> - __( 'Remove', 'sportspress' ) + ) ); } add_action( 'admin_enqueue_scripts', 'sportspress_admin_enqueue_scripts' ); diff --git a/admin/hooks/plugins-loaded.php b/admin/hooks/plugins-loaded.php index 4c990cca..34c97b7f 100644 --- a/admin/hooks/plugins-loaded.php +++ b/admin/hooks/plugins-loaded.php @@ -15,24 +15,24 @@ 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 ); + // Header + add_image_size( 'sportspress-header', 1600, 700, true ); - // Standard (4:3) - add_image_size( 'sportspress-standard', 800, 600, true ); - add_image_size( 'sportspress-standard-thumbnail', 400, 300, true ); + // Standard (3:2) + add_image_size( 'sportspress-standard', 637, 425, true ); + add_image_size( 'sportspress-standard-thumbnail', 303, 202, true ); // Wide (16:9) - add_image_size( 'sportspress-wide', 800, 450, true ); - add_image_size( 'sportspress-wide-thumbnail', 400, 225, true ); + add_image_size( 'sportspress-wide', 637, 358, true ); + add_image_size( 'sportspress-wide-thumbnail', 303, 170, true ); // Square (1:1) - add_image_size( 'sportspress-square', 612, 612, true ); - add_image_size( 'sportspress-square-thumbnail', 200, 200, true ); + add_image_size( 'sportspress-square', 637, 637, true ); + add_image_size( 'sportspress-square-thumbnail', 303, 303, true ); // Fit (Proportional) - add_image_size( 'sportspress-fit', 300, 300, false ); - add_image_size( 'sportspress-fit-thumbnail', 150, 150, false ); + add_image_size( 'sportspress-fit', 637, 637, false ); + add_image_size( 'sportspress-fit-thumbnail', 303, 303, false ); // Icon (Proportional) add_image_size( 'sportspress-icon', 32, 32, false ); diff --git a/admin/hooks/wp-enqueue-scripts.php b/admin/hooks/wp-enqueue-scripts.php index d1931ad7..dda69a01 100644 --- a/admin/hooks/wp-enqueue-scripts.php +++ b/admin/hooks/wp-enqueue-scripts.php @@ -1,8 +1,7 @@ -
+