HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux aritmodecarnaval.es 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/www/aritmodecarnaval/wp-content/plugins/youtube-embed/includes/options-profiles.php
<?php
/**
 * Profiles Options Page
 *
 * Screen for specifying different profiles and settings the options for each
 *
 * @package youtube-embed
 */

$langs = array(
	'aa',
	'ab',
	'ae',
	'af',
	'ak',
	'am',
	'an',
	'ar',
	'as',
	'av',
	'ay',
	'az',
	'ba',
	'be',
	'bg',
	'bh',
	'bi',
	'bm',
	'bn',
	'bo',
	'br',
	'bs',
	'ca',
	'ce',
	'ch',
	'co',
	'cr',
	'cs',
	'cu',
	'cv',
	'cy',
	'da',
	'de',
	'dv',
	'dz',
	'ee',
	'el',
	'en',
	'eo',
	'es',
	'et',
	'eu',
	'fa',
	'ff',
	'fi',
	'fj',
	'fo',
	'fr',
	'fy',
	'ga',
	'gd',
	'gl',
	'gn',
	'gu',
	'gv',
	'ha',
	'he',
	'hi',
	'ho',
	'hr',
	'ht',
	'hu',
	'hy',
	'hz',
	'ia',
	'id',
	'ie',
	'ig',
	'ii',
	'ik',
	'io',
	'is',
	'it',
	'iu',
	'ja',
	'jv',
	'ka',
	'kg',
	'ki',
	'kj',
	'kk',
	'kl',
	'km',
	'kn',
	'ko',
	'kr',
	'ks',
	'ku',
	'kv',
	'kw',
	'ky',
	'la',
	'lb',
	'lg',
	'li',
	'ln',
	'lo',
	'lt',
	'lu',
	'lv',
	'mg',
	'mh',
	'mi',
	'mk',
	'ml',
	'mn',
	'mr',
	'ms',
	'mt',
	'my',
	'na',
	'nb',
	'nd',
	'ne',
	'ng',
	'nl',
	'nn',
	'no',
	'nr',
	'nv',
	'ny',
	'oc',
	'oj',
	'om',
	'or',
	'os',
	'pa',
	'pi',
	'pl',
	'ps',
	'pt',
	'qu',
	'rm',
	'rn',
	'ro',
	'ru',
	'rw',
	'sa',
	'sc',
	'sd',
	'se',
	'sg',
	'si',
	'sk',
	'sl',
	'sm',
	'sn',
	'so',
	'sq',
	'sr',
	'ss',
	'st',
	'su',
	'sv',
	'sw',
	'ta',
	'te',
	'tg',
	'th',
	'ti',
	'tk',
	'tl',
	'tn',
	'to',
	'tr',
	'ts',
	'tt',
	'tw',
	'ty',
	'ug',
	'uk',
	'ur',
	'uz',
	've',
	'vi',
	'vo',
	'wa',
	'wo',
	'xh',
	'yi',
	'yo',
	'za',
	'zh',
);

// Set current profile number.

if ( isset( $_POST['youtube_embed_profile_no'] ) ) {
	$profile_no = sanitize_text_field( $_POST['youtube_embed_profile_no'] );
} else {
	$profile_no = 0;
}
if ( '' == $profile_no ) {
	$profile_no = 0;
}

// If options have been updated on screen, update the database.

