From a6a9b0fbd63495e03ab40172680d1eb1af569fc3 Mon Sep 17 00:00:00 2001 From: Thayol Date: Sat, 3 Jul 2021 23:59:08 +0200 Subject: [PATCH] Unified spacing --- index.php | 90 ++++++++----------------------------------------------- 1 file changed, 13 insertions(+), 77 deletions(-) diff --git a/index.php b/index.php index 3d34305..84f8ec6 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,16 @@ get_block_names(); - // $te->set_block("TITLE", $model->get_title()); - // $te->set_block("PREVIEW_WIDTH", $model->get_preview_width()); - // $te->set_block("PREVIEW_HEIGHT", $model->get_preview_height()); - // $te->set_block("PREVIEW_WIDTH_BORDER", $model->get_preview_width() + site_data::$border_size*2); - // $te->set_block("PREVIEW_HEIGHT_BORDER", $model->get_preview_height() + site_data::$border_size*2); - - // foreach ($model->get_border_colors() as $info) - // { - // $te->append_argumented_block("EXTRA_STYLES", "BORDER_COLOR_STYLE", [ - // "BORDER_CLASS" => $info["id"], - // "BORDER_COLOR" => $info["color"] - // ]); - // } - - // if ($model->get_mode() == "image" || $model->get_mode() == "collection_image") - // { - // $te->set_block_template("PREVIEW_MAIN_CLASS", "PREVIEW_SINGLE_CLASS"); - // } - - // if ($model->has_previews()) - // { - // $te->append_block_template("CONTENT", "PREVIEW_CONTAINER"); - // foreach ($model->get_contents() as $preview) - // { - // if (!isset($preview["class"])) $preview["class"] = ""; // should not be here - // $te->append_argumented_block("PREVIEWS", "PREVIEW", [ - // "PREVIEW_LINK" => $preview["link"], - // "PREVIEW_CLASS" => $preview["class"], - // "PREVIEW_IMAGE" => $preview["image"] - // ]); - // } - // } - // else - // { - // $te->append_block_template("CONTENT", "ITEM_CONTAINER"); - // foreach ($model->get_contents() as $item_id => $item) - // { - // if (isset($item["text"])) $text = $item["text"]; - // else if (isset($item["id"])) $text = $item["id"]; - // else $text = $item_id; - - // $te->append_argumented_block("ITEMS", "ITEM", [ - // "ITEM_LINK" => $item["link"], - // "ITEM_TEXT" => $text - // ]); - // } - // } - - // $link_categories = $model->get_navbar_links(); - // ksort($link_categories); // sort - // foreach ($link_categories as $key => $link_category) - // { - // foreach ($link_category as $key2 => $link) - // { - // if ($link["id"] == null) $link["id"] = $key . "-" . $key2; - - // if ($key == "hidden") $class = "hidden"; - // else $class = ""; - - // $te->append_argumented_block("NAVBAR_ITEMS", "NAVBAR_LINK", [ - // "NAVBAR_LINK_TEXT" => $link["text"], - // "NAVBAR_LINK_LINK" => $link["link"], - // "NAVBAR_LINK_CLASS" => $class, - // "NAVBAR_LINK_ID" => $link["id"] - // ]); - // } - // if ($key != array_key_last($link_categories)) - // $te->append_block_template("NAVBAR_ITEMS", "NAVBAR_SPACER"); - // } - - // echo $te->get_html(); -// } \ No newline at end of file