diff --git a/config/config.php b/config/config.php index 163db7b..f3081fe 100644 --- a/config/config.php +++ b/config/config.php @@ -13,8 +13,8 @@ class Config extends \Ilch\Config\Install { public $config = [ 'key' => 'radiohoerercharts', - 'version' => '1.7.0', - 'icon_small' => 'fa-list-ol', + 'version' => '1.8.0', + 'icon_small' => 'fa-solid fa-list-ol', 'author' => 'Reilard, Dennis alias hhunderter', 'link' => 'https://github.com/hhunderter/radiohoerercharts', 'official' => false, @@ -28,8 +28,8 @@ class Config extends \Ilch\Config\Install 'description' => 'Here you can manage your Listener Charts.', ], ], - 'ilchCore' => '2.1.41', - 'phpVersion' => '7.0', + 'ilchCore' => '2.1.52', + 'phpVersion' => '7.3', ]; public function install() @@ -164,7 +164,7 @@ public function getUpdate($installedVersion) $databaseConfig->set('radio_hoerercharts_Program_Name', 'Hörercharts'); $fields = [ 'author' => 'Reilard, Dennis alias hhunderter', - 'icon_small' => 'fa-list-ol' + 'icon_small' => 'fa-solid fa-list-ol' ]; $this->db()->update('modules') ->values($fields) @@ -320,6 +320,9 @@ public function getUpdate($installedVersion) ->values($fields) ->where(['key' => 'radiohoerercharts']) ->execute(); + case "1.7.0": + // Update icons for fontawesome 6 + $this->db()->query("UPDATE `[prefix]_modules` SET `icon_small` = '" . $this->config['icon_small'] . "' WHERE `key` = '" . $this->config['key'] . "';"); } return 'Update function executed.'; diff --git a/controllers/admin/Index.php b/controllers/admin/Index.php index fc4bd33..db296e0 100644 --- a/controllers/admin/Index.php +++ b/controllers/admin/Index.php @@ -25,19 +25,19 @@ public function init() [ 'name' => 'manage', 'active' => false, - 'icon' => 'fas fa-th-list', + 'icon' => 'fa-solid fa-table-list', 'url' => $this->getLayout()->getUrl(['controller' => 'index', 'action' => 'index']) ], [ 'name' => 'reset', 'active' => false, - 'icon' => 'fas fa-trash-alt', + 'icon' => 'fa-solid fa-trash-can', 'url' => $this->getLayout()->getUrl(['controller' => 'index', 'action' => 'reset']) ], [ 'name' => 'settings', 'active' => false, - 'icon' => 'fas fa-cogs', + 'icon' => 'fa-solid fa-gears', 'url' => $this->getLayout()->getUrl(['controller' => 'settings', 'action' => 'index']) ] ]; @@ -46,7 +46,7 @@ public function init() $items[0][0] = [ 'name' => 'add', 'active' => false, - 'icon' => 'fas fa-plus-circle', + 'icon' => 'fa-solid fa-circle-plus', 'url' => $this->getLayout()->getUrl(['controller' => 'index', 'action' => 'treat']) ]; if ($this->getRequest()->getActionName() == 'treat') { diff --git a/controllers/admin/Settings.php b/controllers/admin/Settings.php index 1e73d5d..446aeb3 100644 --- a/controllers/admin/Settings.php +++ b/controllers/admin/Settings.php @@ -17,19 +17,19 @@ public function init() [ 'name' => 'manage', 'active' => false, - 'icon' => 'fas fa-th-list', + 'icon' => 'fa-solid fa-table-list', 'url' => $this->getLayout()->getUrl(['controller' => 'index', 'action' => 'index']) ], [ 'name' => 'reset', 'active' => false, - 'icon' => 'fas fa-trash-alt', + 'icon' => 'fa-solid fa-trash-can', 'url' => $this->getLayout()->getUrl(['controller' => 'index', 'action' => 'reset']) ], [ 'name' => 'settings', 'active' => true, - 'icon' => 'fas fa-cogs', + 'icon' => 'fa-solid fa-gears', 'url' => $this->getLayout()->getUrl(['controller' => 'settings', 'action' => 'index']) ] ]; diff --git a/mappers/HoererCharts.php b/mappers/HoererCharts.php index 837f7b3..02beaf0 100644 --- a/mappers/HoererCharts.php +++ b/mappers/HoererCharts.php @@ -301,8 +301,8 @@ public function getStars(int $votes = 0, bool $showstars = false) } $stars = ''; - for ($i = 1; $i <= $starcount; $i++) $stars .= ''; - for ($i = 1; $i <= 5-$starcount; $i++) $stars .= ''; + for ($i = 1; $i <= $starcount; $i++) $stars .= ''; + for ($i = 1; $i <= 5-$starcount; $i++) $stars .= ''; } else { $stars = $votes; } diff --git a/translations/de.php b/translations/de.php index 08cc749..906e428 100644 --- a/translations/de.php +++ b/translations/de.php @@ -35,7 +35,7 @@ 'active' => 'Aktiv', 'active_list' => 'Aktive Liste', 'list' => 'Liste', - 'show_registered_by' => '"Eingetragen von" Info aneigen?', + 'show_registered_by' => '"Eingetragen von" Info anzeigen?', 'show_artwork' => 'Cover anzeigen', 'show_artworkText' => '', 'selectactive_list' => '', diff --git a/views/admin/index/index.php b/views/admin/index/index.php index 369b378..ba5b2c6 100644 --- a/views/admin/index/index.php +++ b/views/admin/index/index.php @@ -4,7 +4,7 @@ get('suggestion') && !$this->get('list')) { ?>
- getTrans('votedatetime') ?>get('votedatetime') ?> + getTrans('votedatetime') ?>get('votedatetime') ?>
@@ -114,7 +114,7 @@
    get('entries') as $entry) { ?> getId(), $listentries)) { ?> -
  1. getInterpret() ?> - getSongTitel() ?>
  2. +
  3. getInterpret() ?> - getSongTitel() ?>
@@ -168,13 +168,13 @@ getTrans('interpret') ?> - + getTrans('songtitel') ?> - + get('suggestion')) { @@ -182,7 +182,7 @@ getTrans('vote') ?> - + getTrans('datecreate') ?> - + getTrans('user') ?> - + @@ -212,13 +212,13 @@ get('suggestion')) { ?> - + - + diff --git a/views/admin/settings/index.php b/views/admin/settings/index.php index 1502ff1..a943eaf 100644 --- a/views/admin/settings/index.php +++ b/views/admin/settings/index.php @@ -205,7 +205,7 @@ class="form-control"
@@ -213,7 +213,7 @@ class="form-control"
diff --git a/views/admin/settings/votedatetime.php b/views/admin/settings/votedatetime.php index d2b1c2c..085318a 100644 --- a/views/admin/settings/votedatetime.php +++ b/views/admin/settings/votedatetime.php @@ -17,7 +17,7 @@ class="form-control" name="start_datetime" value="" /> - + @@ -34,7 +34,7 @@ class="form-control" name="end_datetime" value="" /> - + diff --git a/views/index/index.php b/views/index/index.php index 4ac5848..9d3553e 100644 --- a/views/index/index.php +++ b/views/index/index.php @@ -14,7 +14,7 @@
- getHtmlFromBBCode($this->escape($this->get('hoererchartsMapper')->getvotetext()))) ?> + purify($this->get('hoererchartsMapper')->getvotetext()) ?> getUser() and !$hoererchartsconfig['guestallow'])?'':$this->getTrans('votetextvote')) ?>

get('voted')) { ?> @@ -103,7 +103,7 @@ getUserById($entry->getUser_Id()); ?> - + @@ -190,7 +190,7 @@ getUserById($entry->getUser_Id()); ?> - + diff --git a/views/index/treat.php b/views/index/treat.php index 922f3ee..a51177b 100644 --- a/views/index/treat.php +++ b/views/index/treat.php @@ -48,7 +48,7 @@ class="form-control" document.getElementById('captcha').src='getUrl() ?>/application/libraries/Captcha/Captcha.php?'+Math.random(); document.getElementById('captcha-form').focus();" id="change-image"> - +