function widget($args, $instance) { $out = $tmp = ''; extract($args, EXTR_SKIP); $ll = ''; global $post; if(is_single() && $post) { $lat = get_post_meta($post->ID, 'geo_latitude', true); $lng = get_post_meta($post->ID, 'geo_longitude', true); $zoom = get_post_meta($post->ID, 'geo_zoom', true); $address = get_post_meta($post->ID, 'geo_address', true); if($lat != '') { $ll = $lat . ',' . $lng; $instance['address'] = $address; $instance['lightbox_zoom'] = $zoom; } } if($ll == '') { return $out; } // self::$widgets[] = array(....