. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.14 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/alshnoli/public_html/wp-content/plugins/us-core/templates/ |
Upload File : |
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );
/**
* Template to show single page or any post type
*/
$us_layout = US_Layout::instance();
us_register_context_layout( 'header' );
get_header();
us_register_context_layout( 'main' );
?>
<main id="page-content" class="l-main"<?php echo ( us_get_option( 'schema_markup' ) ) ? ' itemprop="mainContentOfPage"' : ''; ?>>
<?php
do_action( 'us_before_page' );
if ( us_get_option( 'enable_sidebar_titlebar', 0 ) ) {
// Titlebar, if it is enabled in Theme Options
us_load_template( 'templates/titlebar' );
// START wrapper for Sidebar
us_load_template( 'templates/sidebar', array( 'place' => 'before' ) );
}
while ( have_posts() ) {
the_post();
$content_area_id = us_get_page_area_id( 'content' );
if ( $content_area_id != '' AND get_post_status( $content_area_id ) != FALSE ) {
us_load_template( 'templates/content' );
} else {
$the_content = apply_filters( 'the_content', get_the_content() );
// The page may be paginated itself via <!--nextpage--> tags
$pagination = us_wp_link_pages();
// If content has no sections, we'll create them manually
$has_own_sections = ( strpos( $the_content, ' class="l-section' ) !== FALSE );
if ( ! ( function_exists( 'vc_is_page_editable' ) AND vc_is_page_editable() ) AND ( ! $has_own_sections OR get_post_type() == 'tribe_events' ) ) {
$the_content = '<section class="l-section height_' . us_get_option( 'row_height', 'medium' ) . '"><div class="l-section-h i-cf">' . $the_content . $pagination . '</div></section>';
} elseif ( ! empty( $pagination ) ) {
$the_content .= '<section class="l-section height_' . us_get_option( 'row_height', 'medium' ) . '"><div class="l-section-h i-cf">' . $pagination . '</div></section>';
}
echo $the_content;
// Post comments
if ( comments_open() OR get_comments_number() != '0' ) {
$show_comments = TRUE;
// Check comments option of Events Calendar plugin
if ( function_exists( 'tribe_get_option' ) AND get_post_type() == 'tribe_events' ) {
$show_comments = tribe_get_option( 'showComments' );
}
if ( $show_comments ) {
?>
<section class="l-section height_<?php echo us_get_option( 'row_height', 'medium' ) ?> for_comments">
<div class="l-section-h i-cf"><?php
wp_enqueue_script( 'comment-reply' );
comments_template();
?></div>
</section><?php
}
}
}
}
if ( us_get_option( 'enable_sidebar_titlebar', 0 ) ) {
// AFTER wrapper for Sidebar
us_load_template( 'templates/sidebar', array( 'place' => 'after' ) );
}
do_action( 'us_after_page' );
?>
</main>
<?php
us_register_context_layout( 'footer' );
get_footer()
?>