This file contains 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 | |
#Taxonomia | |
$terms = get_the_terms( $post->ID , 'servico'); | |
if($terms) { | |
foreach( $terms as $term ) { | |
$nome_tax = $term->name; | |
$slug_tax = $term->slug; | |
} | |
} |
This file contains 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 | |
# Path to require 'posttype.php' | |
$functions_path = get_template_directory() . '/functions/'; | |
# Require | |
require_once( $functions_path . 'posttype.php' ); | |
# Pega o slug da pagina atual |
This file contains 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
.border-radius( @radius: 3px ) { | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
border-radius: @radius; | |
} | |
.outline-radius( @radius: 3px ) { | |
-webkit-outline-radius: @radius; | |
-moz-outline-radius: @radius; | |
outline-radius: @radius; |
This file contains 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 mascara(o,f){ | |
v_obj = o | |
v_fun = f | |
setTimeout("execmascara()",1) | |
} | |
function execmascara(){ | |
v_obj.value = v_fun(v_obj.value) | |
} |
This file contains 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
a { | |
color: #FFF; | |
display: block; | |
height: 25px; | |
padding: 6px 20px 4px 20px; | |
background: #1a3376; | |
background-image: -webkit-linear-gradient(to bottom, #2e5293, #1a3376 130%); | |
background-image: -moz-linear-gradient(to bottom, #2e5293, #1a3376 130%); | |
background-image: -ms-linear-gradient(to bottom, #2e5293, #1a3376 130%); | |
background-image: -o-linear-gradient(to bottom, #2e5293, #1a3376 130%); |
This file contains 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 | |
$args = array( | |
'post_type' => 'noticia' | |
); | |
$query = new WP_Query( $args ); | |
if( $query->have_posts() ) : $i = 1; | |
while( $query->have_posts() ) : $query->the_post(); | |
This file contains 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
window.onload = function() { | |
$.ajaxSetup({ cache: false }); | |
$(".galery").on('click', function(event) { | |
event.preventDefault(); | |
var post_id = $(this).attr("rel"); | |
$("#lightbox").fadeIn("fast"); |
This file contains 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
// class dos links que vão receber o click | |
$(".link-menu").on("click", function(event){ | |
// a animação vai ocorrer no html, body | |
$('html, body').animate({ | |
// pega o atributo href do this (link que recebeu o click) | |
// e faz a animação com velocidade 1000 para o destino do href; | |
scrollTop: $($(this).attr("href")).offset().top |
This file contains 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
{ | |
"bold_folder_labels" : true, | |
"caret_style" : "phase", | |
"color_scheme" : "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
"fade_fold_buttons" : false, | |
"find_selected_text" : true, | |
"font_size" : 13, | |
"highlight_line" : true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": |