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
<style> | |
#conteudo-2, #conteudo-3, #conteudo-4 { | |
display: none; | |
} | |
</style> | |
<script> | |
// Ao carregar a página | |
jQuery(document).ready(function() { | |
// Evento de clique para os botões |
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
add_action( 'jet-engine/register-macros', function(){ | |
if ( ! class_exists( '\Jet_Engine\Query_Builder\Macros\Query_Results_Macro' ) ) { | |
return; | |
} | |
class Query_Results_Empty_Macro extends \Jet_Engine\Query_Builder\Macros\Query_Results_Macro { | |
public function macros_tag() { | |
return 'query_results_empty'; |
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 cpt_posttype_name_shortcode($atts) { | |
// Atributos padrão | |
$a = shortcode_atts(array( | |
'cpt' => 'post', // 'post' é o valor padrão caso nenhum slug seja fornecido | |
), $atts); | |
$post_type_object = get_post_type_object($a['cpt']); |
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
/*FUNÇÃO QUE OBTEM O ID DO FILHO PARA A QUERY DO ARCHIVE - NO QUERBY BUILDER*/ | |
function ac_tax_query_category_shortcode() { | |
$cat_id = isset($_POST['query']['_tax_query_category']) ? $_POST['query']['_tax_query_category'] : ''; | |
return $cat_id; | |
} | |
add_shortcode('ac_tax_query_category', 'ac_tax_query_category_shortcode'); | |
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 | |
add_filter( 'jet-engine/custom-content-types/item-to-update', function( $item, $fields, $handler ) { | |
$post_id = ! empty( $item['cct_single_post_id'] ) ? absint( $item['cct_single_post_id'] ) : false; | |
if ( ! $post_id ) { | |
return $item; | |
} | |
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 | |
/*** | |
Autor: Dante Testa | |
Date: 04/09/2023 | |
Descrição e Documentação do Script "Show Weekmenu Shortcode" | |
O shortcode `show_weekmenu` foi desenvolvido para permitir a exibição de uma imagem com base no número da semana atual do mês no WordPress. Ele foi projetado para trabalhar com campos personalizados de opções, onde as imagens podem ser armazenadas como IDs de mídia ou URLs. |
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
.jet-listing-grid__slider-icon.prev-arrow.slick-arrow { | |
border-radius: 25px; | |
border:4px white solid; | |
box-shadow: -3px 3px 5px #999; | |
} | |
.jet-listing-grid__slider-icon.next-arrow.slick-arrow { | |
border-radius: 25px; | |
border:4px white solid; | |
box-shadow: -3px 3px 5px #999; |
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
<script> | |
jQuery(document).ready(function() { | |
jQuery('.jet-add-to-store').on('click', function(e) { | |
e.preventDefault(); | |
// substitua 'popup_id' pelo ID real do seu pop-up | |
var popupID = '1188'; | |
// abre o pop-up | |
setTimeout(function() { |