/**
  * Get the current portfolio type
  *
  * @return string "background" or "page"
  */
 public static function get_type()
 {
     global $post;
     if (!isset(self::$type)) {
         self::$type = is_page() ? get_post_meta($post->ID, 'fancy-portfolio-type', true) : 'disabled';
     }
     return self::$type;
 }