Changeset 532173
- Timestamp:
- 04/17/2012 07:31:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
multiple-content-blocks/trunk/multiple_content.php
r526706 r532173 37 37 //check which template is used 38 38 global $post; 39 $fileToRead = get_template_directory_uri().'/'.$post->page_template; 39 40 if(isset($post->page_template)) { 41 $fileToRead = get_template_directory_uri().'/'.$post->page_template; 42 } else { 43 $fileToRead = get_template_directory_uri().'/'; 44 } 40 45 41 46 //read the template … … 201 206 } 202 207 208 if(!isset($tagContents)) $tagContents = ''; 209 203 210 return $tagContents; 204 211 }
Note: See TracChangeset
for help on using the changeset viewer.