HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/public_html/wp-content/themes/newsup/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.
 * @package Newsup
 */
get_header(); ?>
<!--==================== Newsup breadcrumb section ====================-->
            <div id="content" class="container-fluid home">
                <!--row-->
                <div class="row">
                    <!--col-md-8-->
                    <?php 
                    $newsup_content_layout = esc_attr(get_theme_mod('newsup_content_layout','align-content-right'));
                    if($newsup_content_layout == "align-content-left")
                    { ?>
                    <aside class="col-md-4">
                        <?php get_sidebar();?>
                    </aside>
                    <?php }
                    elseif($newsup_content_layout == "grid-left-sidebar")
                    { ?>
                    <aside class="col-md-4">
                        <?php get_sidebar();?>
                    </aside>
                    <?php }
                    if($newsup_content_layout == "align-content-right"){ ?>
                    <div class="col-md-8">
                        <?php get_template_part('content',''); ?>
                    </div>
                    <?php } elseif($newsup_content_layout == "align-content-left") { ?>
                    <div class="col-md-8">
                        <?php get_template_part('content',''); ?>
                    </div>
                    <?php } elseif($newsup_content_layout == "full-width-content") { ?>
                     <div class="col-md-12">
                        <?php get_template_part('content',''); ?>
                    </div>
                     <?php }  if($newsup_content_layout == "grid-left-sidebar"){ ?>
                    <div class="col-md-8">
                        <?php get_template_part('content','grid'); ?>
                    </div>
                    <?php } elseif($newsup_content_layout == "grid-right-sidebar") { ?>
                    <div class="col-md-8">
                        <?php get_template_part('content','grid'); ?>
                    </div>
                    <?php } elseif($newsup_content_layout == "grid-fullwidth") { ?>
                     <div class="col-md-12">
                       <?php get_template_part('content','grid'); ?>
                    </div>
                     <?php }  ?>
                    
                    <!--/col-md-8-->
                    <?php if($newsup_content_layout == "align-content-right")  { ?>
                    <!--col-md-4-->
                    <aside class="col-md-4">
                        <?php get_sidebar();?>
                    </aside>
                    <!--/col-md-4-->
                    <?php } 
                    elseif($newsup_content_layout == "grid-right-sidebar")
                    { ?>
                    <aside class="col-md-4">
                        <?php get_sidebar();?>
                    </aside>
                    <?php }?>
                </div>
                <!--/row-->
    </div>
<?php
get_footer();
?>