function widget($args, $instance) { // displays the widget $id = $instance['progress_id']; return rednao_smart_donations_load_progress($id, $instance['title'], false); }
function rednao_smart_donations_progress_short_code($attr, $content) { return rednao_smart_donations_load_progress($content, null, true); }