Compare commits

..

No commits in common. "8d2745457ca9fd6b58f67cb0b8b4f6104dc239c0" and "e977f300d1af5d37c71bc977deb72a553a001333" have entirely different histories.

7 changed files with 59 additions and 91 deletions

View File

@ -1,44 +1,29 @@
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.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.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.2 - 2023.03.12
- update to Dotclear 2.25
- use namespace
entryPhotoExifWidget 1.2 - 2023.03.12
===========================================================
* update to Dotclear 2.25
* use namespace
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.1 - 2022.11.20
===========================================================
* fix compatibility with Dotclear 2.24 (required)
* fix PSR and CS
* remove .lang.php file
* update readme file
1.0.3 - 2021.09.2
- update php headers to phpdoc style
- add dcstore.xml
entryPhotoExifWidget 1.0.3 - 2021.09.2
===========================================================
* update php headers to phpdoc style
* add dcstore.xml
1.0.2 - 2021-08-19
- Update license
entryPhotoExifWidget 1.0.2 - 2021-08-19
===========================================================
* Update license
1.0.1 - 2021-08-17
- Move to Franck style
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
1.0 - 2016-11-04
- First release
- Find images of an entry and paste their exif on a widget

View File

@ -1,10 +1,11 @@
# README
[![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)
[![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)
## WHAT IS ENRTYPHOTOEXIFWIDGET ?
@ -17,9 +18,8 @@ Show images exif of an entry in a widget.
_entryPhotoExifWidget_ requires:
* permissions to manage widgets
* Dotclear 2.27
* PHP 7.4+
* permissions to manage widgets
* Dotclear 2.26
## 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 : [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)
* 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)
## 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.4',
'1.3',
[
'requires' => [['core', '2.27']],
'requires' => [['core', '2.26']],
'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN,
]),
'type' => 'plugin',
'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',
'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',
]
);

View File

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="entryPhotoExifWidget">
<name>Entry Photo EXIF Widget</name>
<version>1.4</version>
<version>1.3</version>
<author>Jean-Christian Denis and contibutors</author>
<desc>Show images EXIF of an entry</desc>
<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>
<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>
</module>
</modules>

View File

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

View File

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

View File

@ -1,21 +0,0 @@
<?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
{
}