Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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