first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-08 12:19:53 -04:00
commit 7c8c8b1c76
4586 changed files with 2050693 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
/**
* Search result page entry content
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $post;
// Excerpt length.
$length = apply_filters( 'ocean_search_results_excerpt_length', '30' );
?>
<div class="search-entry-summary clr"<?php oceanwp_schema_markup( 'entry_content' ); ?>>
<p>
<?php
// Display excerpt.
if ( has_excerpt( $post->ID ) ) {
the_excerpt();
} else {
// Display custom excerpt.
echo wp_trim_words( strip_shortcodes( $post->post_content ), $length ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
?>
</p>
</div><!-- .search-entry-summary -->
@@ -0,0 +1,19 @@
<?php
/**
* Search result page entry header
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<header class="search-entry-header clr">
<h2 class="search-entry-title entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
</header>
@@ -0,0 +1,42 @@
<?php
/**
* Search result page entry layout
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="search-entry-inner clr">
<?php
// Featured Image.
get_template_part( 'partials/search/thumbnail' );
?>
<div class="search-entry-content clr">
<?php
// Title.
get_template_part( 'partials/search/header' );
// Content.
get_template_part( 'partials/search/content' );
// Read more button.
get_template_part( 'partials/search/readmore' );
?>
</div><!-- .search-entry-content -->
</div><!-- .search-entry-inner -->
</article><!-- #post-## -->
@@ -0,0 +1,18 @@
<?php
/**
* Search result page entry read more
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="search-entry-readmore clr">
<a href="<?php the_permalink(); ?>" title="<?php oceanwp_theme_strings( 'owp-string-search-continue-reading', 'oceanwp' ); ?>"><?php oceanwp_theme_strings( 'owp-string-search-continue-reading', 'oceanwp' ); ?></a>
<span class="screen-reader-text"><?php the_title(); ?></span>
</div><!-- .search-entry-readmore -->
@@ -0,0 +1,37 @@
<?php
/**
* Displays the post entry thumbmnail
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Return if there isn't a thumbnail defined.
if ( ! has_post_thumbnail() ) {
return;
}
// Image args.
$img_args = array(
'alt' => get_the_title(),
);
if ( oceanwp_get_schema_markup( 'image' ) ) {
$img_args['itemprop'] = 'image';
} ?>
<div class="thumbnail">
<a href="<?php the_permalink(); ?>" class="thumbnail-link">
<?php
// Display post thumbnail.
the_post_thumbnail( 'thumbnail', $img_args );
?>
</a>
</div><!-- .thumbnail -->