PageRenderTime 52ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/youtube-embed/includes/options-profiles.php

https://bitbucket.org/crypticrod/sr_wp_code
PHP | 329 lines | 259 code | 58 blank | 12 comment | 118 complexity | 512d176beb676f1681214ee1d6050c2b MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1, GPL-3.0, LGPL-2.0, AGPL-3.0
  1. <?php
  2. /**
  3. * Profiles Options Page
  4. *
  5. * Screen for specifying different profiles and settings the options for each
  6. *
  7. * @package YouTubeEmbed
  8. * @since 2.0
  9. */
  10. ?>
  11. <div class="wrap">
  12. <div class="icon32"><img src="<?php echo plugins_url(); ?>/youtube-embed/images/screen_icon.png" alt="" title="" height="32px" width="32px"/><br /></div>
  13. <h2>Artiss YouTube Embed Profiles</h2>
  14. <?php
  15. // Set current profile number
  16. if ( isset( $_POST[ 'youtube_embed_profile_no' ] ) ) { $profile_no = $_POST[ 'youtube_embed_profile_no' ]; } else { $profile_no = 0; }
  17. if ( $profile_no == '' ) { $profile_no = 0; }
  18. // If options have been updated on screen, update the database
  19. if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-profile' , 'youtube_embed_profile_nonce' ) ) ) {
  20. $options[ 'name' ] = $_POST[ 'youtube_embed_name' ];
  21. $options[ 'type' ] = $_POST[ 'youtube_embed_type' ];
  22. $options[ 'playlist' ] = $_POST[ 'youtube_embed_playlist' ];
  23. $options[ 'width' ] = $_POST[ 'youtube_embed_width' ];
  24. $options[ 'height' ] = $_POST[ 'youtube_embed_height' ];
  25. $options[ 'template' ] = htmlspecialchars_decode( $_POST[ 'youtube_embed_template' ] );
  26. if ( strpos( $options[ 'template' ], '%video%' ) === false ) { $options[ 'template' ] = '%video%'; }
  27. $options[ 'style' ] = $_POST[ 'youtube_embed_style' ];
  28. $options[ 'fullscreen' ] = $_POST[ 'youtube_embed_fullscreen' ];
  29. $options[ 'autoplay'] = $_POST[ 'youtube_embed_autoplay' ];
  30. $options[ 'loop'] = $_POST[ 'youtube_embed_loop' ];
  31. $options[ 'cc'] = $_POST[ 'youtube_embed_cc' ];
  32. $options[ 'annotation'] = $_POST[ 'youtube_embed_annotation' ];
  33. $options[ 'related'] = $_POST[ 'youtube_embed_related' ];
  34. $options[ 'info'] = $_POST[ 'youtube_embed_info' ];
  35. $options[ 'link'] = $_POST[ 'youtube_embed_link' ];
  36. $options[ 'react'] = $_POST[ 'youtube_embed_react' ];
  37. $options[ 'sweetspot'] = $_POST[ 'youtube_embed_sweetspot' ];
  38. $options[ 'disablekb'] = $_POST[ 'youtube_embed_disablekb' ];
  39. $options[ 'autohide'] = $_POST[ 'youtube_embed_autohide' ];
  40. $options[ 'controls'] = $_POST[ 'youtube_embed_controls' ];
  41. $options[ 'fallback'] = $_POST[ 'youtube_embed_fallback' ];
  42. $options[ 'wmode'] = $_POST[ 'youtube_embed_wmode' ];
  43. $options[ 'shadow'] = $_POST[ 'youtube_embed_shadow' ];
  44. $options[ 'audio'] = $_POST[ 'youtube_embed_audio' ];
  45. $options[ 'hd'] = $_POST[ 'youtube_embed_hd' ];
  46. $options[ 'color' ] = $_POST[ 'youtube_embed_color' ];
  47. $options[ 'theme' ] = $_POST[ 'youtube_embed_theme' ];
  48. $options[ 'https' ] = $_POST[ 'youtube_embed_https' ];
  49. $default_size = $_POST[ 'youtube_embed_size' ];
  50. if ( $default_size !== '' ) {
  51. $options[ 'width' ] = ltrim( substr( $default_size, 0, 4 ), '0' );
  52. $options[ 'height'] = ltrim( substr( $default_size, -4, 4 ), '0' );
  53. }
  54. update_option( 'youtube_embed_profile' . $profile_no, $options );
  55. echo '<div class="updated fade"><p><strong>' . __( $options[ 'name' ].' Profile Saved.' ) . "</strong></p></div>\n";
  56. } else {
  57. $default_size = '';
  58. }
  59. // Video option button has been pressed
  60. if ( !empty( $_POST[ 'Video' ] ) ) { $video_type = $_POST[ 'youtube_embed_video_type' ]; } else { $video_type = 'd'; }
  61. // Fetch options into an array
  62. $options = ye_set_profile_defaults( $profile_no );
  63. $general = ye_set_general_defaults();
  64. ?>
  65. <form method="post" action="<?php echo get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=youtube-embed-profiles' ?>">
  66. <span class="alignright">
  67. <select name="youtube_embed_profile_no">
  68. <?php ye_generate_profile_list( $profile_no, $general[ 'profile_no' ] ) ?>
  69. </select>
  70. <input type="submit" name="Profile" class="button-secondary" value="<?php _e('Change profile'); ?>"/>
  71. </span><br/>
  72. <?php
  73. _e( 'These are the options for ' );
  74. if ( $profile_no == "0" ) { _e( 'the default profile.' ); } else { _e( 'profile ' . $profile_no . "." ); }
  75. _e( '<br/>Use the drop-down on the right hand side to swap between profiles.' );
  76. ?>
  77. <table class="form-table">
  78. <tr>
  79. <th scope="row"><?php _e( 'Profile name' ); ?></th><td>
  80. <input type="text" size="20" name="youtube_embed_name" value="<?php echo $options[ 'name' ]; ?>"<?php if ( $profile_no == 0 ) { echo ' readonly="readonly"'; } ?>/>
  81. <?php if ( $profile_no != 0 ) { echo '&nbsp;<span class="description">' . __( 'The name you wish to give this profile' ) . '</span>'; } ?>
  82. </td></tr>
  83. <tr valign="top">
  84. <th scope="row"><?php _e( 'Video Embed Type' ); ?></th>
  85. <td><span class="description"><?php _e( 'The type of player to use for videos.' ); ?></span><br/>
  86. <input type="radio" name="youtube_embed_type" value="v"<?php if ( $options[ 'type' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;IFRAME' ); ?><span class="description"><?php _e( '&nbsp;Uses HTML5, where available. This is the current YouTube default..' ); ?></span><br/>
  87. <input type="radio" name="youtube_embed_type" value="p"<?php if ( $options[ 'type' ] == "p" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;OBJECT' ); ?><span class="description"><?php _e( '&nbsp;Use the AS3 Flash player.' ); ?></span><br/>
  88. <input type="radio" name="youtube_embed_type" value="c"<?php if ( $options[ 'type' ] == "c" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;Chromeless' ); ?><span class="description"><?php _e( '&nbsp;Use the <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-chromeless">Chromeless</a> version of the AS3 Flash Player.' ); ?></span><br/>
  89. <input type="radio" name="youtube_embed_type" value="m"<?php if ( $options[ 'type' ] == "m" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;EmbedPlus' ); ?><span class="description"><?php _e( '&nbsp;Use <a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus">EmbedPlus</a>, if Flash is available.' ); ?></span>
  90. </td>
  91. </tr>
  92. <tr valign="top">
  93. <th scope="row"><?php _e( 'Playlist Embed Type' ); ?></th>
  94. <td><span class="description"><?php _e( 'The type of player to use when showing playlists.' ); ?></span><br/>
  95. <input type="radio" name="youtube_embed_playlist" value="v"<?php if ( $options[ 'playlist' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;IFRAME' ); ?><br/>
  96. <input type="radio" name="youtube_embed_playlist" value="o"<?php if ( $options[ 'playlist' ] == "o" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;OBJECT' ); ?><br/>
  97. </td>
  98. </tr>
  99. </table>
  100. <br/><span class="yt_heading"><?php _e( 'All Embed Type Options' ); ?></span>
  101. <table class="form-table">
  102. <tr>
  103. <th scope="row"><?php _e( 'Template' ); ?></th>
  104. <td><input type="text" size="40" name="youtube_embed_template" value="<?php echo htmlspecialchars( $options[ 'template' ] ); ?>"/>&nbsp;<span class="description">Wrapper for video output. Must include <code>%video%</code> tag to show video position</span></td>
  105. </tr>
  106. <tr>
  107. <th scope="row"><?php _e( 'Style' ); ?></th>
  108. <td><input type="text" size="40" name="youtube_embed_style" value="<?php echo htmlspecialchars( $options[ 'style' ] ); ?>"/>&nbsp;<span class="description">CSS elements to apply to video</span></td>
  109. </tr>
  110. </table>
  111. <table class="form-table ytbox_grey">
  112. <tr>
  113. <th scope="row"><?php _e( 'Video size' ); ?></th>
  114. <td><input type="text" size="3" maxlength="3" name="youtube_embed_width" value="<?php echo $options[ 'width' ]; ?>"/>&nbsp;x&nbsp;<input type="text" size="3" maxlength="3" name="youtube_embed_height" value="<?php echo $options[ 'height' ]; ?>"/>&nbsp;<span class="description"><?php _e( 'The width x height of the video, in pixels' ); ?></span></td>
  115. </tr>
  116. <tr valign="top">
  117. <th scope="row"><?php _e( 'Default Sizes' ); ?></th>
  118. <td><select name="youtube_embed_size">
  119. <option value=""<?php if ( $default_size == '' ) { echo " selected='selected'"; } ?>><?php _e( 'Use above sizes' ); ?></option>
  120. <option value="04800385"<?php if ( $default_size == "04800385" ) { echo " selected='selected'"; } ?>><?php _e ( '480x385 4:3' ); ?></option>
  121. <option value="05600340"<?php if ( $default_size == "05600340" ) { echo " selected='selected'"; } ?>><?php _e( '560x340 16:9' ); ?></option>
  122. <option value="06400385"<?php if ( $default_size == "06400385" ) { echo " selected='selected'"; } ?>><?php _e( '640x385 16:9' ); ?></option>
  123. <option value="08530505"<?php if ( $default_size == "08530505" ) { echo " selected='selected'"; } ?>><?php _e( '853x505 16:9' ); ?></option>
  124. <option value="12800745"<?php if ( $default_size == "12800745" ) { echo " selected='selected'"; } ?>><?php _e( '1280x745 16:9' ); ?></option>
  125. </select>&nbsp;<span class="description"><?php _e( 'Select one of these default sizes to override the above video sizes' ); ?></span></td>
  126. </tr>
  127. </table>
  128. <table class="form-table">
  129. <tr>
  130. <th scope="row"><?php _e( 'Audio Only' ); ?></th>
  131. <td><input type="checkbox" name="youtube_embed_audio" value="1"<?php if ( $options[ 'audio' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Only show the toolbar for audio only playback' ); ?></span></td>
  132. </tr>
  133. <tr>
  134. <th scope="row"><?php _e( 'Autoplay' ); ?></th>
  135. <td><input type="checkbox" name="youtube_embed_autoplay" value="1"<?php if ( $options[ 'autoplay' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'The video will start playing when the player loads' ); ?></span></td>
  136. </tr>
  137. <tr>
  138. <th scope="row"><?php _e( 'Drop Shadow Height' ); ?></th>
  139. <td><input type="text" size="2" name="youtube_embed_shadow" value="<?php echo $options[ 'shadow' ]; ?>"/>px&nbsp;<span class="description">Number of pixels high for drop-shadow. Put to 0 to switch off.</span></td>
  140. </tr>
  141. </table>
  142. <br/><span class="yt_heading"><?php _e( 'Non-EmbedPlus Options' ); ?></span>
  143. <br/><br/>The following options are not supported by EmbedPlus.
  144. <table class="form-table">
  145. <tr>
  146. <th scope="row"><?php _e( 'Auto hide' ); ?></th>
  147. <td><select name="youtube_embed_autohide">
  148. <option value="0"<?php if ( $options[ 'autohide' ] == "0" ) { echo " selected='selected'"; } ?>><?php _e( 'Controls &amp; progress bar remain visible' ); ?></option>
  149. <option value="1"<?php if ( $options[ 'autohide' ] == "1" ) { echo " selected='selected'"; } ?>><?php _e( 'Controls &amp; progress bar fade out' ); ?></option>
  150. <option value="2"<?php if ( $options[ 'autohide' ] == "2" ) { echo " selected='selected'"; } ?>><?php _e( 'Progress bar fades' ); ?></option>
  151. </select>&nbsp;<span class="description"><?php _e( 'Video controls will automatically hide after a video begins playing' ); ?></span></td>
  152. </tr>
  153. <tr>
  154. <th scope="row"><?php _e( 'Controls' ); ?></th>
  155. <td><input type="checkbox" name="youtube_embed_controls" value="1"<?php if ( $options[ 'controls' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video player controls will display' ); ?></span></td>
  156. </tr>
  157. <tr>
  158. <th scope="row"><?php _e( 'HTTPS' ); ?></th>
  159. <td><input type="checkbox" name="youtube_embed_https" value="1"<?php if ( $options[ 'https' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Use HTTPS? <a href="http://www.google.com/support/youtube/bin/answer.py?answer=171780&expand=UseHTTPS#HTTPS">Read more</a>' ); ?></span></td>
  160. </tr>
  161. <tr>
  162. <th scope="row"><?php _e( 'Loop Video' ); ?></th>
  163. <td><input type="checkbox" name="youtube_embed_loop" value="1"<?php if ( $options[ 'loop' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Play the initial video again and again. In the case of a playlist, this will play the entire playlist and then start again at the first video' ); ?></span></td>
  164. </tr>
  165. <tr>
  166. <th scope="row"><?php _e( 'Theme' ); ?></th>
  167. <td><select name="youtube_embed_theme">
  168. <option value="dark"<?php if ( $options[ 'theme' ] == "dark" ) { echo " selected='selected'"; } ?>><?php _e( 'Dark' ); ?></option>
  169. <option value="light"<?php if ( $options[ 'theme' ] == "light" ) { echo " selected='selected'"; } ?>><?php _e( 'Light' ); ?></option>
  170. </select>&nbsp;<span class="description"><?php _e( 'Display player controls within a dark or light control bar' ); ?></span></td>
  171. </tr>
  172. </table>
  173. <br/><span class="yt_heading"><?php _e( 'Non-EmbedPlus &amp; HTML5 Options' ); ?></span>
  174. <br/><br/>The following options are not supported if using EmbedPlus or if the IFRAME player uses HTML5.
  175. <table class="form-table">
  176. <tr>
  177. <th scope="row"><?php _e( 'Annotations' ); ?></th>
  178. <td><input type="checkbox" name="youtube_embed_annotation" value="1"<?php if ( $options[ 'annotation' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video annotations are shown by default' ); ?></span></td>
  179. </tr>
  180. <tr>
  181. <th scope="row"><?php _e( 'Closed Captions' ); ?></th>
  182. <td><input type="checkbox" name="youtube_embed_cc" value="1"<?php if ( $options[ 'cc' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show closed captions (subtitles) by default, even if the user has turned captions off' ); ?></span></td>
  183. </tr>
  184. <tr>
  185. <th scope="row"><?php _e( 'Disable Keyboard' ); ?></th>
  186. <td><input type="checkbox" name="youtube_embed_disablekb" value="1"<?php if ( $options[ 'disablekb' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Disable the player keyboard controls' ); ?></span></td>
  187. </tr>
  188. <tr>
  189. <th scope="row"><?php _e( 'Fullscreen' ); ?></th>
  190. <td><input type="checkbox" name="youtube_embed_fullscreen" value="1"<?php if ( $options[ 'fullscreen' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'A button will allow the viewer to watch the video fullscreen' ); ?></span></td>
  191. </tr>
  192. <tr>
  193. <th scope="row"><?php _e( 'Information' ); ?></th>
  194. <td><input type="checkbox" name="youtube_embed_info" value="1"<?php if ( $options[ 'info' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Display the video title and uploader before the video starts' ); ?></span></td>
  195. </tr>
  196. <tr>
  197. <th scope="row"><?php _e( 'Link to YouTube' ); ?></th>
  198. <td><input type="checkbox" name="youtube_embed_link" value="1"<?php if ( $options[ 'link' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Video links back to YouTube when clicked' ); ?></span></td>
  199. </tr>
  200. <tr>
  201. <th scope="row"><?php _e( 'Progress Bar Colour' ); ?></th>
  202. <td><select name="youtube_embed_color">
  203. <option value="red"<?php if ( $options[ 'color' ] == "red" ) { echo " selected='selected'"; } ?>><?php _e( 'Red' ); ?></option>
  204. <option value="white"<?php if ( $options[ 'color' ] == "white" ) { echo " selected='selected'"; } ?>><?php _e( 'White (desaturated)' ); ?></option>
  205. </select>&nbsp;<span class="description"><?php _e( 'The colour that will be used in the player\'s video progress bar to highlight the amount of the video that\'s already been seen' ); ?></span></td>
  206. </tr>
  207. <tr>
  208. <th scope="row"><?php _e( 'Related Videos' ); ?></th>
  209. <td><input type="checkbox" name="youtube_embed_related" value="1"<?php if ( $options[ 'related' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Load related videos once playback starts. Also toggles the search option.' ); ?></span></td>
  210. </tr>
  211. </table>
  212. <br/><span class="yt_heading"><?php _e( 'Non-IFRAME Options' ); ?></span>
  213. <br/><br/>The following options are not supported if using the IFRAME player.
  214. <table class="form-table">
  215. <tr valign="top">
  216. <th scope="row"><?php _e( 'Window Mode' ); ?></th>
  217. <td><select name="youtube_embed_wmode">
  218. <option value="opaque"<?php if ( $options[ 'wmode' ] == "opaque" ) { echo " selected='selected'"; } ?>><?php _e( 'Opaque' ); ?></option>
  219. <option value="transparent"<?php if ( $options[ 'wmode' ] == "transparent" ) { echo " selected='selected'"; } ?>><?php _e( 'Transparent' ); ?></option>
  220. <option value="window"<?php if ( $options[ 'wmode' ] == "window" ) { echo " selected='selected'"; } ?>><?php _e( 'Window' ); ?></option>
  221. </select><span class="description"><?php _e( 'Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. <a href="http://www.communitymx.com/content/article.cfm?cid=e5141">Learn more</a>.' ); ?></span></td>
  222. </tr>
  223. </table>
  224. <br/><span class="yt_heading"><?php _e( 'EmbedPlus Options' ); ?></span><span class="description" style="float: right"><?php _e( '<a href="http://www.artiss.co.uk/artiss-youtube-embed/further-help#ye-embedplus">Learn more about EmbedPlus</a>' ); ?></span>
  225. <table class="form-table">
  226. <tr valign="top">
  227. <th scope="row"><?php _e( 'Fallback Embed Type' ); ?></th>
  228. <td><span class="description"><?php _e( 'The type of player to use if Flash is not available and EmbedPlus cannot be used.' ); ?></span><br/>
  229. <input type="radio" name="youtube_embed_fallback" value="v"<?php if ( $options[ 'fallback' ] == "v" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;IFRAME' ); ?><br/>
  230. <input type="radio" name="youtube_embed_fallback" value="p"<?php if ( $options[ 'fallback' ] == "p" ) { echo ' checked="checked"'; } ?>/><?php _e( '&nbsp;OBJECT' ); ?></td>
  231. </tr>
  232. <tr>
  233. <th scope="row"><?php _e( 'Play HD' ); ?></th>
  234. <td><input type="checkbox" name="youtube_embed_hd" value="1"<?php if ( $options[ 'hd' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Play the video in HD if possible' ); ?></span></td>
  235. </tr>
  236. <tr>
  237. <th scope="row"><?php _e( 'Real-time Reactions' ); ?></th>
  238. <td><input type="checkbox" name="youtube_embed_react" value="1"<?php if ( $options[ 'react' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Show the Real-time Reactions button' ); ?></span></td>
  239. </tr>
  240. <tr>
  241. <th scope="row"><?php _e( 'Sweet Spots' ); ?></th>
  242. <td><input type="checkbox" name="youtube_embed_sweetspot" value="1"<?php if ( $options[ 'sweetspot' ] == "1" ) { echo ' checked="checked"'; } ?>/>&nbsp;<span class="description"><?php _e( 'Find sweet spots for the next and previous buttons' ); ?></span></td>
  243. </tr>
  244. </table>
  245. <?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>
  246. <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Settings' ); ?>"/></p>
  247. </form>
  248. <a href="#" name="video"></a>
  249. <form method="post" action="<?php echo get_bloginfo( 'wpurl' ).'/wp-admin/admin.php?page=youtube-embed-profiles#video' ?>">
  250. <div class="ytbox_grey">
  251. <h3><?php _e( 'YouTube Video Sample' ); ?></h3>
  252. <p><?php _e( 'This uses the above settings, once they have been saved. <b>Would you like this to be your video? If so, <a href="http://www.artiss.co.uk/contact">contact me</a>!</b>' ); ?></p>
  253. <p><?php _e( 'Use the drop-down below to change which parameters the video uses - press the Change Video button to update it.' ); ?></p>
  254. <p><select name="youtube_embed_video_type">
  255. <option value="d"<?php if ( $video_type == "d" ) { echo " selected='selected'"; } ?>><?php _e( 'Standard' ); ?></option>
  256. <option value="p"<?php if ( $video_type == "p" ) { echo " selected='selected'"; } ?>><?php _e( 'EmbedPlus' ); ?></option>
  257. <option value="3"<?php if ( $video_type == "3" ) { echo " selected='selected'"; } ?>><?php _e( '3D' ); ?></option>
  258. <option value="l"<?php if ( $video_type == "l" ) { echo " selected='selected'"; } ?>><?php _e( 'Playlist' ); ?></option>
  259. </select>
  260. <?php wp_nonce_field( 'youtube-embed-profile', 'youtube_embed_profile_nonce', true, true ); ?>
  261. <input type="submit" name="Video" class="button-secondary" value="<?php _e( 'Change video' ); ?>"/></p>
  262. <p><?php
  263. if ( $video_type == "d" ) { $id = 'TJJJaDMpCn0'; $type = ''; }
  264. if ( $video_type == "p" ) { $id = 'YVvn8dpSAt0'; $type = 'm'; }
  265. if ( $video_type == "3" ) { $id = 'NR5UoBY87GM'; $type = ''; ; }
  266. if ( $video_type == "l" ) { $id = '095393D5B42B2266'; $type = ''; }
  267. echo ye_generate_youtube_code( $id, $type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', $profile_no );
  268. ?></p>
  269. </div>
  270. </form>
  271. </div>