Skip to content

Commit

Permalink
CG Parallax for J4
Browse files Browse the repository at this point in the history
  • Loading branch information
conseilgouz committed Apr 23, 2022
1 parent aa3382c commit e8508d4
Show file tree
Hide file tree
Showing 100 changed files with 4,866 additions and 0 deletions.
13 changes: 13 additions & 0 deletions admin/access.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<access component="cgparallax">
<section name="component">
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
<action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" />
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
</section>

</access>
38 changes: 38 additions & 0 deletions admin/admincss/css_gene.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* @component CG Parallax
* Version : 1.0.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2022 ConseilGouz. All Rights Reserved.
* @author ConseilGouz
* Updated on : January, 2021
**/
.form-horizontal .controls {
margin-left: 10px;
}
#gene .control-group:nth-of-type(1){ /* title */
float:left;width:40%;
}
#gene .control-group:nth-of-type(2){ /* status */
float:left;width:30%;
}
#gene .control-group:nth-of-type(3){ /* language */
float:right;width:30%;
}
#gene .control-group:nth-of-type(4){ /* intro */
clear:both;width:100%;
}
#gene textarea{
width:80% !important;
}
.alert-success {font-size:120%;
text-align:center}

.info-labels + div {
background: none repeat scroll 0 0 #EEEEEE;
color: #000000;
font-size: 110%;
font-style: italic;
font-weight: normal;
margin: 15px 0 30px;
padding: 15px 10px 10px 20px;
}
51 changes: 51 additions & 0 deletions admin/admincss/css_parallax.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* @component CG Parallax
* Version : 1.0.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2022 ConseilGouz. All Rights Reserved.
* @author ConseilGouz
* Updated on : January, 2021
**/
.form-horizontal .controls {
margin-left: 10px;
}
#para .control-group:nth-of-type(1){ /* menu ? */
float:left;width:50%;
}
#para .control-group:nth-of-type(2){ /* stick menu */
float:right;width:50%;
}
#para .control-group:nth-of-type(3){ /* Menu color */
clear:both;float:left;width:50%;
}
#para .control-group:nth-of-type(4){ /* Text color */
float:right;width:50%;
}
#para .control-group:nth-of-type(5){ /* Magic menu */
clear:both;float:left;width:50%;
}
#para .control-group:nth-of-type(6){ /* magic menu color */
float:right;width:50%;
}
#para .control-group:nth-of-type(7){ /* note */
clear: both;float:left;width:100%;
}
#para .control-group:nth-of-type(8){ /* CSS customization */
clear: both;float:left;width:100%;
}
#para textarea{
width:80% !important;
}

.alert-success {font-size:120%;
text-align:center}

