]> _ Git - physioassist-wordpress.git/commitdiff
Sage 9 Controller update (ref: https://github.com/roots/sage/pull/2025/files).
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 15 Sep 2020 11:10:52 +0000 (11:10 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 15 Sep 2020 11:10:52 +0000 (11:10 +0000)
SVN handles case changes in filenames poorly on case-insensitive files systems.

wp-content/themes/physioassist/app/Controllers/App.php [new file with mode: 0644]
wp-content/themes/physioassist/app/Controllers/FrontPage.php [new file with mode: 0644]
wp-content/themes/physioassist/app/controllers/app.php [deleted file]
wp-content/themes/physioassist/app/controllers/front-page.php [deleted file]
wp-content/themes/physioassist/composer.json

diff --git a/wp-content/themes/physioassist/app/Controllers/App.php b/wp-content/themes/physioassist/app/Controllers/App.php
new file mode 100644 (file)
index 0000000..de3dc8e
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+namespace App;
+
+use Sober\Controller\Controller;
+
+class App extends Controller
+{
+    public function siteName()
+    {
+        return get_bloginfo('name');
+    }
+
+    public static function title()
+    {
+        if (is_home()) {
+            if ($home = get_option('page_for_posts', true)) {
+                return get_the_title($home);
+            }
+            return __('Latest Posts', 'sage');
+        }
+        if (is_archive()) {
+            return get_the_archive_title();
+        }
+        if (is_search()) {
+            return sprintf(__('Search Results for %s', 'sage'), get_search_query());
+        }
+        if (is_404()) {
+            return __('Not Found', 'sage');
+        }
+        return get_the_title();
+    }
+
+    // Get available languages from WPML
+    public function languages() {
+        return apply_filters( 'wpml_active_languages', NULL, 'skip_missing=0');
+    }
+}
diff --git a/wp-content/themes/physioassist/app/Controllers/FrontPage.php b/wp-content/themes/physioassist/app/Controllers/FrontPage.php
new file mode 100644 (file)
index 0000000..3a8dc21
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+namespace App;
+
+use Sober\Controller\Controller;
+
+class FrontPage extends Controller
+{
+
+}
diff --git a/wp-content/themes/physioassist/app/controllers/app.php b/wp-content/themes/physioassist/app/controllers/app.php
deleted file mode 100644 (file)
index de3dc8e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-namespace App;
-
-use Sober\Controller\Controller;
-
-class App extends Controller
-{
-    public function siteName()
-    {
-        return get_bloginfo('name');
-    }
-
-    public static function title()
-    {
-        if (is_home()) {
-            if ($home = get_option('page_for_posts', true)) {
-                return get_the_title($home);
-            }
-            return __('Latest Posts', 'sage');
-        }
-        if (is_archive()) {
-            return get_the_archive_title();
-        }
-        if (is_search()) {
-            return sprintf(__('Search Results for %s', 'sage'), get_search_query());
-        }
-        if (is_404()) {
-            return __('Not Found', 'sage');
-        }
-        return get_the_title();
-    }
-
-    // Get available languages from WPML
-    public function languages() {
-        return apply_filters( 'wpml_active_languages', NULL, 'skip_missing=0');
-    }
-}
diff --git a/wp-content/themes/physioassist/app/controllers/front-page.php b/wp-content/themes/physioassist/app/controllers/front-page.php
deleted file mode 100644 (file)
index 3a8dc21..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-namespace App;
-
-use Sober\Controller\Controller;
-
-class FrontPage extends Controller
-{
-
-}
index 54004443606f41153f39cf60dae78ee6c2c86027..c050525e4db40ff1ff70a23b4d40b75f5f0161fe 100644 (file)
@@ -36,7 +36,7 @@
     "composer/installers": "~1.0",
     "illuminate/support": "~5.4",
     "roots/sage-lib": "~9.0.0-beta.4",
-    "soberwp/controller": "~9.0.0-beta.4",
+    "soberwp/controller": "~2.1.0",
     "log1x/blade-svg-sage": "^1.0",
     "roots/sage-woocommerce": "^1.0"
   },