Changeset 445159
- Timestamp:
- 09/29/2011 10:13:09 AM (15 years ago)
- Location:
- cbrcurrency/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
cbrcurrency.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cbrcurrency/trunk/README.txt
r445088 r445159 1 1 === CbrCurrency === 2 2 Contributors: f4ber 3 Donate link: http:// f4ber.net/3 Donate link: http://www.f4ber.net/ 4 4 Tags: widget, sidebar, currency, rouble, RUR, RUB, EUR, USD 5 5 Requires at least: 2.6 6 6 Tested up to: 3.2.1 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 9 9 Show the exchange rate of USD, RUR, EUR of The Central Bank of the Russian Federation. … … 31 31 32 32 == Upgrade Notice == 33 No thing33 No need remove old version of widget before upgrade to new version 34 34 35 35 == Changelog == 36 37 = 1.2.1 = 38 39 * 29/09/2011 40 * Changed mechanism of getting currency date 36 41 37 42 = 1.2.0 = -
cbrcurrency/trunk/cbrcurrency.php
r445088 r445159 4 4 Plugin URI: http://f4ber.net/ 5 5 Description: Виджет курса валют ЦБ РФ на текущий день c динамикой. 6 Version: 1.2. 06 Version: 1.2.1 7 7 Author: f4ber 8 8 Author URI: http://f4ber.net/ … … 18 18 extract($args); 19 19 $title = 'Курс ЦБ '; 20 $today = date('d/m/y'); 21 echo $before_widget; 22 echo $before_title . $title . $today . $after_title; 20 echo 21 23 22 function getcurrency($code){ 24 23 … … 79 78 80 79 //echo("{$date}: 1USD={$rate}RUR ({$delta})<BR>"); 81 return array ($rate, $delta, $znak, $zcolor );80 return array ($rate, $delta, $znak, $zcolor, $date); 82 81 } 83 82 84 list ($rate_d, $delta_d, $znak_d, $zcolor_d) = getcurrency('R01235'); 85 list ($rate_e, $delta_e, $znak_e, $zcolor_e) = getcurrency('R01239'); 83 list ($rate_d, $delta_d, $znak_d, $zcolor_d, $date_d) = getcurrency('R01235'); 84 list ($rate_e, $delta_e, $znak_e, $zcolor_e, $date_e) = getcurrency('R01239'); 85 86 echo $before_widget . $before_title . $title . $date_d . $after_title; 86 87 87 88 echo '
Note: See TracChangeset
for help on using the changeset viewer.