summaryrefslogtreecommitdiff
path: root/page-templates
diff options
context:
space:
mode:
authorMax2018-10-15 23:46:42 +0200
committerMax2018-10-15 23:46:42 +0200
commit00c9709fd9763542e848f6278db8ba26af5c9886 (patch)
tree92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /page-templates
downloadfuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz
Initial commit.
Diffstat (limited to 'page-templates')
-rw-r--r--page-templates/blank.php36
-rw-r--r--page-templates/both-sidebarspage.php61
-rw-r--r--page-templates/empty.php21
-rw-r--r--page-templates/fullwidthpage.php53
-rw-r--r--page-templates/left-sidebarpage.php55
-rw-r--r--page-templates/right-sidebarpage.php55
6 files changed, 281 insertions, 0 deletions
diff --git a/page-templates/blank.php b/page-templates/blank.php
new file mode 100644
index 0000000..42210d3
--- /dev/null
+++ b/page-templates/blank.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Template Name: Blank Page Template
+ *
+ * Template for displaying a blank page.
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+?>
+<!DOCTYPE html>
+<html <?php language_attributes(); ?>>
+<head>
+ <meta charset="<?php bloginfo( 'charset' ); ?>">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-title"
+ content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
+ <link rel="profile" href="http://gmpg.org/xfn/11">
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
+ <?php wp_head(); ?>
+</head>
+<body>
+<?php while ( have_posts() ) : the_post(); ?>
+
+ <?php get_template_part( 'loop-templates/content', 'blank' ); ?>
+
+<?php endwhile; // end of the loop. ?>
+<?php wp_footer(); ?>
+</body>
+</html>
diff --git a/page-templates/both-sidebarspage.php b/page-templates/both-sidebarspage.php
new file mode 100644
index 0000000..954be68
--- /dev/null
+++ b/page-templates/both-sidebarspage.php
@@ -0,0 +1,61 @@
+<?php
+/**
+ * Template Name: Left and Right Sidebar Layout
+ *
+ * This template can be used to override the default template and sidebar setup
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+get_header();
+$container = get_theme_mod( 'understrap_container_type' );
+?>
+
+<div class="wrapper" id="page-wrapper">
+
+ <div class="<?php echo esc_attr( $container ); ?>" id="content">
+
+ <div class="row">
+
+ <?php get_template_part( 'sidebar-templates/sidebar', 'left' ); ?>
+
+ <div
+ class="<?php
+ if ( is_active_sidebar( 'left-sidebar' ) xor is_active_sidebar( 'right-sidebar' ) ) : ?>col-md-8<?php
+ elseif ( is_active_sidebar( 'left-sidebar' ) && is_active_sidebar( 'right-sidebar' ) ) : ?>col-md-4<?php
+ else : ?>col-md-12<?php
+ endif; ?> content-area"
+ id="primary">
+
+ <main class="site-main" id="main" role="main">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php get_template_part( 'loop-templates/content', 'page' ); ?>
+
+ <?php
+ // 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;
+ ?>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </main><!-- #main -->
+
+ </div><!-- #primary -->
+
+ <?php get_template_part( 'sidebar-templates/sidebar', 'right' ); ?>
+
+ </div><!-- .row -->
+
+ </div><!-- Container end -->
+
+</div><!-- Wrapper end -->
+
+<?php get_footer(); ?>
diff --git a/page-templates/empty.php b/page-templates/empty.php
new file mode 100644
index 0000000..2c11ff1
--- /dev/null
+++ b/page-templates/empty.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Template Name: Empty Page Template
+ *
+ * Template for displaying a page just with the header and footer area and a "naked" content area in between.
+ * Good for landingpages and other types of pages where you want to add a lot of custom markup.
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+get_header();
+
+while ( have_posts() ) : the_post();
+ get_template_part( 'loop-templates/content', 'empty' );
+endwhile;
+
+get_footer();
diff --git a/page-templates/fullwidthpage.php b/page-templates/fullwidthpage.php
new file mode 100644
index 0000000..a028f6a
--- /dev/null
+++ b/page-templates/fullwidthpage.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Template Name: Full Width Page
+ *
+ * Template for displaying a page without sidebar even if a sidebar widget is published.
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+get_header();
+$container = get_theme_mod( 'understrap_container_type' );
+?>
+
+<div class="wrapper" id="full-width-page-wrapper">
+
+ <div class="<?php echo esc_attr( $container ); ?>" id="content">
+
+ <div class="row">
+
+ <div class="col-md-12 content-area" id="primary">
+
+ <main class="site-main" id="main" role="main">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php get_template_part( 'loop-templates/content', 'page' ); ?>
+
+ <?php
+ // 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;
+ ?>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </main><!-- #main -->
+
+ </div><!-- #primary -->
+
+ </div><!-- .row end -->
+
+ </div><!-- Container end -->
+
+</div><!-- Wrapper end -->
+
+<?php get_footer(); ?>
diff --git a/page-templates/left-sidebarpage.php b/page-templates/left-sidebarpage.php
new file mode 100644
index 0000000..5b99dd1
--- /dev/null
+++ b/page-templates/left-sidebarpage.php
@@ -0,0 +1,55 @@
+<?php
+/**
+ * Template Name: Left Sidebar Layout
+ *
+ * This template can be used to override the default template and sidebar setup
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+get_header();
+$container = get_theme_mod( 'understrap_container_type' );
+?>
+
+<div class="wrapper" id="page-wrapper">
+
+ <div class="<?php echo esc_attr( $container ); ?>" id="content">
+
+ <div class="row">
+
+ <?php get_template_part( 'sidebar-templates/sidebar', 'left' ); ?>
+
+ <div
+ class="<?php if ( is_active_sidebar( 'left-sidebar' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area"
+ id="primary">
+
+ <main class="site-main" id="main" role="main">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php get_template_part( 'loop-templates/content', 'page' ); ?>
+
+ <?php
+ // 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;
+ ?>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </main><!-- #main -->
+
+ </div><!-- #primary -->
+
+ </div><!-- .row -->
+
+ </div><!-- Container end -->
+
+</div><!-- Wrapper end -->
+
+<?php get_footer(); ?>
diff --git a/page-templates/right-sidebarpage.php b/page-templates/right-sidebarpage.php
new file mode 100644
index 0000000..30abdf6
--- /dev/null
+++ b/page-templates/right-sidebarpage.php
@@ -0,0 +1,55 @@
+<?php
+/**
+ * Template Name: Right Sidebar Layout
+ *
+ * This template can be used to override the default template and sidebar setup
+ *
+ * @package understrap
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+get_header();
+$container = get_theme_mod( 'understrap_container_type' );
+?>
+
+<div class="wrapper" id="page-wrapper">
+
+ <div class="<?php echo esc_attr( $container ); ?>" id="content">
+
+ <div class="row">
+
+ <div
+ class="<?php if ( is_active_sidebar( 'right-sidebar' ) ) : ?>col-md-9<?php else : ?>col-md-12<?php endif; ?> content-area"
+ id="primary">
+
+ <main class="site-main" id="main" role="main">
+
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php get_template_part( 'loop-templates/content', 'page' ); ?>
+
+ <?php
+ // 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;
+ ?>
+
+ <?php endwhile; // end of the loop. ?>
+
+ </main><!-- #main -->
+
+ </div><!-- #primary -->
+
+ <?php get_template_part( 'sidebar-templates/sidebar', 'right' ); ?>
+
+ </div><!-- .row -->
+
+ </div><!-- Container end -->
+
+</div><!-- Wrapper end -->
+
+<?php get_footer(); ?>