.info-labels + div {
background: none repeat scroll 0 0 #EEEEEE;
color: #000000;
font-size: 110%;
font-style: italic;
font-weight: normal;
margin: 15px 0 30px;
padding: 15px 10px 10px 20px;
}
110 changes: 110 additions & 0 deletions admin/admincss/css_sections.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/**
* @component CG Parallax
* Version : 1.0.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (c) 2022 ConseilGouz. All Rights Reserved.
* @author ConseilGouz
* Updated on : January, 2021
**/
.form-horizontal .controls {
margin-left: 10px;
}
.form-horizontal .control-label {
width:8em;
}
#sections_set .subform-repeatable-group input[type="text"] {width: 10em}
#sections_set .subform-repeatable-group input[type="number"] {width: 2em}
#sections_set .subform-repeatable-group .control-group:nth-of-type(1){ /* titre */
float:left;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(2){ /* magic color */
float:right;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(3){ /* choix image de fond */
clear: both;float:left;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(4){ /* une image */
float:right;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(5){ /* dir */
float:right;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(6){ /* liste image */
float:right;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(7){ /* eclaircir */
clear: both;float:left;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(8){ /* Animation */
float:left;width:50%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(9){ /* delai image */
clear: both;float:left;width:25%;
border: 1px solid #ccc;
padding: 5px;

}
#sections_set .subform-repeatable-group .control-group:nth-of-type(10){ /* transition */
float:left;width:20%;
border: 1px solid #ccc;
padding: 5px;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(11){ /* delai transition */
float:left;width:25%;
border: 1px solid #ccc;
padding: 5px;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(12){ /* animation */
float:left;width:20%;
border: 1px solid #ccc;
padding: 5px;
}

#sections_set .subform-repeatable-group .control-group:nth-of-type(13){ /* type contenu */
float:left;width:100%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(14){ /* article */
float:left;width:40%;
border: 1px solid #ccc;
padding: 5px;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(15){ /* affichage article */
float:left;width:30%;
border: 1px solid #ccc;
padding: 5px;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(16){ /* lire la suite */
float:left;width:25%;
border: 1px solid #ccc;
padding: 5px;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(10) label,
#sections_set .subform-repeatable-group .control-group:nth-of-type(11) label,
#sections_set .subform-repeatable-group .control-group:nth-of-type(12) label,
#sections_set .subform-repeatable-group .control-group:nth-of-type(16) .control-label{
width:15em
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(17){
float:left;width:100%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(18){ /* adaptation CSS */
float:left;width:100%;
}
#sections_set .subform-repeatable-group .control-group:nth-of-type(19){ /* adaptation CSS */
float:left;width:100%;
}
#sections_set .subform-repeatable-group textarea{
width:80% !important;
}
.alert-success {font-size:120%;
text-align:center}

.info-labels + div {
background: none repeat scroll 0 0 #EEEEEE;
color: #000000;
font-size: 110%;
font-style: italic;
font-weight: normal;
margin: 15px 0 30px;
padding: 15px 10px 10px 20px;
}
77 changes: 77 additions & 0 deletions admin/cgparallax.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4.0" method="upgrade">
<name>CG Parallax</name>
<creationDate>October 2021</creationDate>
<author>ConseilGouz</author>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<copyright>Copyright (C) 2022 ConseilGouz.com. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>2.1.2</version>
<namespace path="src">ConseilGouz\Component\CGParallax</namespace>
<description>CG_PX_XML_DESCRIPTION</description>
<install>
<sql>
<file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql
</file>
</sql>
</install>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql
</file>
</sql>
</uninstall>
<update>
<schemas>
<schemapath type="mysql">sql/updates</schemapath>
</schemas>
</update>
<files folder="site">
<folder>src</folder>
<folder>tmpl</folder>
<filename>index.html</filename>
</files>
<media destination="com_cgparallax" folder="media">
<folder>js</folder>
<folder>css</folder>
<filename>index.html</filename>
</media>
<languages folder="site">
<language tag="en-GB">language/en-GB/com_cgparallax.ini</language>
<language tag="en-GB">language/en-GB/com_cgparallax.sys.ini</language>
<language tag="fr-FR">language/fr-FR/com_cgparallax.ini</language>
<language tag="fr-FR">language/fr-FR/com_cgparallax.sys.ini</language>
</languages>
<administration>
<menu>CG_PX_MENU</menu>
<submenu>
<menu link="option=com_cgparallax&amp;view=pages" view="pages">Pages</menu>
<menu link="option=com_cgparallax&amp;view=import" view="pages">Import</menu>
</submenu>
<files folder="admin">
<filename>access.xml</filename>
<filename>config.xml</filename>
<filename>index.html</filename>
<folder>admincss</folder>
<folder>forms</folder>
<folder>services</folder>
<folder>sql</folder>
<folder>src</folder>
<folder>tmpl</folder>
</files>
<languages folder="admin">
<language tag="en-GB">language/en-GB/com_cgparallax.ini</language>
<language tag="en-GB">language/en-GB/com_cgparallax.sys.ini</language>
<language tag="fr-FR">language/fr-FR/com_cgparallax.ini</language>
<language tag="fr-FR">language/fr-FR/com_cgparallax.sys.ini</language>
</languages>
</administration>
<changelogurl>https://www.conseilgouz.com/updates/com_cgparallax_changelog.xml</changelogurl>

<updateservers>
<server type="extension" name="COM CG Parallax" priority="1">https://www.conseilgouz.com/updates/com_cgparallax_update.xml</server>
<server type="extension" name="COM CG Parallax" priority="2">http://432473037d.url-de-test.ws/updateserver/updates/com_cgparallax_update.xml</server>
</updateservers>

</extension>
17 changes: 17 additions & 0 deletions admin/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<fieldset label="CG_PARALLAX" name="CG_PARALLAX">

</fieldset>
<fieldset
name="permissions"
description="JCONFIG_PERMISSIONS_DESC"
label="JCONFIG_PERMISSIONS_LABEL">

<field
name="rules" type="rules" component="com_cgparallax"
class="inputbox" filter="rules" validate="rules"
label="JCONFIG_PERMISSIONS_LABEL"
section="component" />
</fieldset>
</config>
7 changes: 7 additions & 0 deletions admin/forms/imgs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<form>
<fieldset name="section1">
<field name="file_name" type="media" default="" label="CG_PX_FILE_NAME" description="CG_PX_FILE_NAME_DESC" preview="tooltip" preview_width="100" preview_height="100">
</field>
</fieldset>
</form>
1 change: 1 addition & 0 deletions admin/forms/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body></body></html>
1 change: 1 addition & 0 deletions admin/forms/page.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><form> <fieldset name="gene" label="CG_PX_GENE"> <field name="id" type="hidden" default="0" readonly="true" class="readonly" label="JGLOBAL_FIELD_ID_LABEL" description ="JGLOBAL_FIELD_ID_DESC" /> <field name="title" type="text" label="CG_PX_TITLE" description ="CG_PX_TITLE_DESC" required="true" /> <field name="state" type="list" label="JSTATUS" class="chzn-color-state" size="1" default="1"> <option value="1">JPUBLISHED</option> <option value="0">JUNPUBLISHED</option> <option value="2">JARCHIVED</option> <option value="-2">JTRASHED</option> </field> <field name="language" type="contentlanguage" label="JFIELD_LANGUAGE_LABEL" > <option value="*">JALL</option> </field> <field name="intro" type="editor" label="CG_PX_INTRO" description="CG_PX_INTRO_DESC" cols="400" rows="4" filter="safehtml" default=""/> <field name="bottom" type="editor" label="CG_PX_BOTTOM" description="CG_PX_BOTTOM_DESC" cols="400" rows="4" filter="safehtml" default=""/> </fieldset> <fieldset name="para" label="CG_PX_PARALLAX"> <field name="menu" type="radio" class="btn-group btn-group-yesno" default="true" label="CG_PX_DISP_MENU" description="CG_PX_DISP_MENU_DESC"> <option value="true">JYES</option> <option value="false">JNO</option> </field> <field showon="menu:true" name="sticky" type="radio" class="btn-group btn-group-yesno" default="true" label="CG_PX_STICKY" description="CG_PX_STICKY_DESC"> <option value="true">JYES</option> <option value="false">JNO</option> </field> <field showon="menu:true" name="navbar_bg" type="color" default="#d3d3d3" label="CG_PX_NAVBAR_BG" description="CG_PX_NAVBAR_BG_DESC" /> <field showon="menu:true" name="navbar_color" type="color" default="#000" label="CG_PX_NAVBAR_COLOR" description="CG_PX_NAVBAR_COLOR_DESC" /> <field showon="menu:true" name="magic" type="radio" class="btn-group btn-group-yesno" default="true" label="CG_PX_MAGIC" description="CG_PX_MAGIC_DESC"> <option value="true">JYES</option> <option value="false">JNO</option> </field> <field showon="menu:true[AND]magic:true" name="magic_active" type="color" default="#0000ff" label="CG_PX_MAGIC_ACTIVE" description="CG_PX_MAGIC_ACTIVE_DESC" /> <field type="note" name="cg_note_gen" label="CG_PX_CSS_GEN_NOTE" heading="p" class="alert-success" /> <field name="css_gen" type="textarea" label="CG_PX_CSS_GEN" description="CG_PX_CSS_GEN_DESC" cols="200" rows="4" filter="raw" default="#cg_navbar{} .cg_parallax{} .cg_bg_section{}" /> </fieldset> <fieldset name="sections_set" label="CG_PX_SECTIONS"> <field type="note" name="note1" description="CG_PX_NOTE1" class="alert-success"/> <field name="sectionsList" label="" type="subform" multiple ="true" formsource="/administrator/components/com_cgparallax/forms/section.xml" /> </fieldset> <fieldset name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS"> <field name="metakey" type="textarea" label="JFIELD_META_KEYWORDS_LABEL" rows="3" cols="30" /> </fieldset></form>
Expand Down
Loading

0 comments on commit e8508d4

Please sign in to comment.