Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

move saved connections above the search field #30

Merged
merged 1 commit into from
Aug 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions includes/classes/NS_Post_Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,18 +360,6 @@ public static function render( $name, $value, $options = array() ) {

<?php endif; ?>

<div class="search">
<h4>
<?php echo esc_html( $search_message ); ?>
</h4>
<input type="text" placeholder="<?php esc_attr_e( 'Enter a term or phrase', 'post-finder' ); ?>">
<button class="button"><?php esc_html_e( 'Search', 'post-finder' ); ?></button>
<div class="loader"></div>
<ul class="results"></ul>
</div><!-- ./search -->

<input type="hidden" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $value ); ?>">

<ul class="list">
<?php
if ( ! empty( $posts ) ) {
Expand Down Expand Up @@ -405,6 +393,18 @@ public static function render( $name, $value, $options = array() ) {
}
?>
</ul>

<div class="search">
<h4>
<?php echo esc_html( $search_message ); ?>
</h4>
<input type="text" placeholder="<?php esc_attr_e( 'Enter a term or phrase', 'post-finder' ); ?>">
<button class="button"><?php esc_html_e( 'Search', 'post-finder' ); ?></button>
<div class="loader"></div>
<ul class="results"></ul>
</div><!-- ./search -->

<input type="hidden" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $value ); ?>">
</div><!-- /.post-finder -->

<?php if ( $options['include_script'] ) : ?>
Expand Down