Initial Commit
This commit is contained in:
42
local/modules/SliderRevolution/Config/config.xml
Normal file
42
local/modules/SliderRevolution/Config/config.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<loops>
|
||||
<loop name="slider-revolution.slider" class="SliderRevolution\Loop\SliderLoop"/>
|
||||
</loops>
|
||||
|
||||
<forms>
|
||||
<form name="sliderrevolution.form.configure" class="SliderRevolution\Form\ConfigurationForm" />
|
||||
</forms>
|
||||
|
||||
<services>
|
||||
<service id="sliderrevolution.smarty.plugin.get_countdown" class="SliderRevolution\Smarty\CountdownDate" >
|
||||
<tag name="thelia.parser.register_plugin"/>
|
||||
</service>
|
||||
|
||||
<service id="sliderrevolution.event_listener" class="SliderRevolution\EventListener\EventManager">
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<hooks>
|
||||
<hook id="sliderrevolution.front_hook" class="SliderRevolution\Hook\FrontHookManager">
|
||||
<tag name="hook.event_listener" event="main.content-top" type="front" method="onMainContentTop" />
|
||||
<tag name="hook.event_listener" event="main.stylesheet" type="front" method="onMainStylesheet" />
|
||||
<tag name="hook.event_listener" event="main.javascript-initialization" method="onMainJavascriptInitialization" />
|
||||
</hook>
|
||||
|
||||
<hook id="sliderrevolution.back_hook" class="SliderRevolution\Hook\BackHookManager">
|
||||
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfigure" />
|
||||
|
||||
<tag name="hook.event_listener" event="category.modification.form-right.bottom" type="back" method="onCategoryEditRightColumnBottom" />
|
||||
<tag name="hook.event_listener" event="product.modification.form-right.bottom" type="back" method="onProductEditRightColumnBottom" />
|
||||
<tag name="hook.event_listener" event="folder.modification.form-right.bottom" type="back" method="onFolderEditRightColumnBottom" />
|
||||
<tag name="hook.event_listener" event="content.modification.form-right.bottom" type="back" method="onContentEditRightColumnBottom" />
|
||||
<tag name="hook.event_listener" event="brand.modification.form-right.bottom" type="back" method="onBrandEditRightColumnBottom" />
|
||||
</hook>
|
||||
</hooks>
|
||||
</config>
|
||||
24
local/modules/SliderRevolution/Config/module.xml
Normal file
24
local/modules/SliderRevolution/Config/module.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
|
||||
<fullnamespace>SliderRevolution\SliderRevolution</fullnamespace>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Intégration du slider Slider Revolution</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>1.0.0</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Franck Allimant</name>
|
||||
<company>CQFDev</company>
|
||||
<email>thelia@cqfdev.fr</email>
|
||||
<website>www.cqfdev.fr</website>
|
||||
</author>
|
||||
</authors>
|
||||
<type>classic</type>
|
||||
<thelia>2.3.0</thelia>
|
||||
<stability>prod</stability>
|
||||
</module>
|
||||
10
local/modules/SliderRevolution/Config/routing.xml
Normal file
10
local/modules/SliderRevolution/Config/routing.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="sliderrevolution.configure" path="/admin/module/sliderrevolution/configure" methods="post">
|
||||
<default key="_controller">SliderRevolution\Controller\ConfigurationController::configure</default>
|
||||
</route>
|
||||
</routes>
|
||||
15
local/modules/SliderRevolution/Config/schema.xml
Normal file
15
local/modules/SliderRevolution/Config/schema.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<database defaultIdMethod="native" name="thelia"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../../core/vendor/propel/propel/resources/xsd/database.xsd" >
|
||||
|
||||
<table name="slider_association" namespace="SliderRevolution\Model">
|
||||
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
|
||||
|
||||
<column name="slider_alias" size="255" type="VARCHAR" />
|
||||
<column name="object_id" type="integer" required="true" />
|
||||
<column name="object_type" type="varchar" required="true" size="10"/>
|
||||
</table>
|
||||
|
||||
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
|
||||
</database>
|
||||
2
local/modules/SliderRevolution/Config/sqldb.map
Normal file
2
local/modules/SliderRevolution/Config/sqldb.map
Normal file
@@ -0,0 +1,2 @@
|
||||
# Sqlfile -> Database map
|
||||
thelia.sql=thelia
|
||||
22
local/modules/SliderRevolution/Config/thelia.sql
Normal file
22
local/modules/SliderRevolution/Config/thelia.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
# This is a fix for InnoDB in MySQL >= 4.1.x
|
||||
# It "suspends judgement" for fkey relationships until are tables are set.
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- slider_association
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `slider_association`;
|
||||
|
||||
CREATE TABLE `slider_association`
|
||||
(
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`slider_alias` VARCHAR(255),
|
||||
`object_id` INTEGER NOT NULL,
|
||||
`object_type` VARCHAR(10) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user