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')) { ?>