diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-collections-list.css b/src/assets/css/tainacan-gutenberg-block-carousel-collections-list.css index 2e79500dc..0f7a64ac2 100644 --- a/src/assets/css/tainacan-gutenberg-block-carousel-collections-list.css +++ b/src/assets/css/tainacan-gutenberg-block-carousel-collections-list.css @@ -122,7 +122,7 @@ color: var(--tainacan-block-gray5, #454647); font-weight: bold; text-decoration: none; - padding: 8px 16px; + padding: 8px 12px; display: block; line-height: 1.2em; word-break: break-word; } diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-items-list.css b/src/assets/css/tainacan-gutenberg-block-carousel-items-list.css index de71369db..9f374daac 100644 --- a/src/assets/css/tainacan-gutenberg-block-carousel-items-list.css +++ b/src/assets/css/tainacan-gutenberg-block-carousel-items-list.css @@ -129,7 +129,7 @@ color: var(--tainacan-block-gray5, #454647); font-weight: bold; text-decoration: none; - padding: 8px 16px; + padding: 8px 12px; display: block; line-height: 1.2em; word-break: break-word; } diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css index 5e270bc4c..ea7dfd802 100644 --- a/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css +++ b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css @@ -1,5 +1,5 @@ .wp-block-tainacan-carousel-related-items { - margin: 2em auto; + margin: 0.5em auto; width: 100%; } .wp-block-tainacan-carousel-related-items .spinner-container { min-height: 56px; diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map index 4e38ff4bf..a62d01597 100644 --- a/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map +++ b/src/assets/css/tainacan-gutenberg-block-carousel-related-items.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAEA,yCAA0C;EACtC,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,IAAI;EAGX,4DAAmB;IACf,UAAU,EAAE,IAA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;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,gCAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;AAErB,6BAIC;EAHG,EAAE;IAAC,OAAO,EAAE,GAAG;EACf,GAAG;IAAC,OAAO,EAAE,GAAG;EAChB,IAAI;IAAC,OAAO,EAAE,GAAG;EAErB,mDAAU;IACN,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,oCAAmC;IAE/C,iBAAiB,EAAE,qCAAqC;IACxD,cAAc,EAAE,qCAAqC;IACrD,YAAY,EAAE,qCAAqC;IACnD,SAAS,EAAE,qCAAqC;EAIpD,gFAAuC;IACnC,QAAQ,EAAE,QAAQ;IAElB,0FAAY;MACR,UAAU,EAAE,KAAK", "sources": ["../../views/gutenberg-blocks/tainacan-items/carousel-related-items/carousel-related-items.scss"], "names": [], "file": "tainacan-gutenberg-block-carousel-related-items.css" diff --git a/src/assets/css/tainacan-gutenberg-block-carousel-terms-list.css b/src/assets/css/tainacan-gutenberg-block-carousel-terms-list.css index 3d3b861ce..507137817 100644 --- a/src/assets/css/tainacan-gutenberg-block-carousel-terms-list.css +++ b/src/assets/css/tainacan-gutenberg-block-carousel-terms-list.css @@ -122,7 +122,7 @@ color: var(--tainacan-block-gray5, #454647); font-weight: bold; text-decoration: none; - padding: 8px 16px; + padding: 8px 12px; display: block; line-height: 1.2em; word-break: break-word; } diff --git a/src/classes/repositories/class-tainacan-items.php b/src/classes/repositories/class-tainacan-items.php index 5cea97d36..cbee28804 100644 --- a/src/classes/repositories/class-tainacan-items.php +++ b/src/classes/repositories/class-tainacan-items.php @@ -636,8 +636,8 @@ class Items extends Repository { $response[$metadata->get_id() . '_' . $collection->get_id()] = array( 'collection_id' => $collection->get_id(), 'collection_name' => $collection->get_name(), - 'url' => $collection->get_url(), - 'slug' => $collection->get_slug(), + 'collection_url' => $collection->get_url(), + 'collection_slug' => $collection->get_slug(), 'metadata_id' => $metadata->get_id(), 'metadata_name' => $metadata->get_name(), 'total_items' => $related_items['found_posts'], @@ -651,8 +651,8 @@ class Items extends Repository { $response[$metadata->get_id()] = array( 'collection_id' => $collection->get_id(), 'collection_name' => $collection->get_name(), - 'url' => $collection->get_url(), - 'slug' => $collection->get_slug(), + 'collection_url' => $collection->get_url(), + 'collection_slug' => $collection->get_slug(), 'metadata_id' => $metadata->get_id(), 'metadata_name' => $metadata->get_name(), 'total_items' => $related_items['found_posts'], diff --git a/src/classes/repositories/class-tainacan-metadata.php b/src/classes/repositories/class-tainacan-metadata.php index 9e2a838fc..ca73086ee 100644 --- a/src/classes/repositories/class-tainacan-metadata.php +++ b/src/classes/repositories/class-tainacan-metadata.php @@ -1695,7 +1695,7 @@ class Metadata extends Repository { $order = ( is_array( $order ) ) ? $order : unserialize( $order ); if( is_array($order) ) { foreach ($order as $metadata_order) { - if($metadata_order['id'] == $metadata->get_id()) { + if( $metadata_order['id'] == $metadata->get_id() || $metadata_order['id'] == $metadata->get_parent() ) { if($metadata_order['enabled'] == false) return false; return true; diff --git a/src/classes/theme-helper/class-tainacan-theme-helper.php b/src/classes/theme-helper/class-tainacan-theme-helper.php index 1b28fe14b..6127a867c 100644 --- a/src/classes/theme-helper/class-tainacan-theme-helper.php +++ b/src/classes/theme-helper/class-tainacan-theme-helper.php @@ -985,9 +985,9 @@ class Theme_Helper { // Always pass the default class; $output = '