/**
  * @usage Short-code function for front-end UI
  * @return string
  */
 function Dashboard()
 {
     global $current_user;
     wp_reset_query();
     $currentAccess = maybe_unserialize(get_option('__wpdm_front_end_access', array()));
     $task = get_query_var('adb_page');
     $task = explode("/", $task);
     if ($task[0] == 'edit-package') {
         $pid = $task[1];
     }
     if ($task[0] == 'page') {
         $task[0] = '';
         set_query_var('paged', $task[1]);
     }
     $task = $task[0];
     if (!array_intersect($currentAccess, $current_user->roles) && is_user_logged_in()) {
         return "<div class='w3eden'><div class='alert alert-danger'>" . wpautop(stripslashes(get_option('__wpdm_front_end_access_blocked', __('Sorry, Your Are Not Allowed!', 'wpdmpro')))) . "</div></div>";
     }
     $id = wpdm_query_var('ID');
     $tabs = array();
     $tabs = apply_filters('wpdm_frontend', $tabs);
     $burl = get_permalink();
     $sap = strpos($burl, '?') ? '&' : '?';
     ob_start();
     include \WPDM\Template::Locate('author-dashboard.php');
     $data = ob_get_clean();
     return $data;
 }