plugin_dir = $adminPress->plugin_dir; $this->plugin_url = $adminPress->plugin_url; $this->version = $adminPress->version; $this->options = $adminPress->options; } add_filter( 'adminpress_form', array( $this, 'FooterText_form' ), 17 ); add_filter( 'admin_footer_text', array( $this, 'change_footer_admin' ) ); add_filter( 'update_footer', array( $this, 'footer_version' ), 999 ); add_filter( 'submitted_data', array( $this, 'footer_text_add' ) ); } public function change_footer_admin( $text ) { if( isset( $this->options['footer_text'] ) && $this->options['footer_text'] != '' ) { return stripslashes_deep( $this->options['footer_text'] ); } return $text; } public function footer_version( $text ) { return isset( $this->options['hide_version'] ) && $this->options['hide_version'] == 1 ? '' : $text; } public function footer_text_add( $data ){ $data['admp']['footer_text'] = $data['footer_text']; return $data; } public function FooterText_form( $form ) { ob_start(); ?>
| options['footer_text'] ) ? stripslashes( $this->options['footer_text'] ) : "" ? stripslashes( $this->options['footer_text'] ) : '', 'footer_text' ); ?> | |
| options['hide_version'] ) && $this->options['hide_version'] == 1 ? 'checked="checked"' : '' ?> type="radio" name="admp[hide_version]" value="1" class="toggle-radio" /> options['hide_version'] ) && $this->options['hide_version'] == 0 ? 'checked="checked"' : '' ?> type="radio" name="admp[hide_version]" value="0" class="toggle-radio" /> |