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,52 @@
<?php
/**
* SOTESHOP/stWebpagePlugin
*
* Ten plik należy do aplikacji stWebpagePlugin opartej na licencji (Open License SOTE) Otwarta Licencja SOTE.
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
*
* @package stWebpagePlugin
* @subpackage configs
* @copyright SOTE (www.sote.pl)
* @license http://www.sote.pl/license/open (Open License SOTE) Otwarta Licencja SOTE
* @version $Id: config.php 617 2009-09-17 13:22:29Z piotr $
* @author Krzysztof Bebło <krzysztof.beblo@sote.pl>
*/
/**
* Włączanie modułów
*/
stPluginHelper::addEnableModule('stWebpageBackend', 'backend');
stPluginHelper::addEnableModule('stWebpageGroupBackend', 'backend');
stPluginHelper::addEnableModule('stWebpageGroupHasWebpageBackend', 'backend');
stPluginHelper::addEnableModule('stWebpageRelationBackend', 'backend');
stPluginHelper::addEnableModule('stWebpageFrontend', 'frontend');
/**
* Dodawanie routingów
*/
stPluginHelper::addRouting('stWebpagePlugin', '/webpage/:action/*', 'stWebpageBackend', 'list', 'backend');
stPluginHelper::addRouting('stWebpageGroupBackend', '/webpage_group/:action/*', 'stWebpageGroupBackend', 'list', 'backend');
stPluginHelper::addRouting('stWebpageGroupHasWebpageBackend', '/webpage_group_has_webpage/:action/*', 'stWebpageGroupHasWebpageBackend', 'list', 'backend');
stPluginHelper::addRouting('webpage', '/webpage/:action/*', 'stWebpageBackend', 'list', 'backend');
stPluginHelper::addRouting('webpage_group', '/webpage_group/:action/*', 'stWebpageGroupBackend', 'list', 'backend');
stPluginHelper::addRouting('webpage_group_has_webpage', '/webpage_group_has_webpage/:action/*', 'stWebpageGroupHasWebpageBackend', 'list', 'backend');
stPluginHelper::addRouting('webpage_export', '/webpage/export/:export/:page_name', 'stWebpageFrontend', 'export', 'frontend');
stPluginHelper::addRouting('webpage_page_name', '/webpage/:page_name', 'stWebpageFrontend', 'index', 'frontend');
stPluginHelper::addRouting('webpage', '/webpage/:action/*', 'stWebpageFrontend', 'list', 'frontend');
stPluginHelper::addRouting('stWebpageUrlLang', '/webpage/:lang/:url.html', 'stWebpageFrontend', 'index', 'frontend');
stPluginHelper::addRouting('stWebpageUrl', '/webpage/:url.html', 'stWebpageFrontend', 'index', 'frontend');
/**
* usuwanie cachy
*/
sfMixer::register('BaseWebpage:save:post', array('stWebpageCache', 'deleteCacheWebpage'));
sfMixer::register('BaseWebpage:delete:post', array('stWebpageCache', 'deleteCacheWebpage'));
sfMixer::register('BaseWebpageGroupHasWebpage:save:post', array('stWebpageCache', 'deleteCacheWebgroup'));
sfMixer::register('BaseWebpageGroupHasWebpage:delete:post', array('stWebpageCache', 'deleteCacheWebgroup'));
stEventDispatcher::getInstance()->connect('autostWebpageBackendActions.preExecuteWebpageGroupRemoveGroup', array('stWebpageCache', 'deleteCacheWebgroup'));

View File

@@ -0,0 +1,7 @@
group_page:
NONE: Brak
HEADER: Nagłówek
FOOTER: Stopka
INFO: Informacje
HELP: Pomoc
SALE: Jak kupować?

View File

@@ -0,0 +1,86 @@
---
propel:
_attributes:
defaultIdMethod: native
package: plugins.stWebpagePlugin.lib.model
st_webpage:
_attributes:
phpName: Webpage
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
active:
type: BOOLEAN
default: 1
opt_name:
type: VARCHAR
size: 255
opt_content:
type: LONGTEXT
opt_url:
type: VARCHAR
size: 255
required: false
state:
type: VARCHAR
size: 64
opt_other_link:
type: VARCHAR
size: 255
_indexes:
webpage_url: [opt_url]
webpage_state_idx: [state]
st_webpage_group:
_attributes:
phpName: WebpageGroup
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
opt_name:
type: VARCHAR
size: 255
group_page:
type: VARCHAR
size: 255
show_footer:
type: BOOLEAN
show_header:
type: BOOLEAN
st_webpage_group_has_webpage:
_attributes:
phpName: WebpageGroupHasWebpage
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
webpage_id:
type: INTEGER
required: true
foreignTable: st_webpage
foreignReference: id
onDelete: cascade
webpage_group_id:
type: INTEGER
required: true
foreignTable: st_webpage_group
foreignReference: id
onDelete: cascade
rank:
type: INTEGER

View File

@@ -0,0 +1,71 @@
propel:
st_webpage:
_attributes:
phpName: Webpage
isI18N: true
i18nTable: st_webpage_i18n
opt_name: {change_column: name}
opt_content: {change_column: content}
st_webpage_i18n:
_attributes:
phpName: WebpageI18n
id:
type: integer
required: true
primaryKey: true
foreignTable: st_webpage
foreignReference: id
onDelete: cascade
culture:
isCulture: true
primaryKey: true
type: VARCHAR
size: 7
name:
type: VARCHAR
size: 255
content:
type: LONGTEXT
url:
type: VARCHAR
size: 255
required: false
other_link:
type: VARCHAR
size: 255
target:
type: BOOLEAN
_indexes:
webpage_Index1:
- url
- culture
st_webpage_group:
_attributes:
phpName: WebpageGroup
isI18N: true
i18nTable: st_webpage_group_i18n
opt_name: {change_column: name}
st_webpage_group_i18n:
_attributes:
phpName: WebpageGroupI18n
id:
type: integer
required: true
primaryKey: true
foreignTable: st_webpage_group
foreignReference: id
onDelete: cascade
culture:
isCulture: true
primaryKey: true
type: VARCHAR
size: 7
name:
type: VARCHAR
size: 255
_indexes:
webpage_group_Index1:
- culture