Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a little cleanup and SVG optmi. #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/Hooks/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Label
*/
public function getNewsLabel(array &$params)
{
$type = (is_array($params['row']['type'])) ? $params['row']['type'][0] : $params['row']['type'];
$type = (\is_array($params['row']['type'])) ? $params['row']['type'][0] : $params['row']['type'];
if ((int)$type === 7) {
$date = (int)$params['row']['datetime'] > 0 ? $params['row']['datetime'] : $GLOBALS['EXEC_TIME'];

Expand Down
1 change: 1 addition & 0 deletions Classes/Hooks/RecordListQueryHook.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace GeorgRinger\NewsRecurring\Hooks;
Expand Down
1 change: 1 addition & 0 deletions Configuration/Extbase/Persistence/Classes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

return [
Expand Down
7 changes: 3 additions & 4 deletions Configuration/TCA/Overrides/tx_news_domain_model_news.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}

defined('TYPO3_MODE') or die();

$columns = [
'recurring_parent' => [
Expand Down Expand Up @@ -61,7 +60,7 @@
$GLOBALS['TCA']['tx_news_domain_model_news']['columns']['type']['config']['items'][] = ['Recurring', 7];

$GLOBALS['TCA']['tx_news_domain_model_news']['types'][7] = [
'showitem' => 'l10n_parent, l10n_diffsource,type,datetime'
'showitem' => 'l10n_parent,l10n_diffsource,type,datetime'
];

$GLOBALS['TCA']['tx_news_domain_model_news']['ctrl']['formattedLabel_userFunc'] = \GeorgRinger\NewsRecurring\Hooks\Label::class . '->getNewsLabel';
Expand Down
6 changes: 3 additions & 3 deletions Resources/Public/Icons/Extension.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 37 additions & 39 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
{
"name": "georgringer/news-recurring",
"keywords": [
"TYPO3",
"extension",
"news",
"tx-news",
"recurring"
],
"authors": [
{
"name": "Georg Ringer",
"role": "Developer",
"homepage": "http://ringer.it"
}
],
"type": "typo3-cms-extension",
"description": "Add possibilities for galleries in a news record",
"homepage": "https://ringer.it",
"license": [
"GPL-2.0+"
],
"require": {
"georgringer/news": "^8.4 || ^9",
"typo3/cms-core": "^10 || ^11"
},
"autoload": {
"psr-4": {
"GeorgRinger\\NewsRecurring\\": "Classes"
}
},
"replace": {
"news_recurring": "self.version",
"typo3-ter/news-recurring": "self.version"
},
"extra": {
"typo3/cms": {
"extension-key": "news_recurring"
}
}
"name": "georgringer/news-recurring",
"type": "typo3-cms-extension",
"description": "Add possibilities for galleries in a news record",
"keywords": [
"TYPO3",
"extension",
"news",
"tx-news",
"recurring"
],
"homepage": "https://ringer.it",
"authors": [
{
"name": "Georg Ringer",
"role": "Developer",
"homepage": "https://ringer.it"
}
],
"license": ["GPL-2.0+"],
"require": {
"georgringer/news": "^8.4 || ^9",
"typo3/cms-core": "^10 || ^11"
},
"autoload": {
"psr-4": {
"GeorgRinger\\NewsRecurring\\": "Classes"
}
},
"replace": {
"news_recurring": "self.version",
"typo3-ter/news-recurring": "self.version"
},
"extra": {
"typo3/cms": {
"extension-key": "news_recurring"
}
}
}
5 changes: 2 additions & 3 deletions ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}

defined('TYPO3_MODE') or die();

// Hook to filter recurring events in the list module
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::class]['modifyQuery'][]
Expand Down