From 16c42cc35daed81b74609dbd95338eafc4dcb149 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 22 Apr 2021 11:23:13 -0300 Subject: [PATCH] Removes custom media sizes and uses existing ones. #43 and #45 --- src/functions.php | 3 --- src/template-parts/list-post.php | 2 +- src/template-parts/single-items-attachments_old.php | 8 ++++---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/functions.php b/src/functions.php index 860c6cb..304e3f5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -79,9 +79,6 @@ if ( ! function_exists( 'tainacan_setup' ) ) { ' )); } - - add_image_size( 'tainacan-interface-list-post', 300, 200, true ); - add_image_size( 'tainacan-interface-item-attachments', 125, 125, true ); /** * Gutenberg support diff --git a/src/template-parts/list-post.php b/src/template-parts/list-post.php index 99118c5..f66172a 100644 --- a/src/template-parts/list-post.php +++ b/src/template-parts/list-post.php @@ -10,7 +10,7 @@
- 'img-fluid')); ?> + 'img-fluid')); ?>
diff --git a/src/template-parts/single-items-attachments_old.php b/src/template-parts/single-items-attachments_old.php index 89746d3..b99e6e4 100644 --- a/src/template-parts/single-items-attachments_old.php +++ b/src/template-parts/single-items-attachments_old.php @@ -73,9 +73,9 @@
-
+
ID, 'tainacan-interface-item-attachments', true ); + echo wp_get_attachment_image( $attachment->ID, 'tainacan-medium', true ); echo '
'; ?> ID ); ?> @@ -96,12 +96,12 @@ ?>