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 echo date('Y'); ?> - copy дата футер | |
| <?php echo the_time(''); ?> - время публикации | |
| function custom_expert_lenght{ | |
| return 45; | |
| } | |
| add_filter('expert_lenght','custom_expert_lenght'); - длина символов в превью блога | |
| //в самой view | |
| <?php echo the_excerpt() ;?> |
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
| var top_show = 150; | |
| var delay = 1000; | |
| $(document).ready(function() { | |
| $(window).scroll(function () { | |
| if ($(this).scrollTop() > top_show) $('#top').fadeIn(); | |
| else $('#top').fadeOut(); | |
| }); | |
| $('#top').click(function () { | |
| $('body, html').animate({ | |
| scrollTop: 0 |
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
| $('.form').each(function () { | |
| if ( $("group__input").hasClass("icon__invalid") ) { | |
| $(".group__label").addClass("group__label_color"); | |
| } | |
| }); |
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
| /// REDIRECT TO m.truvile.ru | |
| (function(window) { | |
| var width = -1; | |
| //var height = -1; | |
| if (window.screen.width) { | |
| width = parseInt(window.screen.width); | |
| } | |
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
| $('.event').on('click', function() { | |
| var event_number = $(this).data('event'); | |
| $('.wrapper_popup_services[data-article="' + event_number + '"]').addClass('popup_close_open').removeClass('popup_close'); | |
| $('.popup_servises').addClass('servises_delay'); | |
| }); |
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
| (function($) { | |
| var $window = $(window), | |
| $html = $('.header_s'); | |
| $window.resize(function resize(){ | |
| if ($window.width() < 480) { | |
| return $html.addClass('mobile_bg'); | |
| } | |
| $html.removeClass('mobile'); |
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
| $(document).ready(function(){ | |
| var $menu = $("#nav_top"); | |
| $(window).scroll(function(){ | |
| if ( $(this).scrollTop() > 200 && $menu.hasClass("default") ){ | |
| $menu.fadeOut('fast',function(){ | |
| $(this).removeClass("default") | |
| .addClass("fixed transbg") |
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
| js: | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function(){ | |
| var HeaderTop = $('#header').offset().top; | |
| $(window).scroll(function(){ | |
| if( $(window).scrollTop() > HeaderTop ) { | |
| $('#header').css({position: 'fixed', top: '0px'}); | |
| } else { |
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
| $(document).ready(function)(){ | |
| //вызов функции после полной прогрузки DOM дерева | |
| }; | |
| var $j = jQuery.noConflict(); //используеться в том случае если подключенны стороние библиотеки | |
| //вывод нужных элементов на страницу | |
| document .images | |
| document .links | |
| document .forms |