HEX
Server: Apache
System: Linux webm003.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/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%" />';
	}

}