From 05d10a72f64f57056bf034e94ee448c87ce67fd4 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 26 Apr 2016 13:57:56 -0400 Subject: [PATCH] Member DB Sample template --- functions.php | 12 +++++++++ sample-template.php | 59 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 sample-template.php diff --git a/functions.php b/functions.php index 0107410..291f455 100644 --- a/functions.php +++ b/functions.php @@ -200,4 +200,16 @@ function remove_admin_bar() { show_admin_bar(false); } } +add_filter( 'template_include', 'portfolio_page_template', 99 ); + +function portfolio_page_template( $template ) { + if ( is_tree(27) ) { // the members page for this site + $new_template = locate_template( array( 'sample-template.php' ) ); + if ( '' != $new_template ) { + return $new_template ; + } + } + + return $template; +} ?> diff --git a/sample-template.php b/sample-template.php new file mode 100644 index 0000000..a9fd506 --- /dev/null +++ b/sample-template.php @@ -0,0 +1,59 @@ + + +
+
+ +
+
+
+ +
+ +
+ +
+
+ +
+
Hello, user_login ?>.
+ Logout + + Enter Member Admin Area + +
+ + + + + +

+ + + +

Please log in to gain access to this page

+
+ +
+ +
+
+
+ + + + +
+ +
+ +
+ +
+ + -- 2.17.1