PK 0P , wp-sheet-editor-iconic-product-configurator/PK PӚH 5 wp-sheet-editor-iconic-product-configurator/index.phpoptions['keys_for_infinite_serialized_handler'], 'jckpc_images') === false) {
VGSE()->options['keys_for_infinite_serialized_handler'] .= ',jckpc_images';
}
if (strpos(VGSE()->options['keys_for_infinite_serialized_handler'], 'jckpc_defaults') === false) {
VGSE()->options['keys_for_infinite_serialized_handler'] .= ',jckpc_defaults';
}
add_action('vg_sheet_editor/editor/before_init', array($this, 'register_columns'));
add_filter('vg_sheet_editor/infinite_serialized_column/column_settings', array($this, 'filter_column_settings'), 5, 3);
}
function filter_column_settings($column_settings, $serialized_field, $post_type) {
if ($post_type === $this->post_type) {
if (preg_match('/(jckpc_images)/', $column_settings['key'])) {
WP_Sheet_Editor_Columns_Manager::get_instance()->save_column_settings($post_type, array(
'column_settings' => array(
$column_settings['key'] => array(
'field_type' => 'file',
'file_saved_format' => 'id',
'allow_multiple_files' => false,
)
)
));
$column_settings['title'] = str_replace(array('Jckpc Images', 'Jckpc '), array('Configurator', ''), $column_settings['title']);
}
if (preg_match('/(jckpc)/', $column_settings['key'])) {
$column_settings['title'] = str_replace(array('Jckpc ', ': Configurator'), array('Configurator ', ': '), $column_settings['title']);
}
}
return $column_settings;
}
/**
* Register spreadsheet columns
*/
function register_columns($editor) {
$post_type = $this->post_type;
if (!in_array($post_type, $editor->args['enabled_post_types'])) {
return;
}
$editor->args['columns']->register_item('jckpc_enabled', $post_type, array(
'data_type' => 'meta_data',
'column_width' => 170,
'title' => 'Configurator enabled',
'type' => '',
'supports_formulas' => true,
'allow_to_hide' => true,
'allow_to_rename' => true,
'supports_sql_formulas' => true,
'formatted' => array(
'type' => 'checkbox',
'checkedTemplate' => 'yes',
'uncheckedTemplate' => '',
),
'default_value' => '',
));
}
function get_term_meta($post, $cell_key, $cell_args) {
$meta = get_option('taxonomy_' . $post->ID);
$value = '';
if (empty($meta) || !is_array($meta)) {
return $value;
}
$field_key = str_replace('wpresidence_', '', $cell_key);
$value = isset($meta[$field_key]) ? $meta[$field_key] : '';
return $value;
}
function update_term_meta($post_id, $cell_key, $data_to_save, $post_type, $cell_args, $spreadsheet_columns) {
$option_key = 'taxonomy_' . $post_id;
$meta = get_option($option_key);
if (empty($meta) || !is_array($meta)) {
$meta = array();
}
$field_key = str_replace('wpresidence_', '', $cell_key);
$meta[$field_key] = $data_to_save;
update_option($option_key, $meta);
}
/**
* Creates or returns an instance of this class.
*/
static function get_instance() {
if (null == WPSE_IconicWP_Product_Configurator::$instance) {
WPSE_IconicWP_Product_Configurator::$instance = new WPSE_IconicWP_Product_Configurator();
WPSE_IconicWP_Product_Configurator::$instance->init();
}
return WPSE_IconicWP_Product_Configurator::$instance;
}
function __set($name, $value) {
$this->$name = $value;
}
function __get($name) {
return $this->$name;
}
}
}
if (!function_exists('WPSE_IconicWP_Product_Configurator_Obj')) {
function WPSE_IconicWP_Product_Configurator_Obj() {
return WPSE_IconicWP_Product_Configurator::get_instance();
}
}
add_action('vg_sheet_editor/initialized', 'WPSE_IconicWP_Product_Configurator_Obj');
PK 0P 6 wp-sheet-editor-iconic-product-configurator/nbproject/PK OP > wp-sheet-editor-iconic-product-configurator/nbproject/private/PK 0P7 P wp-sheet-editor-iconic-product-configurator/nbproject/private/private.propertiescopy.src.files=true
copy.src.on.open=false
copy.src.target=C:\\VegaCorp\\sites\\sheeteditor.local\\htdocs\\wp-content\\plugins\\wp-sheet-editor-iconic-product-configurator
index.file=index.php
run.as=LOCAL
url=http://localhost/wp-sheet-editor-iconic-product-configurator/
PK PP: I wp-sheet-editor-iconic-product-configurator/nbproject/private/private.xml
file:/C:/VegaCorp/dev/wp-sheet-editor/integrations/wp-sheet-editor-iconic-product-configurator/index.php
PK 0Pxd H wp-sheet-editor-iconic-product-configurator/nbproject/project.propertiesinclude.path=${php.global.include.path}
php.version=PHP_56
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.
PK 0P7Kb b A wp-sheet-editor-iconic-product-configurator/nbproject/project.xml
org.netbeans.modules.php.project
wp-sheet-editor-iconic-product-configurator
PK 0P , $ wp-sheet-editor-iconic-product-configurator/
ZNhZNhȉhPK PӚH 5 $ J wp-sheet-editor-iconic-product-configurator/index.php
Tp VoȉhȉhPK 0P 6 $ wp-sheet-editor-iconic-product-configurator/nbproject/
IhIhZNhPK OP > $ t wp-sheet-editor-iconic-product-configurator/nbproject/private/
RspRspqhPK 0P7 P $ wp-sheet-editor-iconic-product-configurator/nbproject/private/private.properties
3h廿h廿hPK PP: I $ T wp-sheet-editor-iconic-product-configurator/nbproject/private/private.xml
ɧuqRspRspPK 0Pxd H $ wp-sheet-editor-iconic-product-configurator/nbproject/project.properties
jhIhIhPK 0P7Kb b A $ wp-sheet-editor-iconic-product-configurator/nbproject/project.xml
JN¿hBqhBqhPK n