| Server IP : 198.38.94.67 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/azfilmst/royalopus.ae/wp-content/themes/spaciaz/ |
Upload File : |
<?php
/**
* The loop template file.
*
* Included on pages like index.php, archive.php and search.php to display a loop of posts
* Learn more: https://codex.wordpress.org/The_Loop
*
* @package spaciaz
*/
do_action('spaciaz_loop_before');
$columns = spaciaz_get_theme_option('blog_columns');
$blog_style = spaciaz_get_theme_option('blog_style');
$check_style = $blog_style && $blog_style !== 'standard';
if ($check_style) {
if($blog_style == 'grid') {
$blog_style = 'style-1';
}
if ($blog_style == 'list') {
echo '<div class="blog-style-list">';
} else {
echo '<div class="blog-style-grid d-grid grid-columns-desktop-' . esc_attr($columns) . ' grid-columns-tablet-2 grid-columns-1">';
}
}
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.
*/
if ($check_style) {
get_template_part('template-parts/posts-grid/item-post-' . $blog_style);
} else {
get_template_part('content', get_post_format());
}
endwhile;
if ($check_style) {
echo '</div>';
}
/**
* Functions hooked in to spaciaz_loop_after action
*
* @see spaciaz_paging_nav - 10
*/
do_action('spaciaz_loop_after');