From 2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 18 Oct 2022 08:59:09 +0200 Subject: Update --- pages/actions.inc | 2 ++ pages/dashboard.inc | 30 +++++++++++++++--------------- pages/docs.inc | 30 +++++++++++++++++++++++++----- pages/home.inc | 2 +- pages/splitting.inc | 2 +- pages/toys.inc | 2 ++ 6 files changed, 46 insertions(+), 22 deletions(-) (limited to 'pages') diff --git a/pages/actions.inc b/pages/actions.inc index 527b336..eb83f16 100644 --- a/pages/actions.inc +++ b/pages/actions.inc @@ -194,6 +194,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/keywords.inc'; if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/actions/actions.json")) file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/actions/actions.json", "[]"); global $_PROFILE; +global $pagename; +$parts = explode("/", $pagename); ?> diff --git a/pages/dashboard.inc b/pages/dashboard.inc index 59396e5..07a75e8 100644 --- a/pages/dashboard.inc +++ b/pages/dashboard.inc @@ -112,15 +112,15 @@ $viewingPonyHasSex = in_array($fronter, $poniesHavingSex) || isset($_GET['toys'] $id): $member = getMemberWithoutSystem($id[0]); ?>
  • - Merged members + Merged members - " style="width:24px; height: 24px; vertical-align: middle;"> + " style="height: 24px; vertical-align: middle;"> - and " style="width:24px; height: 24px; vertical-align: middle;"> + and " style="height: 24px; vertical-align: middle;"> - with " style="width:24px; height: 24px; vertical-align: middle;"> - and " style="width:24px; height: 24px; vertical-align: middle;"> + with " style="height: 24px; vertical-align: middle;"> + and " style="height: 24px; vertical-align: middle;">
  • @@ -131,15 +131,15 @@ $viewingPonyHasSex = in_array($fronter, $poniesHavingSex) || isset($_GET['toys'] $id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?>
  • - Merged members + Merged members - " style="width:24px; height: 24px; vertical-align: middle;"> + " style="height: 24px; vertical-align: middle;"> - and " style="width:24px; height: 24px; vertical-align: middle;"> + and " style="height: 24px; vertical-align: middle;"> - with " style="width:24px; height: 24px; vertical-align: middle;"> - and " style="width:24px; height: 24px; vertical-align: middle;"> + with " style="height: 24px; vertical-align: middle;"> + and " style="height: 24px; vertical-align: middle;">
  • @@ -150,15 +150,15 @@ $viewingPonyHasSex = in_array($fronter, $poniesHavingSex) || isset($_GET['toys'] $id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?>
  • - Merged members + Merged members - " style="width:24px; height: 24px; vertical-align: middle;"> + " style="height: 24px; vertical-align: middle;"> - and " style="width:24px; height: 24px; vertical-align: middle;"> + and " style="height: 24px; vertical-align: middle;"> - with " style="width:24px; height: 24px; vertical-align: middle;"> - and " style="width:24px; height: 24px; vertical-align: middle;"> + with " style="height: 24px; vertical-align: middle;"> + and " style="height: 24px; vertical-align: middle;">
  • diff --git a/pages/docs.inc b/pages/docs.inc index f893e95..0322f32 100644 --- a/pages/docs.inc +++ b/pages/docs.inc @@ -57,6 +57,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; ยท Saved

    + = 0 && $data["last"]["author"] !== $_PROFILE["login"]): ?> +
    + This document is currently in use by . It has been open in read-only to prevent conflicts with the changes they make. If they stopped editing the document, it will become editable for you after you refresh the page in minute 1 ? "s" : "" ?>. +
    + + @@ -112,6 +118,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; .ck-editor__editable { border-color: transparent !important; } + + .ck.ck-sticky-panel__content_sticky { + top: 59px !important; + } +

    Documents

    @@ -210,11 +221,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; return strip_tags($i["contents"]) !== "/delete"; })); + $categoryFirst = []; $unsorted = []; $categories = []; foreach ($unsorted_pre as $item) { if (isset($item["category"])) { - $existing_categories = array_keys($categories); + $existing_categories = [...array_keys($categories), ...array_keys($categoryFirst)]; $matched_category = null; foreach ($existing_categories as $existing_category) { @@ -224,8 +236,14 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; } $selected_category = $matched_category ?? $item["category"]; - if (!isset($categories[$selected_category])) $categories[$selected_category] = []; - $categories[$selected_category][] = $item; + + if (str_starts_with($item["category"], ".")) { + if (!isset($categoryFirst[$selected_category])) $categoryFirst[$selected_category] = []; + $categoryFirst[$selected_category][] = $item; + } else { + if (!isset($categories[$selected_category])) $categories[$selected_category] = []; + $categories[$selected_category][] = $item; + } } else { $unsorted[] = $item; } @@ -239,10 +257,12 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; return $b["last"]["date"] - $a["last"]["date"]; }); + $fullList = [...$categoryFirst, ...$categories]; + ?> - $items): ?> -

    + $items): ?> +

    " id="document-" class="list-group-item list-group-item-action document-listing opacity-75">   diff --git a/pages/home.inc b/pages/home.inc index 4f4b0f6..54426a9 100644 --- a/pages/home.inc +++ b/pages/home.inc @@ -19,7 +19,7 @@

    -
    " data-bs-toggle="tooltip" style="overflow: hidden;" href="/">" style="width:32px;height:32px;position:absolute;z-index:99;">
    +
    " data-bs-toggle="tooltip" style="overflow: hidden;" href="/">" style="height:32px;position:absolute;z-index:99;">

    diff --git a/pages/splitting.inc b/pages/splitting.inc index 1ea2d70..81571a6 100644 --- a/pages/splitting.inc +++ b/pages/splitting.inc @@ -14,7 +14,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; }); foreach ($members as $member): ?>
    "> - " style="width:24px;">  + " style="width:24px;"> 
    diff --git a/pages/toys.inc b/pages/toys.inc index 8e9ba57..9032944 100644 --- a/pages/toys.inc +++ b/pages/toys.inc @@ -188,6 +188,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/keywords.inc'; if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/toys/toys.json")) file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/toys/toys.json", "[]"); global $_PROFILE; +global $pagename; +$parts = explode("/", $pagename); ?> -- cgit