v1.2.1
- Added the possibility to use the framework as a plugin
How to use the framework as a plugin:
-
Create the
wp-content/plugins/unyson
directory. -
Extract the framework in
wp-content/plugins/unyson/framework
. -
Create the
wp-content/plugins/unyson/unyson.php
file with the following contents:<?php if (!defined('ABSPATH')) die('Forbidden'); /** * Plugin Name: Unyson Framework * Plugin URI: http://unyson.themefuse.com/ * Description: A framework that facilitates the development of themes. * Version: 1 * Author: ThemeFuse * Author URI: http://themefuse.com * License: GPL2 */ function _filter_fw_framework_plugin_directory() { return plugin_dir_path(__FILE__) .'framework'; } add_filter('fw_framework_directory', '_filter_fw_framework_plugin_directory'); function _filter_fw_framework_plugin_directory_uri() { return plugin_dir_url(__FILE__) .'framework'; } add_filter('fw_framework_directory_uri', '_filter_fw_framework_plugin_directory_uri'); require dirname(__FILE__) .'/framework/bootstrap.php';
-
You must have a theme with the
framework-customizations/
directory (like framework default theme).