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
var $i = 1; | |
idea.keywords.forEach(function ( keyword ) { | |
if ( $i < idea.keywords.length ) { | |
this.keywords += keyword.text + ", "; | |
} else { | |
this.keywords += keyword.text + "."; | |
} | |
$i++; | |
}); |
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 | |
// | |
// Horário Bool - Função que retorna true ou false mediante o horário da requisição. | |
// | |
function horario_bool () { | |
$dias_da_semana = [ | |
'Monday', |
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
var carrinho = (function () { | |
Vue.component('carrinho-item', { | |
props: ['thumbnail', 'preco'], | |
template: ` | |
<li class="carrinho-item"> | |
<figure class="carrinho-thumb"> | |
<img :src="thumbnail"> | |
</figure> | |
<a class="carrinho-title" href="#"><slot></slot></a> |
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
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>RPG</title> | |
<meta charset="utf-8"> | |
<style media="screen"> |
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
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Lista de contatos</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"> | |
<style media="screen"> | |
#vueroot{ |
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 | |
function get_filtered_terms ( $post_type, $taxonomy, $tax_query = 0, $meta_query = 0 ) { | |
//Filtra os posts de acordo com a filtragem passada | |
$args = [ | |
"post_type" => $post_type, | |
"posts_per_page" => -1, | |
]; | |
if ( $tax_query ) { |
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 | |
//wp_is_ipad vai em functions.php | |
function wp_is_ipad ( ) { | |
if( strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') ) { | |
return true; | |
} else{ | |
return false; | |
} | |
} |
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
//SISTEMA DE DROPDOWNS | |
//Configurações dos dropdowns | |
//Argumentos | |
// [0] => (String) (Obrigatório) Título, | |
// [1] => (Boolean) (Default: false) Apenas Mobile, | |
// Para manter os valores padrões, adicione apenas o título no array $dropdowns | |
// Para modificar os valores padrões, adicione um array no array $dropdowns com as modificações |
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 brazilian_real_notation ( $price = 0 ) { | |
return "R$" . number_format($price, 2, ',', '.'); | |
} |