clean up code
This commit is contained in:
parent
26e683fbb5
commit
b62a04d387
9 changed files with 100 additions and 111 deletions
75
CHANGELOG.md
75
CHANGELOG.md
|
@ -1,48 +1,51 @@
|
||||||
fac 0.9.1
|
0.9.2 - 2021.09.02
|
||||||
* fix translations
|
- update license bloc to phpdoc
|
||||||
|
|
||||||
fac 0.9
|
0.9.1 - 2021.08.23
|
||||||
* split superadmin and admin config
|
- fix translations
|
||||||
* move blog settings from plugin config to blog pref
|
|
||||||
* fix help
|
|
||||||
* use php short array code
|
|
||||||
|
|
||||||
fac 0.8.1
|
0.9
|
||||||
* fix context filters
|
- split superadmin and admin config
|
||||||
|
- move blog settings from plugin config to blog pref
|
||||||
|
- fix help
|
||||||
|
- use php short array code
|
||||||
|
|
||||||
fac 0.8 - 2021-08-19
|
0.8.1
|
||||||
* update license
|
- fix context filters
|
||||||
* fixed PSR2 coding style
|
|
||||||
|
|
||||||
fac 0.7 - 2013-11-11
|
0.8 - 2021-08-19
|
||||||
* Switch to Dotclear 2.6
|
- update license
|
||||||
* Fix missing feed description
|
- fixed PSR2 coding style
|
||||||
|
|
||||||
fac 0.6.1 - 2010-11-12
|
0.7 - 2013-11-11
|
||||||
* Fixed install on nightly build
|
- Switch to Dotclear 2.6
|
||||||
|
- Fix missing feed description
|
||||||
|
|
||||||
fac 0.6 - 2010-08-16
|
0.6.1 - 2010-11-12
|
||||||
* Added compatibility with plugin muppet
|
- Fixed install on nightly build
|
||||||
|
|
||||||
fac 0.5 - 2010-06-05
|
0.6 - 2010-08-16
|
||||||
* Switched to DC 2.2
|
- Added compatibility with plugin muppet
|
||||||
* Added predefined format (thx to Jean-Michel) (closes #459)
|
|
||||||
|
|
||||||
fac 0.4.1 - 2010-04-10
|
0.5 - 2010-06-05
|
||||||
* Fixed typo (thx to Jean-Michel) (closes #458)
|
- Switched to DC 2.2
|
||||||
|
- Added predefined format (thx to Jean-Michel) (closes #459)
|
||||||
|
|
||||||
fac 0.4 - 2010-05-25
|
0.4.1 - 2010-04-10
|
||||||
* Fixed Timeout error
|
- Fixed typo (thx to Jean-Michel) (closes #458)
|
||||||
* Fixed DC 2.1.7
|
|
||||||
|
|
||||||
fac 0.3 - 2010-04-10
|
0.4 - 2010-05-25
|
||||||
* Added options to format feed
|
- Fixed Timeout error
|
||||||
* Added DC 2.2 compatibility
|
- Fixed DC 2.1.7
|
||||||
* Removed class and used metadata
|
|
||||||
* Changed admin page design
|
|
||||||
|
|
||||||
fac 0.2 - 2010-02-17
|
0.3 - 2010-04-10
|
||||||
* Fixed some fields in admin
|
- Added options to format feed
|
||||||
|
- Added DC 2.2 compatibility
|
||||||
|
- Removed class and used metadata
|
||||||
|
- Changed admin page design
|
||||||
|
|
||||||
fac 0.1 - 2010-02-16
|
0.2 - 2010-02-17
|
||||||
* First lab release
|
- Fixed some fields in admin
|
||||||
|
|
||||||
|
0.1 - 2010-02-16
|
||||||
|
- First lab release
|
22
_admin.php
22
_admin.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief fac, a plugin for Dotclear 2
|
||||||
# This file is part of fac, 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;
|
||||||
|
|
22
_config.php
22
_config.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief fac, a plugin for Dotclear 2
|
||||||
# This file is part of fac, 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_MODULE')) {
|
if (!defined('DC_CONTEXT_MODULE')) {
|
||||||
return null;
|
return null;
|
||||||
|
|
26
_define.php
26
_define.php
|
@ -1,29 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief fac, a plugin for Dotclear 2
|
||||||
# This file is part of fac, 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->registerModule(
|
$this->registerModule(
|
||||||
'fac',
|
'Feed after content',
|
||||||
'Add RSS/Atom feeds after entries content',
|
'Add RSS/Atom feeds after entries content',
|
||||||
'Jean-Christian Denis and Contributors',
|
'Jean-Christian Denis and Contributors',
|
||||||
'0.9.2',
|
'0.9.2',
|
||||||
[
|
[
|
||||||
|
'requires' => [['core', '2.19']],
|
||||||
'permissions' => 'usage,contentadmin',
|
'permissions' => 'usage,contentadmin',
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'dc_min' => '2.19',
|
|
||||||
'support' => 'https://github.com/JcDenis/fac',
|
'support' => 'https://github.com/JcDenis/fac',
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/fac',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/fac',
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/fac/master/repository.xml',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/fac/master/repository.xml',
|
||||||
|
|
22
_install.php
22
_install.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief fac, a plugin for Dotclear 2
|
||||||
# This file is part of fac, 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;
|
||||||
|
|
22
_public.php
22
_public.php
|
@ -1,15 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
/**
|
||||||
#
|
* @brief fac, a plugin for Dotclear 2
|
||||||
# This file is part of fac, 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;
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
<module id="fac">
|
<module id="fac">
|
||||||
<name>Feed after content</name>
|
<name>Feed after content</name>
|
||||||
<version>0.9.2</version>
|
<version>0.9.2</version>
|
||||||
<author>Jean-Christian Denis and contributors</author>
|
<author>Jean-Christian Denis and Contributors</author>
|
||||||
<desc>Add RSS/Atom feeds after entries content</desc>
|
<desc>Add RSS/Atom feeds after entries content</desc>
|
||||||
<file>https://github.com/JcDenis/fac/releases/download/v0.9/plugin-fac.zip</file>
|
<file>https://github.com/JcDenis/fac/releases/download/v0.9.2/plugin-fac.zip</file>
|
||||||
<da:dcmin>2.19</da:dcmin>
|
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/fac</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/fac</da:details>
|
||||||
<da:section></da:section>
|
|
||||||
<da:support>https://github.com/JcDenis/fac</da:support>
|
<da:support>https://github.com/JcDenis/fac</da:support>
|
||||||
</module>
|
</module>
|
||||||
</modules>
|
</modules>
|
11
js/admin.js
11
js/admin.js
|
@ -1,14 +1,3 @@
|
||||||
/* -- BEGIN LICENSE BLOCK ----------------------------------
|
|
||||||
* This file is part of fac, a plugin for Dotclear 2.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2009-2010 JC Denis and contributors
|
|
||||||
* jcdenis@gdwd.com
|
|
||||||
*
|
|
||||||
* 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 ------------------------------------*/
|
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
/* toogle admin form sidebar */
|
/* toogle admin form sidebar */
|
||||||
$('#fac h5').toggleWithLegend(
|
$('#fac h5').toggleWithLegend(
|
||||||
|
|
|
@ -169,5 +169,4 @@ $GLOBALS['__l10n']['Description of entry'] = 'Description du billet';
|
||||||
#_public.php:120
|
#_public.php:120
|
||||||
$GLOBALS['__l10n']['a related feed'] = 'un flux lié';
|
$GLOBALS['__l10n']['a related feed'] = 'un flux lié';
|
||||||
|
|
||||||
$GLOBALS['__l10n']['Add RSS/Atom feeds after entries content'] = 'Ajouter des flux RSS/Atom après le contenu des billets';
|
$GLOBALS['__l10n']['Add RSS/Atom feeds after entries content'] = 'Ajouter des flux RSS/Atom après le contenu des billets';
|
||||||
|
|
Loading…
Reference in a new issue