Skip to content

v1.2.1

Compare
Choose a tag to compare
released this 17 Sep 11:42
· 2192 commits to master since this release
  • Added the possibility to use the framework as a plugin

How to use the framework as a plugin:

  1. Create the wp-content/plugins/unyson directory.

  2. Extract the framework in wp-content/plugins/unyson/framework.

  3. 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';
  4. You must have a theme with the framework-customizations/ directory (like framework default theme).