clean up php files

This commit is contained in:
Jean-Christian Paul Denis 2021-09-02 20:35:25 +02:00
parent f08fe78156
commit abb1308058
13 changed files with 298 additions and 289 deletions

View File

@ -1,81 +1,90 @@
enhancePostContent xxxx.xx.xx xxxx.xx.xx
* Not added priority on filters for replacement order - [ ] add priority on filters for replacement order
* Not added priority on lists of filters for replacement order - [ ] add priority on lists of filters for replacement order
* Not added auto-find post title in content - [ ] add auto-find post title in content
- [ ] split filters into modules
- [ ] fix filters on spaces after words
enhancePostContent 2021.08.24 2021.08.24.1
* switch to Dotclear 2.19 - add links to blog prefs
* switch to php 7.3+ and php 8.0.x - clean up php files style
* switch to Github - add dcstore.xml
* update license
* update php code to PSR-2 and short array
* move settings from plugin to blog
enhancePostContent 2013.11.08 2021.08.24
* Switch to Dotclear 2.6 (admin styles and settings) - switch to Dotclear 2.19
* Add dashboard icon - switch to php 7.3+ and php 8.0.x
* Add widget options (content_only and class) - switch to Github
* Fix records list pager - update license
- update php code to PSR-2 and short array
- move settings from plugin to blog
- fix widget rendering
- fix php strict warning on undeclared var on public content
enhancePostContent 2013.06.25 2013.11.08
* Fixed widget compatibility for php 5.4 - Switch to Dotclear 2.6 (admin styles and settings)
- Add dashboard icon
- Add widget options (content_only and class)
- Fix records list pager
enhancePostContent 2013.05.11 2013.06.25
* Fixed bug with Twitter replacement and wiki synthax of blockquote - Fixed widget compatibility for php 5.4
* Fixed page title
enhancePostContent 2011.06.03 2013.05.11
* Added 'feeds pages' - Fixed bug with Twitter replacement and wiki synthax of blockquote
- Fixed page title
enhancePostContent 0.9 - 2010-06-06 2011.06.03
* Switched to DC 2.2 - Added 'feeds pages'
enhancePostContent 0.8.1 - 2010-03-31 0.9 - 2010-06-06
* Fixed some l10n - Switched to DC 2.2
* Added option for default list order
enhancePostContent 0.8 - 2010-03-31 0.8.1 - 2010-03-31
* Added admin lists sortable - Fixed some l10n
* Added pager for admin lists - Added option for default list order
* Added update on records
* Changed title of HTML tag on links replacement
* Removed empty CSS from head
* Enhanced admin pages
enhancePostContent 0.7 - 2010-01-12 0.8 - 2010-03-31
* Moved lists from setting to a new database - Added admin lists sortable
- Added pager for admin lists
- Added update on records
- Changed title of HTML tag on links replacement
- Removed empty CSS from head
- Enhanced admin pages
enhancePostContent 0.6 - 2010-01-09 0.7 - 2010-01-12
* Fixed HTML tags to use standard tags. - Moved lists from setting to a new database
* Fixed CSS class names
* Changed settings management
* Added widget (only for post page)
* Added some post enhancement
enhancePostContent 0.5 - 2009-12-28 0.6 - 2010-01-09
* Added support of comment content - Fixed HTML tags to use standard tags.
* Added support of word replacement - Fixed CSS class names
* Added option for case sensitive - Changed settings management
* Added option for plural - Added widget (only for post page)
* Changed class from post-xxx to epc-xxx - Added some post enhancement
* Changed names from acronyme to acronym
* Changed acronym html tag from <span> to <acronym>
* Changed all settings management
enhancePostContent 0.4 - 2009-12-24 0.5 - 2009-12-28
* Merry Christmas! - Added support of comment content
* enhanced filters - Added support of word replacement
* Added support of entry excerpt - Added option for case sensitive
* Added support of custom ignored HTML tags - Added option for plural
* Added some help - Changed class from post-xxx to epc-xxx
- Changed names from acronyme to acronym
- Changed acronym html tag from <span> to <acronym>
- Changed all settings management
enhancePostContent 0.3 - 2009-12-21 0.4 - 2009-12-24
* Fixed filter with punctuation (slow hack) - Merry Christmas!
* Added word-to-link filter - enhanced filters
- Added support of entry excerpt
- Added support of custom ignored HTML tags
- Added some help
enhancePostContent 0.2 - 2009-12-12 0.3 - 2009-12-21
* Fixed case sensitive definition - Fixed filter with punctuation (slow hack)
* Prepared DC 2.2 è Added word-to-link filter
enhancePostContent 0.1 - 2009-10-17 0.2 - 2009-12-12
* First release - Fixed case sensitive definition
- Prepared DC 2.2
0.1 - 2009-10-17
- First release

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;
@ -19,12 +19,13 @@ $this->registerModule(
'Enhance post content', 'Enhance post content',
'Add features to words in post content', 'Add features to words in post content',
'Jean-Christian Denis and Contributors', 'Jean-Christian Denis and Contributors',
'2021.08.24', '2021.08.24.1',
[ [
'requires' => [['core', '2.19']],
'permissions' => 'contentadmin', 'permissions' => 'contentadmin',
'type' => 'plugin', 'type' => 'plugin',
'dc_min' => '2.18',
'support' => 'https://github.com/JcDenis/enhancePostContent', 'support' => 'https://github.com/JcDenis/enhancePostContent',
'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent' 'details' => 'https://plugins.dotaddict.org/dc2/details/enhancePostContent',
'repository' => 'https://raw.githubusercontent.com/JcDenis/enhancePostContent/master/dcstore.xml'
] ]
); );

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')){ if (!defined('DC_CONTEXT_ADMIN')){
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
# l10n # l10n
__('Tag');__('Search');__('Acronym');__('Abbreviation');__('Definition'); __('Tag');__('Search');__('Acronym');__('Abbreviation');__('Definition');

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
class epcRecords class epcRecords
{ {

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
# This file only update old filters lists from settings to database # This file only update old filters lists from settings to database

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief enhancePostContent, a plugin for Dotclear 2
# This file is part of enhancePostContent, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and Contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return null; return null;

View File

@ -211,4 +211,3 @@ $GLOBALS['__l10n']['Key:'] = 'Clé :';
$GLOBALS['__l10n']['Value:'] = 'Valeur :'; $GLOBALS['__l10n']['Value:'] = 'Valeur :';
$GLOBALS['__l10n']['Configuration has been successfully updated.'] = 'La configuration a été mise à jour avec succés.'; $GLOBALS['__l10n']['Configuration has been successfully updated.'] = 'La configuration a été mise à jour avec succés.';