Plugin Directory

Changeset 554655


Ignore:
Timestamp:
06/08/2012 03:09:49 AM (14 years ago)
Author:
maxxsnake
Message:

Removed download arrow from calculator

Location:
advanced-real-estate-mortgage-calculator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-real-estate-mortgage-calculator/trunk/advanced-real-estate-mortgage-calculator.php

    r553592 r554655  
    44Plugin URI: http://livelakeaustin.com/advanced-real-estate-mortgage-calculator
    55Description: Advanced Real Estate Mortgage Calculator is an easy-to-use financial calculator and a great tool for real estate websites. Quickly calculates monthly payment from sales price, down payment, and interest rate & length of loan - or, enter the desired monthly payment to calculate sales price - all on the same form.
    6 Version: 1.1.2
     6Version: 1.1.3
    77Author: Josh Davis
    88Author URI: http://josh.isthecatsmeow.com/
     
    4040        'aremc_interest',
    4141        'aremc_years',
    42         'aremc_citation',
    4342        );
    4443    foreach ( $setting_vars as $setting_var ){
     
    117116    </table>
    118117</fieldset>
    119 <fieldset>
    120     <legend>Download citation:</legend>
    121     <table class="form-table">
    122         <div class="entry"><input type="checkbox" name="aremc_citation" value="1" <?php checked( '1', get_option( 'aremc_citation' ) ); ?> /> Remove <img src="<?php echo plugins_url('images/advanced-real-estate-mortgage-calculator.png', __FILE__); ?>" /> From Calculator <span>- Adds citation to footer instead on pages where calculator appears</span></div>
    123     </table>
    124 </fieldset>
    125118<p class="submit">
    126119<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
     
    133126
    134127global $aremc_markup;
    135 global $aremc_markup_pretitle;
    136 global $aremc_markup_posttitle;
    137128global $aremc_price;
    138129global $aremc_down;
     
    143134$aremc_interest = get_option('aremc_interest');
    144135$aremc_years = get_option('aremc_years');
    145 if (get_option('aremc_citation')) {
    146     $aremc_markup_pretitle = '';
    147     $aremc_markup_posttitle = '';
    148 }
    149 else{
    150     $aremc_markup_pretitle = '<div class="aremc_title">';
    151     $aremc_markup_posttitle = '<span class="aremc_getcode"><a href="http://livelakeaustin.com/advanced-real-estate-mortgage-calculator" target="_blank" title="Get the real estate calculator">Get the real estate calculator</a></span></div>';
    152 }
    153136$aremc_markup = '<form id="aremc" action=""><table><tr><td><span class="aremc_label">Selling Price</span><span class="aremc_field">$<input name="text" type="text" id="textA" onfocus="this.className=';
    154137$aremc_markup .= "'boxFocus'";
     
    171154function aremc_shortcode( $atts ){
    172155    global $aremc_markup;
    173     global $aremc_markup_pretitle;
    174     global $aremc_markup_posttitle;
    175     $aremc_shortcode_output = '<h2>' . $aremc_markup_pretitle . 'Mortgage Calculator' . $aremc_markup_posttitle . '</h2>' . $aremc_markup;
    176156    if (get_option('aremc_tos')) {
    177         if (get_option('aremc_citation')) {
    178             add_action( 'wp_footer', 'aremc_footer' );
    179         }
    180         return $aremc_shortcode_output;
     157        add_action( 'wp_footer', 'aremc_footer' );
     158        return $aremc_markup;
    181159    }
    182160    else {
     
    194172        // Widget output
    195173        global $aremc_markup;
    196         global $aremc_markup_pretitle;
    197         global $aremc_markup_posttitle;
    198174        global $aremc_widget_output;
    199175        extract( $args );
    200176        $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
    201177        $aremc_widget_output = '<div class="aremc_sidebar">' . $aremc_markup . '</div>';
    202         $aremc_widget_output = $before_widget . $before_title . $aremc_markup_pretitle . $title . $aremc_markup_posttitle . $after_title . $aremc_widget_output . $after_widget;
     178        $aremc_widget_output = $before_widget . $before_title . $title . $after_title . $aremc_widget_output . $after_widget;
    203179        if (get_option('aremc_tos')) {
    204             if (get_option('aremc_citation')) {
    205                 add_action( 'wp_footer', 'aremc_footer' );
    206             }
     180            add_action( 'wp_footer', 'aremc_footer' );
    207181            echo $aremc_widget_output;
    208182        }
     
    232206
    233207function aremc_footer() {
    234     echo '<div class="aremc_footer"><a href="http://livelakeaustin.com/advanced-real-estate-mortgage-calculator" target="_blank" title="Get the real estate calculator">Real estate calculator</a> by <a href="http://livelakeaustin.com" target="_blank">Live Lake Austin</a></div>';
     208    echo '<div class="aremc_footer"><a href="http://livelakeaustin.com/advanced-real-estate-mortgage-calculator" target="_blank">Real estate calculator</a> by <a href="http://livelakeaustin.com" target="_blank">Live Lake Austin</a></div>';
    235209}
    236210
  • advanced-real-estate-mortgage-calculator/trunk/readme.txt

    r553593 r554655  
    3636== Changelog ==
    3737
    38 = 1.1.1 =
    39 * Added options to move citation.
    40 
    4138= 1.1 =
    4239* Added options to choose default values.
     
    4744== Upgrade Notice ==
    4845
    49 = 1.1.1 =
    50 * Added options to move citation.
    51 
    5246= 1.1 =
    5347* Added options to choose default values.
  • advanced-real-estate-mortgage-calculator/trunk/style.css

    r552876 r554655  
    1 .aremc_title{
    2     position: relative;
    3     padding-right: 21px;
    4 }
    5 
    6 .aremc_getcode{
    7     position: absolute;
    8     bottom: 4px;
    9     right: 4px;
    10     display: inline-block;
    11     text-indent: -9999px;
    12     width: 12px;
    13     height: 12px;
    14     line-height: 12px;
    15     background: url('images/advanced-real-estate-mortgage-calculator.png') 0px 0px no-repeat;
    16     margin-left: 5px;
    17 }
    18 
    19 .aremc_getcode a{
    20     display: block;
    21 }
    22 
    231#aremc{
    242    margin: 10px 0px;
Note: See TracChangeset for help on using the changeset viewer.