From: Laury GvR Date: Tue, 26 Apr 2016 17:57:56 +0000 (-0400) Subject: Member DB Sample template X-Git-Tag: v1.0.0^2~69 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=05d10a72f64f57056bf034e94ee448c87ce67fd4;p=WP-Themes%2FDiscoverKZOO.git Member DB Sample template --- 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

+
+ +
+ +
+
+
+ + + + +
+ +
+ +
+ +
+ +