Updates from hell
This commit is contained in:
@@ -87,4 +87,24 @@ class Output {
|
|||||||
$class->setView($instance->view)->render();
|
$class->setView($instance->view)->render();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function addMenu($route, $name, $icon = '', $attributes = [], $weight = 0){
|
||||||
|
global $SIDEBAR;
|
||||||
|
$SIDEBAR->add($route, $name, $icon, $attributes, $weight);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function addSubmenu($key, $name, $icon = '', $attributes = [], $weight = 0){
|
||||||
|
global $SIDEBAR;
|
||||||
|
$SIDEBAR->create_submenu($key, $name, $icon, $attributes , $weight);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function addOnSubmenu($key, $route, $name, $icon = '', $attributes = [], $weight = 0){
|
||||||
|
global $SIDEBAR;
|
||||||
|
$SIDEBAR->add_on_new($key, $route, $name, $icon, $attributes, $weight);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function icon($icon){
|
||||||
|
return "<i class='$icon' aria-hidden='true'></i>";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,19 +7,17 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<!-- Sidebar -->
|
|
||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
<nav id="sidebar-wrapper">
|
<nav id="sidebar-wrapper">
|
||||||
<div class="logo" style="">
|
<div class="logo" style="">
|
||||||
<img src='/media/logo_white.png' alt="logo" />
|
<img src='/media/logo_white.png' alt="logo" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="search-nav" style="">
|
<div class="search-nav" style="">
|
||||||
<input class="form-control" type="text" placeholder="Busca"/>
|
<input class="form-control" type="text" placeholder="Busca"/>
|
||||||
</div> -->
|
</div>
|
||||||
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
{{elements}}
|
{{elements}}
|
||||||
|
|
||||||
<ul id="side-second-menu" class="hidden nav">
|
<ul id="side-second-menu" class="hidden nav">
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
@@ -29,7 +27,8 @@
|
|||||||
<!-- Page Content -->
|
<!-- Page Content -->
|
||||||
<div id="main-page-wrapper">
|
<div id="main-page-wrapper">
|
||||||
|
|
||||||
<header style='min-height: 50px; background-color: #000;'>
|
<header class='navbar navbar-default navbar-fixed-top' style='min-height: 50px; background-color: #000;'>
|
||||||
|
|
||||||
<ul class="nav navbar-nav navbar-left">
|
<ul class="nav navbar-nav navbar-left">
|
||||||
<li class="tooltip-sidebar-toggle">
|
<li class="tooltip-sidebar-toggle">
|
||||||
<a href="" id="menu-toggle">
|
<a href="" id="menu-toggle">
|
||||||
@@ -37,21 +36,31 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<!-- <ul id='menu-usuario' class="nav navbar-nav navbar-right nav-dropdown">
|
|
||||||
<li class="dropdown">
|
<ul class="nav navbar-top-links navbar-right">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" data-method="reload">
|
<!--{{usermenu}}-->
|
||||||
<i class="fa fa-user" aria-hidden="true"></i> <span class="caret"></span>
|
<li class="nav-item dropdown no-arrow">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
<i class="fa fa-user fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
{{usermenu}}
|
<div class="dropdown-menu dropdown-menu-right" >
|
||||||
|
<a class="dropdown-item" href="#">Profile</a>
|
||||||
|
<a class="dropdown-item" href="#"><i class=""></i>Settings</a>
|
||||||
|
<a class="dropdown-item" href="#"><i class=""></i>Activity Log</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item" href="#" ><i class=""></i>Logout</a>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul> -->
|
</ul>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="progress" class="progress hidden" >
|
<div id="progress" class="progress hidden" >
|
||||||
<div class="progress-bar progress-bar-striped progress-bar-animated active" style="width: 100%;"></div>
|
<div class="progress-bar progress-bar-striped progress-bar-animated active" style="width: 100%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- BreadCrumbs -->
|
|
||||||
|
|
||||||
|
<!-- BreadCrumbs -->
|
||||||
|
<div class='breadcrumb'>{{breadcrumb}}</div>
|
||||||
<!-- /BreadCrumbs -->
|
<!-- /BreadCrumbs -->
|
||||||
|
|
||||||
<div id="page-content-wrapper">
|
<div id="page-content-wrapper">
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use RR\Response as R;
|
||||||
|
|
||||||
|
class WellcomeController{
|
||||||
|
|
||||||
|
function welcome(){
|
||||||
|
R::json(Array('message' => Lang::getString('welcome', 'welcome')))->send()->done();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Vendored
+48
-28
@@ -34,6 +34,7 @@ body{
|
|||||||
/*
|
/*
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
textarea{
|
textarea{
|
||||||
resize: vertical;
|
resize: vertical;
|
||||||
min-height: 200px
|
min-height: 200px
|
||||||
@@ -55,6 +56,13 @@ textarea{
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* BreadCrumbs -------------------------------- */
|
||||||
|
|
||||||
|
.breadcrumb{
|
||||||
|
width:100%;
|
||||||
|
background-color:#ddd;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
_____ _____ _____ ______ ____ _____
|
_____ _____ _____ ______ ____ _____
|
||||||
/ ____|_ _| __ \| ____| _ \ /\ | __ \
|
/ ____|_ _| __ \| ____| _ \ /\ | __ \
|
||||||
@@ -78,7 +86,6 @@ textarea{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#sidebar-wrapper {
|
#sidebar-wrapper {
|
||||||
/*z-index: 1000;*/
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 250px;
|
left: 250px;
|
||||||
width: 0;
|
width: 0;
|
||||||
@@ -107,9 +114,12 @@ textarea{
|
|||||||
margin-right: -250px;
|
margin-right: -250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
.nav-item .in{
|
||||||
-------------------------------------------------------
|
display: block !important;
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------------------- */
|
||||||
.logo{
|
.logo{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
@@ -118,31 +128,40 @@ textarea{
|
|||||||
.logo > img {
|
.logo > img {
|
||||||
width:50%;
|
width:50%;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
-------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*-------------------------------------------------------*/
|
||||||
-------------------------------------------------------
|
|
||||||
*/
|
|
||||||
.search-nav{
|
.search-nav{
|
||||||
padding: 10px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom:15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-nav > input{
|
.search-nav > input{
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 95%;
|
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
-------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
#side-second-menu{
|
||||||
*-----------------------------------------------------
|
display:none;
|
||||||
*Sidebar responsiveness
|
}
|
||||||
*/
|
|
||||||
|
#side-menu li, #side-second-menu li{
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu li a, #side-second-menu li a{
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu li i, #side-second-menu li i{
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown{
|
||||||
|
margin-right: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sidebar responsiveness */
|
||||||
@media(min-width:768px) {
|
@media(min-width:768px) {
|
||||||
#wrapper {
|
#wrapper {
|
||||||
padding-left: 250px;
|
padding-left: 250px;
|
||||||
@@ -171,15 +190,7 @@ textarea{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Header ---------------------------*/
|
||||||
_ _ ______ ^ _____ ______ _____
|
|
||||||
| | | | ____| / \ | __ \| ____| __ \
|
|
||||||
| |__| | |__ / \ | | | | |__ | |__) |
|
|
||||||
| __ | __| / /_\ \ | | | | __| | _ /
|
|
||||||
| | | | |____ / _____ \| |__| | |____| | \ \
|
|
||||||
|_| |_|______/_/ \_\_____/|______|_| \_\
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#navbar-top{
|
#navbar-top{
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
@@ -203,6 +214,10 @@ textarea{
|
|||||||
|
|
||||||
/* HELPER ---------------------------- */
|
/* HELPER ---------------------------- */
|
||||||
|
|
||||||
|
.hidden{
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
.round-ball{
|
.round-ball{
|
||||||
border-radius: 60px !important;
|
border-radius: 60px !important;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
@@ -211,3 +226,8 @@ textarea{
|
|||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
#sidebar-wrapper, #header{ display: none !important; }
|
||||||
|
#wrapper { padding-left: 0px; }
|
||||||
|
}
|
||||||
+12
-17
@@ -1,29 +1,24 @@
|
|||||||
|
#side-menu li a, #side-second-menu li a{
|
||||||
|
color: #ffffff;
|
||||||
#side-menu li a{
|
|
||||||
color: #fff !important;
|
|
||||||
font-size: 1.1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-wrapper{
|
#side-menu li a:focus,
|
||||||
|
#side-menu li a:hover,
|
||||||
}
|
#side-second-menu li a:focus,
|
||||||
|
#side-second-menu li a:hover
|
||||||
#side-menu li a:focus, #side-menu li a:hover {
|
{
|
||||||
color: #000 !important;
|
color: #000000 !important;
|
||||||
}
|
background-color: #fff !important;
|
||||||
|
|
||||||
.nav-dropdown{
|
|
||||||
margin-right: 20px !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown .dropdown-toggle{
|
.nav-dropdown .dropdown-toggle{
|
||||||
color: #fff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown .dropdown-toggle:focus,
|
.nav-dropdown .dropdown-toggle:focus,
|
||||||
.nav-dropdown .dropdown-toggle > l1 > a:focus,
|
.nav-dropdown .dropdown-toggle > l1 > a:focus,
|
||||||
.nav-dropdown .dropdown-toggle:hover,
|
.nav-dropdown .dropdown-toggle:hover,
|
||||||
.nav-dropdown .dropdown-toggle > l1 > a:hover{
|
.nav-dropdown .dropdown-toggle > l1 > a:hover{
|
||||||
color: #000 !important;
|
color: #000000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-3
File diff suppressed because one or more lines are too long
+6
-6
File diff suppressed because one or more lines are too long
+1
-1
@@ -16,7 +16,7 @@ spl_autoload_register(function ($class_name) {
|
|||||||
return include strtolower($path . $fileName . '.php');
|
return include strtolower($path . $fileName . '.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
include $path . $fileName . '.php';
|
@include $path . $fileName . '.php';
|
||||||
});
|
});
|
||||||
|
|
||||||
class Connection {
|
class Connection {
|
||||||
|
|||||||
Reference in New Issue
Block a user