forked from oeco/ekuatorial
-
Notifications
You must be signed in to change notification settings - Fork 0
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
988d18e
commit 9187da4
Showing
7 changed files
with
62 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/* | ||
* Ekuatorial | ||
* Advanced navigation | ||
*/ | ||
|
||
|
||
class Ekuatorial_AdvancedNav { | ||
|
||
function __construct() { | ||
|
||
|
||
|
||
} | ||
|
||
} | ||
|
||
?> |
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 @@ | ||
<form role="search" method="get" id="searchform"> | ||
<form role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>"> | ||
<div> | ||
<input type="text" name="s" id="s" placeholder="<?php echo infoamazonia_search_placeholder(); ?>" value="<?php echo $_GET['s']; ?>" /> | ||
<input type="text" name="s" id="s" placeholder="<?php _e('Search for stories', 'ekuatorial'); ?>" value="<?php echo $_GET['s']; ?>" /> | ||
<input type="submit" class="button" id="searchsubmit" value="<?php _e('Search', 'infoamazonia'); ?>" /> | ||
</div> | ||
</form> |
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,34 +1,32 @@ | ||
<?php | ||
if(is_front_page()) : | ||
$sticky = new WP_Query(array( | ||
'posts_per_page' => 4, | ||
'post__in' => get_option('sticky_posts'), | ||
'ignore_sticky_posts' => 1 | ||
)); | ||
if($sticky->have_posts()) : | ||
?> | ||
<div class="sticky-posts"> | ||
<?php while($sticky->have_posts()) : $sticky->the_post(); ?> | ||
<div class="sticky-item" data-postid="<?php the_ID(); ?>"> | ||
<article id="sticky-post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<header class="post-header"> | ||
<?php if(has_post_thumbnail()) : ?> | ||
<div class="post-thumbnail"> | ||
<?php the_post_thumbnail('thumbnail'); ?> | ||
</div> | ||
<?php endif; ?> | ||
<h2><?php the_title(); ?></h2> | ||
</header> | ||
<section class="post-content"> | ||
<?php the_excerpt(); ?> | ||
<a class="button" href="<?php the_permalink(); ?>"><?php _e('Read more', 'ekuatorial'); ?></a> | ||
<a class="button" href="<?php echo jeo_get_share_url(array('p' => get_the_ID())); ?>"><?php _e('Share', 'ekuatorial'); ?></a> | ||
</section> | ||
</article> | ||
</div> | ||
<?php endwhile; ?> | ||
</div> | ||
<?php | ||
endif; | ||
$sticky = new WP_Query(array( | ||
'posts_per_page' => 4, | ||
'post__in' => get_option('sticky_posts'), | ||
'ignore_sticky_posts' => 1 | ||
)); | ||
if($sticky->have_posts()) : | ||
?> | ||
<div class="sticky-posts"> | ||
<?php while($sticky->have_posts()) : $sticky->the_post(); ?> | ||
<div class="sticky-item" data-postid="<?php the_ID(); ?>"> | ||
<article id="sticky-post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<header class="post-header"> | ||
<?php if(has_post_thumbnail()) : ?> | ||
<div class="post-thumbnail"> | ||
<?php the_post_thumbnail('thumbnail'); ?> | ||
</div> | ||
<?php endif; ?> | ||
<h2><?php the_title(); ?></h2> | ||
</header> | ||
<section class="post-content"> | ||
<?php the_excerpt(); ?> | ||
<a class="button" href="<?php the_permalink(); ?>"><?php _e('Read more', 'ekuatorial'); ?></a> | ||
<a class="button" href="<?php echo jeo_get_share_url(array('p' => get_the_ID())); ?>"><?php _e('Share', 'ekuatorial'); ?></a> | ||
</section> | ||
</article> | ||
</div> | ||
<?php endwhile; ?> | ||
</div> | ||
<?php | ||
endif; | ||
?> | ||
?> |