#wordpress sidebar widget
section.widget>(header>h2)+div.inner-widget
section.widget>(header>h2)+div.inner-widget+footer
<?php | |
/** | |
* @property CI_DB_active_record $db | |
* @property CI_DB_forge $dbforge | |
* @property CI_Benchmark $benchmark | |
* @property CI_Calendar $calendar | |
* @property CI_Cart $cart | |
* @property CI_Config $config | |
* @property CI_Controller $controller |
<?php | |
/** | |
* Bcrypt hashing class | |
* | |
* @author Thiago Belem <[email protected]> | |
* @author Luiz Vinicius <[email protected] | |
* @link https://gist.github.com/3438461 | |
*/ | |
class Bcrypt { |
<!-- Link ou elemento html, adicione os elementos data-* onde quiser --> | |
<a class="link_ajaz_modal_box" data-url='http://minha_url_ajax_feita_pelo_php.com/conteudo/ajax' href="#">Link Ajax</a> | |
<script> | |
//recupere tudo usando $.data do jquery | |
$('.link_ajaz_modal_box').click(function(){ | |
var URL = $(this).data('url'); //aqui eu pelo o elemento data-url | |
$('#elemento').load(URL); | |
}); | |
</script> |
body{ | |
background: #e7e8e9; /* Old browsers */ | |
/* IE9 SVG, needs conditional override of 'filter' to 'none' */ | |
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U3ZThlOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjIwJSIgc3RvcC1jb2xvcj0iI2U3ZThlOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjM0JSIgc3RvcC1jb2xvcj0iI2VmZjBmMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjYxJSIgc3RvcC1jb2xvcj0iI2Y5ZmFmYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVk |
$(document).ready(function () { | |
SiteHome.init(); | |
SiteCommons.init(); | |
}); | |
/** | |
* Grid gererator da homepage | |
* @type {{init: Function, run: Function}} | |
*/ | |
var SiteHome = { |
<?php | |
$query = MyModel::orderBy('name', 'ASC'); | |
//Sem cache | |
$query->with('relation1','relation2'); | |
//Com Cache | |
$query->with( | |
[ |
<?php | |
function base64url_encode($data) { | |
return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); | |
} | |
function base64url_decode($data) { | |
return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT)); | |
} |
<?php | |
namespace MyApp\Repository; | |
use MyApp\Category; | |
class CategoryRepository | |
{ | |
/** | |
* @return \Illuminate\Database\Eloquent\Collection|static[] |
#wordpress sidebar widget
section.widget>(header>h2)+div.inner-widget
section.widget>(header>h2)+div.inner-widget+footer