columns = 1; // How many columns/row in our display output. foreach ($params as $name => $value) { $this->$name = $value; } } /*------------------------------------- * method: display_products * * Legacy Panhandler stuff that will eventually come out. * This method generates the HTML that will be used to display * the product list in WordPress when it renders the page. * */ function display_products($products) { $product_output[] = ''; $moneyFormat = get_option($this->prefix.'-money_format'); $linkModifiers = get_option($this->prefix.'-link_modifiers'); $currCol = 0; foreach ($products as $product) { // If we are on the first column, start a new row div // if ($currCol == 0) { $product_output[] = '
'.$product->description.'
'; $product_output[] = ''.$product->currency; if (function_exists('money_format') && ($moneyFormat != '')) { $product_output[] = "web_urls[0]}\" target=\"csa\" $linkModifiers>". apply_filters($this->prefix.'_money_prefix','$') . trim(money_format($moneyFormat, (float)$product->price)) . ''; } else { $product_output[] = "web_urls[0]}\" target=\"csa\">". apply_filters($this->prefix.'_money_prefix','$') . trim(number_format((float)$product->price, 2)) . ''; } $product_output[] = '
'; $product_output[] = '