diff --git a/libraries/Controllers/Settings/AppearanceController.php b/libraries/Controllers/Settings/AppearanceController.php index ceda9ba..38a8541 100644 --- a/libraries/Controllers/Settings/AppearanceController.php +++ b/libraries/Controllers/Settings/AppearanceController.php @@ -33,7 +33,7 @@ class AppearanceController extends Controller return Template::render('global/information'); } - return $this->go('appearance.avatar'); + return Template::render('settings/appearance/avatar'); } public function background() @@ -48,7 +48,7 @@ class AppearanceController extends Controller return Template::render('global/information'); } - return $this->go('appearance.background'); + return Template::render('settings/appearance/background'); } public function header() diff --git a/sakura.php b/sakura.php index 3f199b1..f7b7cf2 100644 --- a/sakura.php +++ b/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', 20160402); +define('SAKURA_VERSION', 20160408); // Define Sakura Path define('ROOT', __DIR__ . '/'); diff --git a/templates/yuuno/global/master.twig b/templates/yuuno/global/master.twig index 233cc79..d310140 100644 --- a/templates/yuuno/global/master.twig +++ b/templates/yuuno/global/master.twig @@ -261,7 +261,6 @@ } {% if config('dev.show_changelog', true) and stats %} - {% endif %} diff --git a/templates/yuuno/settings/appearance/avatar.twig b/templates/yuuno/settings/appearance/avatar.twig new file mode 100644 index 0000000..95b1b13 --- /dev/null +++ b/templates/yuuno/settings/appearance/avatar.twig @@ -0,0 +1,27 @@ +{% extends 'settings/appearance/master.twig' %} + +{% set mode = 'Avatar' %} + +{% block description %} +

Maximum image size is {{ config('avatar_max_width') }}x{{ config('avatar_max_height') }}, minimum image size is {{ config('avatar_min_width') }}x{{ config('avatar_min_height') }}, maximum file size is {{ config('avatar_max_fsize')|byte_symbol }}.

+{% endblock %} + +{% block settingsContent %} +
+ +
+
+ Your Avatar +
+
+ +
+ (Leave upload box empty to remove avatar) +
+
+
+ +
+
+
+{% endblock %} diff --git a/templates/yuuno/settings/appearance/background.twig b/templates/yuuno/settings/appearance/background.twig new file mode 100644 index 0000000..1f452b9 --- /dev/null +++ b/templates/yuuno/settings/appearance/background.twig @@ -0,0 +1,27 @@ +{% extends 'settings/appearance/master.twig' %} + +{% set mode = 'Background' %} + +{% block description %} +

Maximum image size is {{ config('background_max_width') }}x{{ config('background_max_height') }}, minimum image size is {{ config('background_min_width') }}x{{ config('background_min_height') }}, maximum file size is {{ config('background_max_fsize')|byte_symbol }}.

+{% endblock %} + +{% block settingsContent %} +
+ +
+
+ Your Background +
+
+ +
+ (Leave upload box empty to remove background) +
+
+
+ +
+
+
+{% endblock %}