[ Index ]

MailPress 544

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

title

Body

[close]

/mp-content/advanced/subscription-form/iframes/ -> MP_iframe_.class.php (source)

   1  <?php
   2  abstract class MP_Iframe_
   3  {
   4  	function __construct()
   5      {
   6          add_action('admin_print_styles',         array($this, 'print_styles'));
   7          add_action('admin_print_scripts' ,         array($this, 'print_scripts'));
   8  
   9          add_filter('MailPress_form_email',         array($this, 'form_email'), 8, 1);
  10          add_filter('MailPress_form_name',         array($this, 'form_name'), 8, 1);
  11  
  12          add_filter('MailPress_form_imgloading',     array($this, 'form_imgloading'), 8, 1);
  13  
  14          $this->init();
  15  
  16          $this->get_iframe();
  17  
  18          remove_filter('MailPress_form_imgloading',array($this, 'form_imgloading'), 8, 1);
  19      }
  20  
  21  	function print_styles() {}
  22  	function print_scripts() {}
  23  
  24  	function form_email($x) { return $x; }
  25  	function form_name($x) { return $x; }
  26  	function form_imgloading($x) { return $x; }
  27  
  28  	function get_header() {}
  29  	function before() {}
  30  	function after() {}
  31  	function get_footer() {}
  32  
  33  	function init() {}
  34  
  35  	function get_iframe()
  36      {
  37          $this->get_header();
  38          $this->before();
  39  
  40          $attrs = '';
  41          if (isset($_GET) && !empty($_GET)) foreach($_GET as $k => $v) $attrs .= " $k=\"$v\"";
  42  
  43          echo do_shortcode("[mailpress$attrs]");
  44  
  45          $this->after();
  46          $this->get_footer();
  47      }
  48  }


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