projects
/
web
/
GruntInit
/
glmThemeV6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bcb40b
)
fixed syntax error in previously pushed code
author
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 31 Aug 2016 18:40:09 +0000
(14:40 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Wed, 31 Aug 2016 18:40:09 +0000
(14:40 -0400)
root/functions.php
patch
|
blob
|
history
diff --git
a/root/functions.php
b/root/functions.php
index
dc3239c
..
cec1e6f
100644
(file)
--- a/
root/functions.php
+++ b/
root/functions.php
@@
-210,7
+210,7
@@
add_filter( 'custom_page_templates', function( $now_templates ) {
// THIS IS HOW IT CAN BE USED IN INDEX.PHP
-
<?php
if (get_page_template_slug( $post->ID ) == "some-custom-page-template") {
+if (get_page_template_slug( $post->ID ) == "some-custom-page-template") {
echo "<div id='block'>[I am totally not a block ._.]</div>";
} else {
echo "<p>The current template used is:".get_page_template_slug( $post->ID )."</p>";