Sha256: b67d53a917f304169d604f8ff799e58ff47b304feafce1d4495906c039dffbb8
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
<?php include "inflector.php"; include "cpt.php"; class TimberEdge extends TimberSite { function __construct(){ add_filter("timber_context", array($this, "add_to_context") ); add_filter("get_twig", array($this, "add_to_twig") ); parent::__construct(); } function add_to_context($context) { $context["menu"] = new TimberMenu(); $context["site"] = $this; $context["home"] = home_url()."/"; $context["root"] = get_template_directory_uri(); $context["img"] = $context["root"]."/assets/img"; $context["css"] = $context["root"]."/assets/css"; $context["js"] = $context["root"]."/assets/js"; $context["files"] = $context["root"]."/assets/files"; return $context; } function add_to_twig($twig) { return $twig; } } new TimberEdge(); /* REMOVE MENU ITEMS */ add_action("admin_menu", "remove_menu_items");
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
edge_framework-1.3.2 | template/wordpress/code/main.php |