-
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
Showing
21 changed files
with
551 additions
and
211 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Loop Name: Blog | ||
* Loop Name: Blog Grid | ||
* | ||
* @package siteorigin-corp | ||
* @license GPL 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* Loop Name: Posts Slider | ||
* | ||
* @package siteorigin-corp | ||
* @license GPL 2.0 | ||
*/ | ||
|
||
wp_enqueue_script( 'jquery-flexslider' ); | ||
|
||
if ( have_posts() ) : ?> | ||
|
||
<div class="flexslider featured-posts-slider"> | ||
|
||
<ul class="slides"> | ||
|
||
<?php /* Start the Loop */ ?> | ||
<?php while ( have_posts() ) : the_post(); ?> | ||
<?php $thumbnail = has_post_thumbnail() ? wp_get_attachment_url( get_post_thumbnail_id() ) : false; ?> | ||
|
||
<li class="slide" <?php if ( ! empty( $thumbnail ) ) echo 'style="background-image: url( \'' . esc_url( $thumbnail ) . '\' )"'; ?>> | ||
<div class="overlay"><a href="<?php the_permalink(); ?>"></a></div> | ||
<div class="slide-content"> | ||
<div class="entry-meta"> | ||
<?php siteorigin_corp_post_meta(); ?> | ||
</div><!-- .entry-meta --> | ||
<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?> | ||
</div> | ||
</li> | ||
|
||
<?php endwhile; ?> | ||
|
||
</ul> | ||
|
||
<ul class="flex-direction-nav"> | ||
<li class="flex-nav-prev"> | ||
<a class="flex-prev" href="#"><?php siteorigin_corp_display_icon( 'left-arrow' ); ?></a> | ||
</li> | ||
<li class="flex-nav-next"> | ||
<a class="flex-next" href="#"><?php siteorigin_corp_display_icon( 'right-arrow' ); ?></a> | ||
</li> | ||
</ul> | ||
|
||
</div><!-- .featured-posts-slider --> | ||
|
||
<?php endif; ?> |
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
.wp-caption { | ||
font-size: 14px; | ||
color: $color__text-light; | ||
font-size: 13px; | ||
max-width: 100%; | ||
|
||
img[class*="wp-image-"] { | ||
@include center-block; | ||
} | ||
|
||
.wp-caption-text { | ||
margin: 12px 0; | ||
margin: 14px 0; | ||
} | ||
} | ||
|
||
.wp-caption-text { | ||
text-align: center; | ||
text-align: left; | ||
} |
Oops, something went wrong.