Changeset 616107
- Timestamp:
- 10/23/2012 11:05:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
multiple-content-blocks/trunk/multiple_content.php
r584762 r616107 48 48 if(substr(strrchr($fileToRead,'/'),1) == 'default' || substr(strrchr($fileToRead,'/'),1) == '') { //fix for 2.9 49 49 if(substr(strrchr($fileToRead,'/'),1)) { 50 if($post->post_type == 'post') { 50 if($post->ID == get_option('page_on_front')) { 51 $fileToRead = substr($fileToRead, 0 ,-7) . 'front-page.php'; 52 } else if($post->post_type == 'post') { 51 53 $fileToRead = substr($fileToRead, 0 ,-7) . 'single.php'; 52 54 } else if($post->post_type == 'page') { … … 56 58 } 57 59 } else { 58 if($post->post_type == 'post') { 60 if($post->ID == get_option('page_on_front')) { 61 $fileToRead .= 'front-page.php'; 62 } else if($post->post_type == 'post') { 59 63 $fileToRead .= 'single.php'; 60 64 } else if($post->post_type == 'page') {
Note: See TracChangeset
for help on using the changeset viewer.