Changeset 678

Show
Ignore:
Timestamp:
10/03/07 22:05:23 (15 months ago)
Author:
michiel
Message:

allow an index-alt.php to overwrite the default mvblog index page stuff.
This makes it easier to keep mvblog up-to-date with svn and not missing any updates
while running a totally custom index page.

Done for Nieke so she can redo the table etc.

Location:
trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/mvblog_common.php

    r657 r678  
    878878                echo "\t\t</div>\n"; 
    879879                echo "\t</div>\n"; 
    880                 echo "</body>\n"; 
    881                 echo "</html>\n"; 
    882880        } 
    883881        /* }}} */ 
  • trunk/index.php

    r593 r678  
    2121$mvblog = new MvBlog(); 
    2222$mvblog->html_header(); 
     23if (file_exists("index-alt.php")) { 
     24        require("index-alt.php"); 
     25} else { 
    2326        ?> 
    2427        <div id="if_container"> 
     
    7376 
    7477                        </tr></table> 
    75 <?php $mvblog->html_footer(); ?> 
     78        <?php  
     79        $mvblog->html_footer(); 
     80} 
     81?> 
     82</body> 
     83</html>