rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 0bf3d0bb52984c1a640d00563984ae9c0df575b8
parent 5dc17081e31c1ee965f8a40afc9289645e716ffa
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 19 Apr 2015 15:58:07 +0200

add automatic theme finder

Diffstat:
Minstall/set_variables.php | 17+++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/install/set_variables.php b/install/set_variables.php @@ -105,10 +105,19 @@ <label for="theme" class="col-sm-2 control-label">Theme</label> <div class="col-sm-10"> <select name="theme" class="form-control" id="theme"> - <option>accentbox</option> - <option>jumbotron</option> - <option>parkzone</option> - <option>zResponsive</option> + <?php + $dirs = scandir($root . "/themes"); + $ausnahmen["1"] = ".htaccess"; + $ausnahmen["2"] = "."; + $ausnahmen["3"] = ".."; + $dirs = array_diff($dirs, $ausnahmen); + foreach($dirs as $dir){ + $dir_name = ucwords($dir); + echo " + <option>$dir_name</option> + "; + } + ?> </select> </div> </div>