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
<div class="pref-progress" data-percent="50"> | |
<div class="pref-bar"><div class="pref-perc">0%</div></div> | |
</div> | |
<br> | |
<div class="pref-progress" data-percent="72"> | |
<div class="pref-bar"><div class="pref-perc">0%</div></div> | |
</div> | |
<br> | |
<div class="pref-progress" data-percent="99"> | |
<div class="pref-bar"><div class="pref-perc">0%</div></div> |
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 initDHtooltips() { | |
// tolltips | |
$( document ).on( 'mouseenter', '[data-dh-tooltip]', function() { | |
clearTimeout( $( this ).data( 'dh-tooltip-timeout-id' ) ); | |
var prevTooltip = $( this ).find( '.tooltip' ); | |
if ( prevTooltip.length > 0 ) return false; | |
$( this ).append( '<div class="tooltip"><div class="tooltip-wrapper"><span>' + $( this ).data( 'dh-tooltip' ) + '</span></div><div class="tooltip-trangle"></div></div>' ); |
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 | |
add_action( 'wp_insert_post', 'filter_function_name_11', 10, 3 ); | |
function filter_function_name_11( $post_id, $post, $update ) { | |
update_post_meta( $post_id, '_wp_page_template', 'elementor_canvas' ); | |
} |
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 update_controls( $elements ) { | |
$new_elements = array(); | |
foreach ( $elements as $element_index => $element ) { | |
foreach ( $element as $key => $value ) { | |
if ( $key == 'elements' && ! empty( $value ) ) { | |
$new_elements[$element_index][$key] = update_controls( $value ); |
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
$.each($._data($('.elementor-control')[0], "events"), function(i, event) { | |
$.each(event, function(j, h) { | |
if(h.selector == '[contenteditable=\"true\"]') { | |
handler = h.handler; | |
} | |
}); | |
}); | |
$('.elementor-control').unbind('input', handler); // fix contenteditable update control |
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
<script> | |
function defer(method) { | |
if (window.jQuery) { | |
method(); | |
} else { | |
setTimeout(function() { defer(method) }, 50); | |
} | |
} |
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 | |
//results for array1 (when it is in more, it is in array1 and not in array2. same for less) | |
function compare_multi_Arrays($array1, $array2){ | |
$result = array("more"=>array(),"less"=>array(),"diff"=>array()); | |
foreach($array1 as $k => $v) { | |
if(is_array($v) && isset($array2[$k]) && is_array($array2[$k])){ | |
$sub_result = compare_multi_Arrays($v, $array2[$k]); | |
//merge results | |
foreach(array_keys($sub_result) as $key){ | |
if(!empty($sub_result[$key])){ |
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 echo file_get_contents( get_stylesheet_directory_uri() . '/img/awesome.svg' ); ?> |
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 change_elementor_options = function() { | |
if ( typeof elementorFrontend === 'undefined' ) { | |
return; | |
} | |
elementorFrontend.on( 'components:init', function() { | |
elementorFrontend.utils.anchors.setSettings( 'selectors.targets', '.dummy-selector' ); | |
} ); | |
}; |
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 | |
\Elementor\Plugin::$instance->db->switch_to_post( 895 ); | |
echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display(1250); | |
\Elementor\Plugin::$instance->db->restore_current_post(); | |
// $current_id = get_the_ID(); | |
// echo $id; | |
// \Elementor\Plugin::$instance->db->switch_to_post( 895 ); |