Compare commits
2 Commits
v2023.10.1
...
master
Author | SHA1 | Date | |
---|---|---|---|
02dc3bd51e | |||
eb3ad16f88 |
@ -1,3 +1,9 @@
|
||||
enhancePostContent 2023.10.24
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Fix widgets
|
||||
|
||||
enhancePostContent 2023.10.16
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
@ -1,7 +1,7 @@
|
||||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-2023.10.16-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/enhancePostContent/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.16-c44d58.svg)
|
||||
[![Release](https://img.shields.io/badge/release-2023.10.24-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/enhancePostContent/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.24-c44d58.svg)
|
||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
|
||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/enhancePostContent)
|
||||
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/enhancePostContent/src/branch/master/LICENSE)
|
||||
@ -40,6 +40,6 @@ you should also add widgets.
|
||||
|
||||
## CONTRIBUTORS
|
||||
|
||||
* Jean-Christian Denis
|
||||
* Jean-Christian Denis (author)
|
||||
|
||||
You are welcome to contribute to this code.
|
||||
|
@ -15,7 +15,7 @@ $this->registerModule(
|
||||
'Enhance post content',
|
||||
'Add features to words in post content',
|
||||
'Jean-Christian Denis and Contributors',
|
||||
'2023.10.16',
|
||||
'2023.10.24',
|
||||
[
|
||||
'type' => 'plugin',
|
||||
'requires' => [['core', '2.28']],
|
||||
|
@ -2,10 +2,10 @@
|
||||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="enhancePostContent">
|
||||
<name>Enhance post content</name>
|
||||
<version>2023.10.16</version>
|
||||
<version>2023.10.24</version>
|
||||
<author>Jean-Christian Denis and Contributors</author>
|
||||
<desc>Add features to words in post content</desc>
|
||||
<file>https://git.dotclear.watch/JcDenis/enhancePostContent/releases/download/v2023.10.16/plugin-enhancePostContent.zip</file>
|
||||
<file>https://git.dotclear.watch/JcDenis/enhancePostContent/releases/download/v2023.10.24/plugin-enhancePostContent.zip</file>
|
||||
<da:dcmin>2.28</da:dcmin>
|
||||
<da:details>https://git.dotclear.watch/JcDenis/enhancePostContent/src/branch/master/README.md</da:details>
|
||||
<da:support>https://git.dotclear.watch/JcDenis/enhancePostContent/issues</da:support>
|
||||
|
@ -99,7 +99,7 @@ class Backend extends Process
|
||||
// allowedtplvalues
|
||||
(new Para())->items([
|
||||
(new Label(__('Allowed DC template values:'), Label::OUTSIDE_LABEL_BEFORE))->for('epc_allowedtplvalues'),
|
||||
(new Input('epc_allowedtplvalues'))->size(100)->maxlenght(0)->value(Epc::encodeMulti($allowedtplvalues)),
|
||||
(new Input('epc_allowedtplvalues'))->size(100)->maxlength(0)->value(Epc::encodeMulti($allowedtplvalues)),
|
||||
]),
|
||||
(new Note())
|
||||
->class('form-note')
|
||||
@ -107,7 +107,7 @@ class Backend extends Process
|
||||
// allowedpubpages
|
||||
(new Para())->items([
|
||||
(new Label(__('Allowed public pages:'), Label::OUTSIDE_LABEL_BEFORE))->for('epc_allowedpubpages'),
|
||||
(new Input('epc_allowedpubpages'))->size(100)->maxlenght(0)->value(Epc::encodeMulti($allowedpubpages)),
|
||||
(new Input('epc_allowedpubpages'))->size(100)->maxlength(0)->value(Epc::encodeMulti($allowedpubpages)),
|
||||
]),
|
||||
(new Note())
|
||||
->class('form-note')
|
||||
|
@ -110,7 +110,7 @@ class Epc
|
||||
/**
|
||||
* Get list of allowed templates name->[tag,callback] to list on epc widgets.
|
||||
*
|
||||
* @return array The templates name->[id,cb] values
|
||||
* @return array<string, array<string, mixed>> The templates name->[id,cb] values
|
||||
*/
|
||||
public static function widgetAllowedTemplateValue(): array
|
||||
{
|
||||
@ -415,7 +415,7 @@ class Epc
|
||||
|
||||
$content = '';
|
||||
while (App::frontend()->context()->__get('posts')?->fetch()) {
|
||||
$content .= App::frontend()->__get('posts')->f('post_excerpt');
|
||||
$content .= App::frontend()->context()->__get('posts')->f('post_excerpt');
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
@ -265,7 +265,7 @@ class Manage extends Process
|
||||
->for('filter_style' . $k),
|
||||
(new Input(['filter_style[]', 'filter_style' . $k]))
|
||||
->size(60)
|
||||
->maxlenght(255)
|
||||
->maxlength(255)
|
||||
->value(Html::escapeHTML($filter->style[$k])),
|
||||
]);
|
||||
}
|
||||
@ -337,7 +337,7 @@ class Manage extends Process
|
||||
->for('filter_notag'),
|
||||
(new Input('filter_notag'))
|
||||
->size(60)
|
||||
->maxlenght(255)
|
||||
->maxlength(255)
|
||||
->value(Epc::encodeSingle($filter->notag)),
|
||||
]),
|
||||
(new Note())
|
||||
@ -406,7 +406,7 @@ class Manage extends Process
|
||||
->for('new_key'),
|
||||
(new Input('new_key'))
|
||||
->size(60)
|
||||
->maxlenght(255)
|
||||
->maxlength(255)
|
||||
->required(true),
|
||||
]),
|
||||
(new Para())
|
||||
@ -415,7 +415,7 @@ class Manage extends Process
|
||||
->for('new_value'),
|
||||
(new Input('new_value'))
|
||||
->size(60)
|
||||
->maxlenght(255)
|
||||
->maxlength(255)
|
||||
->required(true),
|
||||
]),
|
||||
(new Para())
|
||||
|
Loading…
Reference in New Issue
Block a user