From 06b7101c7ae76b6cc106cb8ba6d4bb379c2bbc94 Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Mon, 5 Feb 2018 16:05:36 -0400 Subject: [PATCH] Restructure root directory, add hooks. --- page-cover-private-block.php | 4 --- page-cover.php | 25 ++++++++++--------- .../content-cover-book-header.php | 6 +++++ .../content-cover-book-info.php | 6 +++++ .../content-cover-metadata.php | 6 +++++ .../content-cover-toc.php | 6 +++++ single.php | 7 +++++- 7 files changed, 43 insertions(+), 17 deletions(-) delete mode 100644 page-cover-private-block.php rename page-cover-top-block.php => partials/content-cover-book-header.php (97%) rename page-cover-third-block.php => partials/content-cover-book-info.php (96%) rename page-cover-fourth-block.php => partials/content-cover-metadata.php (94%) rename page-cover-second-block.php => partials/content-cover-toc.php (60%) diff --git a/page-cover-private-block.php b/page-cover-private-block.php deleted file mode 100644 index 710e00099..000000000 --- a/page-cover-private-block.php +++ /dev/null @@ -1,4 +0,0 @@ - -
- -
diff --git a/page-cover.php b/page-cover.php index b4a953206..19dfd4e4c 100644 --- a/page-cover.php +++ b/page-cover.php @@ -11,16 +11,17 @@ get_header(); if ( pb_is_public() ) { - if ( have_posts() ) { - the_post(); - } - - include( locate_template( 'page-cover-top-block.php' ) ); - include( locate_template( 'page-cover-second-block.php' ) ); - include( locate_template( 'page-cover-third-block.php' ) ); - include( locate_template( 'page-cover-fourth-block.php' ) ); -} else { - include( locate_template( 'page-cover-private-block.php' ) ); -} - + include( locate_template( 'partials/content-cover-book-header.php' ) ); + include( locate_template( 'partials/content-cover-toc.php' ) ); + include( locate_template( 'partials/content-cover-book-info.php' ) ); + include( locate_template( 'partials/content-cover-metadata.php' ) ); +} else { ?> +
+ +
+ + diff --git a/page-cover-third-block.php b/partials/content-cover-book-info.php similarity index 96% rename from page-cover-third-block.php rename to partials/content-cover-book-info.php index 7b3f9751b..f26fc9332 100644 --- a/page-cover-third-block.php +++ b/partials/content-cover-book-info.php @@ -75,6 +75,12 @@ +
diff --git a/page-cover-fourth-block.php b/partials/content-cover-metadata.php similarity index 94% rename from page-cover-fourth-block.php rename to partials/content-cover-metadata.php index 869499e63..deb0361d9 100644 --- a/page-cover-fourth-block.php +++ b/partials/content-cover-metadata.php @@ -37,6 +37,12 @@ } ?>
+
diff --git a/page-cover-second-block.php b/partials/content-cover-toc.php similarity index 60% rename from page-cover-second-block.php rename to partials/content-cover-toc.php index a1342c9a8..056b22aa0 100644 --- a/page-cover-second-block.php +++ b/partials/content-cover-toc.php @@ -1,4 +1,10 @@

+
diff --git a/single.php b/single.php index e21b413f0..1c7a0e5a7 100644 --- a/single.php +++ b/single.php @@ -50,6 +50,11 @@ - +