| Server IP : 89.108.64.180 / Your IP : 216.73.216.220 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/imperial28.ru/wp-content/themes/pridmag/ |
Upload File : |
<?php
/**
* Template Name: Magazine Template
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package PridMag
*/
get_header();
?>
<?php if ( current_user_can( 'edit_theme_options' ) ) : ?>
<?php if ( !is_active_sidebar( 'featured-sidebar' ) && !is_active_sidebar( 'magazine-sidebar-1' ) && !is_active_sidebar( 'magazine-sidebar-2' ) && !is_active_sidebar( 'magazine-sidebar-3' ) && !is_active_sidebar( 'magazine-sidebar-4' ) ) : ?>
<div class="th-instructions">
<p>
<?php esc_html_e( 'Please go to Appearance → Widgets OR Appearance → Customize → Widgets and add widgets to the "Featured Content Area", "Magazine Top Content", "Magazine Mid Left Content" and "Magazine Mid Right Content" widget areas.
You can use TH: Magazine Posts widgets to set up the theme like the demo website. If you want more information please read the theme documentaion.', 'pridmag' ); ?>
</p>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="pm-featured-content-area">
<?php
if ( is_active_sidebar( 'featured-sidebar' ) ) {
dynamic_sidebar( 'featured-sidebar' );
}
?>
</div><!-- .pm-featured-content-area -->
<div class="pm-magazine-top">
<?php
if ( is_active_sidebar( 'magazine-sidebar-1' ) ) {
dynamic_sidebar( 'magazine-sidebar-1' );
}
?>
</div><!-- .pm-magazine-top -->
<div class="pm-magazine-mid-left">
<?php
if ( is_active_sidebar( 'magazine-sidebar-2' ) ) {
dynamic_sidebar( 'magazine-sidebar-2' );
}
?>
</div><!-- .pm-magazine-mid-left -->
<div class="pm-magazine-mid-right">
<?php
if ( is_active_sidebar( 'magazine-sidebar-3' ) ) {
dynamic_sidebar( 'magazine-sidebar-3' );
}
?>
</div><!-- .pm-magazine-mid-right -->
<div class="pm-magazine-bottom">
<?php
if ( is_active_sidebar( 'magazine-sidebar-4' ) ) {
dynamic_sidebar( 'magazine-sidebar-4' );
}
?>
</div><!-- .pm-magazine-bottom -->
<?php
get_footer();