View file location within theme option
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 15 Jan 2016 20:25:50 +0000 (15:25 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 15 Jan 2016 20:25:50 +0000 (15:25 -0500)
If the theme has a folder called glm-employment then it will use the
theme files for the from from there.

controllers/front.php

index 43d022b..db843e6 100644 (file)
@@ -71,6 +71,9 @@ class glm_employment_front
      */
     public function setThemeSettings()
     {
+        if ( is_dir( get_template_directory() . '/glm-employment' ) ) {
+            $this->frontViewDir = get_template_directory() . '/glm-employment';
+        }
         if ( file_exists( get_template_directory() . '/glm-emp-config/application.ini' ) ) {
             $theme_settings = parse_ini_file(
                 get_template_directory() . '/glm-emp-config/application.ini',