function video_filter_loader in Video Filter 6.2
Output tinymce popup html.
@todo Remove hard-coded TinyMCE integration.
1 string reference to 'video_filter_loader'
- video_filter_menu in ./
video_filter.module - Implementation of hook_menu().
File
- ./
video_filter.module, line 336
Code
function video_filter_loader() {
$output = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 //EN">' . "\n";
$output .= "<html>\n";
$output .= "<head>\n";
$output .= '<title>{#videofilter_dlg.title}</title>' . "\n";
$path = base_path() . drupal_get_path('module', 'video_filter') . '/wysiwyg';
$tinymce_js = wysiwyg_get_path('tinymce', TRUE) . '/jscripts/tiny_mce/tiny_mce_popup.js';
$output .= '<script type="text/javascript" src="' . $tinymce_js . '"></script>' . "\n";
$output .= '<script type="text/javascript" src="' . $path . '/tinymce/langs/en_dlg.js"></script>' . "\n";
$output .= '<script type="text/javascript" src="' . $path . '/tinymce/jscripts/video_filter.js"></script>' . "\n";
$output .= '<link href="' . base_path() . drupal_get_path('module', 'video_filter') . '/video_filter.css" rel="stylesheet" type="text/css" />' . "\n";
$output .= "</head>\n\n";
$output .= '<body id="mceVideoPopup">';
$output .= '<form onsubmit="insertVideo();return false;" action="#">' . "\n";
$output .= '<h3 style="clear:both;">{#videofilter_dlg.title}</h3>' . "\n";
$output .= '<!-- Gets filled with the selected elements name -->' . "\n";
$output .= '<div style="margin-top: 10px; margin-bottom: 10px">' . "\n";
$output .= '<label for="file">' . t('File url') . '</label>' . "\n";
$output .= '<input id="file" name="file" type="text" value="" onfocus="this.select();" />' . "\n";
$output .= '</div>' . "\n";
$output .= '<div style="margin-top: 10px; margin-bottom: 10px">' . "\n";
$output .= '<label for="width">' . t('Width') . '</label>' . "\n";
$output .= '<input id="width" name="width" type="text" value="" onfocus="this.select();" />' . "\n";
$output .= '</div>' . "\n";
$output .= '<div style="margin-top: 10px; margin-bottom: 10px">' . "\n";
$output .= '<label for="height">' . t('Height') . '</label>' . "\n";
$output .= '<input id="height" name="height" type="text" value="" onfocus="this.select();" />' . "\n";
$output .= '</div>' . "\n";
$output .= '<div style="margin-top: 10px; margin-bottom: 10px">' . "\n";
$output .= '<label for="align">' . t('Align') . '</label>' . "\n";
$output .= '<select id="align" name="align" onfocus="this.select();">' . "\n";
$output .= '<option value="none">' . t('None') . '</option>' . "\n";
$output .= '<option value="left">' . t('Left') . '</option>' . "\n";
$output .= '<option value="right">' . t('Right') . '</option>' . "\n";
$output .= '<option value="center">' . t('Center') . '</option>' . "\n";
$output .= '</select>' . "\n";
$output .= '</div>' . "\n";
$output .= '<div style="margin-top: 10px; margin-bottom: 10px">' . "\n";
$output .= '<label for="autoplay">' . t('Autoplay') . '</label>' . "\n";
$output .= '<input id="autoplay" name="autoplay" type="checkbox" value="1" onfocus="this.select();" />' . "\n";
$output .= '</div>' . "\n";
$output .= '<div class="mceActionPanel">' . "\n";
$output .= '<div style="float: left">' . "\n";
$output .= '<input type="submit" id="insert" name="insert" value="' . t('Insert') . '" />' . "\n";
$output .= '</div>' . "\n";
$output .= '<div style="float: right">' . "\n";
$output .= '<input type="button" id="cancel" name="cancel" value="' . t('Cancel') . '" onclick="tinyMCEPopup.close();" />' . "\n";
$output .= '</div></div>' . "\n";
$output .= '</form>' . "\n";
$output .= '<div id="instructions" style="clear:both;"><h3>' . t('Instructions') . '</h3>' . "\n";
$output .= '<p>' . t('Insert a 3rd party video from one of the following providers.') . '</p>' . "\n";
$output .= _video_filter_instructions();
$output .= '</div>' . "\n";
$output .= '</body>' . "\n";
$output .= "</html>\n";
print $output;
}