예제 #1
0
 public function save_edit_email()
 {
     $email_type = $_REQUEST['ec_email_type'] ? $_REQUEST['ec_email_type'] : false;
     $email_id = $_REQUEST['ec_email_id'] ? $_REQUEST['ec_email_id'] : false;
     $settings = ec_get_settings($email_id);
     EC_Settings::save_fields($settings);
     die;
 }
예제 #2
0
 /**
  * Render Option
  *
  * @param mixed $option
  * @return string
  */
 public static function ec_default_option($default)
 {
     $option_name = str_replace('default_option_', '', current_filter());
     $option_value = self::get_option_array($option_name, 'default');
     $option_value = EC_Settings::ec_render_option($option_name, $option_value);
     return $option_value;
 }
예제 #3
0
                    $form_sub_class = "ec_settings_form_sub ";
                    $form_sub_class .= "ec_settings_form_sub_" . $ec_email_template_id . " ";
                    $form_sub_class .= "ec_settings_form_sub_" . $ec_email_template_id . "_" . $ec_email_template_kind . " ";
                    ?>

											
											<div id="<?php 
                    echo $form_sub_id;
                    ?>
" class="<?php 
                    echo $form_sub_class;
                    ?>
" >
												
												<?php 
                    EC_Settings::output_fields(ec_get_settings($ec_email_template_id, array('group' => $ec_email_template_kind)));
                    ?>

												
											</div>
											
											<?php 
                }
            }
            ?>

									
									<!--
									<input type="hidden" name="ec_email_type" value="<?php 
            echo $ec_email_template_kind;
            ?>