Файловый менеджер - Редактировать - /home/digitalm/birramastro/wp-content/plugins/lt-ext/shortcodes/events_calendar/view.php
Назад
<?php if ( ! defined( 'ABSPATH' ) ) die( 'Forbidden' ); /** * Events Shortcode */ $args = get_query_var('like_sc_events_calendar'); $query_args = array( 'post_type' => 'tribe_events', 'post_status' => 'publish', 'posts_per_page' => (int)($atts['limit']), ); $class = ''; if ( !empty($args['class']) ) $class .= ' '. esc_attr($args['class']); if ( !empty($args['id']) ) $id = ' id="'. esc_attr($args['id']). '"'; else $id = ''; if ( !empty($args['cat']) ) { $query_args['tax_query'] = array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'if', 'terms' => array(esc_attr($args['cat'])), ) ); } $query = new WP_Query( $query_args ); if ( $query->have_posts() ) { $cols = 1; echo '<div class="events-sc '.esc_attr($class).'" '.$id.'>'; while ( $query->have_posts() ) { $query->the_post(); $subheader = str_replace(array('{{', '}}'), array('<strong>', '</strong>'), fw_get_db_post_option(get_The_ID(), 'subheader')); $cut = str_replace(array('{{', '}}'), array('<strong>', '</strong>'), nl2br(get_the_excerpt())); $date = array(); if (function_exists('tribe_get_start_date')) { $date['d'] = tribe_get_start_date(get_The_ID(), false, 'd'); $date['F'] = tribe_get_start_date(get_The_ID(), false, 'F'); $date['Y'] = tribe_get_start_date(get_The_ID(), false, 'Y'); $date['time'] = tribe_get_start_date(get_The_ID(), false, 'H:i'); } echo '<div class="item">'; echo '<div class="row">'; echo '<div class="col-md-1">'; echo '<div class="in date matchHeight">'; echo '<div class="time-lg"><span class="date-day">'.esc_html($date['d']).'</span><span class="date-my">'.esc_html($date['F']).', '.esc_html($date['Y']).'</span></div>'; echo '</div>'; echo '</div>'; echo '<div class="col-md-1"><div class="in img matchHeight"><a href="'.get_the_permalink().'">'.get_the_post_thumbnail().'</a></div></div>'; echo '<div class="col-xl-5 col-lg-5 col-md-5"> <div class="in name matchHeight"> <div>'; echo '<div class="time time-xs">'.esc_html($date['d']).' '.esc_html($date['F']).', '.esc_html($date['Y']).' '.esc_html($date['time']).'</div> <h5><a href="'.get_the_permalink().'">'. get_the_title() .'</a></h5> <span class="descr">'.wp_kses_post( $cut ).'</span> </div> </div> </div>'; echo '<div class="col-xl-3 col-lg-2 col-md-3 time-lg "> <div class="in matchHeight time">'.esc_html($date['time']).'</div> </div>'; echo '<div class="col-xl-2 col-lg-3 col-md-2 div-more"> <div class="in matchHeight"><a href="'.get_the_permalink().'" class="btn">'.esc_html($atts['btn_text']).'</a></div> </div>'; echo '</div>'; echo '</div>'; } echo '</div>'; wp_reset_postdata(); }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка