Ejemplo n.º 1
0
if ($general['donated'] != 1) {
    artiss_plugin_ads('youtube-embed', 990);
}
?>

<div class="updated fade"><p>Have you voted for which features of YouTube Embed you'd like to retain in version 3? <a href="http://www.artiss.co.uk/youtube-embed/youtube-embed-features-vote" target="_new">Click here</a> to vote!</p></div>

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

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

<?php 
if ($profile_no == '0') {
    _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');
Ejemplo n.º 2
0
}
echo '>' . __('Video or Playlist', 'youtube-embed') . '</option><option value="s"';
if (attribute_escape($instance['id_type']) == 's') {
    echo " selected='selected'";
}
echo '>' . __('Search', 'youtube-embed') . '</option><option value="u"';
if (attribute_escape($instance['id_type']) == 'u') {
    echo " selected='selected'";
}
echo '>' . __('User', 'youtube-embed') . '</option></select></td></tr>';
echo "</table>\n";
// Profile field
$field_id = $this->get_field_id('profile');
$field_name = $this->get_field_name('profile');
echo "\r\n" . '<p><label for="' . $field_id . '">' . __('Profile', 'youtube-embed') . ': </label><select name="' . $field_name . '" class="widefat" id="' . $field_id . '">';
aye_generate_profile_list(attribute_escape($instance['profile']), $general['profile_no']);
echo '</select></p>';
// Template
$field_id = $this->get_field_id('template');
$field_name = $this->get_field_name('template');
echo "\r\n" . '<p><label for="' . $field_id . '">' . __('Template', 'youtube-embed') . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape($instance['template']) . '" /></p>';
// Style
$field_id = $this->get_field_id('style');
$field_name = $this->get_field_name('style');
echo "\r\n" . '<p><label for="' . $field_id . '">' . __('Style', 'youtube-embed') . ': </label><input type="text" class="widefat" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape($instance['style']) . '" /></p>';
// Size fields
$field_id = $this->get_field_id('width');
$field_name = $this->get_field_name('width');
echo "\r\n" . '<p><label for="' . $field_id . '">' . __('Size', 'youtube-embed') . ': </label><input type="text" size="3" maxlength="3" id="' . $field_id . '" name="' . $field_name . '" value="' . attribute_escape($instance['width']) . '" />&nbsp;x&nbsp;';
$field_id = $this->get_field_id('height');
$field_name = $this->get_field_name('height');
Ejemplo n.º 3
0
}
?>
/>&nbsp;<span class="description"><?php 
_e('Allow all other types of embedding. Activating impacts performance', 'youtube-embed');
?>
</span></td>
</tr>

<tr>
<th scope="row">&nbsp;&nbsp;&nbsp;&nbsp;<?php 
_e('Profile to use', 'youtube-embed');
?>
</th>
<td><select name="youtube_embed_other_profile">
<?php 
aye_generate_profile_list($options['other_profile'], $options['profile_no']);
?>
</select>&nbsp;<span class="description"><?php 
_e('For above 2 options', 'youtube-embed');
?>
</span></td>
</tr>
</table>

<br/><span class="yt_heading"><?php 
_e('Admin Options', 'youtube-embed');
?>
</span>

<table class="form-table">
<tr>