Plugin Directory

Changeset 1066189


Ignore:
Timestamp:
01/12/2015 04:56:20 PM (11 years ago)
Author:
jonscaife
Message:

Corrected typo on admin page. Shortcode should be curr= not cur=

Location:
worldcurrency/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • worldcurrency/trunk/readme.txt

    r1066181 r1066189  
    9898== Changelog ==
    9999
     100= 1.17 (12 January 2015) =
     101* Fix: Corrected typo on the admin pages which showed incorrect shortcode (should be curr= not cur=)
     102
    100103= 1.16 (12 January 2015) =
    101104* Fix: getting rates from yahoo has been fixed
  • worldcurrency/trunk/worldcurrency-admin.php

    r522040 r1066189  
    1111        // get the localcurrency options
    1212        $dt_wc_options = get_option('dt_wc_options');
    13        
     13
    1414        // Post the form
    1515        if (isset($_POST['dt_wc_options_submit']) && check_admin_referer('worldcurrency_admin_page_submit')) {
    1616
    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
    3232            update_option('dt_wc_options', $dt_wc_options);
    33            
     33
    3434            echo '<div id="message" class="updated"><p><strong>Options saved.</strong></p></div>';
    3535        }
    36          
     36
    3737        if (isset($_POST['dt_wc_options_reset']) && check_admin_referer('worldcurrency_admin_page_submit')) {
    3838            dt_wc_createOptions(true);
     
    4343        // now drop out of php to create the HTML for the Options page
    4444    ?>
    45    
     45
    4646        <style type="text/css">
    4747            .dt_wc_list {
     
    5252        </style>
    5353
    54         <div class="wrap"> 
    55             <h2>WorldCurrency Settings</h2>         
     54        <div class="wrap">
     55            <h2>WorldCurrency Settings</h2>
    5656            <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
    6060                <div class="stuffbox">
    6161                    <h3>General Settings</h3>
    6262                    <div class="inside">
    63    
     63
    6464                        <?php if (function_exists('wp_nonce_field')) {wp_nonce_field('worldcurrency_admin_page_submit'); }?>
    65                    
     65
    6666                        <p>
    6767                            <h4>
     
    7373                            This default option can be overridden by a parameter directly in the shorttag.
    7474                        </p>
    75                    
     75
    7676                        <p>
    7777                            <h4>
     
    109109                            The character used to separate the tousands in the output (usually , or .)
    110110                        </p>
    111                        
     111
    112112                        <p>
    113113                            <h4>
     
    117117                            The character used to separate the decimal numbers in the output (usually , or .)
    118118                        </p>
    119                        
     119
    120120                        <p>
    121121                            <h4>
     
    125125                            Automatically puts a currency selection box at the bottom of every page/post that has currency conversions in them.
    126126                        </p>
    127                        
     127
    128128                        <p>
    129129                            <h4>
     
    134134                            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>.
    135135                        </p>
    136                        
     136
    137137                        <p>
    138138                            <h4>
     
    143143                            Disable this only if you want to put this link elsewhere (ie: footer).
    144144                        </p>
    145                                                
     145
    146146                        <p>
    147147                            <h4>
     
    169169                            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.
    170170                        </p>
    171                        
     171
    172172                        <p>
    173173                            <h4>
     
    177177                            Uses "jQuery" instead of "$" for calling jQuery functions. Usefull also if you have a noconflict version of jQuery included by other themes/plugins
    178178                        </p>
    179                        
     179
    180180                        <p>
    181181                            <h4>
     
    185185                            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)
    186186                        </p>
    187                        
     187
    188188                        <p>
    189189                            <h4>
     
    193193                            Flag this if your site runs over SSL and you want worldcurrency ajax queries run over SSL too.
    194194                        </p>
    195                        
     195
    196196                        <p>
    197197                            <h4>
     
    203203                            some problems.
    204204                        </p>
    205                                            
    206                     </div> 
    207                 </div> 
    208                
     205
     206                    </div>
     207                </div>
     208
    209209                <!-- Show Update Button -->
    210210                <div class="submit">
    211211                    <input type="submit" name="dt_wc_options_submit" value="Update Options &raquo;"/>
    212212                    <input type="submit" name="dt_wc_options_reset" value="Reset Options &raquo;"/>
    213                 </div> 
     213                </div>
    214214
    215215                </form>
    216                
     216
    217217                <!-- Usage Section -->
    218218                <div class="stuffbox">
     
    220220                    <div class="inside">
    221221                        <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 />
    223223                            <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 />
    226226                            in united states this will show: (~30$ USD)
    227227                        </p>
     
    246246                            <br />
    247247                            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>
    250250
    251251
     
    262262                            </form>
    263263                        </div>
    264                        
     264
    265265                        <p>Thank you for using the WorldCurrency plugin. If you like this plugin, you may like to:</p>
    266266                        <ul style="font-size:1em; margin:12px 40px; list-style:disc">
     
    269269                            <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>
    270270                        </ul>
    271                        
     271
    272272                        <p>This plugin was created thanks to:</p>
    273273                        <ul style="font-size:1em; margin:12px 40px; list-style:disc">
     
    277277                        </ul>
    278278                        <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>
    281281
    282282            </div> <!-- end id="poststuff" -->
  • worldcurrency/trunk/worldcurrency.php

    r1066181 r1066189  
    44Plugin URI: http://www.cometicucinoilweb.it/blog/en/worldcurrency-plugin-for-wordpress/
    55Description: 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.16
     6Version: 1.17
    77Date: 12 Jamuary 2015
    88Author: Daniele Tieghi
Note: See TracChangeset for help on using the changeset viewer.