WYSIJA_view_back_tmce

The MailPoet Newsletters WYSIJA view back tmce class.

Defined (1)

The class is defined in the following location(s).

/views/back/tmce.php  
  1. class WYSIJA_view_back_tmce extends WYSIJA_view_back{ 
  2.  
  3. var $title='Tiny'; 
  4. var $icon='icon-options-general'; 
  5. var $scripts=array(); 
  6.  
  7. function __construct() { 
  8. parent::__construct(); 
  9.  
  10. function getScriptsStyles() { 
  11. ?> 
  12. <link rel='stylesheet' href='<?php $urlblog=get_bloginfo('wpurl');echo $urlblog ?>/wp-admin/load-styles.php?c=1&dir=ltr&load=widgets, global, wp-admin' type='text/css' media='all' /> 
  13. <link rel='stylesheet' id='colors-css' href='<?php echo $urlblog ?>/wp-includes/css/buttons.css' type='text/css' media='all' /> 
  14. <!--[if lte IE 7]> 
  15. <link rel='stylesheet' id='ie-css' href='<?php echo $urlblog ?>/wp-admin/css/ie.css' type='text/css' media='all' /> 
  16. <![endif]--> 
  17. <link rel='stylesheet' href='<?php echo $urlblog ?>/wp-content/plugins/wysija-newsletters/css/tmce/widget.css' type='text/css' media='all' /> 
  18. <?php wp_print_scripts('jquery'); ?> 
  19. <script type="text/javascript" src="<?php echo $urlblog; ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script> 
  20. <script type='text/javascript' src='<?php echo $urlblog ?>/wp-content/plugins/wysija-newsletters/js/admin-tmce.js'></script> 
  21. <?php 
  22.  
  23.  
  24. function head() { 
  25. // right to left language property 
  26. $direction = 'ltr'; 
  27. if(function_exists('is_rtl')) { 
  28. $direction = (is_rtl()) ? 'rtl' : 'ltr'; 
  29. $direction = 'rtl'; 
  30. ?> 
  31. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  32. <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="en-US"> 
  33. <head> 
  34. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  35. <title><?php echo $this->title; ?></title> 
  36. <?php $this->getScriptsStyles() ?> 
  37. <base target="_self" /> 
  38. </head> 
  39. <body> 
  40.  
  41. <?php 
  42.  
  43.  
  44. function foot() { 
  45. ?> 
  46.  
  47. </body> 
  48. </html> 
  49. <?php 
  50.  
  51.  
  52. function registerAdd($datawidget = array()) { 
  53. $this->head(); 
  54. ?> 
  55. <form id="formTable" action="" style="display:block;" class="wp-core-ui" method="post" > 
  56.  
  57. <div id="widget-form"> 
  58.  
  59. <?php 
  60. require_once(WYSIJA_WIDGETS.'wysija_nl.php'); 
  61. $widgetNL=new WYSIJA_NL_Widget(true); 
  62. $widgetNL->form($datawidget); 
  63. ?> 
  64. <input type="hidden" name="widget_id" value="wysija-nl-<?php echo time(); ?>" /> 
  65. <input type="submit" id="widget-insert" class="button-primary action" name="doaction" value="<?php echo esc_attr(__('Insert form', WYSIJA)); ?>"> 
  66. </div> 
  67.  
  68. <div style="clear:both;"></div> 
  69. </form> 
  70. <?php 
  71. $this->foot(); 
  72.