Changeset 561681
- Timestamp:
- 06/21/2012 10:52:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
templ33t/branches/01_02_handling_posts/templ33t_object.php
r561679 r561681 493 493 494 494 $themes = get_themes(); 495 $theme_data = get_theme_data(get_theme_root() . '/' . $theme . '/style.css'); 495 $theme_dir = get_theme_root() . DIRECTORY_SEPARATOR . $theme . DIRECTORY_SEPARATOR; 496 $theme_data = get_theme_data($theme_dir . 'style.css'); 496 497 497 498 $templates = array(); … … 511 512 512 513 $files = array('home.php', 'page.php', 'posts.php', 'single.php'); 513 foreach($ templates as $file) {514 foreach($files as $file) { 514 515 if(file_exists($theme_dir . $file)) { 515 516 $templates[] = $file;
Note: See TracChangeset
for help on using the changeset viewer.