Skip to content

Instantly share code, notes, and snippets.

View dantetesta's full-sized avatar

DANTE TESTA dantetesta

View GitHub Profile
.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;
DYNAMIC TAGS NOW ACTIVE!
I solved the issue of displaying the dynamic tag in the image of the Elementor Pro component using only one directive within the plugin code
"dynamic" => ["active" => true],
Simply access the file [garden-gnome-package/include/elementor_widget.php] And add this snippet: "dynamic" => ["active" => true],
inside the block example:
<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() {
<?php
// O WordPress 'add_action' registra uma nova ação com a tag 'jet-engine/register-macros'
add_action( 'jet-engine/register-macros', function() {
/**
* Classe que formata uma string de data.
*/
class Format_Date_String extends \Jet_Engine_Base_Macros {
<?php
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );
global $wpdb;
$prefix = $wpdb->prefix;
$resultado = $wpdb->get_results("SELECT * FROM {$prefix}jet_cct_profissionais WHERE cct_status='publish' ORDER BY nome ASC", ARRAY_A);
$data = array();
<?php
/*
Author: Dante Testa
Date: 26/06/2023
www.dantetesta.com.br
*/
add_action( 'jet-form-builder/custom-action/add_tax', function( $request, $action_handler ) {
if (!isset($request['nome']) || !isset($request['taxonomia'])) {
<script>
jQuery(document).ready(function() {
var taxonomia_id = jQuery('select[name="tipoproduto"]').val();
var query_title = jQuery('input[name="query"]').val();
function fetch_data() {
jQuery.ajax({
url: ajaxurl,
method: 'POST',
<script>
jQuery(document).ready(function(){
jQuery.ajax({
url: '/wp-content/uploads/sistema-petshop/select-servicos.php',
type: 'GET',
dataType: 'json', // Tipo de dado esperado do servidor, nesse caso, um objeto JSON
success: function(data) {
var dropdown = jQuery("#servicos");
function custom_produtos_rewrite_rule() {
add_rewrite_rule(
'^([^/]+)/?$',
'index.php?post_type=produtos&name=$matches[1]',
'top'
);
}
add_action('init', 'custom_produtos_rewrite_rule', 10, 0);
function custom_post_type_link( $post_link, $post ) {
<!DOCTYPE html>
<html>
<head>
<title>Simulador de Financiamento de Veículos</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<style>
body {
background-color: #343a40;
color: #fff;
padding: 3% 10% 5% 10%;