File "index.php"

Full Path: /home/ubunrgit/public_html/wp-content/themes/unicoach/index.php
File size: 1.26 KB
MIME-type: text/x-php
Charset: utf-8

<?php

defined('ABSPATH') || exit;

use Unicoach_Theme_Helper as Unicoach;

/**
 * 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://codex.wordpress.org/Template_Hierarchy
 *
 * @package unicoach
 * @since 1.0.0
 */

get_header();

$sb = Unicoach::get_sidebar_data();
$container_class = $sb['container_class'] ?? '';
$row_class = $sb['row_class'] ?? '';
$column = $sb['column'] ?? '';

// Render
echo '<div class="wgl-container', apply_filters('unicoach/container/class', $container_class), '">';
echo '<div class="row', apply_filters('unicoach/row/class', $row_class), '">';

    echo '<div id="main-content" class="wgl_col-', apply_filters('unicoach/column/class', $column), '">';

        // Blog Archive Template
        get_template_part('templates/post/posts-list');

        // Pagination
        echo Unicoach::pagination();

    echo '</div>';

    if ($sb) {
        Unicoach::render_sidebar($sb);
    }

echo '</div>';
echo '</div>';

get_footer();