|
|
@@ -27,8 +27,8 @@ class BxSnipcartConfig extends BxBaseModTextConfig
|
|
|
|
|
|
// database tables
|
|
|
'TABLE_ENTRIES' => $aModule['db_prefix'] . 'entries',
|
|
|
- 'TABLE_SETTINGS' => $aModule['db_prefix'] . 'settings',
|
|
|
- 'TABLE_ENTRIES_FULLTEXT' => 'title_text',
|
|
|
+ 'TABLE_SETTINGS' => $aModule['db_prefix'] . 'settings',
|
|
|
+ 'TABLE_ENTRIES_FULLTEXT' => 'title_text',
|
|
|
|
|
|
// database fields
|
|
|
'FIELD_ID' => 'id',
|
|
|
@@ -38,16 +38,16 @@ class BxSnipcartConfig extends BxBaseModTextConfig
|
|
|
'FIELD_TITLE' => 'title',
|
|
|
'FIELD_TEXT' => 'text',
|
|
|
'FIELD_TEXT_ID' => 'snipcart-entry-text',
|
|
|
- 'FIELD_CATEGORY' => 'cat',
|
|
|
+ 'FIELD_CATEGORY' => 'cat',
|
|
|
'FIELD_PRICE' => 'price',
|
|
|
'FIELD_WEIGHT' => 'weight',
|
|
|
'FIELD_ALLOW_VIEW_TO' => 'allow_view_to',
|
|
|
'FIELD_PHOTO' => 'pictures',
|
|
|
'FIELD_THUMB' => 'thumb',
|
|
|
- 'FIELD_VIEWS' => 'views',
|
|
|
+ 'FIELD_VIEWS' => 'views',
|
|
|
'FIELD_COMMENTS' => 'comments',
|
|
|
- 'FIELD_STATUS' => 'status',
|
|
|
- 'FIELD_STATUS_ADMIN' => 'status_admin',
|
|
|
+ 'FIELD_STATUS' => 'status',
|
|
|
+ 'FIELD_STATUS_ADMIN' => 'status_admin',
|
|
|
'FIELD_LOCATION_PREFIX' => 'location',
|
|
|
'FIELDS_WITH_KEYWORDS' => 'auto', // can be 'auto', array of fields or comma separated string of field names, works only when OBJECT_METATAGS is specified
|
|
|
|
|
|
@@ -56,45 +56,46 @@ class BxSnipcartConfig extends BxBaseModTextConfig
|
|
|
'URI_AUTHOR_ENTRIES' => 'snipcart-author',
|
|
|
'URI_ENTRIES_BY_CONTEXT' => 'snipcart-context',
|
|
|
'URI_ADD_ENTRY' => 'create-snipcart-entry',
|
|
|
- 'URI_EDIT_ENTRY' => 'edit-snipcart-entry',
|
|
|
- 'URI_MANAGE_COMMON' => 'snipcart-manage',
|
|
|
+ 'URI_EDIT_ENTRY' => 'edit-snipcart-entry',
|
|
|
+ 'URI_MANAGE_COMMON' => 'snipcart-manage',
|
|
|
|
|
|
'URL_HOME' => 'page.php?i=snipcart-home',
|
|
|
'URL_POPULAR' => 'page.php?i=snipcart-popular',
|
|
|
'URL_UPDATED' => 'page.php?i=snipcart-updated',
|
|
|
- 'URL_MANAGE_COMMON' => 'page.php?i=snipcart-manage',
|
|
|
- 'URL_MANAGE_ADMINISTRATION' => 'page.php?i=snipcart-administration',
|
|
|
- 'URL_SETTINGS' => 'page.php?i=snipcart-settings',
|
|
|
+ 'URL_MANAGE_COMMON' => 'page.php?i=snipcart-manage',
|
|
|
+ 'URL_MANAGE_ADMINISTRATION' => 'page.php?i=snipcart-administration',
|
|
|
+ 'URL_SETTINGS' => 'page.php?i=snipcart-settings',
|
|
|
|
|
|
// some params
|
|
|
'PARAM_CHARS_SUMMARY' => 'bx_snipcart_summary_chars',
|
|
|
'PARAM_CHARS_SUMMARY_PLAIN' => 'bx_snipcart_plain_summary_chars',
|
|
|
'PARAM_NUM_RSS' => 'bx_snipcart_rss_num',
|
|
|
- 'PARAM_SEARCHABLE_FIELDS' => 'bx_snipcart_searchable_fields',
|
|
|
+ 'PARAM_SEARCHABLE_FIELDS' => 'bx_snipcart_searchable_fields',
|
|
|
|
|
|
// objects
|
|
|
'OBJECT_STORAGE' => 'bx_snipcart_files',
|
|
|
'OBJECT_IMAGES_TRANSCODER_PREVIEW' => 'bx_snipcart_preview',
|
|
|
'OBJECT_IMAGES_TRANSCODER_GALLERY' => 'bx_snipcart_gallery',
|
|
|
- 'OBJECT_IMAGES_TRANSCODER_COVER' => 'bx_snipcart_cover',
|
|
|
+ 'OBJECT_IMAGES_TRANSCODER_COVER' => 'bx_snipcart_cover',
|
|
|
'OBJECT_VIDEOS_TRANSCODERS' => array(),
|
|
|
- 'OBJECT_REPORTS' => 'bx_snipcart',
|
|
|
+ 'OBJECT_REPORTS' => 'bx_snipcart',
|
|
|
'OBJECT_VIEWS' => 'bx_snipcart',
|
|
|
'OBJECT_VOTES' => 'bx_snipcart',
|
|
|
- 'OBJECT_SCORES' => 'bx_snipcart',
|
|
|
- 'OBJECT_FAVORITES' => 'bx_snipcart',
|
|
|
+ 'OBJECT_REACTIONS' => 'bx_snipcart_reactions',
|
|
|
+ 'OBJECT_SCORES' => 'bx_snipcart',
|
|
|
+ 'OBJECT_FAVORITES' => 'bx_snipcart',
|
|
|
'OBJECT_FEATURED' => 'bx_snipcart',
|
|
|
'OBJECT_METATAGS' => 'bx_snipcart',
|
|
|
'OBJECT_COMMENTS' => 'bx_snipcart',
|
|
|
- 'OBJECT_CATEGORY' => 'bx_snipcart_cats',
|
|
|
+ 'OBJECT_CATEGORY' => 'bx_snipcart_cats',
|
|
|
'OBJECT_PRIVACY_VIEW' => 'bx_snipcart_allow_view_to',
|
|
|
'OBJECT_FORM_ENTRY' => 'bx_snipcart',
|
|
|
'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_snipcart_entry_view',
|
|
|
'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_snipcart_entry_add',
|
|
|
'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_snipcart_entry_edit',
|
|
|
'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_snipcart_entry_delete',
|
|
|
- 'OBJECT_FORM_SETTINGS' => 'bx_snipcart_settings',
|
|
|
- 'OBJECT_FORM_SETTINGS_DISPLAY_EDIT' => 'bx_snipcart_settings_edit',
|
|
|
+ 'OBJECT_FORM_SETTINGS' => 'bx_snipcart_settings',
|
|
|
+ 'OBJECT_FORM_SETTINGS_DISPLAY_EDIT' => 'bx_snipcart_settings_edit',
|
|
|
'OBJECT_FORM_PRELISTS_CURRENCIES' => 'bx_snipcart_currencies',
|
|
|
'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_snipcart_view', // actions menu on view entry page
|
|
|
'OBJECT_MENU_ACTIONS_VIEW_ENTRY_ALL' => 'bx_snipcart_view_actions', // all actions menu on view entry page
|
|
|
@@ -105,7 +106,7 @@ class BxSnipcartConfig extends BxBaseModTextConfig
|
|
|
'OBJECT_MENU_SNIPPET_META' => 'bx_snipcart_snippet_meta', // menu for snippet meta info
|
|
|
'OBJECT_MENU_MANAGE_TOOLS' => 'bx_snipcart_menu_manage_tools', //manage menu in content administration tools
|
|
|
'OBJECT_GRID_ADMINISTRATION' => 'bx_snipcart_administration',
|
|
|
- 'OBJECT_GRID_COMMON' => 'bx_snipcart_common',
|
|
|
+ 'OBJECT_GRID_COMMON' => 'bx_snipcart_common',
|
|
|
'OBJECT_UPLOADERS' => array('sys_simple', 'sys_html5'),
|
|
|
|
|
|
// menu items which visibility depends on custom visibility checking
|
|
|
@@ -125,7 +126,7 @@ class BxSnipcartConfig extends BxBaseModTextConfig
|
|
|
'form_field_author' => '_bx_snipcart_form_entry_input_author',
|
|
|
'grid_action_err_delete' => '_bx_snipcart_grid_action_err_delete',
|
|
|
'grid_txt_account_manager' => '_bx_snipcart_grid_txt_account_manager',
|
|
|
- 'filter_item_active' => '_bx_snipcart_grid_filter_item_title_adm_active',
|
|
|
+ 'filter_item_active' => '_bx_snipcart_grid_filter_item_title_adm_active',
|
|
|
'filter_item_hidden' => '_bx_snipcart_grid_filter_item_title_adm_hidden',
|
|
|
'filter_item_select_one_filter1' => '_bx_snipcart_grid_filter_item_title_adm_select_one_filter1',
|
|
|
'menu_item_manage_my' => '_bx_snipcart_menu_item_title_manage_my',
|
|
|
@@ -139,17 +140,16 @@ class BxSnipcartConfig extends BxBaseModTextConfig
|
|
|
);
|
|
|
|
|
|
$this->_aJsClasses = array(
|
|
|
- 'manage_tools' => 'BxSnipcartManageTools'
|
|
|
+ 'manage_tools' => 'BxSnipcartManageTools'
|
|
|
);
|
|
|
|
|
|
$this->_aJsObjects = array(
|
|
|
- 'manage_tools' => 'oBxSnipcartManageTools'
|
|
|
+ 'manage_tools' => 'oBxSnipcartManageTools'
|
|
|
);
|
|
|
|
|
|
$this->_aGridObjects = array(
|
|
|
- 'common' => $this->CNF['OBJECT_GRID_COMMON'],
|
|
|
- 'administration' => $this->CNF['OBJECT_GRID_ADMINISTRATION'],
|
|
|
-
|
|
|
+ 'common' => $this->CNF['OBJECT_GRID_COMMON'],
|
|
|
+ 'administration' => $this->CNF['OBJECT_GRID_ADMINISTRATION'],
|
|
|
);
|
|
|
}
|
|
|
|