Skip to content

Instantly share code, notes, and snippets.

@LinZap
Created July 30, 2020 10:44
Show Gist options
  • Save LinZap/a41f38583fdb5dbfe1c06ff5822c470d to your computer and use it in GitHub Desktop.
Save LinZap/a41f38583fdb5dbfe1c06ff5822c470d to your computer and use it in GitHub Desktop.
Add a page to config file
<?php
//CONFIGURATION for SmartAdmin UI
//ribbon breadcrumbs config
//array("Display Name" => "URL");
$breadcrumbs = array(
"Home" => APP_URL
);
$page_nav = array(
"dashboard" => array(
"title" => "TEST_MENU",
"icon" => "fa-home",
"sub" => array(
"analytics" => array(
"title" => "網智網頁",
"url" => "2.php"
),
"social" => array(
"title" => "自己Local網頁",
"url" => "1.php"
)
)
),
);
//configuration variables
$page_title = "";
$page_css = array();
$no_main_header = false; //set true for lock.php and login.php
$page_body_prop = array(); //optional properties for <body>
$page_html_prop = array(); //optional properties for <html>
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment