SILENT KILLERPanel

Current Path: > home > ivftiowh > greeceivf.com > wp-content > plugins > jetpack > modules > shortcodes


Operation   : Linux premium88.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software     : Apache
Server IP    : 185.61.154.216 | Your IP: 216.73.216.44
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/ivftiowh/greeceivf.com/wp-content/plugins/jetpack/modules/shortcodes

NameTypeSizeLast ModifiedActions
css Directory - -
images Directory - -
img Directory - -
js Directory - -
archives.php File 2076 bytes October 14 2024 11:06:00.
audio.php File 12887 bytes October 14 2024 11:06:00.
bandcamp.php File 7419 bytes October 14 2024 11:06:00.
blip.php File 2136 bytes October 14 2024 11:06:00.
cartodb.php File 603 bytes October 14 2024 11:06:00.
codepen.php File 229 bytes October 14 2024 11:06:00.
dailymotion.php File 10716 bytes October 14 2024 11:06:00.
diggthis.php File 163 bytes October 14 2024 11:06:00.
facebook.php File 3229 bytes October 14 2024 11:06:00.
flickr.php File 7129 bytes October 14 2024 11:06:00.
gist.php File 2854 bytes October 14 2024 11:06:00.
googlemaps.php File 6485 bytes October 14 2024 11:06:00.
googleplus.php File 1188 bytes October 14 2024 11:06:00.
googlevideo.php File 1436 bytes October 14 2024 11:06:00.
houzz.php File 845 bytes October 14 2024 11:06:00.
instagram.php File 8678 bytes October 14 2024 11:06:00.
medium.php File 1952 bytes October 14 2024 11:06:00.
mixcloud.php File 2133 bytes October 14 2024 11:06:00.
polldaddy.php File 17010 bytes October 14 2024 11:06:00.
presentations.php File 14320 bytes October 14 2024 11:06:00.
recipe.php File 4065 bytes October 14 2024 11:06:00.
scribd.php File 1741 bytes October 14 2024 11:06:00.
slideshare.php File 3332 bytes October 14 2024 11:06:00.
slideshow.php File 10347 bytes October 14 2024 11:06:00.
soundcloud.php File 10115 bytes October 14 2024 11:06:00.
ted.php File 2305 bytes October 14 2024 11:06:00.
twitchtv.php File 3394 bytes October 14 2024 11:06:00.
twitter-timeline.php File 1247 bytes October 14 2024 11:06:00.
videopress.php File 88 bytes October 14 2024 11:06:00.
vimeo.php File 8604 bytes October 14 2024 11:06:00.
vine.php File 2172 bytes October 14 2024 11:06:00.
wufoo.php File 3472 bytes October 14 2024 11:06:00.
youtube.php File 15352 bytes October 14 2024 11:06:00.

Reading File: /home/ivftiowh/greeceivf.com/wp-content/plugins/jetpack/modules/shortcodes/gist.php

<?php
/**
 * GitHub's Gist site supports oEmbed but their oembed provider only
 * returns raw HTML (no styling) and the first little bit of the code.
 *
 * Their JavaScript-based embed method is a lot better, so that's what we're using.
 */

wp_embed_register_handler( 'github-gist', '#https?://gist\.github\.com/([a-zA-Z0-9/]+)(\#file\-[a-zA-Z0-9\_\-]+)?#', 'github_gist_embed_handler' );
add_shortcode( 'gist', 'github_gist_shortcode' );

/**
 * Handle gist embeds.
 *
 * @since 2.8.0
 *
 * @global WP_Embed $wp_embed
 *
 * @param array  $matches Results after parsing the URL using the regex in wp_embed_register_handler().
 * @param array  $attr    Embed attributes.
 * @param string $url     The original URL that was matched by the regex.
 * @param array  $rawattr The original unmodified attributes.
 * @return string The embed HTML.
 */
function github_gist_embed_handler( $matches, $attr, $url, $rawattr ) {
	// Let the shortcode callback do all the work
	return github_gist_shortcode( $matches, $url );
}

/**
 * Callback for gist shortcode.
 *
 * @since 2.8.0
 *
 * @param array  $atts Attributes found in the shortcode.
 * @param string $content Content enclosed by the shortcode.
 *
 * @return string The gist HTML.
 */
function github_gist_shortcode( $atts, $content = '' ) {

	if ( empty( $atts[0] ) && empty( $content ) ) {
		return '<!-- Missing Gist ID -->';
	}

	$id = ( ! empty( $content ) ) ? $content : $atts[0];

	// Parse a URL
	if ( ! is_numeric( $id ) ) {
		$id = preg_replace( '#https?://gist.github.com/([a-zA-Z0-9]+)#', '$1', $id );
	}

	if ( ! $id ) {
		return '<!-- Invalid Gist ID -->';
	}

	wp_enqueue_script( 'jetpack-gist-embed', plugins_url( 'js/gist.js', __FILE__ ), array( 'jquery' ), false, true );

	if ( false !== strpos( $id, '#file-' ) ) {
		// URL points to a specific file in the gist
		$id = str_replace( '#file-', '.json?file=', $id );
		$id = preg_replace( '/\-(?!.*\-)/', '.', $id );
	} else {
		$file = ( ! empty( $atts['file'] ) ) ? '?file=' . urlencode( $atts['file'] ) : '';
		// URL points to the entire gist
		$id .= ".json$file";
	}

	// inline style to prevent the bottom margin to the embed that themes like TwentyTen, et al., add to tables
	$return = '<style>.gist table { margin-bottom: 0; }</style><div class="gist-oembed" data-gist="' . esc_attr( $id ) . '"></div>';

	if ( isset( $_POST[ 'type' ] ) && 'embed' === $_POST[ 'type' ] &&
		 isset( $_POST[ 'action' ] ) && 'parse-embed' === $_POST['action'] ) {
		return github_gist_simple_embed( $id );
	}

	return $return;
}

/**
 * Use script tag to load shortcode in editor.
 *
 * @since 3.9.0
 *
 * @param string $id The ID of the gist.
 *
 * @return string
 */
function github_gist_simple_embed( $id ) {
	$id = str_replace( 'json', 'js', $id );
	return '<script type="text/javascript" src="https://gist.github.com/' . $id . '"></script>';
}

SILENT KILLER Tool