-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add colors invert parameter Apply custom CSS in bootstrap/template mode
- Loading branch information
1 parent
467219b
commit 48e0538
Showing
14 changed files
with
103 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* @package CG template switcher Module | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* @copyright (c) 2025 ConseilGouz. All Rights Reserved. | ||
* @author ConseilGouz | ||
* | ||
**/ | ||
document.addEventListener("DOMContentLoaded", function(){ | ||
// check CG custom classes | ||
fields = document.querySelectorAll('.view-module .clear'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
field.parentNode.parentNode.style.clear = "both"; | ||
field.parentNode.parentNode.parentNode.style.clear = "both"; | ||
field.parentNode.parentNode.parentNode.parentNode.style.clear = "both"; | ||
} | ||
fields = document.querySelectorAll('.view-module .left'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
if (field.type == 'range') { | ||
field.parentNode.parentNode.parentNode.parentNode.style.float = "left"; | ||
} else if (field.children && field.children.length > 0 && field.children[0].type == "radio") { | ||
field.parentNode.parentNode.parentNode.style.float = "left"; | ||
} else { | ||
field.parentNode.parentNode.style.float = "left"; | ||
} | ||
} | ||
fields = document.querySelectorAll('.view-module .right'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
if (field.type == 'range') { | ||
field.parentNode.parentNode.parentNode.parentNode.style.float = "right"; | ||
} else if (field.children && field.children.length > 0 && field.children[0].type == "radio") { | ||
field.parentNode.parentNode.parentNode.style.float = "right"; | ||
} else { | ||
field.parentNode.parentNode.style.float = "right"; | ||
} | ||
} | ||
fields = document.querySelectorAll('.view-module .half'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
if (field.type == 'range') { | ||
field.parentNode.parentNode.parentNode.parentNode.style.width = "50%"; | ||
} else if (field.children && field.children.length > 0 && field.children[0].type == "radio") { | ||
field.parentNode.parentNode.parentNode.style.width = "50%"; | ||
} else { | ||
field.parentNode.parentNode.style.width = "50%"; | ||
} | ||
} | ||
fields = document.querySelectorAll('.view-module .gridauto'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
field.parentNode.parentNode.style.gridColumn = "auto"; | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension version="4.0" type="module" method="upgrade" client="site"> | ||
<name>CG Template Switcher</name> | ||
<author>ConseilGouz</author> | ||
<creationDate>2025-02-10</creationDate> | ||
<creationDate>2025-02-14</creationDate> | ||
<copyright>Copyright (C) 2025 ConseilGouz. All rights reserved</copyright> | ||
<license>https://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv2</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.conseilgouz.com</authorUrl> | ||
<version>2.3.0</version> | ||
<version>2.3.1</version> | ||
<description>CG_XML_DESCRIPTION</description> | ||
<namespace path="src">ConseilGouz\Module\CGTemplateSwitcher</namespace> | ||
<changelogurl>https://raw.githubusercontent.com/conseilgouz/pkg_cg_template_switcher_j4/master/cg_template_switcher_changelog.xml</changelogurl> | ||
|
@@ -62,7 +62,7 @@ | |
<option value="true">JYES</option> | ||
<option value="false">JNO</option> | ||
</field> | ||
<field name="oneclick" type="radio" class="btn-group" default="false" | ||
<field name="oneclick" type="radio" class="btn-group half left" default="false" | ||
label="CG_STYLE_ONECLICK" description="CG_STYLE_ONECLICKDESC" | ||
> | ||
<option value="false">JNO</option> | ||
|
@@ -71,14 +71,18 @@ | |
<option value="color">CG_STYLE_COLOR</option> | ||
</field> | ||
<field showon="oneclick:color" name="grayscale" type="cgrange" default="80" | ||
class="limits" unit="%" | ||
class="limits clear half left" unit="%" | ||
label="CG_STYLE_GRAYSCALE" description="CG_STYLE_GRAYSCALEDESC" | ||
min="1" max="100" step="1" /> | ||
<field showon="oneclick:tmpl" name="onetmpl" type="templatestyle" | ||
<field showon="oneclick:color" name="invert" type="cgrange" default="100" | ||
class="limits half right" unit="%" | ||
label="CG_STYLE_INVERT" description="CG_STYLE_INVERTDESC" | ||
min="1" max="100" step="1" /> | ||
<field showon="oneclick:tmpl" name="onetmpl" type="templatestyle" class="half right" | ||
label="CG_STYLE_TMPL" description="CG_STYLE_TMPLDESC" | ||
/> | ||
<field name="cookie_duration" type="text" default="0" label="COOKIE_DURATION" description="COOKIE_DURATIONDESC" size="3" maxlength="3"/> | ||
<field name="user_field" type="sql" class="hidden" | ||
<field name="cookie_duration" type="text" class="clear half" default="0" label="COOKIE_DURATION" description="COOKIE_DURATIONDESC" size="3" maxlength="3"/> | ||
<field name="user_field" type="sql" class="hidden clear" | ||
label="CG_STYLE_USER" description="CG_STYLE_USERDESC" | ||
query="select f.id as id, f.state as value from #__fields f where f.context like 'com_user%' and f.type like 'cgtemplateswitcher' " | ||
key_field="value" value_field="value" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension type="plugin" version="4.0" group="fields" method="upgrade"> | ||
<name>plg_fields_cgtemplateswitcher</name> | ||
<author>ConseilGouz</author> | ||
<creationDate>2025-02-10</creationDate> | ||
<creationDate>2025-02-14</creationDate> | ||
<copyright>Copyright (C) 2025 ConseilGouz. All rights reserved.</copyright> | ||
<license>GNU General Public License version 3 or later; see LICENSE.txt</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.conseilgouz.com</authorUrl> | ||
<version>2.3.0</version> | ||
<version>2.3.1</version> | ||
<description>PLG_FIELDS_CGTEMPLATESWITCHER_XML_DESC</description> | ||
<namespace path="src">ConseilGouz\Plugin\Fields\Cgtemplateswitcher</namespace> | ||
<scriptfile>script.php</scriptfile> | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension type="plugin" version="4.0" group="fields" method="upgrade"> | ||
<name>plg_fields_cgtscolor</name> | ||
<author>ConseilGouz</author> | ||
<creationDate>2025-02-10</creationDate> | ||
<creationDate>2025-02-14</creationDate> | ||
<copyright>Copyright (C) 2025 ConseilGouz. All rights reserved.</copyright> | ||
<license>GNU General Public License version 3 or later; see LICENSE.txt</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.conseilgouz.com</authorUrl> | ||
<version>2.3.0</version> | ||
<version>2.3.1</version> | ||
<description>PLG_FIELDS_CGTSCOLOR_XML_DESC</description> | ||
<namespace path="src">ConseilGouz\Plugin\Fields\Cgtscolor</namespace> | ||
<scriptfile>script.php</scriptfile> | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
<extension version="4.0" type="plugin" group="system" method="upgrade"> | ||
<name>plg_system_cgstyle</name> | ||
<author>ConseilGouz</author> | ||
<creationDate>2025-02-10</creationDate> | ||
<creationDate>2025-02-14</creationDate> | ||
<copyright>(C)2025 ConseilGouz. All rights reserved.</copyright> | ||
<license>GNU General Public License version 3 or later; see LICENSE.txt</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.conseilgouz.com</authorUrl> | ||
<version>2.3.0</version> | ||
<version>2.3.1</version> | ||
<description>PLG_SYSTEM_CGSTYLE_XML_DESCRIPTION</description> | ||
<namespace path="src">Conseilgouz\Plugin\System\Cgstyle</namespace> | ||
<files> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<extension type="package" version="3.10" method="upgrade"> | ||
<name>CG Template Switcher</name> | ||
<creationDate>2025-02-11</creationDate> | ||
<creationDate>2025-02-14</creationDate> | ||
<packagename>cgtemplateswitcher</packagename> | ||
<license>https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license> | ||
<author>ConseilGouz</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.conseilgouz.com</authorUrl> | ||
<version>2.3.0</version> | ||
<version>2.3.1</version> | ||
<url>https://www.conseilgouz.com/</url> | ||
<packager>ConseilGouz</packager> | ||
<description>Package CG Template Switcher</description> | ||
|