Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/archive.php
Назад
<?php get_header(); ?> <div class="content"> <div class="container"> <div class="row"> <?php $musicnight_theme_option = get_option('musicnight_admin_option', array()); $musicnight_post_option = musicnight_decode_stopbackslashes(get_post_meta(get_the_ID(), 'post-option', true )); if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } if( empty($musicnight_post_option['sidebar']) || $musicnight_post_option['sidebar'] == 'default-sidebar' ){ $musicnight_sidebar = array( 'type'=>$musicnight_theme_option['archive-sidebar-template'], 'left-sidebar'=>$musicnight_theme_option['archive-sidebar-left'], 'right-sidebar'=>$musicnight_theme_option['archive-sidebar-right'] ); }else{ $musicnight_sidebar = array( 'type'=>$musicnight_post_option['sidebar'], 'left-sidebar'=>$musicnight_post_option['left-sidebar'], 'right-sidebar'=>$musicnight_post_option['right-sidebar'] ); } $musicnight_sidebar = musicnight_get_sidebar_class($musicnight_sidebar);?> <div class="kode-content-area <?php echo esc_attr($musicnight_sidebar['center'])?> kode-main-content"> <?php if( is_tax('event-categories') && is_tax('event-tags') ){ // set the excerpt length if( !empty($musicnight_theme_option['archive-num-excerpt']) ){ $musicnight_excerpt_length = $musicnight_theme_option['archive-num-excerpt']; add_filter('excerpt_length', 'musicnight_set_excerpt_length'); } $musicnight_lightbox_id++; $settings['num-fetch'] = -1; $settings['element-item-class'] = ''; $settings['event-style'] = 'event-grid-view'; $settings['tag'] = strtolower(single_cat_title('', false)); $settings['element-item-id'] = ''; $settings['blog-meta'] = 'yes'; $settings['blog-share'] = 'yes'; $settings['margin-bottom'] = 30; $settings['thumbnail-size'] = 'full'; $settings['scope'] = 'all'; $settings['event-size'] = 3; echo '<div class="kode-event-column-archive">'; $settings['order'] = 'asc'; $settings['pagination'] = 'disable'; echo musicnight_get_events_item($settings); echo '</div>'; }else if( is_tax('work_category') && is_tax('work_tag') ){ // set the excerpt length if( !empty($musicnight_theme_option['archive-num-excerpt']) ){ $musicnight_excerpt_length = $musicnight_theme_option['archive-num-excerpt']; add_filter('excerpt_length', 'musicnight_set_excerpt_length'); } $musicnight_lightbox_id++; $settings['num-fetch'] = -1; $settings['element-item-class'] = ''; $settings['tag'] = strtolower(single_cat_title('', false)); $settings['blog-meta'] = 'yes'; $settings['blog-share'] = 'yes'; $settings['work-padding'] = 'with-padding'; $settings['element-item-id'] = ''; $settings['margin-bottom'] = 30; $settings['work-filterable'] = 'disable'; $settings['thumbnail-size'] = 'full'; $settings['work-size'] = 4; echo '<div class="kode-work-column-archive">'; $settings['work-style'] = 'style-2'; $settings['pagination'] = 'enable'; echo musicnight_get_work_item($settings); echo '</div>'; }else if( is_tax('genre') ){ // set the excerpt length if( !empty($musicnight_theme_option['archive-num-excerpt']) ){ $musicnight_excerpt_length = $musicnight_theme_option['archive-num-excerpt']; add_filter('excerpt_length', 'musicnight_set_excerpt_length'); } $musicnight_lightbox_id++; $settings['num-fetch'] = 8; $settings['element-item-class'] = ''; // $settings['category'] = strtolower(single_cat_title('', false)); $settings['blog-meta'] = 'yes'; $settings['blog-share'] = 'yes'; $settings['element-item-id'] = ''; $settings['margin-bottom'] = 30; $settings['work-filterable'] = 'disable'; $settings['title-num-excerpt'] = '300'; $settings['thumbnail-size'] = 'full'; $settings['album-column'] = 4; $settings['album-padding'] = 'with-padding'; $settings['album-view'] = 'album-simple'; echo '<div class="kode-work-column-archive">'; $settings['album-style'] = 'modern-grid-view'; $settings['pagination'] = 'enable'; echo musicnight_get_album_item($settings); echo '</div>'; $paged = (get_query_var('paged'))? get_query_var('paged') : 1; echo musicnight_get_pagination($wp_query->max_num_pages, $paged); }else{ // set the excerpt length if( !empty($musicnight_theme_option['archive-num-excerpt']) ){ $musicnight_excerpt_length = $musicnight_theme_option['archive-num-excerpt']; add_filter('excerpt_length', 'musicnight_set_excerpt_length'); } $musicnight_lightbox_id++; $musicnight_post_settings['blog-meta'] = 'yes'; $musicnight_post_settings['blog-share'] = 'yes'; $musicnight_post_settings['num-excerpt'] = '150'; $musicnight_post_settings['thumbnail-size'] = 'full'; $size = 1; $musicnight_post_settings['title-num-fetch'] = 200; $musicnight_post_settings['blog-style'] = $musicnight_theme_option['archive-blog-style']; echo '<div class="kode-blog-list-archive kode-fullwidth-blog row">'; if($musicnight_theme_option['archive-blog-style'] == 'blog-full'){ echo musicnight_get_blog_full($wp_query,$size, 'ddd'); }else if($musicnight_theme_option['archive-blog-style'] == 'blog-medium'){ echo '<div class="kode-blog-list-archive kode-mediium-blog margin-bottom">'; echo musicnight_get_blog_medium($wp_query); echo '</div>'; }else{ $blog_size = 3; echo '<div class="kode-blog-list-archive kode-blog-grid margin-bottom-30">'; echo musicnight_get_blog_grid($wp_query, $blog_size, 'fitRows'); echo '</div>'; } echo '</div>'; $paged = (get_query_var('paged'))? get_query_var('paged') : 1; echo musicnight_get_pagination($wp_query->max_num_pages, $paged); } ?> </div> <?php $musicnight_sidebar = musicnight_get_sidebar_class($musicnight_sidebar); if($musicnight_sidebar['type'] == 'both-sidebar' || $musicnight_sidebar['type'] == 'left-sidebar'){ ?> <div class="kode-left-sidebar-area pull-left <?php echo esc_attr($musicnight_sidebar['left'])?>"> <?php get_sidebar('left'); ?> </div> <?php } if($musicnight_sidebar['type'] == 'both-sidebar' || $musicnight_sidebar['type'] == 'right-sidebar' && $musicnight_sidebar['right'] != ''){ ?> <div class="kode-right-sidebar-area pull-right <?php echo esc_attr($musicnight_sidebar['right'])?>"> <?php get_sidebar('right'); ?> </div> <?php } ?> </div><!-- Row --> </div><!-- Container --> </div><!-- content --> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка