소스 검색

Videomaker: Fix post tags location. Closes #4888 (#4912)

* Videomaker: Fix post tags location. Closes #4888

Co-authored-by: @mikachan

* Videomaker: Remove the post meta template part from single.html

* Update videomaker/block-template-parts/post-meta.html

Co-authored-by: Ben Dwyer <ben@scruffian.com>
Daniel Dudzic 3 년 전
부모
커밋
621f7c527e
2개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. 12 1
      videomaker/block-templates/single.html
  2. 0 3
      videomaker/inc/patterns/post-i-love-you.php

+ 12 - 1
videomaker/block-templates/single.html

@@ -6,12 +6,23 @@
 </div>
 <!-- /wp:group -->
 
-<!-- wp:template-part {"layout":{"inherit":true},"slug":"post-meta"} /-->
+<!-- wp:group {"className":"post-meta","layout":{"type":"flex"},"style":{"spacing":{"padding":{"top":"var(--wp--style--block-gap,1em)","bottom":"var(--wp--style--block-gap,1em)"}}}} -->
+<div class="wp-block-group post-meta" style="padding-top:var(--wp--style--block-gap,1em);padding-bottom:var(--wp--style--block-gap,1em)">
+    <!-- wp:post-date {"isLink":true,"style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
+    <!-- wp:post-terms {"term":"category","style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
+</div>
+<!-- /wp:group -->
 
 <!-- wp:group {"tagName":"main"} -->
 <main class="wp-block-group">
 <!-- wp:post-featured-image {"align":"full"} /-->
 
+<!-- wp:group {"className":"post-tags-container", "layout":{"inherit":true}} -->
+<div class="wp-block-group post-tags-container">
+	<!-- wp:post-terms {"term": "post_tag","style":{"typography":{"fontSize":"var(--wp--custom--font-sizes--tiny)"}}} /-->
+</div>
+<!-- /wp:group -->
+
 <!-- wp:post-content {"layout":{"inherit":true}} /-->
 </main>
 <!-- /wp:group -->

+ 0 - 3
videomaker/inc/patterns/post-i-love-you.php

@@ -13,9 +13,6 @@ return array(
 	https://videopress.com/v/e7QDnuzH
 	</div></figure>
 	<!-- /wp:embed -->
-
-	<!-- wp:post-terms {"term":"post_tag"} /-->
-
 	<!-- wp:paragraph {"fontSize":"small"} -->
 	<p class="has-small-font-size">' . esc_html__( 'As nations under the present system are driven to compete with one another for the markets of the world, and as firms or the captains of industry have to scramble for their share of the profits of the markets, so also have the workers to compete with each other—for livelihood.', 'videomaker' ) . '<br><br>—<br><br><strong>' . esc_html__( 'Direction', 'videomaker' ) . '</strong><br>' . esc_html__( 'Dan Andrews', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Screenplay', 'videomaker' ) . '</strong><br>' . esc_html__( 'Augusta Smith', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Actors', 'videomaker' ) . '</strong><br>' . esc_html__( 'Akachukwu Elba', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Camera', 'videomaker' ) . '</strong><br>' . esc_html__( 'Diego Cruz, Helen Smith-Andrews and Dan Andrews', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Art', 'videomaker' ) . '</strong><br>' . esc_html__( 'Philip Mizrahi', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Production', 'videomaker' ) . '</strong><br>' . esc_html__( 'Romana Arakelyan', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Operators', 'videomaker' ) . '</strong><br>' . esc_html__( 'Syd Wyatt and Cameron Madeira', 'videomaker' ) . '<br>' . esc_html__( 'Behind the Camera: Diego Cruz', 'videomaker' ) . '<br><br><strong>' . esc_html__( 'Color Editing and Post-Production', 'videomaker' ) . '<br></strong>' . esc_html__( 'Philip Mizrahi and Tony Sánchez', 'videomaker' ) . '</p>
 	<!-- /wp:paragraph -->',