Created
November 8, 2013 09:32
-
-
Save Shukuyen/7368592 to your computer and use it in GitHub Desktop.
wordpress clean and simple contact form by meg nicholas custom view patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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