summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wordpress-mobile-pack/frontend/themes/premium/index.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/frontend/themes/premium/index.php29
1 files changed, 17 insertions, 12 deletions
diff --git a/plugins/wordpress-mobile-pack/frontend/themes/premium/index.php b/plugins/wordpress-mobile-pack/frontend/themes/premium/index.php
index b1813d89..5cddb922 100755
--- a/plugins/wordpress-mobile-pack/frontend/themes/premium/index.php
+++ b/plugins/wordpress-mobile-pack/frontend/themes/premium/index.php
@@ -1,12 +1,17 @@
-<?php
-
-$app_settings = WMobilePack_Application::load_app_settings_premium();
-
-// if we have a valid domain, redirect to it
-if (isset($app_settings['domain_name']) && filter_var('http://'.$app_settings['domain_name'], FILTER_VALIDATE_URL)) {
- header("Location: http://".$app_settings['domain_name']);
- exit();
-}
-
-// load app
-require_once('template.php');
+<?php
+$app_settings = WMobilePack_Application::load_app_settings_premium();
+
+// if we have a valid domain, redirect to it
+if (isset($app_settings['domain_name']) && filter_var('http://'.$app_settings['domain_name'], FILTER_VALIDATE_URL)) {
+ header("Location: http://".$app_settings['domain_name']);
+ exit();
+}
+
+// load app
+$theme = $app_settings['theme'];
+
+if ($app_settings['kit_type'] == 'wpmp' && ($theme == 6 || $theme == 7)) {
+ require_once('template2.php');
+} else {
+ require_once('template.php');
+}