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/recipe.php

<?php
/**
 * Embed recipe 'cards' in post, with basic styling and print functionality
 *
 */

class Jetpack_Recipes {

	private $scripts_and_style_included = false;

	function __construct() {
		add_action( 'init', array( $this, 'action_init' ) );
	}

	function action_init() {
		// Enqueue styles if [recipe] exists
		add_action( 'wp_head', array( $this, 'add_scripts' ), 1 );

		// Render [recipe]
		add_shortcode( 'recipe', array( $this, 'recipe_shortcode' ) );
	}

	/**
	 * Enqueue scripts and styles
	 */
	function add_scripts() {
		if ( empty( $GLOBALS['posts'] ) || ! is_array( $GLOBALS['posts'] ) ) {
			return;
		}

		foreach ( $GLOBALS['posts'] as $p ) {
			if ( has_shortcode( $p->post_content, 'recipe' ) ) {
				$this->scripts_and_style_included = true;
				break;
			}
		}

		if ( ! $this->scripts_and_style_included ) {
			return;
		}

		if( is_rtl() ) {
			wp_enqueue_style( 'jetpack-recipes-style',  plugins_url( '/css/rtl/recipes-rtl.css',  __FILE__ ), array(), '20130919' );
		} else {
			wp_enqueue_style( 'jetpack-recipes-style',  plugins_url( '/css/recipes.css',  __FILE__ ), array(), '20130919' );
		}


		wp_enqueue_script( 'jetpack-recipes-printthis', plugins_url( '/js/recipes-printthis.js', __FILE__ ), array( 'jquery' ), '20131230' );
		wp_enqueue_script( 'jetpack-recipes-js',        plugins_url( '/js/recipes.js', __FILE__ ),   array( 'jquery', 'jetpack-recipes-printthis' ), '20131230' );

		$title_var = wp_title( '|', false, 'right' );
		$print_css_var = plugins_url( '/css/recipes-print.css', __FILE__ );

		wp_localize_script( 'jetpack-recipes-js', 'jetpack_recipes_vars', array(
			'pageTitle' => $title_var,
			'loadCSS'   => $print_css_var
		) );
	}

	/**
	 * Our [recipe] shortcode.
	 * Prints recipe data styled to look good on *any* theme.
	 *
	 * @return resume_shortcode_html
	 */
	static function recipe_shortcode( $atts, $content = '' ) {
		$atts = shortcode_atts( array(
			'title'      => '', //string
			'servings'   => '', //intval
			'time'       => '', //string
			'difficulty' => '', //string
			'print'      => '', //string
		), $atts, 'recipe' );

		return self::recipe_shortcode_html( $atts, $content );
	}

	/**
	 * The recipe output
	 *
	 * @return Html
	 */
	static function recipe_shortcode_html( $atts, $content = '' ) {
		$html = false;

		$html = '<div class="hrecipe jetpack-recipe" itemscope itemtype="http://schema.org/Recipe">';

		// Print the recipe title if exists
		if ( '' != $atts['title'] ) {
			$html .= '<h3 class="jetpack-recipe-title" itemprop="name">' . esc_html( $atts['title'] ) . '</h3>';
		}

		// Print the recipe meta if exists
		if ( '' != $atts['servings'] || '' != $atts['time'] || '' != $atts['difficulty'] || '' != $atts['print'] ) {
			$html .= '<ul class="jetpack-recipe-meta">';

			if ( '' != $atts['servings'] ) {
				$html .= sprintf( '<li class="jetpack-recipe-servings" itemprop="recipeYield"><strong>%1$s: </strong>%2$s</li>',
					__( 'Servings', 'jetpack' ),
					esc_html( $atts['servings'] )
				);
			}

			if ( '' != $atts['time'] ) {
				$html .= sprintf( '<li class="jetpack-recipe-time" itemprop="totalTime"><strong>%1$s: </strong>%2$s</li>',
					__( 'Time', 'jetpack' ),
					esc_html( $atts['time'] )
				);
			}

			if ( '' != $atts['difficulty'] ) {
				$html .= sprintf( '<li class="jetpack-recipe-difficulty"><strong>%1$s: </strong>%2$s</li>',
					__( 'Difficulty', 'jetpack' ),
					esc_html( $atts['difficulty'] )
				);
			}

			if ( 'false' != $atts['print'] ) {
				$html .= sprintf( '<li class="jetpack-recipe-print"><a href="#">%s</a></li>',
					__( 'Print', 'jetpack' )
				);
			}

			$html .= '</ul>';
		}

		// Print content between codes
		$html .= '<div class="jetpack-recipe-content">' . do_shortcode( $content ) . '</div>';

		// Close it up
		$html .= '</div>';

		// If there is a recipe within a recipe, remove the shortcode
		if ( has_shortcode( $html, 'recipe' ) ) {
			remove_shortcode( 'recipe' );
		}

		// Sanitize html
		$html = wp_kses_post( $html );

		// Return the HTML block
		return $html;
	}
}

new Jetpack_Recipes();

SILENT KILLER Tool