first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View 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'));
}

View File

@@ -0,0 +1,2 @@
modules/*/config/security.yml:
class: stSecurityConfigHandler

View File

@@ -0,0 +1,2 @@
theme:
enabled: off

View 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

View File

@@ -0,0 +1,8 @@
theme:
.settings:
error_reporting: 0
no_script_name: off
cache: on
compressed: off
timeout: 43200
web_debug: off