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 days() { | |
var a = $("#datepicker_start").datepicker('getDate').getTime(), | |
b = $("#datepicker_end").datepicker('getDate').getTime(), | |
c = 24*60*60*1000, | |
diffDays = Math.round(Math.abs((a - b)/(c))); | |
console.log(diffDays); //show difference | |
} |
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
// auto make id with name field | |
$('form,input,textarea,select').each(function(index) { | |
$(this).attr("id",$(this).attr("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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store" | |
], | |
"folder_exclude_patterns": | |
[ | |
"bin", | |
".bundle", |
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
@media screen and (min-width: 62em) { | |
.grid-1-3 { | |
width: 250px; | |
min-width: 250px; | |
} | |
} |
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
$('#testimonial-slider').flexslider({ | |
animation: "fade", | |
slideshow: true, | |
slideshowSpeed: 3000, | |
animationDuration: 200, | |
directionNav: false, | |
}); |
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
<h3>“You know you're in love when you can't fall asleep because reality is finally better than your dreams.” </h3> | |
<h4>Dr. Seuss</h4> |
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
echo "<div class='gallery-wrap'><div class='flexslider'><ul class='slides'>"; | |
foreach ($id as $image_id) { | |
if ( is_single() ) { | |
echo "<li> <a href='". wp_get_attachment_url($image_id) ."'>"; | |
} else { | |
echo "<li> <a href='". get_permalink($post->ID) ."'>"; | |
} | |
echo wp_get_attachment_image($image_id, 'featured-image', false, false); | |
echo "</a>"; | |
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
// check Polylang exist | |
if ( function_exists('pll_register_string') ) { | |
$icelock_title_portfolio_section = get_theme_mod('icelock_title_portfolio_section', ''); | |
pll_register_string('Portfolio Section Title', $icelock_title_portfolio_section); | |
$icelock_title_team_section = get_theme_mod('icelock_title_team_section', ''); | |
pll_register_string('Team Section Title', $icelock_title_team_section); | |
$icelock_title_recent_post_section = get_theme_mod('icelock_title_recent_post_section', ''); | |
pll_register_string('Recent Post Section Title', $icelock_title_recent_post_section); | |
$icelock_title_testimonials_section = get_theme_mod('icelock_title_testimonials_section', ''); | |
pll_register_string('Testimonial Section Title', $icelock_title_testimonials_section); |
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
<!-- PORTFOLIO SECTION --> | |
<h2> | |
<?php | |
if ( function_exists('pll_register_string') ) { | |
echo pll__(get_theme_mod('icelock_title_portfolio_section')); | |
} else { | |
echo get_theme_mod('icelock_title_portfolio_section'); | |
} | |
?> |
OlderNewer