inital template
This commit is contained in:
47
sources/sides.php
Normal file
47
sources/sides.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
#=========================
|
||||
#
|
||||
# name: sides.php
|
||||
# version: 2.1.0
|
||||
# from: 2021-01-23
|
||||
# developer: 4nima
|
||||
# tested with: nginx, php7
|
||||
# requirements: php, jQuery, ajax
|
||||
#
|
||||
#=========================
|
||||
# sides control
|
||||
# navbar control
|
||||
#
|
||||
#=========================
|
||||
|
||||
#> Side control
|
||||
if (isset($_GET['page1'])) {
|
||||
$side = 'page1.php';
|
||||
$sideTitle = 'Page1';
|
||||
} elseif (isset($_GET['page2'])) {
|
||||
$side = 'page2.php';
|
||||
$sideTitle = 'Page2';
|
||||
} else {
|
||||
$side = 'default.php';
|
||||
$sideTitle = 'TITLE';
|
||||
}
|
||||
|
||||
#> Navbar control
|
||||
$navbar = array(
|
||||
array("Link1", "https://"),
|
||||
array("Link2", "https://"),
|
||||
array("Dropdown1", array(
|
||||
array("Dlink1", "https://"),
|
||||
array("Dlink2", "https://"),
|
||||
array("---"),
|
||||
array("Dlink3", "https://")
|
||||
)
|
||||
),
|
||||
array("Dropdown2", array(
|
||||
array("Dlink4", "https://"),
|
||||
array("Dlink5", "https://")
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user