clean up php files
This commit is contained in:
parent
f08fe78156
commit
abb1308058
141
CHANGELOG.md
141
CHANGELOG.md
@ -1,81 +1,90 @@
|
||||
enhancePostContent xxxx.xx.xx
|
||||
* Not added priority on filters for replacement order
|
||||
* Not added priority on lists of filters for replacement order
|
||||
* Not added auto-find post title in content
|
||||
xxxx.xx.xx
|
||||
- [ ] add priority on filters for replacement order
|
||||
- [ ] add priority on lists of filters for replacement order
|
||||
- [ ] add auto-find post title in content
|
||||
- [ ] split filters into modules
|
||||
- [ ] fix filters on spaces after words
|
||||
|
||||
enhancePostContent 2021.08.24
|
||||
* switch to Dotclear 2.19
|
||||
* switch to php 7.3+ and php 8.0.x
|
||||
* switch to Github
|
||||
* update license
|
||||
* update php code to PSR-2 and short array
|
||||
* move settings from plugin to blog
|
||||
2021.08.24.1
|
||||
- add links to blog prefs
|
||||
- clean up php files style
|
||||
- add dcstore.xml
|
||||
|
||||
enhancePostContent 2013.11.08
|
||||
* Switch to Dotclear 2.6 (admin styles and settings)
|
||||
* Add dashboard icon
|
||||
* Add widget options (content_only and class)
|
||||
* Fix records list pager
|
||||
2021.08.24
|
||||
- switch to Dotclear 2.19
|
||||
- switch to php 7.3+ and php 8.0.x
|
||||
- switch to Github
|
||||
- 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
|
||||
* Fixed widget compatibility for php 5.4
|
||||
2013.11.08
|
||||
- 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
|
||||
* Fixed bug with Twitter replacement and wiki synthax of blockquote
|
||||
* Fixed page title
|
||||
2013.06.25
|
||||
- Fixed widget compatibility for php 5.4
|
||||
|
||||
enhancePostContent 2011.06.03
|
||||
* Added 'feeds pages'
|
||||
2013.05.11
|
||||
- Fixed bug with Twitter replacement and wiki synthax of blockquote
|
||||
- Fixed page title
|
||||
|
||||
enhancePostContent 0.9 - 2010-06-06
|
||||
* Switched to DC 2.2
|
||||
2011.06.03
|
||||
- Added 'feeds pages'
|
||||
|
||||
enhancePostContent 0.8.1 - 2010-03-31
|
||||
* Fixed some l10n
|
||||
* Added option for default list order
|
||||
0.9 - 2010-06-06
|
||||
- Switched to DC 2.2
|
||||
|
||||
enhancePostContent 0.8 - 2010-03-31
|
||||
* 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
|
||||
0.8.1 - 2010-03-31
|
||||
- Fixed some l10n
|
||||
- Added option for default list order
|
||||
|
||||
enhancePostContent 0.7 - 2010-01-12
|
||||
* Moved lists from setting to a new database
|
||||
0.8 - 2010-03-31
|
||||
- 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
|
||||
* Fixed HTML tags to use standard tags.
|
||||
* Fixed CSS class names
|
||||
* Changed settings management
|
||||
* Added widget (only for post page)
|
||||
* Added some post enhancement
|
||||
0.7 - 2010-01-12
|
||||
- Moved lists from setting to a new database
|
||||
|
||||
enhancePostContent 0.5 - 2009-12-28
|
||||
* Added support of comment content
|
||||
* Added support of word replacement
|
||||
* Added option for case sensitive
|
||||
* Added option for plural
|
||||
* 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
|
||||
0.6 - 2010-01-09
|
||||
- Fixed HTML tags to use standard tags.
|
||||
- Fixed CSS class names
|
||||
- Changed settings management
|
||||
- Added widget (only for post page)
|
||||
- Added some post enhancement
|
||||
|
||||
enhancePostContent 0.4 - 2009-12-24
|
||||
* Merry Christmas!
|
||||
* enhanced filters
|
||||
* Added support of entry excerpt
|
||||
* Added support of custom ignored HTML tags
|
||||
* Added some help
|
||||
0.5 - 2009-12-28
|
||||
- Added support of comment content
|
||||
- Added support of word replacement
|
||||
- Added option for case sensitive
|
||||
- Added option for plural
|
||||
- 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
|
||||
* Fixed filter with punctuation (slow hack)
|
||||
* Added word-to-link filter
|
||||
0.4 - 2009-12-24
|
||||
- Merry Christmas!
|
||||
- enhanced filters
|
||||
- Added support of entry excerpt
|
||||
- Added support of custom ignored HTML tags
|
||||
- Added some help
|
||||
|
||||
enhancePostContent 0.2 - 2009-12-12
|
||||
* Fixed case sensitive definition
|
||||
* Prepared DC 2.2
|
||||
0.3 - 2009-12-21
|
||||
- Fixed filter with punctuation (slow hack)
|
||||
è Added word-to-link filter
|
||||
|
||||
enhancePostContent 0.1 - 2009-10-17
|
||||
* First release
|
||||
0.2 - 2009-12-12
|
||||
- Fixed case sensitive definition
|
||||
- Prepared DC 2.2
|
||||
|
||||
0.1 - 2009-10-17
|
||||
- First release
|
22
_admin.php
22
_admin.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
return null;
|
||||
|
29
_define.php
29
_define.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
@ -19,12 +19,13 @@ $this->registerModule(
|
||||
'Enhance post content',
|
||||
'Add features to words in post content',
|
||||
'Jean-Christian Denis and Contributors',
|
||||
'2021.08.24',
|
||||
'2021.08.24.1',
|
||||
[
|
||||
'requires' => [['core', '2.19']],
|
||||
'permissions' => 'contentadmin',
|
||||
'type' => 'plugin',
|
||||
'dc_min' => '2.18',
|
||||
'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'
|
||||
]
|
||||
);
|
22
_install.php
22
_install.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
return null;
|
||||
|
22
_prepend.php
22
_prepend.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
|
22
_public.php
22
_public.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')){
|
||||
return;
|
||||
|
22
_widgets.php
22
_widgets.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
# l10n
|
||||
__('Tag');__('Search');__('Acronym');__('Abbreviation');__('Definition');
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
class epcRecords
|
||||
{
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
# This file only update old filters lists from settings to database
|
||||
|
||||
|
22
index.php
22
index.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of enhancePostContent, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief enhancePostContent, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and Contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
return null;
|
||||
|
@ -211,4 +211,3 @@ $GLOBALS['__l10n']['Key:'] = 'Clé :';
|
||||
$GLOBALS['__l10n']['Value:'] = 'Valeur :';
|
||||
|
||||
$GLOBALS['__l10n']['Configuration has been successfully updated.'] = 'La configuration a été mise à jour avec succés.';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user