Compare commits

...

2 Commits

Author SHA1 Message Date
Jean-Christian Paul Denis 8d2745457c
release 1.4 2023-08-12 19:10:36 +02:00
Jean-Christian Paul Denis 2279de97a4
upgrade to Dotclear 2.27 2023-08-12 19:09:47 +02:00
7 changed files with 91 additions and 59 deletions

View File

@ -1,29 +1,44 @@
1.3 - 2023.04.22
- require dotclear 2.26
- use latest dotclear namespace helper
- fix nullsafe warning
- fix static call on frontend and backend class
entryPhotoExifWidget 1.4 - 2023.08.12
===========================================================
* Require Dotclear 2.27
* Require PHP 7.4+
* Upgrade to Dotclear 2.27
* Move third party repository
* Use Dotclear style for CHANGELOG
1.2 - 2023.03.12
- update to Dotclear 2.25
- use namespace
entryPhotoExifWidget 1.3 - 2023.04.22
===========================================================
* require dotclear 2.26
* use latest dotclear namespace helper
* fix nullsafe warning
* fix static call on frontend and backend class
1.1 - 2022.11.20
- fix compatibility with Dotclear 2.24 (required)
- fix PSR and CS
- remove .lang.php file
- update readme file
entryPhotoExifWidget 1.2 - 2023.03.12
===========================================================
* update to Dotclear 2.25
* use namespace
1.0.3 - 2021.09.2
- update php headers to phpdoc style
- add dcstore.xml
entryPhotoExifWidget 1.1 - 2022.11.20
===========================================================
* fix compatibility with Dotclear 2.24 (required)
* fix PSR and CS
* remove .lang.php file
* update readme file
1.0.2 - 2021-08-19
- Update license
entryPhotoExifWidget 1.0.3 - 2021.09.2
===========================================================
* update php headers to phpdoc style
* add dcstore.xml
1.0.1 - 2021-08-17
- Move to Franck style
entryPhotoExifWidget 1.0.2 - 2021-08-19
===========================================================
* Update license
1.0 - 2016-11-04
- First release
- Find images of an entry and paste their exif on a widget
entryPhotoExifWidget 1.0.1 - 2021-08-17
===========================================================
* Move to Franck style
entryPhotoExifWidget 1.0 - 2016-11-04
===========================================================
* First release
* Find images of an entry and paste their exif on a widget

View File

@ -1,11 +1,10 @@
# README
[![Release](https://img.shields.io/github/v/release/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/issues)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download)
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget)
[![License](https://img.shields.io/github/license/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/blob/master/LICENSE)
[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases)
[![Date](https://img.shields.io/badge/date-2023.08.12-c44d58.svg)](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download)
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget)
[![License](https://img.shields.io/github/license/JcDenis/entryPhotoExifWidget)](https://git.dotclear.watch/JcDenis/arlequin/blob/master/LICENSE)
## WHAT IS ENRTYPHOTOEXIFWIDGET ?
@ -18,8 +17,9 @@ Show images exif of an entry in a widget.
_entryPhotoExifWidget_ requires:
* permissions to manage widgets
* Dotclear 2.26
* permissions to manage widgets
* Dotclear 2.27
* PHP 7.4+
## USAGE
@ -30,13 +30,13 @@ Add and configure _Photo Exif Widget_ from widgets manager.
## LINKS
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/entryPhotoExifWidget)
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget)
* Discuss and help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=48992)
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget) or [GitHub Page](https://github.com/JcDenis/entryPhotoExifWidget)
* Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget)
* Discuss and help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=48992)
## CONTRIBUTORS
* Jean-Christian Denis
* Jean-Christian Denis
You are welcome to contribute to this code.
You are welcome to contribute to this code.

View File

@ -18,15 +18,15 @@ $this->registerModule(
'Entry Photo EXIF Widget',
'Show images EXIF of an entry',
'Jean-Christian Denis and contibutors',
'1.3',
'1.4',
[
'requires' => [['core', '2.26']],
'requires' => [['core', '2.27']],
'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN,
]),
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
]
);

View File

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="entryPhotoExifWidget">
<name>Entry Photo EXIF Widget</name>
<version>1.3</version>
<version>1.4</version>
<author>Jean-Christian Denis and contibutors</author>
<desc>Show images EXIF of an entry</desc>
<file>https://github.com/JcDenis/entryPhotoExifWidget/releases/download/v1.3/plugin-entryPhotoExifWidget.zip</file>
<da:dcmin>2.26</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget</da:details>
<da:support>https://github.com/JcDenis/entryPhotoExifWidget</da:support>
<file>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases/download/v1.4/plugin-entryPhotoExifWidget.zip</file>
<da:dcmin>2.27</da:dcmin>
<da:details>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/issues</da:support>
</module>
</modules>

View File

@ -15,20 +15,18 @@ declare(strict_types=1);
namespace Dotclear\Plugin\entryPhotoExifWidget;
use dcCore;
use dcNsProcess;
use Dotclear\Core\Process;
class Backend extends dcNsProcess
class Backend extends Process
{
public static function init(): bool
{
static::$init = defined('DC_CONTEXT_ADMIN');
return static::$init;
return self::status(My::checkContext(My::BACKEND));
}
public static function process(): bool
{
if (!static::$init) {
if (!self::status()) {
return false;
}

View File

@ -15,20 +15,18 @@ declare(strict_types=1);
namespace Dotclear\Plugin\entryPhotoExifWidget;
use dcCore;
use dcNsProcess;
use Dotclear\Core\Process;
class Frontend extends dcNsProcess
class Frontend extends Process
{
public static function init(): bool
{
static::$init = defined('DC_RC_PATH');
return static::$init;
return self::status(My::checkContext(My::FRONTEND));
}
public static function process(): bool
{
if (!static::$init) {
if (!self::status()) {
return false;
}

21
src/My.php 100644
View File

@ -0,0 +1,21 @@
<?php
/**
* @brief entryPhotoExifWidget, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and contibutors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
declare(strict_types=1);
namespace Dotclear\Plugin\entryPhotoExifWidget;
use Dotclear\Module\MyPlugin;
class My extends MyPlugin
{
}