コード例 #1
0
 function form($instance)
 {
     $default = array('nm_mc_title' => __('join the revolution'), 'headline_font_size' => '86px', 'headline_font_color' => '#59ba47', 'nm_mc_detail' => 'Lorem ipsum dolor sit amet consultiteur. Erat sit amet lorem dolor. 
             Lorem ipsum dolor sit amet con. Lorem ipsum dolor sit amet consultiteur. 
             Erat sit amet lorem dolor. Lorem ipsum dolor sit amet con.', 'nm_mc_form_id' => 0, 'nm_mc_button_text' => 'Sign up');
     $instance = wp_parse_args((array) $instance, $default);
     $field_id_title = $this->get_field_id('nm_mc_title');
     $field_name_title = $this->get_field_name('nm_mc_title');
     $field_id_detail = $this->get_field_id('nm_mc_detail');
     $field_name_detail = $this->get_field_name('nm_mc_detail');
     $field_id_form = $this->get_field_id('nm_mc_form_id');
     $field_name_form = $this->get_field_name('nm_mc_form_id');
     $field_id_button = $this->get_field_id('nm_mc_button_text');
     $field_name_button = $this->get_field_name('nm_mc_button_text');
     /* $api_dir = dirname(__FILE__).'/api_mailchimp/mcapi_lists.php';
        include($api_dir); */
     $arrList = nmMailChimp::getAccountLists();
     $file = dirname(__FILE__) . '/mc-widget-options.php';
     include $file;
 }
コード例 #2
0
ファイル: nm_mailchimp.php プロジェクト: hathbanger/squab
 function form($instance)
 {
     $default = array('nm_mc_title' => __('MailChimp Widget'), 'nm_mc_form_id' => 0, 'nm_mc_button_text' => 'Subscribe');
     $instance = wp_parse_args((array) $instance, $default);
     $field_id_title = $this->get_field_id('nm_mc_title');
     $field_name_title = $this->get_field_name('nm_mc_title');
     $field_id_detail = $this->get_field_id('nm_mc_detail');
     $field_name_detail = $this->get_field_name('nm_mc_detail');
     $field_id_form = $this->get_field_id('nm_mc_form_id');
     $field_name_form = $this->get_field_name('nm_mc_form_id');
     $field_id_button = $this->get_field_id('nm_mc_button_text');
     $field_name_button = $this->get_field_name('nm_mc_button_text');
     /*$api_dir = dirname(__FILE__).'/api_mailchimp/mcapi_lists.php';
     	 include($api_dir);*/
     $arrList = nmMailChimp::getAccountLists();
     $file = dirname(__FILE__) . '/mc-widget-options.php';
     include $file;
 }