github ThemeFuse/Unyson v1.2.1

latest releases: v2.7.31, v2.7.30, v2.7.29...
9 years ago
  • 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).

Don't miss a new Unyson release

NewReleases is sending notifications on new releases.