/** * Get path to exported settings * @author alex * @return array */ public static function getSliderConfigs() { $dir = ctImport::getDemoContentBaseDir() . '/layer_slider*.json'; $r = glob($dir); if ($r === false) { return array(); } return $r; }
/** * Get path to exported settings * @author alex * @return string */ public static function getWpOptionsPath() { return ctImport::getDemoContentBaseDir() . '/wp_options.txt'; }
/** * Import */ public static function handleCtDemoImportAction() { $import = new ctImport(); $import->dispatch(); exit; }