if ( ( ! empty( $_POST['Submit'] ) ) && ( check_admin_referer( 'youtube-embed-profile', 'youtube_embed_profile_nonce' ) ) ) {

	$options['profile_name'] = sanitize_text_field( $_POST['youtube_embed_name'] );
	$options['width']        = sanitize_text_field( $_POST['youtube_embed_width'] );
	$options['height']       = sanitize_text_field( $_POST['youtube_embed_height'] );

	$allowed_html = array(
		'a'      => array(
			'href'   => array(),
			'title'  => array(),
			'target' => array(),
			'class'  => array(),
			'id'     => array(),
			'style'  => array(),
		),
		'img'    => array(
			'src'    => array(),
			'alt'    => array(),
			'height' => array(),
			'width'  => array(),
			'align'  => array(),
			'class'  => array(),
			'id'     => array(),
			'style'  => array(),
		),
		'div'    => array(
			'class' => array(),
			'id'    => array(),
			'align' => array(),
			'style' => array(),
		),
		'span'   => array(
			'class' => array(),
			'id'    => array(),
			'style' => array(),
		),
		'br'     => array(),
		'p'      => array(),
		'strong' => array(),
	);

	$options['template'] = wp_kses( htmlspecialchars_decode( $_POST['youtube_embed_template'] ), $allowed_html );
	if ( false === strpos( $options['template'], '%video%' ) ) {
		$options['template'] = '%video%';
	}

	$options['style']          = sanitize_text_field( $_POST['youtube_embed_style'] );
	$options['controls']       = sanitize_text_field( $_POST['youtube_embed_controls'] );
	$options['color']          = sanitize_text_field( $_POST['youtube_embed_color'] );
	$options['download_style'] = '';
	$options['cc_lang']        = sanitize_text_field( $_POST['youtube_embed_cc_lang'] );
	$options['language']       = sanitize_text_field( $_POST['youtube_embed_language'] );
	$options['download_text']  = '';
	if ( isset( $_POST['youtube_embed_playsinline'] ) ) {
		$options['playsinline'] = sanitize_text_field( $_POST['youtube_embed_playsinline'] );
	} else {
		$options['playsinline'] = '';
	}
	if ( isset( $_POST['youtube_embed_fullscreen'] ) ) {
		$options['fullscreen'] = sanitize_text_field( $_POST['youtube_embed_fullscreen'] );
	} else {
		$options['fullscreen'] = '';
	}
	if ( isset( $_POST['youtube_embed_autoplay'] ) ) {
		$options['autoplay'] = sanitize_text_field( $_POST['youtube_embed_autoplay'] );
	} else {
		$options['autoplay'] = '';
	}
	if ( isset( $_POST['youtube_embed_loop'] ) ) {
		$options['loop'] = sanitize_text_field( $_POST['youtube_embed_loop'] );
	} else {
		$options['loop'] = '';
	}
	if ( isset( $_POST['youtube_embed_cc'] ) ) {
		$options['cc'] = sanitize_text_field( $_POST['youtube_embed_cc'] );
	} else {
		$options['cc'] = '';
	}

	if ( isset( $_POST['youtube_embed_annotation'] ) ) {
		$options['annotation'] = sanitize_text_field( $_POST['youtube_embed_annotation'] );
	} else {
		$options['annotation'] = '';
	}
	if ( isset( $_POST['youtube_embed_related'] ) ) {
		$options['related'] = sanitize_text_field( $_POST['youtube_embed_related'] );
	} else {
		$options['related'] = '';
	}
	if ( isset( $_POST['youtube_embed_disablekb'] ) ) {
		$options['disablekb'] = sanitize_text_field( $_POST['youtube_embed_disablekb'] );
	} else {
		$options['disablekb'] = '';
	}
	if ( isset( $_POST['youtube_embed_modest'] ) ) {
		$options['modest'] = sanitize_text_field( $_POST['youtube_embed_modest'] );
	} else {
		$options['modest'] = '';
	}
	if ( isset( $_POST['youtube_embed_dynamic'] ) ) {
		$options['dynamic'] = sanitize_text_field( $_POST['youtube_embed_dynamic'] );
	} else {
		$options['dynamic'] = '';
	}
	if ( isset( $_POST['youtube_embed_fixed'] ) ) {
		$options['fixed'] = sanitize_text_field( $_POST['youtube_embed_fixed'] );
	} else {
		$options['fixed'] = '';
	}
	$options['download'] = '';

	$default_size = $_POST['youtube_embed_size'];

	if ( '' != $default_size ) {
		$options['width']  = ltrim( substr( $default_size, 0, 4 ), '0' );
		$options['height'] = ltrim( substr( $default_size, -4, 4 ), '0' );
	}

	// Set width or height, if missing.

	if ( '' == $options['width'] && '' == $options['height'] ) {
		if ( isset( $GLOBALS['content_width'] ) ) {
			$options['width'] = $GLOBALS['content_width'];
		} else {
			$options['width'] = 560;
		}
		$options['height'] = 27 + round( ( $options['width'] / 16 ) * 9, 0 );
	}
	if ( ( '' == $options['width'] ) && ( '' != $options['height'] ) ) {
		$options['width'] = round( ( $options['height'] / 9 ) * 16, 0 );
	}
	if ( ( '' != $options['width'] ) && ( '' == $options['height'] ) ) {
		$options['height'] = 27 + round( ( $options['width'] / 16 ) * 9, 0 );
	}

	update_option( 'youtube_embed_profile' . $profile_no, $options );
	$updated = true;

} else {

	$default_size = '';
	$updated      = false;
}

