Plugin Directory

Changeset 508115


Ignore:
Timestamp:
02/21/2012 08:53:32 AM (14 years ago)
Author:
WhiteCubes
Message:

Hides widget if no currency on page

Location:
worldcurrency/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • worldcurrency/trunk/readme.txt

    r507848 r508115  
    55Requires at least: 2.8.0
    66Tested up to: 3.3.1
    7 Stable tag: 1.4
     7Stable tag: 1.5
    88
    99Recognises users by IP address and shows them converted values in their local currency, you can write post/pages in multiple currencies.
     
    8686== Changelog ==
    8787
    88 = 1.0 (19th February 2012) =
    89 * Initial Release
     88= 1.5 (21th February 2012) =
     89* Hides the widget if no currency on page/post
    9090
    91 = 1.1 (20th February 2012) =
    92 * Minor improvements and Currency selection box shorttag
     91= 1.4 (20th February 2012) =
     92* Estetic improvements
    9393
    9494= 1.2 (20th February 2012) =
     
    9696* Possibility to choose to hide conversion if target and origin currency are the same
    9797
    98 = 1.4 (20th February 2012) =
    99 * Estetic improvements
     98= 1.1 (20th February 2012) =
     99* Minor improvements and Currency selection box shorttag
     100
     101= 1.0 (19th February 2012) =
     102* Initial Release
    100103
    101104== Credits ==
  • worldcurrency/trunk/worldcurrency.php

    r507848 r508115  
    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.4
    7 Date: 20th February 2012
     6Version: 1.5
     7Date: 21th February 2012
    88Author: Daniele Tieghi
    99Author URI: http://www.cometicucinoilweb.it/blog/chi-siamo/daniele-tieghi/
  • worldcurrency/trunk/worldcurrency.widget.php

    r507788 r508115  
    1515         
    1616        function widget($args, $instance) {
    17             echo dt_wc_getCurrencySelectionBox();
     17            global $post;
     18            if (strpos($post->post_content, 'worldcurrency') !== false)
     19                echo dt_wc_getCurrencySelectionBox();
    1820        }
    1921     
Note: See TracChangeset for help on using the changeset viewer.