HEX
Server: Apache
System: Linux pdx1-shared-a1-31 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: dh_5jabqq (6436002)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/dh_5jabqq/bermudashipwreckarchive.com/wp-content/themes/loquet/page.php
<?php
/*
* The template for displaying page
*/
get_header(); ?>

	<?php while( have_posts() ) { ?>

		<?php the_post(); ?>

		<?php
			if( post_password_required() ) {

				if( function_exists( 'loquet_password_protected_box' ) ) {

					echo loquet_flex_container_before();
						echo loquet_password_protected_box();
					echo loquet_flex_container_after();

				}

			} else {

				/*====== Customizer Settings ======*/
				$featured_header = get_theme_mod( 'loquet_pages_featured_header' );
				$featured_header_position = get_theme_mod( 'loquet_pages_featured_header_position', 'position-1' );
				$container_width = get_theme_mod( 'loquet_pages_page_container_width', 'narrow' );
				$social_sharing_box = get_theme_mod( 'loquet_pages_social_sharing_box' );
				$social_sharing_box_style = get_theme_mod( 'loquet_pages_social_sharing_box_style', 'style-13-v3' );
				$social_sharing_box_size = get_theme_mod( 'loquet_pages_social_sharing_box_size', 'size-s' );
				$comments = get_theme_mod( 'loquet_pages_comments', '1' );
				$content_inner_padding = "0";
				$page_navigation = get_theme_mod( 'loquet_pages_page_navigation' );
				$page_navigation_width = get_theme_mod( 'loquet_pages_page_navigation_width', 'narrow' );
				$page_navigation_skin = get_theme_mod( 'loquet_pages_page_navigation_skin', 'light' );

				/*====== Metabox Settings ======*/
				if( function_exists( 'rwmb_meta' ) ) {

					$page_featured_header = rwmb_meta( 'loquet-featured-header' );
					$post_featured_header_position = rwmb_meta( 'loquet-featured-header-position' );
					$page_container_width = rwmb_meta( 'loquet-page-container-width' );
					$page_social_sharing_box = rwmb_meta( 'loquet-social-sharing-box' );
					$page_comments = rwmb_meta( 'loquet-comments' );
					$page_content_inner_padding = rwmb_meta( 'loquet-content-inner-padding' );
					$page_page_navigation = rwmb_meta( 'loquet-page-navigation' );

				} else {

					$page_featured_header = "";
					$post_featured_header_position = "";
					$page_container_width = "";
					$page_social_sharing_box = "";
					$page_comments = "";
					$page_content_inner_padding = "";
					$page_page_navigation = "";

				}

				if( $page_featured_header !== "default" and !empty( $page_featured_header ) or $page_featured_header == "0" ) {

					$featured_header = esc_attr( $page_featured_header );

				}

				if( $post_featured_header_position !== "default" and !empty( $post_featured_header_position ) or $post_featured_header_position == "0" ) {

					$featured_header_position = esc_attr( $post_featured_header_position );

				}

				if( $page_container_width !== "default" and !empty( $page_container_width ) ) {

					$container_width = esc_attr( $page_container_width );

				}

				if( $page_social_sharing_box !== "default" and !empty( $page_social_sharing_box ) or $page_social_sharing_box == "0" ) {

					$social_sharing_box = esc_attr( $page_social_sharing_box );

				}

				if( $page_comments !== "default" and !empty( $page_comments ) or $page_comments == "0" ) {

					$comments = esc_attr( $page_comments );

				}

				if( $page_content_inner_padding !== "default" and !empty( $page_content_inner_padding ) or $page_content_inner_padding == "0" ) {

					$content_inner_padding = esc_attr( $page_content_inner_padding );

				}

				if( $page_page_navigation !== "default" and !empty( $page_page_navigation ) or $page_page_navigation == "0" ) {

					$page_navigation = esc_attr( $page_page_navigation );

				}

				if( $featured_header_position == "position-2" ) {

					$page_content_style = "gt-style-2";

				} else {

					$page_content_style = "gt-style-1";

				}
			?>

			<?php
				if( $featured_header == "1" and $featured_header_position == "position-2" ) {

					echo loquet_featured_header( $post_id = get_the_ID(), $position = esc_attr( $featured_header_position ) );

				}
			?>

			<?php echo loquet_title_bar(); ?>

			<?php echo loquet_page_wrapper_before(); ?>

				<?php
					if( $featured_header == "1" and $featured_header_position == "position-3" ) {

						echo loquet_container_before();
							echo loquet_featured_header( $post_id = get_the_ID(), $position = esc_attr( $featured_header_position ) );
						echo loquet_container_after();

					}
				?>

				<?php
					if( $container_width == "wide" ) {

						echo loquet_flex_container_full_before( $extra_class = "gt-page-layout" );

					} elseif( $container_width == "fluid" ) {

						echo loquet_flex_container_fluid_before( $extra_class = "gt-page-layout" );

					} elseif( $container_width == "narrow" ) {

						echo loquet_flex_container_before( $extra_class = "gt-page-layout" );

					}
				?>

					<?php echo loquet_page_content_before( $extra_class = esc_attr( $page_content_style ) ); ?>

						<article class="gt-article">
							<div id="post-<?php the_ID(); ?>" <?php post_class( 'gt-content' ); ?>>

								<?php
									if( $featured_header == "1" and $featured_header_position == "position-1" ) {

										echo loquet_featured_header( $post_id = get_the_ID(), $position = esc_attr( $featured_header_position ) );

									}
								?>

								<div class="gt-content-body">
									<div class="gt-item gt-item-content<?php if( !empty( $content_inner_padding ) ){ echo " gt-inner-padding-" . esc_attr( $content_inner_padding ); } ?>">
										<?php the_content(); ?>
									</div>

									<?php
										wp_link_pages(
											array(
												'before' => '<div class="gt-item gt-item-pages"><div class="gt-title">' . esc_html__( 'Pages:', 'loquet' ) . '</div><div class="gt-page-pages">',
												'after' => '</div></div>',
											)
										);

										if( $social_sharing_box == "1" and function_exists( 'loquet_social_sharing' ) ) {

											if( !empty( loquet_social_sharing( $class = "", $style = esc_attr( $social_sharing_box_style ), $skin = "light", $size = esc_attr( $social_sharing_box_size ), $custom_title = "", $align = "left" ) ) ) {

												echo '<div class="gt-item gt-item-social-sharing">';
													echo loquet_social_sharing( $class = "", $style = esc_attr( $social_sharing_box_style ), $skin = "light", $size = esc_attr( $social_sharing_box_size ), $custom_title = "", $align = "left" );
												echo '</div>';

											}

										}
									?>
								</div>
								
								<?php
									if( $comments == "1") {

										if( comments_open() || get_comments_number() ) {

											echo '<div class="gt-content-footer">';

												comments_template();

											echo '</div>';

										}

									}
								?>

							</div>
						</article>

					<?php echo loquet_page_content_after(); ?>

					<?php get_sidebar(); ?>

				<?php
					if( $container_width == "wide" ) {

						echo loquet_flex_container_full_after();

					} elseif( $container_width == "fluid" ) {

						echo loquet_flex_container_fluid_after();

					} elseif( $container_width == "narrow" ) {

						echo loquet_flex_container_after();

					}
				?>

			<?php echo loquet_page_wrapper_after(); ?>

			<?php
				if( $page_navigation == "1" ) {

					echo '<div class="gt-page-pagination gt-style-1 gt-' . esc_attr( $page_navigation_skin ) . '">';

						if( $page_navigation_width == "wide" ) {

							echo loquet_container_full_before();

						} elseif( $page_navigation_width == "narrow" ) {

							echo loquet_container_before();

						}

							echo loquet_page_navigation();

						if( $page_navigation_width == "wide" ) {

							echo loquet_container_full_after();

						} elseif( $page_navigation_width == "narrow" ) {

							echo loquet_container_after();

						}

					echo '</div>';

				}
			?>

		<?php } ?>

	<?php } ?>

<?php get_footer();