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
| /*Desenvolvido por Dante Testa + ASK Jarvis*/ | |
| /*Coloque esse código no functions.php do seu tema */ | |
| /*https://www.youtube.com/watch?v=NKxyNbJbee4 */ | |
| function views_shortcode( $atts ) { | |
| $a = shortcode_atts( array( | |
| 'print' => '0', | |
| 'count' => '0', | |
| ), $atts ); |
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 | |
| //filter to add a callback to the list | |
| add_filter( 'jet-engine/listings/allowed-callbacks', 'add_custom_dynamic_field_callbacks' ); | |
| //filter to specify which arguments will the callback have | |
| add_filter( 'jet-engine/listing/dynamic-field/callback-args', 'add_custom_dynamic_field_callbacks_args', 0, 3 ); | |
| //filter to add controls | |
| //controls arguments are set as in Elementor controls |
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 | |
| //use para imprimir um campo JetEngine Textarea com somente html | |
| function pagina_html_shortcode() { | |
| //campo meta | |
| $meta_key = '_pagina_html'; | |
| //recupera o campo | |
| $value = get_post_meta(get_the_ID(), $meta_key, true); | |
| return $value; |
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 | |
| /** | |
| * Method 1 | |
| * Can be used for: Any storage type | |
| * | |
| * page-slug - replace this with your Option Page slug | |
| * option-name - replace this with your option Name/ID | |
| */ | |
| $value = jet_engine()->listings->data->get_option( 'page-slug::option-name' ); |
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> | |
| // Cole este código no Custom Code do Elementor e deixe para rodar no HEAD | |
| // Em seguinda crie os campos ocultos para todas as UTMs: 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content' | |
| // Confire o Request Parameter de cada campo para pegar a propria utm | |
| // We are waiting for the full page to load before loading this feature. This prevents a few bugs. | |
| window.addEventListener('load', function () { | |
| var queryForm = function(settings) { | |
| // Parsing URL | |
| var reset = settings && settings.reset ? settings.reset : false; |
OlderNewer