Compare commits
No commits in common. "8d2745457ca9fd6b58f67cb0b8b4f6104dc239c0" and "e977f300d1af5d37c71bc977deb72a553a001333" have entirely different histories.
8d2745457c
...
e977f300d1
61
CHANGELOG.md
61
CHANGELOG.md
|
@ -1,44 +1,29 @@
|
||||||
entryPhotoExifWidget 1.4 - 2023.08.12
|
1.3 - 2023.04.22
|
||||||
===========================================================
|
- require dotclear 2.26
|
||||||
* Require Dotclear 2.27
|
- use latest dotclear namespace helper
|
||||||
* Require PHP 7.4+
|
- fix nullsafe warning
|
||||||
* Upgrade to Dotclear 2.27
|
- fix static call on frontend and backend class
|
||||||
* Move third party repository
|
|
||||||
* Use Dotclear style for CHANGELOG
|
|
||||||
|
|
||||||
entryPhotoExifWidget 1.3 - 2023.04.22
|
1.2 - 2023.03.12
|
||||||
===========================================================
|
- update to Dotclear 2.25
|
||||||
* require dotclear 2.26
|
- use namespace
|
||||||
* use latest dotclear namespace helper
|
|
||||||
* fix nullsafe warning
|
|
||||||
* fix static call on frontend and backend class
|
|
||||||
|
|
||||||
entryPhotoExifWidget 1.2 - 2023.03.12
|
1.1 - 2022.11.20
|
||||||
===========================================================
|
- fix compatibility with Dotclear 2.24 (required)
|
||||||
* update to Dotclear 2.25
|
- fix PSR and CS
|
||||||
* use namespace
|
- remove .lang.php file
|
||||||
|
- update readme file
|
||||||
|
|
||||||
entryPhotoExifWidget 1.1 - 2022.11.20
|
1.0.3 - 2021.09.2
|
||||||
===========================================================
|
- update php headers to phpdoc style
|
||||||
* fix compatibility with Dotclear 2.24 (required)
|
- add dcstore.xml
|
||||||
* fix PSR and CS
|
|
||||||
* remove .lang.php file
|
|
||||||
* update readme file
|
|
||||||
|
|
||||||
entryPhotoExifWidget 1.0.3 - 2021.09.2
|
1.0.2 - 2021-08-19
|
||||||
===========================================================
|
- Update license
|
||||||
* update php headers to phpdoc style
|
|
||||||
* add dcstore.xml
|
|
||||||
|
|
||||||
entryPhotoExifWidget 1.0.2 - 2021-08-19
|
1.0.1 - 2021-08-17
|
||||||
===========================================================
|
- Move to Franck style
|
||||||
* Update license
|
|
||||||
|
|
||||||
entryPhotoExifWidget 1.0.1 - 2021-08-17
|
1.0 - 2016-11-04
|
||||||
===========================================================
|
- First release
|
||||||
* Move to Franck style
|
- Find images of an entry and paste their exif on a widget
|
||||||
|
|
||||||
entryPhotoExifWidget 1.0 - 2016-11-04
|
|
||||||
===========================================================
|
|
||||||
* First release
|
|
||||||
* Find images of an entry and paste their exif on a widget
|
|
18
README.md
18
README.md
|
@ -1,10 +1,11 @@
|
||||||
# README
|
# README
|
||||||
|
|
||||||
[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases)
|
[![Release](https://img.shields.io/github/v/release/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)
|
[![Date](https://img.shields.io/github/release-date/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/releases)
|
||||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download)
|
[![Issues](https://img.shields.io/github/issues/JcDenis/entryPhotoExifWidget)](https://github.com/JcDenis/entryPhotoExifWidget/issues)
|
||||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget)
|
[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download)
|
||||||
[![License](https://img.shields.io/github/license/JcDenis/entryPhotoExifWidget)](https://git.dotclear.watch/JcDenis/arlequin/blob/master/LICENSE)
|
[![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 ?
|
## WHAT IS ENRTYPHOTOEXIFWIDGET ?
|
||||||
|
|
||||||
|
@ -18,8 +19,7 @@ Show images exif of an entry in a widget.
|
||||||
_entryPhotoExifWidget_ requires:
|
_entryPhotoExifWidget_ requires:
|
||||||
|
|
||||||
* permissions to manage widgets
|
* permissions to manage widgets
|
||||||
* Dotclear 2.27
|
* Dotclear 2.26
|
||||||
* PHP 7.4+
|
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ 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 : [Gitea Page](https://git.dotclear.watch/JcDenis/entryPhotoExifWidget) or [GitHub Page](https://github.com/JcDenis/entryPhotoExifWidget)
|
* Source & contribution : [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)
|
* Packages & details: [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
|
||||||
|
|
10
_define.php
10
_define.php
|
@ -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.4',
|
'1.3',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.27']],
|
'requires' => [['core', '2.26']],
|
||||||
'permissions' => dcCore::app()->auth->makePermissions([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
dcAuth::PERMISSION_ADMIN,
|
dcAuth::PERMISSION_ADMIN,
|
||||||
]),
|
]),
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
|
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
|
||||||
'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
|
||||||
'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
10
dcstore.xml
10
dcstore.xml
|
@ -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.4</version>
|
<version>1.3</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://git.dotclear.watch/JcDenis/entryPhotoExifWidget/releases/download/v1.4/plugin-entryPhotoExifWidget.zip</file>
|
<file>https://github.com/JcDenis/entryPhotoExifWidget/releases/download/v1.3/plugin-entryPhotoExifWidget.zip</file>
|
||||||
<da:dcmin>2.27</da:dcmin>
|
<da:dcmin>2.26</da:dcmin>
|
||||||
<da:details>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/src/branch/master/README.md</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/entryPhotoExifWidget</da:details>
|
||||||
<da:support>https://git.dotclear.watch/JcDenis/entryPhotoExifWidget/issues</da:support>
|
<da:support>https://github.com/JcDenis/entryPhotoExifWidget</da:support>
|
||||||
</module>
|
</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
|
@ -15,18 +15,20 @@ declare(strict_types=1);
|
||||||
namespace Dotclear\Plugin\entryPhotoExifWidget;
|
namespace Dotclear\Plugin\entryPhotoExifWidget;
|
||||||
|
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use Dotclear\Core\Process;
|
use dcNsProcess;
|
||||||
|
|
||||||
class Backend extends Process
|
class Backend extends dcNsProcess
|
||||||
{
|
{
|
||||||
public static function init(): bool
|
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
|
public static function process(): bool
|
||||||
{
|
{
|
||||||
if (!self::status()) {
|
if (!static::$init) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,18 +15,20 @@ declare(strict_types=1);
|
||||||
namespace Dotclear\Plugin\entryPhotoExifWidget;
|
namespace Dotclear\Plugin\entryPhotoExifWidget;
|
||||||
|
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use Dotclear\Core\Process;
|
use dcNsProcess;
|
||||||
|
|
||||||
class Frontend extends Process
|
class Frontend extends dcNsProcess
|
||||||
{
|
{
|
||||||
public static function init(): bool
|
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
|
public static function process(): bool
|
||||||
{
|
{
|
||||||
if (!self::status()) {
|
if (!static::$init) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
21
src/My.php
21
src/My.php
|
@ -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
|
|
||||||
{
|
|
||||||
}
|
|
Loading…
Reference in New Issue