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 coisarada; | |
clearInterval(coisarada); | |
coisarada = setTimeout(function(){ | |
console.log('Down'); | |
},70); |
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
<?php | |
$pag = get_page_by_path('slug-page'); | |
echo get_permalink($page_sms->ID); | |
?> |
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
<?php | |
function pagination($pages = '', $range = 4){ | |
$showitems = ($range * 2)+1; | |
global $paged; | |
if(empty($paged)) $paged = 1; | |
if($pages == '') | |
{ | |
global $wp_query; |
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 xhr_ = null ,xhr = null,timeout_seconds = 10*1000 ; | |
$("body").on('click',function(){ | |
load_ajax(); | |
}); | |
function load_ajax(){ | |
xhr_ = xhr; | |
xhr = $.ajax({ | |
url: 'http://localhost/teste.php', | |
type: 'GET', | |
dataType: 'json', |
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 convertMS(ms) { | |
var d, h, m, s; | |
s = Math.floor(ms / 1000); | |
m = Math.floor(s / 60); | |
s = s % 60; | |
h = Math.floor(m / 60); | |
m = m % 60; | |
d = Math.floor(h / 24); | |
h = h % 24; | |
return { d: d, h: h, m: m, s: s }; |
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
<?php | |
register_taxonomy( 'apresentacao', | |
array( 'programacao' ), | |
array( | |
'hierarchical' => true, | |
'show_ui' => true, | |
'query_var' => true, | |
'show_admin_column' => false, | |
'labels' => array ( | |
'name' => __( 'Apresentações', 'Sesc Bienal' ), |
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
register_taxonomy( 'blog-assunto', | |
array( 'blog' ), | |
array( | |
'hierarchical' => true, | |
'show_ui' => true, | |
'query_var' => true, | |
'show_admin_column' => false, | |
'labels' => array ( | |
'name' => __( 'Assuntos', 'egali' ), | |
'singular_name' => __( 'Assunto', 'egali' ), |
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
$(document).on('click', '#element', function (e) { | |
}); |
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
sass --watch project/sass:project/css |