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 $container = $(".masonry-container"); | |
| $container.imagesLoaded(function () { | |
| $container.masonry({ | |
| columnWidth: ".item", | |
| itemSelector: ".item" | |
| }); | |
| }); |
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
| //Animate CSS + WayPoints javaScript Plugin | |
| //Example: $(".element").animated("zoomInUp"); | |
| //Author URL: http://webdesign-master.ru | |
| (function($) { | |
| $.fn.animated = function(inEffect) { | |
| $(this).css("opacity", "0").addClass("animated").waypoint(function(dir) { | |
| if (dir === "down") { | |
| $(this).addClass(inEffect).css("opacity", "1"); | |
| }; | |
| }, { |
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('cat=3'); // указываем ID рубрик, которые необходимо вывести. | |
| while (have_posts()) : the_post(); // запускаем цикл обхода материалов блога | |
| ?> | |
| <?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
| function heightDetect() { | |
| $(".main_head").css("height", $(window).height()); | |
| }; | |
| heightDetect(); | |
| $(window).resize(function() { | |
| heightDetect(); | |
| }); |
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 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
| /*========== Desktop First Method ==========*/ | |
| /* Large Devices, Wide Screens */ | |
| @media only screen and (max-width : 1200px) { | |
| } | |
| /* Medium Devices, Desktops */ | |
| @media only screen and (max-width : 992px) { |
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; |