first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
/**
* Template part for displaying a message that posts cannot be found
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Dotspice
* @version 1.3.0
*/
?>
<div class="content none-content">
<div class="container">
<h1 class="none-content__h"><?php esc_html_e( 'Nothing Found', 'dotspice' ); ?></h1>
<div class="none-content__text text-formatting">
<?php
if ( is_home() && current_user_can( 'publish_posts' ) ) {
printf(
'<p>' . wp_kses(
/* translators: 1: link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'dotspice' ),
array(
'a' => array(
'href' => array(),
),
)
) . '</p>',
esc_url( admin_url( 'post-new.php' ) )
);
}
else if ( is_search() ) {
?><p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'dotspice' ); ?></p><?php
get_search_form();
}
else {
?><p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'dotspice' ); ?></p><?php
get_search_form();
}
?>
</div>
</div><!-- .container -->
</div><!-- .content -->

View File

@@ -0,0 +1,38 @@
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Dotspice
* @version 1.3.0
*/
?>
<div class="<?php dotspice_the_theme_option( 'blog_grid' ); ?>" data-aos="fade-up">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'blog-post col-flex' ); ?>>
<a class="blog-post__img__link" href="<?php the_permalink(); ?>">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( array( 500, 375, 'bfi_thumb' => true ), array( 'class' => 'blog-post__img' ) );
} else {
echo wp_get_attachment_image( 18, array( 500, 375, 'bfi_thumb' => true ));
}
?>
</a>
<div class="blog-post__content">
<div class="blog-post__date"><?php the_time('d.m.Y'); ?></div>
<h2 class="blog-post__h"><a class="blog-post__h__link" href="<?php echo get_the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="blog-post__text">
<?php
if ( has_excerpt() ) {
echo get_the_excerpt();
} else {
echo wp_trim_words(get_the_content(), 20);
}
?>
</div>
<div class="blog-post__btn"><a class="button" href="<?php the_permalink(); ?>"><?php esc_html_e( 'Read more', 'dotspice' ); ?></a></div>
</div>
</article><!-- #post-<?php the_ID(); ?> -->
</div>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Template name: Full width
*
* The template for displaying full width page
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Dotspice
* @version 1.3.0
*/
get_header();
while ( have_posts() ) : the_post();
the_content();
endwhile;
get_footer(); ?>

View File

@@ -0,0 +1,85 @@
<?php
/**
* Template name: Nagrody gwiazdy prasa
*
* The template for displaying full width page
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Dotspice
* @version 1.3.0
*/
?>
<?php
get_header();
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
query_posts(array(
'post_type' => 'galeria_nagrody',
'order' => 'DESC',
'orderby' => 'DATE',
'paged' => $paged,
'posts_per_page' => 6
));
$loop = 0;
?>
<?php while (have_posts()) : the_post(); ?>
<div class="col-sm-12" data-aos="fade-up">
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-post col-flex'); ?>>
<div class="container p-0">
<?php
if ($loop % 2 == 1) : echo '<div class="row flex-row-reverse">';
else :
echo '<div class="row">';
endif;
?>
<div class="col-sm-12 col-md-6">
<a class="blog-post__img__link" href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) {
the_post_thumbnail(array(1000, 600, 'bfi_thumb' => true), array('class' => 'blog-post__img'));
} else {
echo wp_get_attachment_image(18, array(500, 375, 'bfi_thumb' => true));
}
?>
</a>
</div>
<div class="col-sm-12 col-md-6 d-flex align-items-center">
<?php
if ($loop % 2 == 1) : echo '<div class="blog-post__content text-end justify-content-end">';
else :
echo '<div class="blog-post__content">';
endif;
?>
<div class="blog-post__date"><?php echo get_the_date( 'Y-m-d' ); ?></div>
<h2 class="blog-post__h"><a class="blog-post__h__link" href="<?php echo get_the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="blog-post__text">
<?php
if (has_excerpt()) {
echo get_the_excerpt();
} else {
echo wp_trim_words(get_the_content(), 14);
}
?>
</div>
<div class="blog-post__btn"><a class="button" href="<?php the_permalink(); ?>"><?php esc_html_e('Read more', 'dotspice'); ?></a></div>
</div>
</div>
</div>
</div>
</article><!-- #post-<?php the_ID(); ?> -->
</div>
<?php $loop++; ?>
<?php endwhile; ?>
<div class="pagination">
<?php
echo paginate_links( array(
'prev_text' => __('←'),
'next_text' => __('→'),
) ); ?>
</div>
<?php get_footer(); ?>

View File

@@ -0,0 +1,31 @@
<?php
/**
* Template name: Sidebar left
*
* The template for displaying page with left sidebar
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Dotspice
* @version 1.3.0
*/
get_header();
?>
<div class="row flex-row-reverse">
<div class="<?php dotspice_the_theme_option( 'blog_content' ); ?>">
<?php while ( have_posts() ) : the_post(); ?>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( array( 1170, 545, 'bfi_thumb' => true ), array( 'class' => 'page-content__img' ) );
}
?>
<div class="page-content__text text-formatting"><?php the_content(); ?></div>
<?php endwhile; ?>
</div>
<?php get_sidebar(); ?>
</div><!-- .row -->
<?php
get_footer(); ?>

View File

@@ -0,0 +1,31 @@
<?php
/**
* Template name: Sidebar right
*
* The template for displaying page with right sidebar
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Dotspice
* @version 1.3.0
*/
get_header();
?>
<div class="row">
<div class="<?php dotspice_the_theme_option( 'blog_content' ); ?>">
<?php while ( have_posts() ) : the_post(); ?>
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( array( 1170, 545, 'bfi_thumb' => true ), array( 'class' => 'page-content__img' ) );
}
?>
<div class="page-content__text text-formatting"><?php the_content(); ?></div>
<?php endwhile; ?>
</div>
<?php get_sidebar(); ?>
</div><!-- .row -->
<?php
get_footer(); ?>