Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Commit

Permalink
Allow for a custom dashboard to replace the vvv.dev default
Browse files Browse the repository at this point in the history
Uses a file_exists check to load `dashboard-custom.php` if it's available so that a custom dashboard can be provided for VVV

Closes #185
  • Loading branch information
jeremyfelt committed Nov 8, 2013
1 parent 47c6e69 commit 4defb16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions www/default/index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<?php
/**
* If a custom dashboard file exists, load that instead of the default
* dashboard provided by Varying Vagrant Vagrants. This file should be
* located in the `www/default/` directory.
*/
if ( file_exists( 'dashboard-custom.php' ) ) {
include( 'dashboard-custom.php' );
exit;
}

// Begin default dashboard.
?>
<!DOCTYPE html>
<html>
<head>
Expand Down

0 comments on commit 4defb16

Please sign in to comment.