Current File : /var/www/kurt6690.2978.w2868/site96340/wp-content/themes/hopeui/template-parts/content/error.php |
<?php
/**
* Template part for displaying the page content when an error has occurred
*
* @package hopeui
*/
namespace HopeUI\Utility;
?>
<section class="error hopeui_style-error text-center">
<?php get_template_part( 'template-parts/content/page_header' ); ?>
<div class="page-content">
<?php
if ( is_home() && current_user_can( 'publish_posts' ) ) {
?>
<p>
<?php
printf(
wp_kses(
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'hopeui' ),
array(
'a' => array(
'href' => array(),
),
)
),
esc_url( admin_url( 'post-new.php' ) )
);
?>
</p>
<?php
} elseif ( is_search() ) {
?>
<p>
<?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'hopeui' ); ?>
</p>
<form method="get" class="search-form search__form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="form-search">
<input type="search" class="search-field search__input" name="s" value="<?php echo get_search_query(); ?>" placeholder=<?php esc_attr_e("Search website","hopeui") ?> />
<button type="submit" class="search-submit" ><i class="fa fa-search" aria-hidden="true"></i><span class="screen-reader-text"><?php echo esc_html_x( 'Search', 'submit button', 'hopeui' ); ?></span></button>
</div>
</form>
<div class="d-block">
<?php
$btn_text = 'Back to Home';
?>
<?php hopeui()->hopeui_php_get_blog_readmore(home_url(), $btn_text); ?>
</div>
<?php
} else {
?>
<p>
<?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'hopeui' ); ?>
</p>
<?php
}
get_search_form('');
?>
</div><!-- .page-content -->
</section><!-- .error -->