// Fetch options into an array.

$options = ye_get_profile( $profile_no );
$general = ye_get_general_defaults();

// Get number of profiles in use.

$loop         = 0;
$max_profiles = 0;
while ( $loop <= $general['profile_no'] ) {

	$profile = ye_get_profile( $loop );
	if ( ! $profile['default'] ) {
		$max_profiles ++;
	}

	$loop ++;
}


// Output headings.
?>

<div class="wrap">

<h1><?php _e( 'Embeds for YouTube Profiles', 'youtube-embed' ); ?><span class="title-count"><?php echo $max_profiles; ?></span></h1>

<div class="notice notice-info"><p style="font-weight: bold">NOTE: This plugin supports the ability to insert the standard YouTube embed and playlist players. However, if you need to embed a YouTube facade, livestream, or gallery, we recommend the <a href="https://www.embedplus.com/">EmbedPlus.com</a> plugin that's freely available <a href="https://wordpress.org/plugins/youtube-embed-plus/">here</a>. It's been around for many years and is highly trusted.</p></div>

<?php

// Output message text.

if ( $updated ) {
	echo '<div class="updated fade"><p><strong>' . __( $options['profile_name'] . ' Profile Saved.' ) . "</strong></p></div>\n";
}

// Video option button has been pressed.

if ( ! empty( $_POST['Video'] ) ) {
	$video_type = $_POST['youtube_embed_video_type'];
} else {
	$video_type = 'd';
}

// Generate Profile list.
?>
<form method="post" action="<?php echo get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=ye-profile-options'; ?>">

<span class="alignright">
<select name="youtube_embed_profile_no">
<?php ye_generate_profile_list( $profile_no, $general['profile_no'], true ); ?>
</select>
<input type="submit" name="Profile" class="button-secondary" value="<?php _e( 'Change profile', 'youtube-embed' ); ?>"/>
</span><br/>

<?php

// Show explanatory message at top of screen.

if ( '0' == $profile_no ) {
	_e( 'These are the options for the default profile.', 'youtube-embed' );
} else {
	sprintf( _e( 'These are the options for profile %s.', 'youtube-embed' ), $profile_no );
}
echo ' ' . __( 'Use the drop-down on the right hand side to swap between profiles.', 'youtube-embed' );
?>

<table class="form-table">

<!-- Profile Name -->

