瀏覽代碼

Privacy Policy if condition fix.

Jeffrey Pearce 5 年之前
父節點
當前提交
eeabd84b3a
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      stratford/footer.php

+ 4 - 4
stratford/footer.php

@@ -33,13 +33,13 @@
 			</nav><!-- .social-navigation -->
 		<?php endif; ?>
 		<div class="site-info">
-			<div class="privacy-policy-container">
 			<?php
-			if ( function_exists( 'the_privacy_policy_link' ) ) {
-				the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
+			if ( function_exists( 'the_privacy_policy_link' ) ) { ?>
+				<div class="privacy-policy-container">
+				<?php the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); ?>
+				</div><?php 
 			}
 			?>
-			</div>
 			<?php $blog_info = get_bloginfo( 'name' ); ?>
 			<?php if ( ! empty( $blog_info ) ) : ?>
 				<a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><span class="comma">,</span>