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
#loader { | |
background: none repeat scroll 0 0 #ffffff; | |
bottom: 0; | |
height: 100%; | |
left: 0; | |
position: fixed; | |
right: 0; | |
top: 0; | |
width: 100%; | |
z-index: 9999; |
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 heightDetect() { | |
$(".main_head").css("height", $(window).height()); | |
}; | |
heightDetect(); | |
$(window).resize(function () { | |
heightDetect(); | |
}); |
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 my_more_options() { | |
//создаём поле опции | |
add_settings_field( | |
'phone', // $id - Название опции (идентификатор) | |
'Телефон', // $title - Заголовок поля | |
'display_phone', // $callback - callback function | |
'general' // $page - Страница меню в которую будет добавлено поле | |
); |
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
register_sidebar(array( | |
'name' => 'Социальные иконки', | |
'id' => 'icons_header', | |
'description' => 'Используйте виджет Текст для добавления HTML-кода иконок', | |
'before_widget' => '', | |
'after_widget' => '' | |
) | |
); |
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
register_nav_menu('menu', 'Primary menu'); |
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
register_nav_menus(array( | |
'header_menu' => 'Главное меню', | |
'adaptive_menu' =>'Мобильное меню' | |
)); |
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
$.fn.extend({ | |
animateCss: function (animationName) { | |
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; | |
this.addClass('animated ' + animationName).one(animationEnd, function () { | |
$(this).removeClass('animated ' + animationName); | |
}); | |
} | |
}); | |
var btn = $(".btn_phone"); |
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 if ( have_posts() ) : query_posts('p=1'); | |
while (have_posts()) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<? endwhile; endif; wp_reset_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
//Parallax for Stellar | |
$('.parallax').stellar({ | |
verticalOffset: 300, | |
horizontalScrolling: false, | |
verticalScrolling: true, | |
parallaxBackgrounds: true, | |
offsetParent: true, | |
backgroundRatio: 2 | |
}); |
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 wow = new WOW( | |
{ | |
boxClass: 'wow', | |
animateClass: 'animated', | |
offset: 100, // отступ до элемента, когда будет срабатывать анимация, по умолчанию 0 | |
mobile: false, | |
live: true | |
} | |
); | |
wow.init(); |
OlderNewer