Файловый менеджер - Редактировать - /home/digitalm/tendepavia/wp-content/themes/trydo/index.php
Назад
<?php /** * The main template file * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package trydo */ get_header(); // Get Value $rbt_options = Helper::trydo_get_options(); $trydo_blog_sidebar_class = ($rbt_options['trydo_blog_sidebar'] === 'no') || !is_active_sidebar( 'sidebar-1' ) ? 'col-lg-10 offset-lg-1 col-md-12 col-12':'col-lg-8 col-md-12 col-12'; ?> <!-- Start Blog Area --> <div class="trydo-blog-area rn-section-gap bg-color-white"> <div class="container"> <div class="row row--40"> <?php if ( is_active_sidebar( 'sidebar-1' ) && $rbt_options['trydo_blog_sidebar'] == 'left') { ?> <div class="col-lg-4 col-md-12 col-12 mt_md--40 mt_sm--40"> <?php dynamic_sidebar(); ?> </div> <?php } ?> <div class="<?php echo esc_attr($trydo_blog_sidebar_class); ?>"> <?php if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/post/content', get_post_format() ); endwhile; trydo_blog_pagination(); else : get_template_part( 'template-parts/post/content', 'none' ); endif; ?> </div> <?php if ( is_active_sidebar( 'sidebar-1' ) && $rbt_options['trydo_blog_sidebar'] == 'right') { ?> <div class="col-lg-4 col-md-12 col-12 mt_md--40 mt_sm--40"> <?php dynamic_sidebar(); ?> </div> <?php } ?> </div> </div> </div> <!-- End Blog Area --> <?php get_footer();
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка