Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/single-event.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(is_single() && get_post_type() == 'event'){ // $musicnight_post_option= implode($musicnight_post_option,","); } if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } $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); if(isset($musicnight_sidebar['left']) && $musicnight_sidebar['left'] <> ''){ if($musicnight_sidebar['type'] == 'both-sidebar' || $musicnight_sidebar['type'] == 'left-sidebar'){ ?> <div class="kode-left-sidebar-area <?php echo esc_attr($musicnight_sidebar['left'])?>"> <?php get_sidebar('left'); ?> </div> <?php } } ?> <div class="kode-content-area kode-item <?php echo esc_attr($musicnight_sidebar['center'])?>"> <?php while ( have_posts() ){ the_post(); global $EM_Event,$post; $event_year = esc_attr(date('Y',$EM_Event->start)); $event_month = esc_attr(date('m',$EM_Event->start)); $event_day = esc_attr(date('d',$EM_Event->start)); $event_start_time = esc_attr(date("H:i:s", strtotime($EM_Event->start_time))); $location = ''; if(isset($EM_Event->get_location()->address)){ $location = esc_attr($EM_Event->get_location()->address); }else{ $location = ''; } if($location <> ''){ $loc_lat = $EM_Event->get_location()->location_latitude; $loc_lon = $EM_Event->get_location()->location_longitude; } $location_town = ''; if(isset($EM_Event->get_location()->address)){ $location_town = $EM_Event->get_location()->town; }else{ $location_town = ''; } $musicnight_theme_option['single-event-feature-size']; $event_year = date('Y',$EM_Event->start); $event_month = date('m',$EM_Event->start); $event_day = date('d',$EM_Event->start); $event_start_time = date("G,i,s", strtotime($EM_Event->start_time)); ?> <div class="kode_event_detail_timer"> <!--KODE-EVENT-CONTER-SECTION START--> <div class="kode-event-media-content"> <?php if(isset($musicnight_theme_option['single-event-feature-image']) && $musicnight_theme_option['single-event-feature-image'] == 'enable'){ ?> <div class="kode_event_counter_section"> <figure> <?php echo get_the_post_thumbnail( $EM_Event->post_id, $musicnight_theme_option['single-event-feature-size']);?> <ul data-year="<?php echo esc_attr($event_year)?>" data-month="<?php echo esc_attr($event_month)?>" data-day="<?php echo esc_attr($event_day)?>" data-time="<?php echo esc_attr($event_start_time)?>" class="event_countdown"> <li> <span class="days"><?php esc_attr_e('00','music-night');?></span> <p class="days_ref"><?php esc_attr_e('Week','music-night');?></p> </li> <li> <span class="hours"><?php esc_attr_e('00','music-night');?></span> <p class="hours_ref"><?php esc_attr_e('Hours','music-night');?></p> </li> <li> <span class="minutes"><?php esc_attr_e('00','music-night');?></span> <p class="minutes_ref"><?php esc_attr_e('Mint','music-night');?></p> </li> <li> <span class="seconds last"><?php esc_attr_e('00','music-night');?></span> <p class="seconds_ref"><?php esc_attr_e('Second','music-night');?></p> </li> </ul> </figure> </div> <!--KODE-EVENT-CONTER-SECTION END--> <?php }?> <!--KODE_EVENT_CONTER_CAPSTION START--> <div class="kode_event_conter_capstion"> <h2><?php the_title();?></h2> <div class="counter-meta"> <ul class="info-event"> <?php echo musicnight_get_event_info($EM_Event->post_id, array( 'author','views','comment','date') ,false,'' ,'li');?> </ul> </div> <div class="kode-event-place-holder-capstion"> <?php $content = str_replace(']]>', ']]>',$EM_Event->post_content); ?> <p><?php echo musicnight_content_filter($content); ?> </p> </div> </div> </div> <div class="ch_share_meta"> <div class="pull-left"> <?php echo musicnight_get_event_info($EM_Event->post_id,array('category'), false, '','div');?> </div> <div class="ch_social_share pull-right"> <?php echo musicnight_get_social_shares('social_meta'); ?> </div> </div> <?php if(get_the_author_meta('description') <> ''){ ?> <!-- Blog Tag Wrap Start --> <div class="kode-author-wrap"> <!-- Kode Comment Form Start --> <div class="kode-author"> <figure> <?php echo get_avatar(get_the_author_meta('ID'), 90); ?> </figure> <div class="kode-author-content"> <div class="kode-author-head"> <h5><?php the_author_posts_link(); ?></h5> <span>Musical Master</span> </div> <?php if(get_the_author_meta('description') <> ''){ ?> <p><?php echo esc_attr(get_the_author_meta('description')); ?></p> <?php }?> </div> </div> <!-- Kode Comment Form End --> </div> <?php }?> <!--KODE_EVENT_CONTER_CAPSTION END--> <div class="other-events"> <div class="row "> <?php echo musicnight_related_event_item($EM_Event->post_id,3,3);?> <div class="col-md-12"> <div class="booking_form"> <?php if(isset($musicnight_theme_option['event-booking-text']) && $musicnight_theme_option['event-booking-text'] <> ''){ ?> <h3><?php echo sprintf(__('%s','music-night'),$musicnight_theme_option['event-booking-text'])?></h3> <?php } ?> <?php //musicnight_booking_form_event_manager(); $EM_Tickets = $EM_Event->get_tickets(); ?> </div> <div class="kode-slider-speaker"> <h4><?php echo esc_attr__('Concert Organizers','music-night')?></h4> <div class="simple_speakers row" data-medium-slide="3" data-small-slide="3" data-slide="3"> <?php $artist = ''; $musicnight_post_option['musicnight_event_organizer']; if(isset($musicnight_post_option['musicnight_event_organizer'])){ $event_participants = $musicnight_post_option['musicnight_event_organizer']; foreach($event_participants as $event_participant){ $musicnight_post_option = musicnight_decode_stopbackslashes(get_post_meta($event_participant, 'post-option', true )); if( !empty($musicnight_post_option) ){ $musicnight_post_option = json_decode( $musicnight_post_option, true ); } $designation = empty($musicnight_post_option['designation'])? 'Singer': $musicnight_post_option['designation']; $facebook = empty($musicnight_post_option['facebook'])? '#': $musicnight_post_option['facebook']; $twitter = empty($musicnight_post_option['twitter'])? '#': $musicnight_post_option['twitter']; $linkedin = empty($musicnight_post_option['linkedin'])? '#': $musicnight_post_option['linkedin']; echo ' <div class="col-md-4"> <div class="featured-artist"> <article> <figure> <a href="'.esc_url(get_permalink($event_participant)).'">'.get_the_post_thumbnail($event_participant, array(350,350)).'</a> <figcaption> <a href="'.esc_url(get_permalink($event_participant)).'"></a> <div class="social-network">'; if(isset($facebook) && $facebook <> ''){ echo '<a class="facebook" href="'.esc_url($facebook).'"><i class="fa fa-facebook fa-2x" aria-hidden="true"></i></a>'; } if(isset($twitter) && $twitter <> ''){ echo '<a class="twitter" href="'.esc_url($twitter).'"><i class="fa fa-twitter fa-2x" aria-hidden="true"></i></a>'; } if(isset($youtube) && $youtube <> ''){ echo '<a class="vimeo" href="'.esc_url($youtube).'"><i class="fa fa-youtube fa-2x" aria-hidden="true"></i></a>'; } if(isset($linkedin) && $linkedin <> ''){ echo '<a class="pin" href="'.esc_url($linkedin).'"><i class="fa fa-camera fa-2x" aria-hidden="true"></i></a>'; } echo ' </div> </figcaption> </figure> <div class="user-text"> <a class="user-icon webkit" href="'.esc_url(get_permalink($event_participant)).'"><i class="fa fa fa-user fa-2x"></i></a> <div class="sec"> <h5><a href="'.esc_url(get_permalink($event_participant)).'">'.esc_attr(get_the_title($event_participant)).'</a></h5> <p>'.esc_attr($designation).'</p> </div> </div> </article> </div> </div>'; } } ?> </div> </div> </div> </div> </div> </div> <?php if(isset($musicnight_theme_option['single-event-comments']) && $musicnight_theme_option['single-event-comments'] == 'enable'){ ?> <!-- Blog Detail --> <?php comments_template( '', true ); ?> <?php } ?> <?php }?> </div> <?php if($musicnight_sidebar['type'] == 'both-sidebar' || $musicnight_sidebar['type'] == 'right-sidebar' && $musicnight_sidebar['right'] != ''){ ?> <div class="kode-right-sidebar-area <?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
|
Настройка