Changeset 522040
- Timestamp:
- 03/22/2012 02:33:14 AM (14 years ago)
- Location:
- worldcurrency/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
worldcurrency-admin.php (modified) (2 diffs)
-
worldcurrency.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
worldcurrency/trunk/readme.txt
r517155 r522040 5 5 Requires at least: 2.8.0 6 6 Tested up to: 3.3.1 7 Stable tag: 1.1 07 Stable tag: 1.11 8 8 9 9 Recognises users by IP address and shows them converted values in their local currency, you can write post/pages in multiple currencies. … … 87 87 Feel free to propose them. 88 88 89 =I use the shortcode in another plugin (like wp-table-reloaded) and the convesions are not working= 90 This is because in this cases the WorldCurrency plugin is not aware of the presence of these conversions and the necessary code is not loaded. 91 You can add a wc_force = 1 custom field to posts or pages to force the loading of the necessary code in this cases. 92 89 93 == Screenshots == 90 94 There are no screenshots for this plugin, but there is a full demo on the [Plugin's Homepage](http://www.cometicucinoilweb.it/blog/en/worldcurrency-plugin-for-wordpress/) 91 95 92 96 == Changelog == 97 98 = 1.11 (22 March 2012) = 99 * Added: new configuration parameter to force the script presence on every page 93 100 94 101 = 1.10 (10 March 2012) = -
worldcurrency/trunk/worldcurrency-admin.php
r512360 r522040 26 26 $dt_wc_options['bottom_select'] = isset($_POST['bottom_select']) ? 'true' : 'false'; 27 27 $dt_wc_options['include_jquery'] = isset($_POST['include_jquery']) ? 'true' : 'false'; 28 $dt_wc_options['include_always'] = isset($_POST['include_always']) ? 'true' : 'false'; 28 29 $dt_wc_options['jquery_no_conflict'] = isset($_POST['jquery_no_conflict']) ? 'true' : 'false'; 29 30 $dt_wc_options['ajax_over_ssl'] = isset($_POST['ajax_over_ssl']) ? 'true' : 'false'; … … 179 180 <p> 180 181 <h4> 182 Always include the script: 183 <input type="checkbox" name="include_always" id="include_always" <?php if ($dt_wc_options['include_always']=='true') {echo 'checked="checked"';}?> /> 184 </h4> 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 </p> 187 188 <p> 189 <h4> 181 190 Ajax over SSL: 182 191 <input type="checkbox" name="ajax_over_ssl" id="ajax_over_ssl" <?php if ($dt_wc_options['ajax_over_ssl']=='true') {echo 'checked="checked"';}?> /> -
worldcurrency/trunk/worldcurrency.php
r517155 r522040 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 07 Date: 10March 20126 Version: 1.11 7 Date: 22 March 2012 8 8 Author: Daniele Tieghi 9 9 Author URI: http://www.cometicucinoilweb.it/blog/chi-siamo/daniele-tieghi/ … … 70 70 if ($force || !isset($dt_wc_options['bottom_select'])) $dt_wc_options['bottom_select'] = 'true'; 71 71 if ($force || !isset($dt_wc_options['include_jquery'])) $dt_wc_options['include_jquery'] = 'true'; 72 if ($force || !isset($dt_wc_options['include_always'])) $dt_wc_options['include_always'] = 'false'; 72 73 if ($force || !isset($dt_wc_options['jquery_no_conflict'])) $dt_wc_options['jquery_no_conflict'] = 'false'; 73 74 if ($force || !isset($dt_wc_options['ajax_over_ssl'])) $dt_wc_options['ajax_over_ssl'] = 'false'; … … 106 107 107 108 // Include the script only if necessary 108 if ( get_post_meta($post->ID, 'wc_force', true) == 1 || strpos($post->post_content, 'worldcurrency') !== false) {109 if ($dt_wc_options['include_always'] == 'true' || get_post_meta($post->ID, 'wc_force', true) == 1 || strpos($post->post_content, 'worldcurrency') !== false) { 109 110 110 111 $usercurrency = dt_wc_userlocation();
Note: See TracChangeset
for help on using the changeset viewer.