<tr>
<th scope="row"><?php _e( 'Profile Name', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_name"><input type="text" size="20" name="youtube_embed_name" value="<?php echo esc_attr( $options['profile_name'] ); ?>"
<?php
if ( 0 == $profile_no ) {
	echo ' readonly="readonly"';
}
?>
/>
<?php
if ( 0 != $profile_no ) {
	_e( 'The name you wish to give this profile', 'youtube-embed' );
}
?>
</label></td>
</tr>

<!-- Template -->

<tr>
<th scope="row"><?php _e( 'Template', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_template"><textarea name="youtube_embed_template" rows="4" cols="50" class="large-text code"><?php echo esc_html( $options['template'] ); ?></textarea>
<p class="description"><?php _e( 'Wrapper for video output. Must include <code>%video%</code> tag to show video position. Valid HTML tags are <code>a</code>, <code>br</code>, <code>div</code>, <code>img</code>, <code>p</code>, <code>span</code> and <code>strong</code>.', 'youtube-embed' ); ?></p></label></td>
</tr>

<!-- Style -->

<tr>
<th scope="row"><?php _e( 'Style', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_style"><input type="text" name="youtube_embed_style" class="large-text code" value="<?php echo esc_html( $options['style'] ); ?>"/>
<p class="description"><?php _e( 'CSS elements to apply to video.', 'youtube-embed' ); ?></p></label></td>
</tr>

</table><hr><h3 class="title"><?php _e( 'Video Size', 'youtube-embed' ); ?></h3><table class="form-table">

<!-- Video Size -->

<tr>
<th scope="row"><?php _e( 'Video Size', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_height"><input type="text" size="3" maxlength="3" name="youtube_embed_width" value="<?php echo esc_attr( $options['width'] ); ?>"/>&nbsp;x&nbsp;<input type="text" size="3" maxlength="3" name="youtube_embed_height" value="<?php echo esc_attr( $options['height'] ); ?>"/>
<?php _e( 'The width x height of the video, in pixels', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Default Sizes -->

<tr>
<th scope="row"><?php _e( 'Default Sizes', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_size"><select name="youtube_embed_size">
<option value=""
<?php
if ( '' == $default_size ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Use above sizes', 'youtube-embed' ); ?>
</option>
<option value="04260420"
<?php
if ( '04260420' == $default_size ) {
	echo " selected='selected'";
}
?>
>240p</option>
<option value="06400360"
<?php
if ( '06400360' == $default_size ) {
	echo " selected='selected'";
}
?>
>360p</option>
<option value="08540480"
<?php
if ( '08540480' == $default_size ) {
	echo " selected='selected'";
}
?>
>480p</option>
<option value="12800720"
<?php
if ( '12800720' == $default_size ) {
	echo " selected='selected'";
}
?>
>720p</option>
<option value="19201080"
<?php
if ( '19201080' == $default_size ) {
	echo " selected='selected'";
}
?>
>1080p</option>
<option value="38402160"
<?php
if ( '38402160' == $default_size ) {
	echo " selected='selected'";
}
?>
>1440p</option>
<option value="38402160"
<?php
if ( '38402160' == $default_size ) {
	echo " selected='selected'";
}
?>
>2160p</option>
</select></label><p class="description"><?php _e( 'Select one of these default sizes to override the above video sizes.', 'youtube-embed' ); ?></p></td>
</tr>

<!-- Responsive Output -->

<tr>
<th scope="row"><?php _e( 'Responsive Output', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_dynamic"><input type="checkbox" name="youtube_embed_dynamic" value="1" <?php checked( $options['dynamic'], '1' ); ?>/>
<?php _e( 'Show full width and resize with the browser', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Maximum Size -->

<tr>
<th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php _e( 'Set Maximum Size', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_fixed"><input type="checkbox" name="youtube_embed_fixed" value="1" <?php checked( $options['fixed'], '1' ); ?>/>
<?php _e( 'Use above width to define maximum size', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Playsinline -->

<tr>
<th scope="row"><?php _e( 'Plays Inline', 'youtube-embed' ); ?></th>

<td><label for="youtube_embed_playsinline"><input type="checkbox" name="youtube_embed_playsinline" value="1" <?php checked( $options['playsinline'], '1' ); ?>/>
<?php _e( 'Whether videos play inline or fullscreen in an HTML5 player on iOS. ', 'youtube-embed' ); ?></label></td>
</tr>

</table><hr><h3 class="title"><?php _e( 'Playback', 'youtube-embed' ); ?></h3><table class="form-table">

<!-- Autoplay -->

<tr>
<th scope="row"><?php _e( 'Autoplay', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_autoplay"><input type="checkbox" name="youtube_embed_autoplay" value="1" <?php checked( $options['autoplay'], '1' ); ?>/>
<?php _e( 'Choose whether the initial video will automatically start to play when the player loads', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Loop Video -->

<tr>
<th scope="row"><?php _e( 'Loop Video', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_loop"><input type="checkbox" name="youtube_embed_loop" value="1" <?php checked( $options['loop'], '1' ); ?>/>
<?php _e( 'Play the initial video again and again', 'youtube-embed' ); ?></label>
<p class="description"><?php _e( 'In the case of a playlist, this will play the entire playlist and then start again at the first video.', 'youtube-embed' ); ?></p></td>
</tr>

<!-- Annotations -->

<tr>
<th scope="row"><?php _e( 'Annotations', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_annotation"><input type="checkbox" name="youtube_embed_annotation" value="1" <?php checked( $options['annotation'], '1' ); ?>/>
<?php _e( 'Video annotations are shown by default', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Closed Captions -->

<tr>
<th scope="row"><?php _e( 'Closed Captions', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_cc"><select name="youtube_embed_cc">
<option value="0"
<?php
if ( '0' == $options['cc'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Don\'t show closed captions', 'youtube-embed' ); ?>
</option>
<option value="1"
<?php
if ( '1' == $options['cc'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Show closed captions', 'youtube-embed' ); ?>
</option>
<option value=""
<?php
if ( '' == $options['cc'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'User default', 'youtube-embed' ); ?>
</option>
</select></label>
<p class="description"><?php _e( 'Show closed captions.', 'youtube-embed' ); ?></p></td>
</tr>

<!-- Closed Caption Language -->

<tr>
<th scope="row"><?php _e( 'Closed Captions Language', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_cc_lang"><select name="youtube_embed_cc_lang">
<option value=""
<?php
if ( '' == $options['cc_lang'] ) {
	echo " selected='selected'";
}
?>
>N/A</option>
<?php
$loop        = 0;
$array_count = count( $langs );
while ( $loop < $array_count ) {

	echo '<option value=" ' . $langs[ $loop ] . '"';
	if ( $langs[ $loop ] == $options['cc_lang'] ) {
		echo " selected='selected'";
	} 
	echo '>' . $langs[ $loop ] . '</option>';

	$loop ++;
}

?>
</select></label>
<p class="description"><?php echo __( 'Closed captions language. Select a <a href="http://www.loc.gov/standards/iso639-2/php/code_list.php">ISO 639-1 two-letter language code</a> or N/A for none.', 'youtube-embed' ); ?></p></td>

</tr>

<!-- Related -->

<tr>
<th scope="row"><?php _e( 'Related Videos', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_related"><select name="youtube_embed_related">
<option value="0"
<?php
if ( '0' == $options['related'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Show from the same channel', 'youtube-embed' ); ?>
</option>
<option value="1"
<?php
if ( '1' == $options['related'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Show related videos from any channel', 'youtube-embed' ); ?>
</option></label>
<p class="description"><?php _e( 'Defines where related videos are fetched from.', 'youtube-embed' ); ?></p></td>
</tr>

<!-- Modest Branding -->

<tr>
<th scope="row"><?php _e( 'Modest Branding', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_modest"><input type="checkbox" name="youtube_embed_modest" value="1" <?php checked( $options['modest'], '1' ); ?>/>
<?php _e( 'Reduce branding on video', 'youtube-embed' ); ?></label></td>
</tr>

</table><hr><h3 class="title"><?php _e( 'Controls', 'youtube-embed' ); ?></h3><table class="form-table">

<!-- Interface language -->

<tr>
<th scope="row"><?php _e( 'Interface Language', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_language"><input type="text" size="5" maxlength="5" name="youtube_embed_language" value="<?php echo esc_attr( $options['language'] ); ?>"/><?php _e( 'The player\'s interface language', 'youtube-embed' ); ?></label>
<p class="description"><?php echo __( 'The parameter value is an <a href="https://www.loc.gov/standards/iso639-2/php/code_list.php">ISO 639-1 two-letter language code</a> or a fully specified locale. Leave blank for the default.', 'youtube-embed' ); ?></p></td>
</tr>

<!-- Controls -->

<tr>
<th scope="row"><?php _e( 'Controls', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_controls"><select name="youtube_embed_controls">
<option value="0"
<?php
if ( '0' == $options['controls'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Controls do not display &amp; Flash player loads immediately', 'youtube-embed' ); ?>
</option>
<option value="1"
<?php
if ( '1' == $options['controls'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Controls display &amp; Flash player loads immediately', 'youtube-embed' ); ?>
</option>
<option value="2"
<?php
if ( '2' == $options['controls'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Controls display &amp; Flash player loads once video starts', 'youtube-embed' ); ?>
</option>
</select></label>
<p class="description"><?php _e( 'Whether the video player controls are displayed. For Flash it also defines when the controls display in the player as well as when the player will load.', 'youtube-embed' ); ?></p></td>
</tr>

<!-- Disable Keyboard -->

<tr>
<th scope="row"><?php _e( 'Disable Keyboard', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_disablekb"><input type="checkbox" name="youtube_embed_disablekb" value="1" <?php checked( $options['disablekb'], '1' ); ?>/>
<?php _e( 'Turn off the player keyboard controls', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Fullscreen -->

<tr>
<th scope="row"><?php _e( 'Fullscreen', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_fullscreen"><input type="checkbox" name="youtube_embed_fullscreen" value="1" <?php checked( $options['fullscreen'], '1' ); ?>/>
<?php _e( 'A button will allow the viewer to watch the video fullscreen', 'youtube-embed' ); ?></label></td>
</tr>

<!-- Color -->

<tr>
<th scope="row"><?php _e( 'Progress Bar Color', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_color"><select name="youtube_embed_color">
<option value="red"
<?php
if ( 'red' == $options['color'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'Red', 'youtube-embed' ); ?>
</option>
<option value="white"
<?php
if ( 'white' == $options['color'] ) {
	echo " selected='selected'";
}
?>
>
<?php _e( 'White (desaturated)', 'youtube-embed' ); ?>
</option>
</select></label>
<p class="description"><?php _e( 'The color that will be used in the player\'s video progress bar to highlight the amount of the video that\'s already been seen.', 'youtube-embed' ); ?></p></td>
</tr>

</table>

<hr><h3 class="title"><?php _e( 'Download Link', 'youtube-embed' ); ?></h3>
<p>Note: this feature has been disabled to comply with YouTube/Google's terms of service.
<table class="form-table" style="opacity: .5">

<!-- Download Link -->

<tr>
<th scope="row"><?php _e( 'Show Download Link', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_download"><input type="checkbox" disabled name="youtube_embed_download" />
<?php echo sprintf( __( 'Show a link to %s under the video', 'youtube-embed' ), 'KeepVid' ); ?></label></td>
</tr>

<!-- Download Text -->

<tr>
<th scope="row"><?php _e( 'Download Text', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_download_txt"><input type="text" disabled name="youtube_embed_download_text" class="large-text" />
<p class="description"><?php _e( 'Text or HTML to display to prompt download.', 'youtube-embed' ); ?></p></label></td>
</tr>

<!-- Download Style -->

<tr>
<th scope="row"><?php _e( 'Download Style', 'youtube-embed' ); ?></th>
<td><label for="youtube_embed_download_style"><input type="text" disabled name="youtube_embed_download_style" class="large-text code" />
<p class="description"><?php _e( 'CSS elements to apply to video download link.', 'youtube-embed' ); ?></p></label></td>
</tr>

</table>

<?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>

<p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Changes', 'youtube-embed' ); ?>"/></p>

</form>

<a href="#" name="video"></a>
<div style="max-width: <?php echo esc_attr( $options['width'] ); ?>px">
<h3><?php _e( 'YouTube Video Sample', 'youtube-embed' ); ?></h3>
<p><?php _e( 'The videos below uses the above, saved profile settings in use', 'youtube-embed' ); ?></p>
<h4><?php _e( 'Standard video', 'youtube-embed' ); ?></h3>
<p>
<?php
echo ye_generate_youtube_code(
	array(
		'id'      => $general['standard_video'],
		'profile' => $profile_no,
	)
);
?>
</p>
<h4><?php _e( 'Playlist', 'youtube-embed' ); ?></h3>
<p>
<?php
echo ye_generate_youtube_code(
	array(
		'id'      => $general['playlist_video'],
		'profile' => $profile_no,
	)
);
?>
</p>

</div>