Changeset 1066189
- Timestamp:
- 01/12/2015 04:56:20 PM (11 years ago)
- Location:
- worldcurrency/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
worldcurrency-admin.php (modified) (19 diffs)
-
worldcurrency.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
worldcurrency/trunk/readme.txt
r1066181 r1066189 98 98 == Changelog == 99 99 100 = 1.17 (12 January 2015) = 101 * Fix: Corrected typo on the admin pages which showed incorrect shortcode (should be curr= not cur=) 102 100 103 = 1.16 (12 January 2015) = 101 104 * Fix: getting rates from yahoo has been fixed -
worldcurrency/trunk/worldcurrency-admin.php
r522040 r1066189 11 11 // get the localcurrency options 12 12 $dt_wc_options = get_option('dt_wc_options'); 13 13 14 14 // Post the form 15 15 if (isset($_POST['dt_wc_options_submit']) && check_admin_referer('worldcurrency_admin_page_submit')) { 16 16 17 $dt_wc_options['historic_rates'] = isset($_POST['historic_rates']) ? 'true' : 'false'; 18 $dt_wc_options['hide_if_same'] = isset($_POST['hide_if_same']) ? 'true' : 'false'; 19 $dt_wc_options['plugin_link'] = isset($_POST['plugin_link']) ? 'true' : 'false'; 20 $dt_wc_options['yahoo_link'] = isset($_POST['yahoo_link']) ? 'true' : 'false'; 21 $dt_wc_options['plugin_priority'] = absint($_POST['plugin_priority']); 22 $dt_wc_options['output_format'] = $_POST['output_format']; 23 $dt_wc_options['thousands_separator'] = $_POST['thousands_separator']; 24 $dt_wc_options['decimal_separator'] = $_POST['decimal_separator']; 25 $dt_wc_options['additional_css'] = $_POST['additional_css']; 26 $dt_wc_options['bottom_select'] = isset($_POST['bottom_select']) ? 'true' : 'false'; 27 $dt_wc_options['include_jquery'] = isset($_POST['include_jquery']) ? 'true' : 'false'; 28 $dt_wc_options['include_always'] = isset($_POST['include_always']) ? 'true' : 'false'; 29 $dt_wc_options['jquery_no_conflict'] = isset($_POST['jquery_no_conflict']) ? 'true' : 'false'; 30 $dt_wc_options['ajax_over_ssl'] = isset($_POST['ajax_over_ssl']) ? 'true' : 'false'; 31 17 $dt_wc_options['historic_rates'] = isset($_POST['historic_rates']) ? 'true' : 'false'; 18 $dt_wc_options['hide_if_same'] = isset($_POST['hide_if_same']) ? 'true' : 'false'; 19 $dt_wc_options['plugin_link'] = isset($_POST['plugin_link']) ? 'true' : 'false'; 20 $dt_wc_options['yahoo_link'] = isset($_POST['yahoo_link']) ? 'true' : 'false'; 21 $dt_wc_options['plugin_priority'] = absint($_POST['plugin_priority']); 22 $dt_wc_options['output_format'] = $_POST['output_format']; 23 $dt_wc_options['thousands_separator'] = $_POST['thousands_separator']; 24 $dt_wc_options['decimal_separator'] = $_POST['decimal_separator']; 25 $dt_wc_options['additional_css'] = $_POST['additional_css']; 26 $dt_wc_options['bottom_select'] = isset($_POST['bottom_select']) ? 'true' : 'false'; 27 $dt_wc_options['include_jquery'] = isset($_POST['include_jquery']) ? 'true' : 'false'; 28 $dt_wc_options['include_always'] = isset($_POST['include_always']) ? 'true' : 'false'; 29 $dt_wc_options['jquery_no_conflict'] = isset($_POST['jquery_no_conflict']) ? 'true' : 'false'; 30 $dt_wc_options['ajax_over_ssl'] = isset($_POST['ajax_over_ssl']) ? 'true' : 'false'; 31 32 32 update_option('dt_wc_options', $dt_wc_options); 33 33 34 34 echo '<div id="message" class="updated"><p><strong>Options saved.</strong></p></div>'; 35 35 } 36 36 37 37 if (isset($_POST['dt_wc_options_reset']) && check_admin_referer('worldcurrency_admin_page_submit')) { 38 38 dt_wc_createOptions(true); … … 43 43 // now drop out of php to create the HTML for the Options page 44 44 ?> 45 45 46 46 <style type="text/css"> 47 47 .dt_wc_list { … … 52 52 </style> 53 53 54 <div class="wrap"> 55 <h2>WorldCurrency Settings</h2> 54 <div class="wrap"> 55 <h2>WorldCurrency Settings</h2> 56 56 <div id="poststuff"> 57 58 <form name="worldcurrency_options_form" action="" method="post"> 59 57 58 <form name="worldcurrency_options_form" action="" method="post"> 59 60 60 <div class="stuffbox"> 61 61 <h3>General Settings</h3> 62 62 <div class="inside"> 63 63 64 64 <?php if (function_exists('wp_nonce_field')) {wp_nonce_field('worldcurrency_admin_page_submit'); }?> 65 65 66 66 <p> 67 67 <h4> … … 73 73 This default option can be overridden by a parameter directly in the shorttag. 74 74 </p> 75 75 76 76 <p> 77 77 <h4> … … 109 109 The character used to separate the tousands in the output (usually , or .) 110 110 </p> 111 111 112 112 <p> 113 113 <h4> … … 117 117 The character used to separate the decimal numbers in the output (usually , or .) 118 118 </p> 119 119 120 120 <p> 121 121 <h4> … … 125 125 Automatically puts a currency selection box at the bottom of every page/post that has currency conversions in them. 126 126 </p> 127 127 128 128 <p> 129 129 <h4> … … 134 134 Deselect this parameter if you want to disable the link, but <u>keep in mind that leaving the link is one the best ways to support this plugin</u>. 135 135 </p> 136 136 137 137 <p> 138 138 <h4> … … 143 143 Disable this only if you want to put this link elsewhere (ie: footer). 144 144 </p> 145 145 146 146 <p> 147 147 <h4> … … 169 169 This plugin uses and includes jQuery, if you already have jQuery included in your blog pages (by theme or other plugins), you may want to disable this. 170 170 </p> 171 171 172 172 <p> 173 173 <h4> … … 177 177 Uses "jQuery" instead of "$" for calling jQuery functions. Usefull also if you have a noconflict version of jQuery included by other themes/plugins 178 178 </p> 179 179 180 180 <p> 181 181 <h4> … … 185 185 Always include the script in the page. Usefull if you want to use the currency conversions also in other parts than pages/posts. (in pages/posts you can force the script presence with a wc_force=1 custom fiels) 186 186 </p> 187 187 188 188 <p> 189 189 <h4> … … 193 193 Flag this if your site runs over SSL and you want worldcurrency ajax queries run over SSL too. 194 194 </p> 195 195 196 196 <p> 197 197 <h4> … … 203 203 some problems. 204 204 </p> 205 206 </div> 207 </div> 208 205 206 </div> 207 </div> 208 209 209 <!-- Show Update Button --> 210 210 <div class="submit"> 211 211 <input type="submit" name="dt_wc_options_submit" value="Update Options »"/> 212 212 <input type="submit" name="dt_wc_options_reset" value="Reset Options »"/> 213 </div> 213 </div> 214 214 215 215 </form> 216 216 217 217 <!-- Usage Section --> 218 218 <div class="stuffbox"> … … 220 220 <div class="inside"> 221 221 <p> 222 Enter any currency values you want converted with the [worldcurrency] shorttag.<br /> <br /> 222 Enter any currency values you want converted with the [worldcurrency] shorttag.<br /> <br /> 223 223 <code style="padding:5px;margin:10px;"> 224 [worldcurrency cur ="EUR" value="25"]225 </code><br /><br /> 224 [worldcurrency curr="EUR" value="25"] 225 </code><br /><br /> 226 226 in united states this will show: (~30$ USD) 227 227 </p> … … 246 246 <br /> 247 247 There is also a <b>Widget</b> (for the sidebar) wich shows the Currency Selection Box only if there are currencies on the page. 248 </div> 249 </div> 248 </div> 249 </div> 250 250 251 251 … … 262 262 </form> 263 263 </div> 264 264 265 265 <p>Thank you for using the WorldCurrency plugin. If you like this plugin, you may like to:</p> 266 266 <ul style="font-size:1em; margin:12px 40px; list-style:disc"> … … 269 269 <li>Support ongoing development by <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6CUNDYFWV4NUW">making a donation</a></li> 270 270 </ul> 271 271 272 272 <p>This plugin was created thanks to:</p> 273 273 <ul style="font-size:1em; margin:12px 40px; list-style:disc"> … … 277 277 </ul> 278 278 <p><small>Copyright <?php echo date('Y'); ?> by Daniele Tieghi. Released under the GNU General Public License (version 2 or later).</small></p> 279 </div> 280 </div> 279 </div> 280 </div> 281 281 282 282 </div> <!-- end id="poststuff" --> -
worldcurrency/trunk/worldcurrency.php
r1066181 r1066189 4 4 Plugin URI: http://www.cometicucinoilweb.it/blog/en/worldcurrency-plugin-for-wordpress/ 5 5 Description: Recognises users by IP address and shows them converted values in their local currency, you can write post/pages in multiple currencies. 6 Version: 1.1 66 Version: 1.17 7 7 Date: 12 Jamuary 2015 8 8 Author: Daniele Tieghi
Note: See TracChangeset
for help on using the changeset viewer.