Forráskód Böngészése

Fix PHP formatting errors (#6196)

Bob Matyas 3 éve
szülő
commit
bdda592212
2 módosított fájl, 18 hozzáadás és 8 törlés
  1. 4 0
      scratchpad/style.css
  2. 14 8
      scratchpad/template-parts/content-gallery.php

+ 4 - 0
scratchpad/style.css

@@ -1643,6 +1643,10 @@ body:not(.single) .format-gallery .entry-meta a {
 	color: rgba(83, 115, 117, 0.7);
 }
 
+.entry-gallery .swiper-container {
+	z-index: 0;
+}
+
 /*--------------------------------------------------------------
 10.6 Image
 --------------------------------------------------------------*/

+ 14 - 8
scratchpad/template-parts/content-gallery.php

@@ -14,16 +14,22 @@
 	<?php scratchpad_sticky(); ?>
 
 	<?php
-		if ( get_post_gallery() && ! post_password_required() ) { ?>
+	if ( ! post_password_required() ) { ?>
 			<div class="entry-gallery">
-				<?php echo get_post_gallery(); ?>
+				<?php 
+				if ( get_post_gallery() ) {
+					echo get_post_gallery();
+				} else {
+					echo the_content();
+				}
+				?>
 				<div class="photo-corners">
-					<?php
-						get_template_part( 'images/inline', 'photo-corners.svg' );
-						get_template_part( 'images/inline', 'photo-corners.svg' );
-						get_template_part( 'images/inline', 'photo-corners.svg' );
-						get_template_part( 'images/inline', 'photo-corners.svg' );
-					?>
+				<?php
+					get_template_part( 'images/inline', 'photo-corners.svg' );
+					get_template_part( 'images/inline', 'photo-corners.svg' );
+					get_template_part( 'images/inline', 'photo-corners.svg' );
+					get_template_part( 'images/inline', 'photo-corners.svg' );
+				?>
 				</div><!-- .photo-corners -->
 			</div><!-- .entry-gallery -->
 		<?php