Turante / sandbox-theme

Automatically exported from code.google.com/p/sandbox-theme
0 stars 0 forks source link

Doing stuff with page templates #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
is_page_template() ? $c[] = 'template' : null; // not sure what use this
would be; never stopped me before

Original issue reported on code.google.com by idstewar...@gmail.com on 22 Apr 2008 at 2:45

GoogleCodeExporter commented 9 years ago
Now let me know if this is becoming absurd.

$c[] = 'page-template page-template-' . str_replace( '.php', '-php', 
get_post_meta(
$pageID, '_wp_page_template', true ) );

Har har har.

Original comment by swall...@gmail.com on 22 Apr 2008 at 3:32

GoogleCodeExporter commented 9 years ago
Sure, looks good. Thanks, Ian.

Completed at rev 258.

Original comment by swall...@gmail.com on 22 Apr 2008 at 3:43

GoogleCodeExporter commented 9 years ago
Was trying to translate this to the functions (couldn't get it to work of 
course) …

$template = get_post_meta($id, '_wp_page_template', true);
echo str_replace(".php","",$template);

in the hopes of making scottsbane.php produce .template-scottsbane

If it was template over page-template that wouldn't be so absurd.

To defend it's non-absurdness: hide the blogroll widget on the links page & 
hide the
archives widget on the archives page using only CSS.

Or all templates get a special background image like, scottsbane.jpg.

Original comment by idstewar...@gmail.com on 22 Apr 2008 at 3:46

GoogleCodeExporter commented 9 years ago
Oh, wait. You added it. Har Har.

Original comment by idstewar...@gmail.com on 22 Apr 2008 at 3:48