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 entryPhotoExifWidget 1.4 - 2023.08.12
- require dotclear 2.26 ===========================================================
- use latest dotclear namespace helper * Require Dotclear 2.27
- fix nullsafe warning * Require PHP 7.4+
- fix static call on frontend and backend class * Upgrade to Dotclear 2.27
* Move third party repository
* Use Dotclear style for CHANGELOG
1.2 - 2023.03.12 entryPhotoExifWidget 1.3 - 2023.04.22
- update to Dotclear 2.25 ===========================================================
- use namespace * 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 entryPhotoExifWidget 1.2 - 2023.03.12
- fix compatibility with Dotclear 2.24 (required) ===========================================================
- fix PSR and CS * update to Dotclear 2.25
- remove .lang.php file * use namespace
- update readme file
1.0.3 - 2021.09.2 entryPhotoExifWidget 1.1 - 2022.11.20
- update php headers to phpdoc style ===========================================================
- add dcstore.xml * fix compatibility with Dotclear 2.24 (required)
* fix PSR and CS
* remove .lang.php file
* update readme file
1.0.2 - 2021-08-19 entryPhotoExifWidget 1.0.3 - 2021.09.2
- Update license ===========================================================
* update php headers to phpdoc style
* add dcstore.xml
1.0.1 - 2021-08-17 entryPhotoExifWidget 1.0.2 - 2021-08-19
- Move to Franck style ===========================================================
* Update license
1.0 - 2016-11-04 entryPhotoExifWidget 1.0.1 - 2021-08-17
- First release ===========================================================
- Find images of an entry and paste their exif on a widget * 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 # README
[![Release](https://img.shields.io/github/v/release/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/releases) [![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/releases) [![Date](https://img.shields.io/badge/date-2023.08.12-c44d58.svg)](https://git.dotclear.watch/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.27-137bbb.svg)](https://fr.dotclear.org/download)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget)
[![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://git.dotclear.watch/JcDenis/arlequin/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/blob/master/LICENSE)
## WHAT IS ENRTYPHOTOEXIFWIDGET ? ## WHAT IS ENRTYPHOTOEXIFWIDGET ?
@ -18,8 +17,9 @@ Show images exif of an entry in a widget.
_entryPhotoExifWidget_ requires: _entryPhotoExifWidget_ requires:
* permissions to manage widgets * permissions to manage widgets
* Dotclear 2.26 * Dotclear 2.27
* PHP 7.4+
## USAGE ## USAGE
@ -30,13 +30,13 @@ Add and configure _Photo Exif Widget_ from widgets manager.
## LINKS ## LINKS
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/entryPhotoExifWidget) * Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget) or [GitHub Page](https://github.com/JcDenis/entryPhotoExifWidget)
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/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) * Discuss and help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=48992)
## CONTRIBUTORS ## 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', 'Entry Photo EXIF Widget',
'Show images EXIF of an entry', 'Show images EXIF of an entry',
'Jean-Christian Denis and contibutors', 'Jean-Christian Denis and contibutors',
'1.3', '1.4',
[ [
'requires' => [['core', '2.26']], 'requires' => [['core', '2.27']],
'permissions' => dcCore::app()->auth->makePermissions([ 'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN, dcAuth::PERMISSION_ADMIN,
]), ]),
'type' => 'plugin', 'type' => 'plugin',
'support' => 'https://github.com/JcDenis/' . basename(__DIR__), 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', '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/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="entryPhotoExifWidget"> <module id="entryPhotoExifWidget">
<name>Entry Photo EXIF Widget</name> <name>Entry Photo EXIF Widget</name>
<version>1.3</version> <version>1.4</version>
<author>Jean-Christian Denis and contibutors</author> <author>Jean-Christian Denis and contibutors</author>
<desc>Show images EXIF of an entry</desc> <desc>Show images EXIF of an entry</desc>
<file>https://github.com/JcDenis/entryPhotoExifWidget/releases/download/v1.3/plugin-entryPhotoExifWidget.zip</file> <file>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases/download/v1.4/plugin-entryPhotoExifWidget.zip</file>
<da:dcmin>2.26</da:dcmin> <da:dcmin>2.27</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget</da:details> <da:details>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/src/branch/master/README.md</da:details>
<da:support>https://github.com/JcDenis/entryPhotoExifWidget</da:support> <da:support>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/issues</da:support>
</module> </module>
</modules> </modules>

View File

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

View File

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