first commit
This commit is contained in:
13
plugins/stThemePlugin/config/config.php
Normal file
13
plugins/stThemePlugin/config/config.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if (SF_APP == 'frontend')
|
||||
{
|
||||
$dispatcher->connect('stActions.preExecute', array('stThemeListener', 'validate'));
|
||||
stPluginHelper::addEnableModule('stThemeFrontend', 'frontend');
|
||||
stPluginHelper::addEnableModule('sfGuardAuth', 'frontend');
|
||||
}
|
||||
elseif (SF_APP == 'backend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stThemeBackend', 'backend');
|
||||
stPluginHelper::addRouting('stThemePlugin', '/theme/:action/*', 'stThemeBackend', 'index', 'backend');
|
||||
$dispatcher->connect('stActions.postExecute', array('stThemeListener', 'postExecute'));
|
||||
}
|
||||
2
plugins/stThemePlugin/config/config_handlers.yml
Normal file
2
plugins/stThemePlugin/config/config_handlers.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
modules/*/config/security.yml:
|
||||
class: stSecurityConfigHandler
|
||||
2
plugins/stThemePlugin/config/logging.yml
Normal file
2
plugins/stThemePlugin/config/logging.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
theme:
|
||||
enabled: off
|
||||
171
plugins/stThemePlugin/config/schema.yml
Normal file
171
plugins/stThemePlugin/config/schema.yml
Normal file
@@ -0,0 +1,171 @@
|
||||
---
|
||||
propel:
|
||||
_attributes:
|
||||
defaultIdMethod: native
|
||||
package: plugins.stThemePlugin.lib.model
|
||||
st_theme_layout:
|
||||
_attributes:
|
||||
phpName: ThemeLayout
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
theme_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_theme
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
sf_guard_user_id:
|
||||
type: INTEGER
|
||||
foreignTable: sf_guard_user
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
container:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
blocks:
|
||||
type: LONGVARCHAR
|
||||
st_theme:
|
||||
_attributes:
|
||||
phpName: Theme
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
base_theme_id:
|
||||
type: INTEGER
|
||||
foreignTable: st_theme
|
||||
foreignReference: id
|
||||
onDelete: setnull
|
||||
theme:
|
||||
type: VARCHAR
|
||||
size: 48
|
||||
required: true
|
||||
index: unique
|
||||
active:
|
||||
type: BOOLEAN
|
||||
default: false
|
||||
opt_color_scheme:
|
||||
type: VARCHAR
|
||||
size: 32
|
||||
version:
|
||||
type: INTEGER
|
||||
is_system_default:
|
||||
type: BOOLEAN
|
||||
required: true
|
||||
default: false
|
||||
is_hidden:
|
||||
type: BOOLEAN
|
||||
required: true
|
||||
default: false
|
||||
st_theme_css:
|
||||
_attributes:
|
||||
phpName: ThemeCss
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
theme_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_theme
|
||||
foreignReference: id
|
||||
onDelete: restrict
|
||||
css_head_id:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
css_content:
|
||||
type: LONGVARCHAR
|
||||
st_theme_color_scheme:
|
||||
_attributes:
|
||||
phpName: ThemeColorScheme
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
theme_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_theme
|
||||
foreignReference: id
|
||||
onDelete: restrict
|
||||
name:
|
||||
type: VARCHAR
|
||||
size: 255
|
||||
is_default:
|
||||
type: BOOLEAN
|
||||
default: 0
|
||||
|
||||
st_theme_config:
|
||||
_attributes:
|
||||
phpName: ThemeConfig
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
foreignTable: st_theme
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
parameters:
|
||||
type: LONGVARCHAR
|
||||
phpType: array
|
||||
|
||||
st_theme_content:
|
||||
_attributes:
|
||||
phpName: ThemeContent
|
||||
isI18N: true
|
||||
i18nTable: st_theme_content_i18n
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
theme_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
foreignTable: st_theme
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
content_id:
|
||||
type: VARCHAR
|
||||
size: 48
|
||||
required: true
|
||||
opt_name:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
required: true
|
||||
opt_content:
|
||||
type: LONGVARCHAR
|
||||
required: false
|
||||
_uniques:
|
||||
content_id_idx:
|
||||
- content_id
|
||||
- theme_id
|
||||
|
||||
st_theme_content_i18n:
|
||||
_attributes:
|
||||
phpName: ThemeContentI18n
|
||||
id:
|
||||
type: integer
|
||||
required: true
|
||||
primaryKey: true
|
||||
foreignTable: st_theme_content
|
||||
foreignReference: id
|
||||
onDelete: cascade
|
||||
culture:
|
||||
isCulture: true
|
||||
primaryKey: true
|
||||
type: VARCHAR
|
||||
size: 7
|
||||
name:
|
||||
type: VARCHAR
|
||||
size: 64
|
||||
required: true
|
||||
content:
|
||||
type: LONGVARCHAR
|
||||
required: false
|
||||
8
plugins/stThemePlugin/config/settings.yml
Normal file
8
plugins/stThemePlugin/config/settings.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
theme:
|
||||
.settings:
|
||||
error_reporting: 0
|
||||
no_script_name: off
|
||||
cache: on
|
||||
compressed: off
|
||||
timeout: 43200
|
||||
web_debug: off
|
||||
Reference in New Issue
Block a user