diff --git a/_class.php b/_class.php index 618e6da..78ad305 100644 --- a/_class.php +++ b/_class.php @@ -1,4 +1,11 @@ retrieve('anteup_currency', 'symbol', 'id = '.intval($id)); - } - elseif($type == "code") - { - return $sql->retrieve('anteup_currency', 'code', 'id = '.intval($id)); - } - elseif($type == "desc") - { - return $sql->retrieve('anteup_currency', 'description', 'id = '.intval($id)); - } - else - { - return ""; - } -} - function get_info($type) { $sql = e107::getDb(); diff --git a/anteup_menu.php b/anteup_menu.php index da1125e..a2629c6 100644 --- a/anteup_menu.php +++ b/anteup_menu.php @@ -23,6 +23,6 @@ else $caption = $caption; - $ns->tablerender($caption, $text, 'anteup'); + e107::getRender()->tablerender($caption, $text, 'anteup'); } ?> diff --git a/anteup_shortcodes.php b/anteup_shortcodes.php index 27f2e6a..e399ff6 100644 --- a/anteup_shortcodes.php +++ b/anteup_shortcodes.php @@ -6,9 +6,6 @@ * For additional information refer to the README.mkd file. * */ - -//TODO: Convert all form elements to e107::getForm() - if(!defined('e107_INIT')){ exit; } class anteup_shortcodes extends e_shortcode @@ -88,8 +85,8 @@ function sc_anteup_donator($parm) { if($this->var['anon'] == true) { - $output = e107::getForm()->hidden('item_name', 'Anonymous'); - $output .= "Anonymous"; + $output = e107::getForm()->hidden('item_name', LAN_ANTEUP_DONATIONS_ANONYMOUS); + $output .= LAN_ANTEUP_DONATIONS_ANONYMOUS; } else { @@ -108,6 +105,18 @@ function sc_anteup_donator($parm) return $output; } + function sc_anteup_menutext($parm='') + { + $text = e107::pref('anteup', 'anteup_menutext'); + return ($text == "LAN_ANTEUP_MENU_TEXT" ? LAN_ANTEUP_MENU_TEXT : $text); + } + + function sc_anteup_donatelink($parm='') + { + $pref = e107::pref('anteup'); + return ""; + } + function sc_anteup_currencyselector($parm) { $sql = e107::getDb(); @@ -197,6 +206,12 @@ function sc_anteup_donation_donator($parm='') { return $this->var['user_id']; } + + function sc_anteup_pagetext($parm='') + { + $text = e107::pref('anteup', 'anteup_pagetext'); + return ($text == "LAN_ANTEUP_PAGE_TEXT" ? LAN_ANTEUP_PAGE_TEXT : $text); + } } ?> diff --git a/donations.php b/donations.php index 9087331..b4be90f 100644 --- a/donations.php +++ b/donations.php @@ -49,12 +49,12 @@ } else { - $text .= "There were no donations made in that time frame."; + $text .= "
".ANTELAN_DONATE_01." | -{ANTEUP_DONATOR: class=tbox} | +{ANTEUP_DONATOR} | |
".ANTELAN_DONATE_02." | -{ANTEUP_CURRENCYSELECTOR: class=tbox} | +{ANTEUP_CURRENCYSELECTOR} | |
".ANTELAN_DONATE_03." | -{ANTEUP_AMOUNTSELECTOR: class=tbox} | +{ANTEUP_AMOUNTSELECTOR} | |
Donate Anonymously | -{ANTEUP_ANONBOX} | -||
{ANTEUP_SUBMITDONATION} | +{ANTEUP_SUBMITDONATION} |