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> | |
jQuery(document).ready(function($){ | |
setTimeout(function(){ | |
$('.flatpickr-input').each(function(){ flatpickr( $(this)[0] ).set('dateFormat', 'd/m/Y');}); }, 1000 ); | |
}); | |
</script> |
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
add_action( 'elementor/query/eserlerQuery', function( $query ) { | |
$query->set('tax_query', $taxquery); | |
$postsID=get_post_meta(get_the_ID(),'karma_eserler'); | |
$postIdArray=$postsID[0]; | |
$postIdArray=((!isset($postIdArray) || empty($postIdArray)) ? array(-1) : $postIdArray); | |
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.php | |
------------------ | |
function my_acf_admin_enqueue_scripts() { | |
// register style | |
wp_register_style( 'my-acf-input-css', get_stylesheet_directory_uri() . '/css/my-acf-input.css', false, '1.0.0' ); | |
wp_enqueue_style( 'my-acf-input-css' ); | |
// register script |
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 Shortcode | |
function custom_breadcrumb_shortcode() { | |
// Get the queried object | |
$page = get_queried_object(); | |
// Initialize breadcrumb variable | |
$breadcrumb = '<ul class="breadcrumb">'; |
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
vue build | |
npx cap sync | |
npx cap update | |
npx cap open android | |
npm install -g cordova-res | |
cordova-res android --skip-config --copy | |
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( 'elementor/element/before_section_end', function( $element, $section_id, $args ) { | |
/** @var \Elementor\Element_Base $element */ | |
if ('theme-post-featured-image' === $element->get_name()) { | |
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
if (jQuery('.logo-slider').length) { | |
var mySwiper = document.querySelector('.logo-slider .swiper-container').swiper; | |
$('.slider-nav-btn.prev').on('click', function (e) { | |
e.preventDefault(); | |
mySwiper.slidePrev(); | |
}); | |
$('.slider-nav-btn.next').on('click', function (e) { | |
e.preventDefault(); | |
mySwiper.slideNext(); |
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( 'elementor/query/solutionQuery', function( $query ) { | |
$tremID=get_queried_object_id(); | |
$query->set( 'posts_per_page', -1 ); | |
$query->set( 'post_type', 'solution' ); | |
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
add_action( 'elementor_pro/posts/query/relatedPostsDynamic', function( $query ) { | |
$meta_query[] = [ | |
'key' => 'mec_end_date', | |
'value' => date('Y-m-d'), | |
'compare' => '>=', | |
]; | |
$tax_query[] =[ |
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
//https://stackoverflow.com/a/26744533/861265 | |
function getURLParams(url){ | |
var p={}; | |
url.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(s,k,v){p[k]=v}) | |
return p; | |
} |
NewerOlder