This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __autoload($class_name) { | |
$exp = explode("_", $class_name); | |
if(($exp_length = count($exp)) > 1){ | |
$file = ABSPATH . '/bases/lib/'; | |
foreach($exp as $key=>$val){ | |
if(($exp_length-1) == $key){ | |
$file .= $val.'.class.php'; | |
}else{ | |
$file .= $val.'/'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function load($file) { | |
$file = ABSPATH . '/bases/lib/' . $file; | |
if (!file_exists($file)) { | |
require_once ABSPATH . '/sistema/conteudo/erros/404.phtml'; | |
return; | |
} | |
// Inclui o arquivo da classe | |
require_once $file; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Loader CSS | |
* | |
* ====== HTML ====== | |
* <div class="loader loader-default"></div> | |
* <div class="loader loader-grill"></div> | |
* <div class="loader loader-circle"></div> | |
* <div class="loader loader-round-circle"></div> | |
* <div class="loader loader-tadpole"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ====== Checkbox And Radiobox ====== */ | |
/* | |
<div class="md-checkbox"> | |
<input type="checkbox" id="checkbox30" class="md-check"> | |
<label for="checkbox30"> | |
<span></span> | |
<span class="check"></span> | |
<span class="box"></span> | |
Option 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
var data = { | |
now: //Current page. | |
pTot: //Total pages. | |
objCreate: //ul where it will be created pagination. exemple, .nav, #nav... | |
} | |
*/ | |
var _dsPagination = function (data) { | |
var pNow = data.now, | |
pTot = data.total, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.has-error { | |
position: relative; | |
} | |
.has-error label.has-error { | |
position: absolute; | |
top: 0 !important; | |
background-color: #FFB8B8; | |
right: 0 !important; | |
left: auto !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.validator.setDefaults({ | |
debug: !0, | |
errorClass: "has-error", | |
highlight: function (a, b) { | |
$(a).closest("div").addClass(b); | |
}, | |
unhighlight: function (a, b) { | |
$(a).closest("div").removeClass(b); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getParam = function (param) { | |
var url = window.location.search.substring(1), | |
params = url.split("&"), | |
val = ''; | |
$.each(params, function (i, v) { | |
var pair = v.split("="); | |
if (pair[0] == param) { | |
val = pair[1]; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var router = require('meanstack').Router(), | |
auth = require('modules/auth'), | |
Model = require('app/models/model'); | |
/* | |
Method Route Action Return Description Resource AngularJS | |
GET /article index Html Articles index. --- | |
GET /article/load load Action Load articles. query({action: 'load'}... ) |
OlderNewer