-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90a8175
commit 21aaac5
Showing
28 changed files
with
510 additions
and
224 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* Masonry layouts | ||
* | ||
* @package Reykjavik | ||
* @copyright WebMan Design, Oliver Juhas | ||
* | ||
* @since 1.2.0 | ||
* @version 1.2.0 | ||
*/ | ||
|
||
|
||
|
||
|
||
|
||
( function( $ ) { | ||
|
||
if ( $().masonry ) { | ||
|
||
|
||
|
||
|
||
|
||
/** | ||
* Masonry posts/products | ||
*/ | ||
|
||
var | ||
$isShop = $( document.body ).is( '.archive, .woocommerce' ), | ||
$list = ( $isShop ) ? ( $( '.products' ) ) : ( $( '.posts' ) ), | ||
$itemClass = ( $isShop ) ? ( '.product' ) : ( '.entry' ); | ||
|
||
$list | ||
.imagesLoaded( function() { | ||
|
||
// Processing | ||
|
||
$list | ||
.masonry( { | ||
itemSelector : $itemClass, | ||
percentPosition : true, | ||
isOriginLeft : ( 'rtl' !== $( 'html' ).attr( 'dir' ) ) | ||
} ); | ||
|
||
} ); | ||
|
||
|
||
|
||
/** | ||
* Jetpack Infinite Scroll posts loading | ||
*/ | ||
|
||
$( document.body ) | ||
.on( 'post-load', function() { | ||
|
||
// Processing | ||
|
||
$list | ||
.imagesLoaded( function() { | ||
|
||
// Processing | ||
|
||
$list | ||
.masonry( 'reload' ); | ||
|
||
} ); | ||
|
||
} ); | ||
|
||
|
||
|
||
|
||
|
||
} // /masonry | ||
|
||
} )( jQuery ); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
// @copyright WebMan Design, Oliver Juhas | ||
// | ||
// @since 1.0.0 | ||
// @version 1.0.8 | ||
// @version 1.2.0 | ||
// | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,14 @@ | |
|
||
|
||
|
||
// Sticky posts | ||
|
||
.sticky { | ||
/* No special styles here. */ | ||
} | ||
|
||
|
||
|
||
// Media player | ||
|
||
.mejs-container { | ||
|
Oops, something went wrong.