Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from Markus-GS/master
Browse files Browse the repository at this point in the history
Bug 47 fixed, PHP version requirement fixed
  • Loading branch information
Markus-GS authored Apr 1, 2020
2 parents 1abe403 + 5c81d22 commit ff085e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Alle hier gesetzten Werte können über $addon->getProperty($key) abgefragt werden

package: newsmanager
version: '1.2.0'
version: '1.2.1'
author: Friends Of REDAXO
supportpage: https://github.com/FriendsOfREDAXO/newsmanager/

Expand All @@ -17,6 +17,6 @@ page:
requires:
redaxo: '^5.4' # benötigt mindestens REDAXO 5.4
packages:
url: ^1.0.0-beta5 # benötig Addon Url
url: ^1.0.0 # benötig Addon Url
php:
version: '^5.6' # benötigt mindestens PHP 5.6
version: '>=5.6' # benötigt mindestens PHP 5.6
21 changes: 10 additions & 11 deletions pages/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,17 @@ function generateHelpTextMarkup ($form, $fieldName, $i18n_key_helptext) {
$list->setColumnFormat('createdate', 'date', 'd.m.Y, G:i');
$list->setColumnSortable('createdate');

$list->setColumnFormat('status', 'custom',
create_function(
'$params',
'global $I18N;
$list = $params["list"];
if ($list->getValue("status") == 1)
$str = "<a class=\"no-wrap\" href=\"index.php?page=newsmanager/main&clang_id='.$clang_id.'&func=status&pid=###pid###\"><span class=\"rex-online\"><i class=\"rex-icon rex-icon-online\"></i> ".rex_i18n::msg("newsmanager_online")."</span></a>";
else
$str = "<a class=\"no-wrap\" href=\"index.php?page=newsmanager/main&clang_id='.$clang_id.'&func=status&pid=###pid###\"><span class=\"rex-offline\"><i class=\"rex-icon rex-icon-offline\"></i> ".rex_i18n::msg("newsmanager_offline")."</span></a>";
return $str;'
)
$list->setColumnFormat('status', 'custom', function ($params) {
global $I18N;
$list = $params['list'];
if ($list->getValue("status") == 1)
$str = "<a class=\"no-wrap\" href=\"index.php?page=newsmanager/main&clang_id='.$clang_id.'&func=status&pid=###pid###\"><span class=\"rex-online\"><i class=\"rex-icon rex-icon-online\"></i> ".rex_i18n::msg("newsmanager_online")."</span></a>";
else
$str = "<a class=\"no-wrap\" href=\"index.php?page=newsmanager/main&clang_id='.$clang_id.'&func=status&pid=###pid###\"><span class=\"rex-offline\"><i class=\"rex-icon rex-icon-offline\"></i> ".rex_i18n::msg("newsmanager_offline")."</span></a>";
return $str;
}
);



$list->setColumnLabel('status', 'Status');
Expand Down

0 comments on commit ff085e3

Please sign in to comment.