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/single.php
<?php
/*
* The template for displaying single
*/
get_header(); ?>

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

		<?php the_post(); ?>

		<?php
			/*====== Customizer Settings ======*/
			$category_info = get_theme_mod( 'loquet_blog_posts_category_info', '1' );
			$author_info = get_theme_mod( 'loquet_blog_posts_author_info', '1' );
			$date_info = get_theme_mod( 'loquet_blog_posts_date_info', '1' );
			$date_info_type = get_theme_mod( 'loquet_blog_posts_date_info_type', 'date-time' );
			$comment_info = get_theme_mod( 'loquet_blog_posts_comment_info', '1' );
			$reading_time_info = get_theme_mod( 'loquet_blog_posts_reading_time_info' );
			$tags = get_theme_mod( 'loquet_blog_posts_tags', '1' );
			$tags_style = get_theme_mod( 'loquet_blog_posts_tags_style', 'style-3' );
			$author_box = get_theme_mod( 'loquet_blog_posts_author_box', '1' );
			$related_posts = get_theme_mod( 'loquet_blog_posts_related_posts' );
			$content_inner_padding = "0";
			$page_navigation = get_theme_mod( 'loquet_blog_post_page_navigation' );
			$page_navigation_width = get_theme_mod( 'loquet_blog_post_page_navigation_width', 'narrow' );
			$page_navigation_skin = get_theme_mod( 'loquet_blog_post_page_navigation_skin', 'light' );
			$social_sharing_box = get_theme_mod( 'loquet_blog_posts_social_sharing_box', '1' );
			$social_sharing_box_style = get_theme_mod( 'loquet_blog_posts_social_sharing_box_style', 'style-13-v3' );
			$social_sharing_box_size = get_theme_mod( 'loquet_blog_posts_social_sharing_box_size', 'size-s' );
			$container_width = get_theme_mod( 'loquet_blog_posts_page_container_width', 'narrow' );
			$featured_header = get_theme_mod( 'loquet_blog_posts_featured_header', '1' );
			$featured_header_position = get_theme_mod( 'loquet_blog_posts_featured_header_position', 'position-1' );
			$comments = get_theme_mod( 'loquet_blog_posts_comments', '1' );

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

				$post_category_info = rwmb_meta( 'loquet-post-category-info' );
				$post_author_info = rwmb_meta( 'loquet-post-author-info' );
				$post_date_info = rwmb_meta( 'loquet-post-date-info' );
				$post_comment_info = rwmb_meta( 'loquet-post-comment-info' );
				$post_reading_time = rwmb_meta( 'loquet-post-reading-time-info' );
				$post_tags = rwmb_meta( 'loquet-tags' );
				$post_author_box = rwmb_meta( 'loquet-author-info-box' );
				$post_related_posts = rwmb_meta( 'loquet-related-posts' );
				$post_page_navigation = rwmb_meta( 'loquet-page-navigation' );
				$post_social_sharing_box = rwmb_meta( 'loquet-social-sharing-box' );
				$post_content_inner_padding = rwmb_meta( 'loquet-content-inner-padding' );
				$post_container_width = rwmb_meta( 'loquet-page-container-width' );
				$post_featured_header = rwmb_meta( 'loquet-featured-header' );
				$post_featured_header_position = rwmb_meta( 'loquet-featured-header-position' );
				$post_comments = rwmb_meta( 'loquet-comments' );

			} else {

				$post_category_info = "";
				$post_author_info = "";
				$post_date_info = "";
				$post_comment_info = "";
				$post_reading_time = "";
				$post_tags = "";
				$post_author_box = "";
				$post_related_posts = "";
				$post_page_navigation = "";
				$post_social_sharing_box = "";
				$post_content_inner_padding = "";
				$post_container_width = "";
				$post_featured_header = "";
				$post_featured_header_position = "";
				$post_comments = "";

			}

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

				$author_info = esc_attr( $post_author_info );

			}

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

				$date_info = esc_attr( $post_date_info );

			}

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

				$comment_info = esc_attr( $post_comment_info );

			}

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

				$reading_time_info = esc_attr( $post_reading_time );

			}

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

				$category_info = esc_attr( $post_category_info );

			}

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

				$tags = esc_attr( $post_tags );

			}

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

				$author_box = esc_attr( $post_author_box );

			}

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

				$related_posts = esc_attr( $post_related_posts );

			}

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

				$comments = esc_attr( $post_comments );

			}

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

				$social_sharing_box = esc_attr( $post_social_sharing_box );

			}

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

				$content_inner_padding = esc_attr( $post_content_inner_padding );

			}

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

				$page_navigation = esc_attr( $post_page_navigation );

			}

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

				$container_width = esc_attr( $post_container_width );

			}

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

				$featured_header = esc_attr( $post_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( $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_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( post_password_required() ) {

									if( function_exists( 'loquet_password_protected_box' ) ) {

										echo loquet_password_protected_box();

									}

								} else {
							?>

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

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

											echo '<div class="gt-categories">';
												the_category();
											echo '</div>';

										}
									?>

									<h1><?php the_title(); ?></h1>

									<?php echo loquet_post_meta( $post_id = get_the_ID(), $author = esc_attr( $author_info ), $date = esc_attr( $date_info ), $date_type = esc_attr( $date_info_type ), $category = "false", $comment = esc_attr( $comment_info ), $reading_time = esc_attr( $reading_time_info ), $wrap_class = "gt-details" ); ?>

								</div>

								<?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<?php if( !empty( $content_inner_padding ) ){ echo " gt-inner-padding-" . esc_attr( $content_inner_padding ); } ?>">
									<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( $tags == "1" ) {

											the_tags( '<div class="gt-item gt-item-tags"><div class="gt-term-listing gt-' . esc_attr( $tags_style ) . '"><ul><li>', '</li><li>', '</li></ul></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( $author_box == "1" or $related_posts == "1" or $comments == "1" ) {

										echo '<div class="gt-content-footer' . ( !empty( $content_inner_padding ) ? " gt-inner-padding-" . esc_attr( $content_inner_padding ) : "" ) . '">';

											if( $author_box == "1" ) {

												if( !empty( loquet_author_box() ) ) {

													echo '<div class="gt-item gt-item-author-box">';
														echo loquet_author_box();
													echo '</div>';

												}

											}

											if( $related_posts == "1" ) {

												if( !empty( loquet_related_posts( $post_id = get_the_ID() ) ) ) {

													echo '<div class="gt-item gt-item-related-posts">';
														echo '<div class="gt-title">' . esc_html__( 'Related Posts', 'loquet' ) . '</div>';
														echo loquet_related_posts( $post_id = get_the_ID() );
													echo '</div>';

												}

											}

											if( $comments == "1" ) {

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

													echo '<div class="gt-item gt-item-comments">';
														comments_template();
													echo '</div>';

												}

											}

										echo '</div>';

									}
								?>

							<?php } ?>

						</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 get_footer();