From 1d984367d9108b9ab71f22159f53eb84520846e2 Mon Sep 17 00:00:00 2001 From: astridx Date: Sat, 29 Oct 2022 10:51:31 +0200 Subject: [PATCH] sh --- aggpxtrack-update4.xml | 20 +++ changelog.xml | 8 ++ j4/pkg_aggpxtrack/jorobo.ini | 2 +- .../plugins/fields/aggpxtrack/aggpxtrack.php | 15 -- .../fields/aggpxtrack/field/aggpxtrack.php | 55 -------- .../fields/aggpxtrack/layouts/aggpxtrack.php | 131 ------------------ .../fields/aggpxtrack/params/aggpxtrack.xml | 22 ++- 7 files changed, 46 insertions(+), 207 deletions(-) delete mode 100644 j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/field/aggpxtrack.php delete mode 100644 j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/layouts/aggpxtrack.php diff --git a/aggpxtrack-update4.xml b/aggpxtrack-update4.xml index a0621cd..9a4ffe3 100644 --- a/aggpxtrack-update4.xml +++ b/aggpxtrack-update4.xml @@ -122,4 +122,24 @@ ed8c3dd2f80f279758d4753e61950c3c0d255da83b319c4fc6535ca7595c7bbf 830321c8a8e4907b23de751f2d220bbc36e69004098192a57943402a81a2dba8261f6687abef8060f6dc3695fdcdd39f + + pkg_aggpxtrack + pkg_aggpxtrack + pkg_aggpxtrack + package + site + 5.0.0 + https://github.com/astridx/pkg_aggpxtrack/blob/v5.0.0/README.md + + https://github.com/astridx/pkg_aggpxtrack/releases/download/v5.0.0/pkg-aggpxtrack-5.0.0.zip + + + stable + + Astrid Günther + https://astrid-guenther.de + + e0d19fa728f8806e9e61ce8c85377961036611167eeb3615e5ba90faf1e7ba51 + 546671c3c59b2c268f017ed95c9c78e87bb6d73a5d6a1b72a2b798359a93d4e34ce0f847edb4d15111324c9f9d8adf2d + \ No newline at end of file diff --git a/changelog.xml b/changelog.xml index 05dde6d..47003e3 100644 --- a/changelog.xml +++ b/changelog.xml @@ -44,4 +44,12 @@ Correct Panel Layer + + pkg_aggpxtrack + package + 5.0.0 + + Use Textfield instead of Mediafield + + diff --git a/j4/pkg_aggpxtrack/jorobo.ini b/j4/pkg_aggpxtrack/jorobo.ini index 2c9c040..e1afc3e 100644 --- a/j4/pkg_aggpxtrack/jorobo.ini +++ b/j4/pkg_aggpxtrack/jorobo.ini @@ -1,5 +1,5 @@ extension = aggpxtrack -version = 4.0.6 +version = 5.0.0 source = src target = package diff --git a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/aggpxtrack.php b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/aggpxtrack.php index c4bc23d..88c4ce1 100644 --- a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/aggpxtrack.php +++ b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/aggpxtrack.php @@ -19,19 +19,4 @@ */ class PlgFieldsAggpxtrack extends \Joomla\Component\Fields\Administrator\Plugin\FieldsPlugin { - - /** - * Constructor - * - * @param object &$subject The object to observe - * @param array $config An array that holds the plugin configuration - * - * @since 1.5 - */ - public function __construct(&$subject, $config) - { - parent::__construct($subject, $config); - - FormHelper::addFieldPath(__DIR__ . '/field'); - } } diff --git a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/field/aggpxtrack.php b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/field/aggpxtrack.php deleted file mode 100644 index bdb9214..0000000 --- a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/field/aggpxtrack.php +++ /dev/null @@ -1,55 +0,0 @@ -getTemplate(); - - return [ - JPATH_ADMINISTRATOR . '/templates/' . $template . '/html/layouts/plugins/system/stats', - dirname(__DIR__) . '/layouts', - JPATH_SITE . '/layouts' - ]; - } -} diff --git a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/layouts/aggpxtrack.php b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/layouts/aggpxtrack.php deleted file mode 100644 index e7c1d9b..0000000 --- a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/layouts/aggpxtrack.php +++ /dev/null @@ -1,131 +0,0 @@ -getWebAssetManager(); - -$wam->useScript('webcomponent.media-select'); - -Text::script('JFIELD_MEDIA_LAZY_LABEL'); -Text::script('JFIELD_MEDIA_ALT_LABEL'); -Text::script('JFIELD_MEDIA_ALT_CHECK_LABEL'); -Text::script('JFIELD_MEDIA_ALT_CHECK_DESC_LABEL'); -Text::script('JFIELD_MEDIA_CLASS_LABEL'); -Text::script('JFIELD_MEDIA_FIGURE_CLASS_LABEL'); -Text::script('JFIELD_MEDIA_FIGURE_CAPTION_LABEL'); -Text::script('JFIELD_MEDIA_LAZY_LABEL'); -Text::script('JFIELD_MEDIA_SUMMARY_LABEL'); -Text::script('JFIELD_MEDIA_EMBED_CHECK_DESC_LABEL'); -Text::script('JFIELD_MEDIA_DOWNLOAD_CHECK_DESC_LABEL'); -Text::script('JFIELD_MEDIA_DOWNLOAD_CHECK_LABEL'); -Text::script('JFIELD_MEDIA_EMBED_CHECK_LABEL'); -Text::script('JFIELD_MEDIA_WIDTH_LABEL'); -Text::script('JFIELD_MEDIA_TITLE_LABEL'); -Text::script('JFIELD_MEDIA_HEIGHT_LABEL'); -Text::script('JFIELD_MEDIA_UNSUPPORTED'); -Text::script('JFIELD_MEDIA_DOWNLOAD_FILE'); -Text::script('JLIB_APPLICATION_ERROR_SERVER'); -Text::script('JLIB_FORM_MEDIA_PREVIEW_EMPTY', true); - -$modalHTML = HTMLHelper::_( - 'bootstrap.renderModal', - 'imageModal_' . $id, - [ - 'url' => $url, - 'title' => Text::_('JLIB_FORM_CHANGE_IMAGE'), - 'closeButton' => true, - 'height' => '100%', - 'width' => '100%', - 'modalWidth' => '80', - 'bodyHeight' => '60', - 'footer' => '' - . '', - ] -); - -$wam->useStyle('webcomponent.field-media') - ->useScript('webcomponent.field-media'); - -if (count($doc->getScriptOptions('media-picker')) === 0) { - $doc->addScriptOptions('media-picker', [ - 'images' => $imagesExt, - 'audios' => $audiosExt, - 'videos' => $videosExt, - 'documents' => $documentsExt, - ]); -} - -?> - - base-path="" root-folder="get('file_path', 'images'); ?>" url="" modal-container=".modal" modal-width="100%" modal-height="400px" input=".field-media-input" button-select=".button-select" button-clear=".button-clear" button-save-selected=".button-save-selected" preview="static" preview-container=".field-media-preview" preview-width="" preview-height="" supported-extensions=" $imagesAllowedExt, 'audios' => $audiosAllowedExt, 'videos' => $videosAllowedExt, 'documents' => $documentsAllowedExt])); ?>"> - - -
- - -
- -
- > - - - - -
-
- - - diff --git a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/params/aggpxtrack.xml b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/params/aggpxtrack.xml index 0565600..5ca08b4 100644 --- a/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/params/aggpxtrack.xml +++ b/j4/pkg_aggpxtrack/src/plugins/fields/aggpxtrack/params/aggpxtrack.xml @@ -2,12 +2,24 @@
- - - - + + - + + +