Skip to content

Commit

Permalink
Init. v2021.05.04
Browse files Browse the repository at this point in the history
  • Loading branch information
GHSVS-de committed May 4, 2021
0 parents commit 77e144c
Show file tree
Hide file tree
Showing 11 changed files with 369 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitattributes
@@ -0,0 +1,25 @@
# Enforce Unix newlines
*.css text eol=lf
*.html text eol=lf
*.ini text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.php text eol=lf
*.rb text eol=lf
*.scss text eol=lf
*.svg text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.yml text eol=lf
*.sh text eol=lf


# Don't diff or textually merge source maps
*.map binary

# Don't add work dirs ghs/ to language statisctics of project
# */ghs/* linguist-vendored

# Disable language statistics of project
* linguist-vendored
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
/node_modules/
.DS_Store
_notes/
__done/
log.txt
prepros.config
prepros-6.config
*.zip
206 changes: 206 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions README.md
@@ -0,0 +1,7 @@
# mod_custom_blankghsvs. Joomla module.

- "Benutzerdefiniertes" Modul ohne Editor von GHSVS
- Bietet eine einfache Textarea für die Texteingabe anstelle eines Editors. <strong style='color:red'>Bitte beachten: Dieses Modul verwendet keine Textfilterung von Joomla. Jeder, der Zugriff auf dieses Modul hat, kann alles eingeben. Auch bösartigen Code.</strong>

- Custom module without editor by GHSVS
- Provides a simple textarea for text input instead of an editor. <strong style='color:red'>Be aware: This module doesn't use any text filtering from Joomla. Anybody with access to this module can enter everything! Also malicious code.</strong>
6 changes: 6 additions & 0 deletions language/de-DE/de-DE.mod_custom_blankghsvs.ini
@@ -0,0 +1,6 @@
;MOD_CUSTOM_BLANKGHSVS

MOD_CUSTOM_BLANKGHSVS="\"Benutzerdefiniertes\" Modul ohne Editor von GHSVS"
MOD_CUSTOM_BLANKGHSVS_XML_DESCRIPTION="Bietet eine einfache Textarea für die Texteingabe anstelle eines Editors. <strong style='color:red'>Bitte beachten: Dieses Modul verwendet keine Textfilterung von Joomla. Jeder, der Zugriff auf dieses Modul hat, kann alles eingeben. Auch bösartigen Code.</strong>"

MOD_CUSTOM_FIELD_PREPARE_CONTENT_LABEL="Inhalt vorbereiten"
4 changes: 4 additions & 0 deletions language/de-DE/de-DE.mod_custom_blankghsvs.sys.ini
@@ -0,0 +1,4 @@
;MOD_CUSTOM_BLANKGHSVS

MOD_CUSTOM_BLANKGHSVS="\"Benutzerdefiniertes\" Modul ohne Editor von GHSVS"
MOD_CUSTOM_BLANKGHSVS_XML_DESCRIPTION="Bietet eine einfache Textarea für die Texteingabe anstelle eines Editors. <strong style='color:red'>Bitte beachten: Dieses Modul verwendet keine Textfilterung von Joomla. Jeder, der Zugriff auf dieses Modul hat, kann alles eingeben. Auch bösartigen Code.</strong>"
6 changes: 6 additions & 0 deletions language/en-GB/en-GB.mod_custom_blankghsvs.ini
@@ -0,0 +1,6 @@
;MOD_CUSTOM_BLANKGHSVS

MOD_CUSTOM_BLANKGHSVS="Custom module without editor by GHSVS"
MOD_CUSTOM_BLANKGHSVS_XML_DESCRIPTION="Provides a simple textarea for text input instead of an editor. <strong style='color:red'>Be aware: This module doesn't use any text filtering from Joomla. Anybody with access to this module can enter everything! Also malicious code.</strong>"

MOD_CUSTOM_FIELD_PREPARE_CONTENT_LABEL="Inhalt vorbereiten"
4 changes: 4 additions & 0 deletions language/en-GB/en-GB.mod_custom_blankghsvs.sys.ini
@@ -0,0 +1,4 @@
;MOD_CUSTOM_BLANKGHSVS

MOD_CUSTOM_BLANKGHSVS="Custom module without editor by GHSVS"
MOD_CUSTOM_BLANKGHSVS_XML_DESCRIPTION="Provides a simple textarea for text input instead of an editor. <strong style='color:red'>Be aware: This module doesn't use any text filtering from Joomla. Anybody with access to this module can enter everything! Also malicious code.</strong>"
10 changes: 10 additions & 0 deletions mod_custom_blankghsvs.php
@@ -0,0 +1,10 @@
<?php
defined('_JEXEC') or die;

if ($params->get('prepare_content', 1))
{
JPluginHelper::importPlugin('content');
$module->content = JHtml::_('content.prepare', $module->content, '', 'mod_custom_blankghsvs.content');
}
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
require JModuleHelper::getLayoutPath('mod_custom_blankghsvs', $params->get('layout', 'default'));
84 changes: 84 additions & 0 deletions mod_custom_blankghsvs.xml
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.9" client="site" method="upgrade">
<name>MOD_CUSTOM_BLANKGHSVS</name>
<author>G@HService Berlin Neukölln, Volkmar Volli Schlothauer (GHSVS.de)</author>
<creationDate>2017-11-16</creationDate>
<copyright>Copyright (C) 2017, G@HService Berlin Neukölln, Volkmar Volli Schlothauer (GHSVS.de). All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorUrl>https://www.ghsvs.de</authorUrl>
<version>2021.05.04</version>
<description>MOD_CUSTOM_BLANKGHSVS_XML_DESCRIPTION</description>
<!--<updateservers><server type="extension" priority="1" name="MOD_CUSTOM_BLANKGHSVS"></server></updateservers>-->

<files>
<filename module="mod_custom_blankghsvs">mod_custom_blankghsvs.php</filename>
<folder>tmpl</folder>
<folder>language</folder>
<filename>LICENSE.txt</filename>
</files>

<config>
<fieldset name="inhalt" label="Content">
<field name="content" type="textarea" filter="raw" rows="60" cols="250" class="input-xxlarge">

</field>
</fieldset>
<fields name="params">
<fieldset name="advanced">
<field
name="prepare_content"
type="list"
label="MOD_CUSTOM_FIELD_PREPARE_CONTENT_LABEL"
description="MOD_CUSTOM_FIELD_PREPARE_CONTENT_DESC"
class="btn-group btn-group-yesno"
default="1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>

<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC"
/>

<field
name="moduleclass_sfx"
type="textarea"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"
rows="3"
/>

<field
name="cache"
type="list"
label="COM_MODULES_FIELD_CACHING_LABEL"
description="COM_MODULES_FIELD_CACHING_DESC"
default="1"
>
<option value="1">JGLOBAL_USE_GLOBAL</option>
<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
</field>

<field
name="cache_time"
type="number"
label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
description="COM_MODULES_FIELD_CACHE_TIME_DESC"
default="900"
/>

<field
name="cachemode"
type="hidden"
default="static"
>
<option value="static"></option>
</field>
</fieldset>
</fields>
</config>
</extension>
9 changes: 9 additions & 0 deletions tmpl/default.php
@@ -0,0 +1,9 @@
<?php
/**
2017-11-16 GHSVS
- mod_custom_blankghsvs
- Custom module without editor by GHSVS
*/
defined('_JEXEC') or die;
?>
<?php echo $module->content; ?>

0 comments on commit 77e144c

Please sign in to comment.