Changeset 554655
- Timestamp:
- 06/08/2012 03:09:49 AM (14 years ago)
- Location:
- advanced-real-estate-mortgage-calculator/trunk
- Files:
-
- 3 edited
-
advanced-real-estate-mortgage-calculator.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
advanced-real-estate-mortgage-calculator/trunk/advanced-real-estate-mortgage-calculator.php
r553592 r554655 4 4 Plugin URI: http://livelakeaustin.com/advanced-real-estate-mortgage-calculator 5 5 Description: 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. 26 Version: 1.1.3 7 7 Author: Josh Davis 8 8 Author URI: http://josh.isthecatsmeow.com/ … … 40 40 'aremc_interest', 41 41 'aremc_years', 42 'aremc_citation',43 42 ); 44 43 foreach ( $setting_vars as $setting_var ){ … … 117 116 </table> 118 117 </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>125 118 <p class="submit"> 126 119 <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> … … 133 126 134 127 global $aremc_markup; 135 global $aremc_markup_pretitle;136 global $aremc_markup_posttitle;137 128 global $aremc_price; 138 129 global $aremc_down; … … 143 134 $aremc_interest = get_option('aremc_interest'); 144 135 $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 }153 136 $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='; 154 137 $aremc_markup .= "'boxFocus'"; … … 171 154 function aremc_shortcode( $atts ){ 172 155 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;176 156 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; 181 159 } 182 160 else { … … 194 172 // Widget output 195 173 global $aremc_markup; 196 global $aremc_markup_pretitle;197 global $aremc_markup_posttitle;198 174 global $aremc_widget_output; 199 175 extract( $args ); 200 176 $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']); 201 177 $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; 203 179 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' ); 207 181 echo $aremc_widget_output; 208 182 } … … 232 206 233 207 function 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>'; 235 209 } 236 210 -
advanced-real-estate-mortgage-calculator/trunk/readme.txt
r553593 r554655 36 36 == Changelog == 37 37 38 = 1.1.1 =39 * Added options to move citation.40 41 38 = 1.1 = 42 39 * Added options to choose default values. … … 47 44 == Upgrade Notice == 48 45 49 = 1.1.1 =50 * Added options to move citation.51 52 46 = 1.1 = 53 47 * 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 23 1 #aremc{ 24 2 margin: 10px 0px;
Note: See TracChangeset
for help on using the changeset viewer.