";
$full_title = $before_title . $title . $after_title;
echo $full_title."
";
nzshpcrt_latest_product();
echo $after_widget;
}
function nzshpcrt_latest_product($input = null) {
global $wpdb;
$siteurl = get_option('siteurl');
$latest_product = $wpdb->get_results("SELECT * FROM `".WPSC_TABLE_PRODUCT_LIST."` WHERE `active` IN ('1') ORDER BY `id` DESC LIMIT 5", ARRAY_A);
if($latest_product != null) {
$output = "
\n\r"; echo " \n\r"; echo "
\n\r"; } function widget_latest_products_init() { if(function_exists('register_sidebar_widget')) { register_sidebar_widget(TXT_WPSC_LATEST_PRODUCTS, 'widget_latest_products'); register_widget_control(TXT_WPSC_LATEST_PRODUCTS, 'widget_latest_products_control'); } return; } add_action('plugins_loaded', 'widget_latest_products_init'); ?>