| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/test20.chuangfenglink.xyz/wp-content/themes/woodmart/ |
Upload File : |
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that other
* 'pages' on your WordPress site will use a different template.
*/
get_header();
$classes = '';
$style = '';
if ( woodmart_has_sidebar_in_page() ) {
$classes .= ' wd-grid-col';
$style .= ' style="' . esc_attr( woodmart_get_content_inline_style() ) . '"';
}
if ( 'sidebar-left' === woodmart_get_page_layout() ) {
get_sidebar();
}
?>
<div class="wd-content-area site-content<?php echo esc_attr( $classes ); ?>"<?php echo wp_kses( $style, true ); ?>>
<?php /* The loop */ ?>
<?php
while ( have_posts() ) :
the_post();
woodmart_enqueue_inline_style( 'post-types-mod-predefined' );
woodmart_enqueue_inline_style( 'post-types-mod-categories-style-bg' );
woodmart_enqueue_inline_style( 'blog-single-predefined' );
?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php if ( get_the_tag_list() || ( woodmart_get_opt( 'blog_share' ) && woodmart_is_social_link_enabled( 'share' ) ) ) : ?>
<div class="wd-single-footer">
<?php if ( get_the_tag_list() ) : ?>
<?php woodmart_enqueue_inline_style( 'single-post-el-tags' ); ?>
<div class="wd-tags-list wd-style-1">
<?php echo get_the_tag_list(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
<?php endif; ?>
<?php if ( woodmart_get_opt( 'blog_share' ) && woodmart_is_social_link_enabled( 'share' ) ) : ?>
<?php
if ( function_exists( 'woodmart_shortcode_social' ) ) {
echo woodmart_shortcode_social( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
array(
'type' => 'share',
'tooltip' => 'no',
'style' => 'colored',
'align' => '',
)
);}
?>
<?php endif ?>
</div>
<?php endif ?>
<?php
if ( woodmart_get_opt( 'blog_navigation' ) ) {
woodmart_posts_navigation();
}
?>
<?php
if ( woodmart_get_opt( 'blog_related_posts' ) ) {
$args = woodmart_get_related_posts_args( $post->ID );
$query = new WP_Query( $args );
$design = woodmart_get_opt( 'blog_design' );
woodmart_enqueue_inline_style( 'blog-loop-base' );
if ( 'meta-image' === $design ) {
woodmart_enqueue_inline_style( 'blog-loop-design-' . $design );
} else {
woodmart_enqueue_inline_style( 'blog-loop-design-masonry' );
}
if ( function_exists( 'woodmart_generate_posts_slider' ) ) {
echo woodmart_generate_posts_slider( //phpcs:ignore.
array(
'title' => esc_html__( 'Related Posts', 'woodmart' ),
'blog_design' => 'carousel',
'blog_carousel_design' => 'meta-image' === $design ? $design : 'masonry',
'wrapper_classes' => ' related-posts-slider',
'slides_per_view' => 2,
'parts_title' => woodmart_get_opt( 'parts_title', true ),
'parts_meta' => woodmart_get_opt( 'parts_meta', true ),
'parts_text' => woodmart_get_opt( 'parts_text', true ),
'parts_btn' => woodmart_get_opt( 'parts_btn', true ),
'spacing' => 20,
),
$query
);
}
}
?>
<?php comments_template(); ?>
<?php endwhile; ?>
</div>
<?php
if ( 'sidebar-left' !== woodmart_get_page_layout() ) {
get_sidebar();
}
?>
<?php get_footer(); ?>