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 wpse_check_file_type( $file ) { | |
$filetype = wp_check_filetype( $file['name'] ); | |
$ext = $filetype['ext']; | |
$type = $filetype['type']; | |
$proper_filename = $file['name']; | |
$wp_filetype = wp_check_filetype( $proper_filename, null ); | |
$ext = $wp_filetype['ext']; | |
$type = $wp_filetype['type']; | |
$proper_filename = preg_replace('/\.[^.]+$/', '', basename( $file['name'] ) ); | |
$filename = $proper_filename . '.' . $ext; |
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 acionadores = document.querySelectorAll('.item .acionador'); | |
for (var i = 0; i < acionadores.length; i++) { | |
acionadores[i].addEventListener('mouseover', function() { | |
this.parentNode.querySelector('.acionado').classList.add('aberto'); | |
}); | |
acionadores[i].addEventListener('mouseout', function() { | |
this.parentNode.querySelector('.acionado').classList.remove('aberto'); | |
}); | |
} |
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
const caixas = document.querySelectorAll('.caixa'); | |
caixas.forEach(caixa => { | |
const dataElementorLightbox = caixa.querySelector('.elementor-custom-embed-image-overlay').getAttribute('data-elementor-lightbox'); | |
const titles = caixa.querySelectorAll('.title'); | |
titles.forEach(title => { | |
title.setAttribute('data-elementor-lightbox', dataElementorLightbox); | |
}); |
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
// Inverte a lógica e ordem de criação de novo item do Repeater | |
add_action( 'admin_head', function () { ?> | |
<style> | |
/* CSS */ | |
.cx-ui-repeater-item:first-child .cheryr-ui-repeater-content-box { | |
display: none; | |
} |
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
javascript:(function(){var i=document.getElementById('elementor-preview-iframe');if(i&&i.contentWindow){var d=i.contentWindow.document;function t(){d.querySelectorAll('.jedv-enabled--yes,.marks-jedv-enabled--yes').forEach(e=>{e.classList.toggle('jedv-enabled--yes');e.classList.toggle('marks-jedv-enabled--yes')})}t()}else{alert('Iframe not found or inaccessible')}})(); |