[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-content/advanced/subscription-form/iframes/std/ -> index.php (source)

   1  <?php 
   2  
   3  require_once ('../MP_iframe_.class.php');
   4  
   5  class MP_Std extends MP_Iframe_
   6  {
   7  	function init()
   8      {
   9      // Set up $_GET for shortcode attributes
  10          $_GET['css'] = $_GET['js'] = $_GET['jq'] = 1;
  11          $_GET['txtloading'] = '';
  12      }
  13  
  14  	function print_styles()
  15      {
  16          wp_register_style( 'mp_form',    site_url() . '/' . MP_PATH_CONTENT . 'advanced/subscription-form/style.css' );
  17          wp_enqueue_style(  'mp_form');
  18      }
  19  
  20  	function print_scripts()
  21      {
  22          wp_register_script( 'mp_form',    '/' . MP_PATH . 'mp-includes/js/mp_form.js', array('jquery') );
  23          wp_enqueue_script(  'mp_form');
  24      }
  25  
  26  	function get_header()
  27      {
  28          include (MP_ABSPATH . 'mp-includes/html/header.php');
  29          do_action('admin_print_styles');
  30  ?>
  31      </head>
  32      <body>
  33  <?php 
  34      }
  35  
  36  	function before()
  37      {
  38          echo __CLASS__;
  39      }
  40  
  41  	function after()
  42      {
  43      }
  44  
  45  	function get_footer()
  46      {
  47  ?>
  48          <script type='text/javascript'>
  49              /* <![CDATA[ */
  50              var MP_Widget = { url: '<?php echo MP_Action_url; ?>'    };
  51              /* ]]> */
  52          </script>
  53  <?php
  54          do_action('admin_print_scripts'); 
  55  ?>
  56      </body>
  57  </html>
  58  <?php
  59      }
  60  }
  61  new MP_Std();


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1