diff --git a/pages.php b/pages.php index 4951373..f0e65d0 100644 --- a/pages.php +++ b/pages.php @@ -23,6 +23,9 @@ define("PAGES", [ "editpub" => [ "title" => "edit publication", "navbar" => false, + "styles" => [ + "static/css/themeselector.css" + ], "scripts" => [ "static/js/editpub.js" ], diff --git a/pages/editpub.php b/pages/editpub.php index 1e9fe15..4c45827 100644 --- a/pages/editpub.php +++ b/pages/editpub.php @@ -1,5 +1,4 @@
-

+

+ + htmlspecialchars($pubdata['name']), 'npub' => "" . htmlspecialchars($pubdata['name']) . ""]); ?> + + "" . htmlspecialchars($pubdata['name']) . ""]); ?> - htmlspecialchars($pubdata['name']), 'npub' => "" . htmlspecialchars($pubdata['name']) . ""]); ?> - - "" . htmlspecialchars($pubdata['name']) . ""]); ?> - - - -

+ + +
@@ -75,28 +74,57 @@ if (!is_empty($VARS['id'])) {
-
-
-
- - -
-
-
+ $themecsscolors .= $info['colors'][$i] . " " . (($i) / $totalcolors * 100) . "%,\n"; + $themecsscolors .= $info['colors'][$i] . " " . (($i + 1) / $totalcolors * 100) . "%"; + if ($i != $totalcolors - 1) { + $themecsscolors .= ",\n"; + } + } + ?> + +
@@ -124,7 +152,7 @@ if (!is_empty($VARS['id'])) {
- +