public static function create_from_template($path)
 {
     $templates = glob($path . '/*.php');
     for ($i = count($templates) - 1; $i >= 0; $i--) {
         $filename = str_replace('.php', '', str_replace($path . '/', '', $templates[$i]));
         $display = get_page_by_path($filename, OBJECT, self::$post_type);
         $values = FrmProDisplaysHelper::setup_new_vars();
         $values['display_key'] = $filename;
         include $templates[$i];
     }
 }
 function create_from_template($path)
 {
     global $frmpro_display;
     $templates = glob($path . "/*.php");
     for ($i = count($templates) - 1; $i >= 0; $i--) {
         $filename = str_replace('.php', '', str_replace($path . '/', '', $templates[$i]));
         $display = $frmpro_display->getAll(array('display_key' => $filename), '', 1);
         $values = FrmProDisplaysHelper::setup_new_vars();
         $values['display_key'] = $filename;
         include_once $templates[$i];
     }
 }