PageRenderTime 56ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/admin/tinymce/window.php

https://bitbucket.org/benkeen/nextgen-gallery
PHP | 146 lines | 137 code | 9 blank | 0 comment | 1 complexity | 75da14f288fc18db9ad790b450c3ce69 MD5 | raw file
  1. <?php
  2. if ( !defined('ABSPATH') )
  3. die('You are not allowed to call this page directly.');
  4. global $wpdb, $nggdb;
  5. @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
  6. ?>
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <title>NextGEN Gallery</title>
  10. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
  11. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/tinymce/tiny_mce_popup.js'); ?>"></script>
  12. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/tinymce/utils/mctabs.js'); ?>"></script>
  13. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/tinymce/utils/form_utils.js'); ?>"></script>
  14. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/jquery/jquery.js'); ?>"></script>
  15. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/jquery/ui/jquery.ui.core.min.js'); ?>"></script>
  16. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/jquery/ui/jquery.ui.widget.min.js'); ?>"></script>
  17. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/jquery/ui/jquery.ui.position.min.js'); ?>"></script>
  18. <script language="javascript" type="text/javascript" src="<?php echo includes_url('js/jquery/ui/jquery.ui.autocomplete.min.js'); ?>"></script>
  19. <script language="javascript" type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>admin/js/ngg.autocomplete.js"></script>
  20. <script language="javascript" type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>admin/tinymce/tinymce.js"></script>
  21. <link rel="stylesheet" type="text/css" href="<?php echo NGGALLERY_URLPATH ?>admin/css/jquery.ui.css" media="all" />
  22. <base target="_self" />
  23. </head>
  24. <script type="text/javascript">
  25. jQuery(document).ready(function(){
  26. jQuery("#gallerytag").nggAutocomplete( {
  27. type: 'gallery',domain: "<?php echo home_url('index.php', is_ssl() ? 'https' : 'http'); ?>"
  28. });
  29. jQuery("#albumtag").nggAutocomplete( {
  30. type: 'album',domain: "<?php echo home_url('index.php', is_ssl() ? 'https' : 'http'); ?>"
  31. });
  32. jQuery("#singlepictag").nggAutocomplete( {
  33. type: 'image',domain: "<?php echo home_url('index.php', is_ssl() ? 'https' : 'http'); ?>"
  34. });
  35. });
  36. </script>
  37. <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" style="display: none">
  38. <!-- <form onsubmit="insertLink();return false;" action="#"> -->
  39. <form name="NextGEN" action="#">
  40. <div class="tabs">
  41. <ul>
  42. <li id="gallery_tab" class="current"><span><a href="javascript:mcTabs.displayTab('gallery_tab','gallery_panel');" onmousedown="return false;"><?php echo _n( 'Gallery', 'Galleries', 1, 'nggallery' ) ?></a></span></li>
  43. <li id="album_tab"><span><a href="javascript:mcTabs.displayTab('album_tab','album_panel');" onmousedown="return false;"><?php echo _n( 'Album', 'Albums', 1, 'nggallery' ) ?></a></span></li>
  44. <li id="singlepic_tab"><span><a href="javascript:mcTabs.displayTab('singlepic_tab','singlepic_panel');" onmousedown="return false;"><?php _e('Picture', 'nggallery'); ?></a></span></li>
  45. </ul>
  46. </div>
  47. <div class="panel_wrapper">
  48. <!-- gallery panel -->
  49. <div id="gallery_panel" class="panel current">
  50. <br />
  51. <table border="0" cellpadding="4" cellspacing="0">
  52. <tr>
  53. <td nowrap="nowrap"><label for="gallerytag"><?php _e("Gallery", 'nggallery'); ?></label></td>
  54. <td><select id="gallerytag" name="gallerytag" style="width: 200px">
  55. <option value="0" selected="selected"><?php _e("Select or enter gallery", 'nggallery'); ?></option>
  56. </select>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Show as", 'nggallery'); ?></label></td>
  61. <td><label><input name="showtype" type="radio" value="nggallery" checked="checked" /> <?php _e('Image list', 'nggallery') ;?></label><br />
  62. <label><input name="showtype" type="radio" value="slideshow" /> <?php _e('Slideshow', 'nggallery') ;?></label><br />
  63. <label><input name="showtype" type="radio" value="imagebrowser" /> <?php _e('Imagebrowser', 'nggallery') ;?></label></td>
  64. </tr>
  65. </table>
  66. </div>
  67. <!-- gallery panel -->
  68. <!-- album panel -->
  69. <div id="album_panel" class="panel">
  70. <br />
  71. <table border="0" cellpadding="4" cellspacing="0">
  72. <tr>
  73. <td nowrap="nowrap"><label for="albumtag"><?php _e("Album", 'nggallery'); ?></label></td>
  74. <td><select id="albumtag" name="albumtag" style="width: 200px">
  75. <option value="0" selected="selected"><?php _e("Select or enter album", 'nggallery'); ?></option>
  76. </select>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Show as", 'nggallery'); ?></label></td>
  81. <td><label><input name="albumtype" type="radio" value="extend" checked="checked" /> <?php _e('Extended version', 'nggallery') ;?></label><br />
  82. <label><input name="albumtype" type="radio" value="compact" /> <?php _e('Compact version', 'nggallery') ;?></label></td>
  83. </tr>
  84. </table>
  85. </div>
  86. <!-- album panel -->
  87. <!-- single pic panel -->
  88. <div id="singlepic_panel" class="panel">
  89. <br />
  90. <table border="0" cellpadding="4" cellspacing="0">
  91. <tr>
  92. <td nowrap="nowrap"><label for="singlepictag"><?php _e("Picture", 'nggallery'); ?></label></td>
  93. <td><select id="singlepictag" name="singlepictag" style="width: 200px">
  94. <option value="0" selected="selected"><?php _e("Select or enter picture", 'nggallery'); ?></option>
  95. </select>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td nowrap="nowrap"><?php _e("Width x Height", 'nggallery'); ?></td>
  100. <td><input type="text" size="5" id="imgWidth" name="imgWidth" value="320" /> x <input type="text" size="5" id="imgHeight" name="imgHeight" value="240" /></td>
  101. </tr>
  102. <tr>
  103. <td nowrap="nowrap" valign="top"><?php _e("Effect", 'nggallery'); ?></td>
  104. <td>
  105. <label><select id="imgeffect" name="imgeffect">
  106. <option value="none"><?php _e("No effect", 'nggallery'); ?></option>
  107. <option value="watermark"><?php _e("Watermark", 'nggallery'); ?></option>
  108. <option value="web20"><?php _e("Web 2.0", 'nggallery'); ?></option>
  109. </select></label>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td nowrap="nowrap" valign="top"><?php _e("Float", 'nggallery'); ?></td>
  114. <td>
  115. <label><select id="imgfloat" name="imgfloat">
  116. <option value=""><?php _e("No float", 'nggallery'); ?></option>
  117. <option value="left"><?php _e("Left", 'nggallery'); ?></option>
  118. <option value="center"><?php _e("Center", 'nggallery'); ?></option>
  119. <option value="right"><?php _e("Right", 'nggallery'); ?></option>
  120. </select></label>
  121. </td>
  122. </tr>
  123. </table>
  124. </div>
  125. <!-- single pic panel -->
  126. </div>
  127. <div class="mceActionPanel">
  128. <div style="float: left">
  129. <input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'nggallery'); ?>" onclick="tinyMCEPopup.close();" />
  130. </div>
  131. <div style="float: right">
  132. <input type="submit" id="insert" name="insert" value="<?php _e("Insert", 'nggallery'); ?>" onclick="insertNGGLink();" />
  133. </div>
  134. </div>
  135. </form>
  136. </body>
  137. </html>