file_path = $path; $this->setUi(); } public function setUi(){ include 'allpost-contactform-language.php'; register_setting(RL_APCF::OPTIONS, RL_APCF::OPTIONS, array( &$this, 'validate' )); add_settings_section('main_section', '', array(&$this,'section_topfunc'), $this->file_path); add_settings_field('rlapcf_ctitle', $rl_apcf_admin_c1, array(&$this,'setting_ctitle'), $this->file_path, 'main_section'); add_settings_field('rlapcf_cmessage', $rl_apcf_admin_c2, array(&$this,'setting_cmessage'), $this->file_path, 'main_section'); add_settings_field('rlapcf_cbtn', $rl_apcf_admin_c3, array(&$this,'setting_cbtn'), $this->file_path, 'main_section'); add_settings_field('rlapcf_stitle', $rl_apcf_admin_s1, array(&$this,'setting_stitle'), $this->file_path, 'main_section'); add_settings_field('rlapcf_smessage', $rl_apcf_admin_s2, array(&$this,'setting_smessage'), $this->file_path, 'main_section'); add_settings_field('rlapcf_mail', $rl_apcf_admin_m1, array(&$this,'setting_mail'), $this->file_path, 'main_section'); add_settings_field('rlapcf_mailsender', $rl_apcf_admin_m2, array(&$this,'setting_mailsender'), $this->file_path, 'main_section'); add_settings_field('rlapcf_mailsubject', $rl_apcf_admin_m3, array(&$this,'setting_mailsubject'), $this->file_path, 'main_section'); } public function disp_admin_page() { include 'allpost-contactform-language.php'; $file = $this->file_path; $option_apcf_name = RL_APCF::OPTIONS; $shortcode = "[" . RL_APCF::SHORTCODE . "]"; include 'allpost-contactform-admin-view.php'; } function validate($input) { $input['rlapcf_mail'] = sanitize_email( $input['rlapcf_mail'] ); $input['rlapcf_mailsender'] = sanitize_text_field( $input['rlapcf_mailsender'] ); $input['rlapcf_mailsubject'] = sanitize_text_field( $input['rlapcf_mailsubject'] ); $input['rlapcf_ctitle'] = sanitize_text_field( $input['rlapcf_ctitle'] ); $input['rlapcf_cmessage'] = sanitize_text_field( $input['rlapcf_cmessage'] ); $input['rlapcf_cbtn'] = sanitize_text_field( $input['rlapcf_cbtn'] ); $input['rlapcf_stitle'] = sanitize_text_field( $input['rlapcf_stitle'] ); $input['rlapcf_smessage'] = sanitize_text_field( $input['rlapcf_smessage'] ); return $input; } function section_topfunc() {} function setting_ctitle() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_ctitle"]; echo '

'.$rl_apcf_admin_confirmation_window.'

'; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_c1_eg.' '; } function setting_cmessage() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_cmessage"]; echo ' '; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_c2_eg.' '; } function setting_cbtn() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_cbtn"]; echo ' '; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_c3_eg.' '; } function setting_stitle() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_stitle"]; echo '

'.$rl_apcf_admin_submission_window.'

'; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_s1_eg.' '; } function setting_smessage() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_smessage"]; echo ' '; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_s2_eg.' '; } function setting_mail() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_mail"]; echo '

'.$rl_apcf_admin_mail.'

'; echo ''; echo ""; $rl_apcf_admin_m1_eg_admin = get_option( 'admin_email' ); echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_m1_eg_admin.' '.$rl_apcf_admin_m1_eg.' '; } function setting_mailsender() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_mailsender"]; echo ' '; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_m2_eg.' '; } function setting_mailsubject() { $options = RL_APCF::get_option(); include 'allpost-contactform-language.php'; $value = $options["rlapcf_mailsubject"]; echo ' '; echo ""; echo ' '.$rl_apcf_admin_eg.''.$rl_apcf_admin_m3_eg.' '; } } }