Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Shukuyen
Created November 8, 2013 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shukuyen/7368592 to your computer and use it in GitHub Desktop.
Save Shukuyen/7368592 to your computer and use it in GitHub Desktop.
wordpress clean and simple contact form by meg nicholas custom view patch
Index: class.view.php
===================================================================
--- class.view.php (revision 800373)
+++ class.view.php (working copy)
@@ -16,9 +16,13 @@
public
function __construct($view)
{
-
- if (file_exists(CSCF_PLUGIN_DIR . "/views/" . $view . ".view.php"))
+
+ if (file_exists(get_stylesheet_directory() . "/cscf-views/" . $view . ".view.php"))
{
+ $this->view = get_stylesheet_directory() . "/cscf-views/" . $view . ".view.php";
+ }
+ else if (file_exists(CSCF_PLUGIN_DIR . "/views/" . $view . ".view.php"))
+ {
$this->view = CSCF_PLUGIN_DIR . "/views/" . $view . ".view.php";
}
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment