瀏覽代碼

Upload files #4

tags/v1.0
sandiamesa_fqqh1o 9 月之前
父節點
當前提交
050a934b24
共有 5 個文件被更改,包括 4569 次插入0 次删除
  1. +20
    -0
      searchform.php
  2. +19
    -0
      sidebar.php
  3. +47
    -0
      single.php
  4. +4412
    -0
      style.css
  5. +71
    -0
      template-fullscreen.php

+ 20
- 0
searchform.php 查看文件

@@ -0,0 +1,20 @@
<?php
/**
* Template for displaying search forms in Twenty Seventeen
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/

?>

<?php $unique_id = esc_attr( simplenineteen_unique_id( 'search-form-' ) ); ?>

<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="<?php echo $unique_id; ?>">
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'simplenineteen' ); ?></span>
</label>
<input type="search" id="<?php echo $unique_id; ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'simplenineteen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
<button type="submit" class="search-submit"><?php echo simplenineteen_get_svg( array( 'icon' => 'search' ) ); ?><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'simplenineteen' ); ?></span></button>
</form>

+ 19
- 0
sidebar.php 查看文件

@@ -0,0 +1,19 @@
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/

if ( ! is_active_sidebar( 'sidebar-1' ) ) {
return;
}
?>

<aside id="secondary" class="widget-area" role="complementary" aria-label="<?php esc_attr_e( 'Blog Sidebar', 'simplenineteen' ); ?>">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside><!-- #secondary -->

+ 47
- 0
single.php 查看文件

@@ -0,0 +1,47 @@
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/

get_header(); ?>

<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">

<?php
/* Start the Loop */
while ( have_posts() ) :
the_post();

get_template_part( 'template-parts/post/content', get_post_format() );

// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;

the_post_navigation(
array(
'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'simplenineteen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'simplenineteen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . simplenineteen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'simplenineteen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'simplenineteen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . simplenineteen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
)
);

endwhile; // End of the loop.
?>

</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->

<?php
get_footer();

+ 4412
- 0
style.css
文件差異過大導致無法顯示
查看文件


+ 71
- 0
template-fullscreen.php 查看文件

@@ -0,0 +1,71 @@
<?php
/**
* Template Name: Full Screen
* Template Post Type: page, post
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
*/
get_header( 'fullscreen' ); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( is_page() ) {
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/page/content', 'page-fullscreen' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
}
if ( is_single() ) {
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/post/content', get_post_format() );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
the_post_navigation(
array(
'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'simplenineteen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'simplenineteen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . simplenineteen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'simplenineteen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'simplenineteen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . simplenineteen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
)
);
endwhile;
}
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
if ( is_single() ) {
get_sidebar();
}
?>
</div><!-- .wrap -->
<?php
get_footer( 'fullscreen' );
?>

Loading…
取消
儲存