first commit without licensingg

This commit is contained in:
kbe
2025-08-21 14:40:43 +02:00
commit fa8d4e58a4
130 changed files with 82163 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
/**
* The template part for displaying post footer section.
*
* @package Revision
*/
?>
<div class="cs-entry__footer">
<div class="cs-entry__footer-top">
<div class="cs-entry__footer-top-left">
<?php csco_get_post_meta( array( 'author', 'date', 'views' ), true, array( 'author', 'date', 'views' ) ); ?>
</div>
<div class="cs-entry__footer-top-right">
<?php csco_get_post_meta( array( 'category' ), true, array( 'category' ) ); ?>
</div>
</div>
<?php
if ( get_theme_mod( 'post_metabar', true ) ) {
?>
<div class="cs-entry__metabar-item cs-entry__metabar-share">
<span><?php echo esc_html__( 'Share', 'revision' ); ?></span><?php csco_component( 'share_links' ); ?>
</div>
<?php } ?>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/**
* The template part for displaying header overlay.
*
* @package Revision
*/
?>
<div class="cs-entry__outer cs-entry__overlay cs-overlay-ratio cs-ratio-landscape-16-9">
<div class="cs-entry__inner cs-entry__thumbnail">
<div class="cs-overlay-background">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'csco-large' );
}
?>
</div>
</div>
<div class="cs-entry__inner cs-entry__content cs-overlay-content" data-scheme="inverse">
<?php get_template_part( 'template-parts/entry/entry-header-primary-info' ); ?>
</div>
</div>
<?php

View File

@@ -0,0 +1,37 @@
<?php
/**
* The template part for displaying header primary info.
*
* @package Revision
*/
// Post Meta.
if ( is_singular( 'post' ) ) {
global $post;
setup_postdata( $post );
csco_get_post_meta( array( 'author', 'date', 'comments', 'views' ), true, 'post_meta' );
wp_reset_postdata();
}
?>
<div class="cs-entry-title-and-subtitle">
<?php
// Title.
the_title( '<h1 class="cs-entry__title"><span>', '</span></h1>' );
// Subtitle.
csco_post_subtitle();
?>
</div>
<?php
if ( is_singular( 'post' ) ) {
global $post;
setup_postdata( $post );
csco_get_post_meta( array( 'category' ), true, 'post_meta' );
wp_reset_postdata();
}

View File

@@ -0,0 +1,21 @@
<?php
/**
* The template part for displaying header split.
*
* @package Revision
*/
?>
<div class="cs-entry__inner cs-entry__content">
<?php get_template_part( 'template-parts/entry/entry-header-primary-info' ); ?>
</div>
<?php if ( has_post_thumbnail() ) { ?>
<div class="cs-entry__inner cs-entry__overlay cs-overlay-ratio cs-ratio-landscape-16-9">
<div class="cs-entry__thumbnail">
<div class="cs-overlay-background cs-overlay-transparent">
<?php the_post_thumbnail( 'csco-medium' ); ?>
</div>
</div>
</div>
<?php } ?>

View File

@@ -0,0 +1,28 @@
<?php
/**
* The template part for displaying header standard.
*
* @package Revision
*/
$thumbnail_size = 'csco-large';
$thumbnail_overlay_class = 'cs-overlay-ratio cs-ratio-landscape-16-9';
if ( 'uncropped' === csco_get_page_preview() ) {
$thumbnail_size = sprintf( '%s-uncropped', $thumbnail_size );
$thumbnail_overlay_class = '';
}
?>
<div class="cs-entry__inner cs-entry__content">
<?php get_template_part( 'template-parts/entry/entry-header-primary-info' ); ?>
</div>
<?php if ( has_post_thumbnail() ) { ?>
<div class="cs-entry__inner cs-entry__overlay <?php echo esc_attr( $thumbnail_overlay_class ); ?>">
<div class="cs-entry__thumbnail">
<div class="cs-overlay-background cs-overlay-transparent">
<?php the_post_thumbnail( $thumbnail_size ); ?>
</div>
</div>
</div>
<?php } ?>

View File

@@ -0,0 +1,68 @@
<?php
/**
* Template part entry header
*
* @package Revision
*/
$header_type = csco_get_page_header_type();
if ( 'title' === $header_type ) {
$header_class = 'cs-entry__header-title';
?>
<div class="cs-entry__header <?php echo esc_attr( $header_class ); ?>">
<div class="cs-entry__header-inner">
<?php the_title( '<h1 class="cs-entry__title"><span>', '</span></h1>' ); ?>
</div>
</div>
<?php
} elseif ( 'none' === $header_type ) {
return;
} elseif ( 'standard' === $header_type ) {
$header_class = 'cs-entry__header-standard';
?>
<div class="cs-entry__header <?php echo esc_attr( $header_class ); ?>">
<?php get_template_part( 'template-parts/entry/entry-header-standard' ); ?>
</div>
<?php
} elseif ( 'split' === $header_type ) {
$header_class = 'cs-entry__header-split';
?>
<div class="cs-entry__header <?php echo esc_attr( $header_class ); ?>">
<?php get_template_part( 'template-parts/entry/entry-header-split' ); ?>
</div>
<?php
} elseif ( 'overlay' === $header_type ) {
$header_class = 'cs-entry__header-image-overlay';
?>
<div class="cs-entry__header <?php echo esc_attr( $header_class ); ?>">
<?php get_template_part( 'template-parts/entry/entry-header-overlay' ); ?>
</div>
<?php
} else {
$header_class = 'cs-entry__header-primary';
?>
<div class="cs-entry__header <?php echo esc_attr( $header_class ); ?>">
<?php get_template_part( 'template-parts/entry/entry-header-primary-info' ); ?>
</div>
<?php
}

