| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/iscmbt-kufa-atu/public_html/wp-content/themes/eventalk/ |
Upload File : |
<?php
/**
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
namespace radiustheme\Eventalk;
use \WP_Query;
// CPT Redirection
$cpt = THEME_CPT_PREFIX;
if ( is_post_type_archive( "{$cpt}_speaker" ) || is_tax( "{$cpt}_speaker_category" ) ) {
get_template_part( 'template-parts/archive', 'speakers' );
return;
}
if ( is_post_type_archive( "{$cpt}_event" ) || is_tax( "{$cpt}_event_category" ) ) {
get_template_part( 'template-parts/archive', 'event' );
return;
}
// Layout class
if ( RDTheme::$layout == 'full-width' ) {
$layout_class = 'col-sm-12 col-xs-12';
$post_class = 'col-lg-4 col-md-6 col-sm-6 col-xs-12 no-equal-item';
}
else{
$layout_class = 'col-md-9 col-xs-12';
$post_class = 'col-lg-6 col-md-6 col-sm-6 col-xs-12 no-equal-item';
}
?>
<?php get_header();
?>
<div id="primary" class="content-area">
<div class="container">
<div class="row">
<?php
if ( RDTheme::$layout == 'left-sidebar' ) {
get_sidebar();
}
?>
<div class="<?php echo esc_attr( $layout_class );?>">
<main id="main" class="site-main site-index">
<?php if ( have_posts() ) :?>
<?php
echo '<div id="no-equal-gallery" class="row">';
while ( have_posts() ) : the_post();
echo '<div class="' . $post_class. '">';
get_template_part( 'template-parts/content-masonry', get_post_format() );
echo '</div>';
endwhile;
echo '</div>';
?>
<div class="mt50"><?php Helper::pagination();?></div>
<?php else:?>
<?php get_template_part( 'template-parts/content', 'none' );?>
<?php endif;?>
</main>
</div>
<?php
if ( RDTheme::$layout == 'right-sidebar' ) {
get_sidebar();
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>