template/wordpress/code/main.php in edge_framework-1.3.2 vs template/wordpress/code/main.php in edge_framework-1.3.3
- old
+ new
@@ -1,8 +1,13 @@
<?php
include "inflector.php";
include "cpt.php";
+// If Timber not installed, ignore all the code below this
+if (!class_exists("Timber") ) {
+ return;
+}
+
class TimberEdge extends TimberSite {
function __construct(){
add_filter("timber_context", array($this, "add_to_context") );
add_filter("get_twig", array($this, "add_to_twig") );
\ No newline at end of file