This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #956 from EricRihlmann/fix-wp-build-errors
Fix Travis CI Build Errors
- Loading branch information
Showing
18 changed files
with
282 additions
and
162 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,116 @@ | ||
<?php | ||
/** | ||
* FoundationPress Comments | ||
* | ||
* @package FoundationPress | ||
*/ | ||
|
||
if ( ! class_exists( 'Foundationpress_Comments' ) ) : | ||
class Foundationpress_Comments extends Walker_Comment { | ||
|
||
// Init classwide variables. | ||
public $tree_type = 'comment'; | ||
|
||
// Comment ID | ||
public $db_fields = array( | ||
'parent' => 'comment_parent', | ||
'id' => 'comment_ID', | ||
); | ||
|
||
/** CONSTRUCTOR | ||
* You'll have to use this if you plan to get to the top of the comments list, as | ||
* start_lvl() only goes as high as 1 deep nested comments */ | ||
function __construct() { ?> | ||
|
||
<h3><?php comments_number( __( 'No Responses to', 'foundationpress' ), __( 'One Response to', 'foundationpress' ), __( '% Responses to', 'foundationpress' ) ); ?> “<?php the_title(); ?>”</h3> | ||
<ol class="comment-list"> | ||
|
||
<?php } | ||
|
||
/** START_LVL | ||
* Starts the list before the CHILD elements are added. */ | ||
function start_lvl( &$output, $depth = 0, $args = array() ) { | ||
$GLOBALS['comment_depth'] = $depth + 1; ?> | ||
|
||
<ul class="children"> | ||
<?php } | ||
|
||
/** END_LVL | ||
* Ends the children list of after the elements are added. */ | ||
function end_lvl( &$output, $depth = 0, $args = array() ) { | ||
$GLOBALS['comment_depth'] = $depth + 1; ?> | ||
|
||
</ul><!-- /.children --> | ||
|
||
<?php } | ||
|
||
/** START_EL */ | ||
function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) { | ||
$depth++; | ||
$GLOBALS['comment_depth'] = $depth; | ||
$GLOBALS['comment'] = $comment; | ||
$parent_class = ( empty( $args['has_children'] ) ? '' : 'parent' ); ?> | ||
|
||
<li <?php comment_class( $parent_class ); ?> id="comment-<?php comment_ID() ?>"> | ||
<article id="comment-body-<?php comment_ID() ?>" class="comment-body"> | ||
|
||
|
||
|
||
<header class="comment-author"> | ||
|
||
<?php echo get_avatar( $comment, $args['avatar_size'] ); ?> | ||
|
||
<div class="author-meta vcard author"> | ||
|
||
<?php | ||
/* translators: %s: comment author link */ | ||
printf( __( | ||
'<cite class="fn">%s</cite>', 'foundationpress' ), | ||
get_comment_author_link() | ||
); | ||
?> | ||
<time datetime="<?php echo comment_date( 'c' ) ?>"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf( get_comment_date(), get_comment_time() ) ?></a></time> | ||
|
||
</div><!-- /.comment-author --> | ||
|
||
</header> | ||
|
||
<section id="comment-content-<?php comment_ID(); ?>" class="comment"> | ||
<?php if ( ! $comment->comment_approved ) : ?> | ||
<div class="notice"> | ||
<p class="bottom"><?php _e( 'Your comment is awaiting moderation.' ); ?></p> | ||
</div> | ||
<?php else : comment_text(); ?> | ||
<?php endif; ?> | ||
</section><!-- /.comment-content --> | ||
|
||
<div class="comment-meta comment-meta-data hide"> | ||
<a href="<?php echo htmlspecialchars( get_comment_link( get_comment_ID() ) ) ?>"><?php comment_date(); ?> at <?php comment_time(); ?></a> <?php edit_comment_link( '(Edit)' ); ?> | ||
</div><!-- /.comment-meta --> | ||
|
||
<div class="reply"> | ||
<?php $reply_args = array( | ||
'depth' => $depth, | ||
'max_depth' => $args['max_depth'], | ||
); | ||
|
||
comment_reply_link( array_merge( $args, $reply_args ) ); ?> | ||
</div><!-- /.reply --> | ||
</article><!-- /.comment-body --> | ||
|
||
<?php } | ||
|
||
function end_el(& $output, $comment, $depth = 0, $args = array() ) { ?> | ||
|
||
</li><!-- /#comment-' . get_comment_ID() . ' --> | ||
|
||
<?php } | ||
|
||
/** DESTRUCTOR */ | ||
function __destruct() { ?> | ||
|
||
</ol><!-- /#comment-list --> | ||
|
||
<?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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
/** | ||
* Customize the output of menus for Foundation mobile walker | ||
* | ||
* @package FoundationPress | ||
* @since FoundationPress 1.0.0 | ||
*/ | ||
|
||
/** | ||
* Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker | ||
*/ | ||
|
||
if ( ! class_exists( 'Foundationpress_Mobile_Walker' ) ) : | ||
class Foundationpress_Mobile_Walker extends Walker_Nav_Menu { | ||
function start_lvl( &$output, $depth = 0, $args = array() ) { | ||
$indent = str_repeat("\t", $depth); | ||
$output .= "\n$indent<ul class=\"vertical nested menu\">\n"; | ||
} | ||
} | ||
endif; |
File renamed without changes.
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,20 @@ | ||
<?php | ||
/** | ||
* Customize the output of menus for Foundation top bar | ||
* | ||
* @package FoundationPress | ||
* @since FoundationPress 1.0.0 | ||
*/ | ||
|
||
/** | ||
* Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker | ||
*/ | ||
|
||
if ( ! class_exists( 'Foundationpress_Top_Bar_Walker' ) ) : | ||
class Foundationpress_Top_Bar_Walker extends Walker_Nav_Menu { | ||
function start_lvl( &$output, $depth = 0, $args = array() ) { | ||
$indent = str_repeat("\t", $depth); | ||
$output .= "\n$indent<ul class=\"dropdown menu vertical\" data-toggle>\n"; | ||
} | ||
} | ||
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
Oops, something went wrong.