4 lines
3.1 KiB
JSON
4 lines
3.1 KiB
JSON
{
|
|
"NAVBAR":"<?php \r\nif (isset($_SESSION['user_id'])){ \r\n\t$login = true;\r\n} else { \r\n\t$login = false;\r\n}\r\n?>\r\n\r\n<ul class=\"topnav\">\r\n\t<li>\r\n\t\t<?php \r\n\t\t\tif ($login){\r\n\t\t\t\tif ($navbar == \"home\"){\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a class=\\\"active\\\" href=\\\"%CONTENT_DIR%\/userhome\/\\\">\r\n\t\t\t\t\t\t\t<img src=\\\"\/common\/threadr\/img\/ThreadR_Home.svg\\\" alt=\\\"My Feed\\\"\/>\r\n\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/userhome\/\\\">\r\n\t\t\t\t\t\t\t<img src=\\\"\/common\/threadr\/img\/ThreadR_Home.svg\\\" alt=\\\"My Feed\\\"\/>\r\n\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t} else { \r\n\t\t\t\tif ($navbar == \"home\"){\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a class=\\\"active\\\" href=\\\"%CONTENT_DIR%\/\\\">\r\n\t\t\t\t\t\t\t<img src=\\\"\/common\/threadr\/img\/ThreadR_Home.svg\\\" alt=\\\"Home\\\"\/>\r\n\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/\\\">\r\n\t\t\t\t\t\t\t<img src=\\\"\/common\/threadr\/img\/ThreadR_Home.svg\\\" alt=\\\"Home\\\"\/>\r\n\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t?>\r\n\t<\/li>\r\n <li>\r\n\t\t<?php \r\n\t\t\tif ($navbar == \"news\"){\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a class=\\\"active\\\" href=\\\"%CONTENT_DIR%\/news\/\\\">News<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/news\/\\\">News<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t?>\r\n\t<\/li>\r\n <div class=\"dropdown\">\r\n\t\t<button class=\"dropbtn\">Boards<\/button>\r\n\t\t<div class=\"dropdown-content\">\r\n\t\t\t<a href=\"%CONTENT_DIR%\/boards\/\">Board 1<\/a>\r\n\t\t\t<a href=\"#\">Board 2<\/a>\r\n\t\t\t<a href=\"#\">Board 3<\/a>\r\n\t\t<\/div>\r\n\t<\/div>\r\n <li>\r\n\t\t<?php \r\n\t\t\tif ($navbar == \"about\"){\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a class=\\\"active\\\" href=\\\"%CONTENT_DIR%\/about\/\\\">About<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/about\/\\\">About<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t?>\r\n\t<\/li>\r\n\t<li class=\"right\">\r\n\t\t<?php \r\n\t\t\tif ($login) { \r\n\t\t\t\tif ($navbar == \"profile\") {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a class=\\\"active\\\" href=\\\"%CONTENT_DIR%\/profile\/\\\">Profile<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/profile\/\\\">Profile<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t?>\r\n\t<\/li>\r\n\t<li class=\"right\">\r\n\t\t<?php \r\n\t\t\tif ($login) { \r\n\t\t\t\techo \"\r\n\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/logout\/\\\">Log out<\/a>\r\n\t\t\t\t\";\r\n\t\t\t} else { \r\n\t\t\t\tif ($navbar == \"login\") {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a class=\\\"active\\\" href=\\\"%CONTENT_DIR%\/login\/\\\">Log in<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \"\r\n\t\t\t\t\t\t<a href=\\\"%CONTENT_DIR%\/login\/\\\">Log in<\/a>\r\n\t\t\t\t\t\";\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t?>\r\n\t<\/li>\r\n<\/ul>\r\n<br \/>\r\n\r\n"
|
|
}
|