View File

@@ -0,0 +1,88 @@
<?php
/**
* The template part for displaying post prev next section.
*
* @package Revision
*/
$prev_post = get_previous_post();
$next_post = get_next_post();
if ( $prev_post || $next_post ) {
?>
<div class="cs-entry-prev-next">
<?php
// Prev post.
if ( $prev_post ) {
$query = new WP_Query(
array(
'posts_per_page' => 1,
'p' => $prev_post->ID,
)
);
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="cs-entry-prev-next__item cs-entry__prev">
<a class="cs-entry-prev-next__link" href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( $prev_post->post_title ); ?>"></a>
<div class="cs-entry-prev-next__label">
<span class="cs-entry-prev-next__icon cs-prev-icon"><i class="cs-icon cs-icon-chevron-left"></i></span>
<span><?php echo esc_html__( 'Previous Article', 'revision' ); ?></span>
</div>
<div class="cs-entry">
<div class="cs-entry__outer">
<div class="cs-entry__inner cs-entry__content">
<h2 class="cs-entry__title"><?php echo esc_html( $prev_post->post_title ); ?></h2>
</div>
</div>
</div>
</div>
<?php
}
}
wp_reset_postdata();
}
// Next post.
if ( $next_post ) {
$query = new WP_Query(
array(
'posts_per_page' => 1,
'p' => $next_post->ID,
)
);
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="cs-entry-prev-next__item cs-entry__next">
<a class="cs-entry-prev-next__link" href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( $next_post->post_title ); ?>"></a>
<div class="cs-entry-prev-next__label">
<span><?php echo esc_html__( 'Next Article', 'revision' ); ?></span>
<span class="cs-entry-prev-next__icon cs-next-icon"><i class="cs-icon cs-icon-chevron-right"></i></span>
</div>
<div class="cs-entry">
<div class="cs-entry__outer">
<div class="cs-entry__inner cs-entry__content ">
<h2 class="cs-entry__title"><?php echo esc_html( $next_post->post_title ); ?></h2>
</div>
</div>
</div>
</div>
<?php
}
}
wp_reset_postdata();
}
?>
</div>
<?php
}

View File

@@ -0,0 +1,99 @@
<?php
/**
* The template part for displaying post read next section.
*
* @package Revision
*/
$options = array(
'image_orientation' => get_theme_mod( 'post_read_next_image_orientation', 'landscape-16-9' ),
'image_size' => get_theme_mod( 'post_read_next_image_size', 'csco-thumbnail' ),
);
$read_next_posts = get_theme_mod( 'post_read_next_posts', 'after' );
$read_next_post_meta = get_theme_mod( 'post_read_next_meta', array( 'category', 'author', 'date' ) );
$read_next_class = 'cs-read-next__grid';
$limit = 3;
$read_next_post_ids = csco_get_read_next_post_ids( $limit, $read_next_posts );
if ( ! empty( $read_next_post_ids ) ) {
$args = array(
'post_type' => 'post',
'posts_per_page' => $limit,
'post__in' => $read_next_post_ids,
'orderby' => 'post__in',
);
$next_posts_query = new WP_Query( $args );
if ( $next_posts_query->have_posts() ) {
?>
<div class="cs-read-next">
<div class="cs-container">
<div class="cs-read-next__heading">
<h2>
<?php esc_html_e( 'Read Next', 'revision' ); ?>
</h2>
</div>
<div class="cs-posts-area__read-next <?php echo esc_attr( $read_next_class ); ?>">
<?php
while ( $next_posts_query->have_posts() ) {
$next_posts_query->the_post();
?>
<article class="cs-entry">
<div class="cs-entry__outer">
<?php
if ( has_post_thumbnail() ) {
?>
<div class="cs-entry__inner cs-entry__thumbnail cs-entry__overlay cs-overlay-ratio cs-ratio-<?php echo esc_attr( $options['image_orientation'] ); ?>" data-scheme="inverse">
<div class="cs-overlay-post-meta cs-meta-overlay-background"><?php csco_get_post_meta( array( 'category', 'reading_time' ), true, $read_next_post_meta ); ?></div>
<div class="cs-overlay-background cs-overlay-transparent">
<?php the_post_thumbnail( $options['image_size'] ); ?>
</div>
<?php csco_the_post_format_icon(); ?>
<a class="cs-overlay-link" href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( the_title() ); ?>"></a>
</div>
<?php } ?>
<div class="cs-entry__inner cs-entry__content">
<?php csco_get_post_meta( array( 'author', 'date', 'comments', 'views' ), true, $read_next_post_meta ); ?>
<?php the_title( '<h2 class="cs-entry__title"><a href="' . esc_url( get_permalink() ) . '"><span>', '</span></a></h2>' ); ?>
<?php
if ( get_theme_mod( 'read_next_excerpt', true ) ) {
$excerpt = csco_get_the_excerpt( 150 );
if ( $excerpt ) {
?>
<div class="cs-entry__excerpt">
<?php echo esc_html( $excerpt ); ?>
</div>
<?php
}
}
?>
<?php if ( get_theme_mod( 'read_next_discover_more', false ) ) { ?>
<?php csco_discover_more_button(); ?>
<?php } ?>
</div>
</div>
</article>
<?php
}
?>
</div>
</div>
</div>
<?php
}
wp_reset_postdata();
}