Plugin Directory

Changeset 445159


Ignore:
Timestamp:
09/29/2011 10:13:09 AM (15 years ago)
Author:
f4ber
Message:

updated mechanism of getting currency date

Location:
cbrcurrency/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cbrcurrency/trunk/README.txt

    r445088 r445159  
    11=== CbrCurrency ===
    22Contributors: f4ber
    3 Donate link: http://f4ber.net/
     3Donate link: http://www.f4ber.net/
    44Tags: widget, sidebar, currency, rouble, RUR, RUB, EUR, USD
    55Requires at least: 2.6
    66Tested up to: 3.2.1
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88
    99Show the exchange rate of USD, RUR, EUR of The Central Bank of the Russian Federation.
     
    3131
    3232== Upgrade Notice ==
    33 Nothing
     33No need remove old version of widget before upgrade to new version
    3434
    3535== Changelog ==
     36
     37= 1.2.1 =
     38
     39* 29/09/2011
     40* Changed mechanism of getting currency date
    3641
    3742= 1.2.0 =
  • cbrcurrency/trunk/cbrcurrency.php

    r445088 r445159  
    44Plugin URI: http://f4ber.net/
    55Description: Виджет курса валют ЦБ РФ на текущий день c динамикой.
    6 Version: 1.2.0
     6Version: 1.2.1
    77Author: f4ber
    88Author URI: http://f4ber.net/
     
    1818extract($args);
    1919$title = 'Курс ЦБ ';
    20 $today = date('d/m/y');
    21 echo $before_widget;
    22 echo $before_title . $title . $today . $after_title;
     20echo
     21
    2322function getcurrency($code){
    2423
     
    7978
    8079//echo("{$date}: 1USD={$rate}RUR ({$delta})<BR>");
    81  return array ($rate, $delta, $znak, $zcolor);
     80 return array ($rate, $delta, $znak, $zcolor, $date);
    8281}
    8382
    84 list ($rate_d, $delta_d, $znak_d, $zcolor_d) = getcurrency('R01235');
    85 list ($rate_e, $delta_e, $znak_e, $zcolor_e) = getcurrency('R01239');
     83list ($rate_d, $delta_d, $znak_d, $zcolor_d, $date_d) = getcurrency('R01235');
     84list ($rate_e, $delta_e, $znak_e, $zcolor_e, $date_e) = getcurrency('R01239');
     85
     86echo $before_widget . $before_title . $title . $date_d . $after_title;
    8687
    8788echo '
Note: See TracChangeset for help on using the changeset viewer.