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 if ( have_posts() ) : query_posts('p=1'); | |
| while (have_posts()) : the_post(); ?> | |
| <?php global $more; $more = 0; ?> | |
| <?php the_title(); ?> | |
| <?php the_content('Далее'); ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <? endwhile; endif; wp_reset_query(); ?> |
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 esc_url( get_template_directory_uri() ); ?> | |
| function primary_scripts_styles() | |
| { | |
| wp_enqueue_style('primary-style', get_stylesheet_uri()); | |
| wp_enqueue_style('bootstrap-style', get_template_directory_uri() . '/bootstrap/css/bootstrap.min.css', false, null); | |
| wp_enqueue_script('bootstrap-script', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array('jquery'), null); | |
| } |
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
| #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 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 |
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(){ | |
| 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
| (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
| $('.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
| /// REDIRECT TO m.truvile.ru | |
| (function(window) { | |
| var width = -1; | |
| //var height = -1; | |
| if (window.screen.width) { | |
| width = parseInt(window.screen.width); | |
| } | |
OlderNewer