Skip to content

Releases: ThemeFuse/Unyson

v1.2.3

18 Sep 12:23
Compare
Choose a tag to compare
  • Fix for action that is not called after the v1.2.1 release

In v1.2.1 we added the possibility to use the framework as a plugin. To accomplish that, we moved the framework initialization to the after_setup_theme action to prevent undefined constant TEMPLATEPATH errors because the theme is not yet loaded when the plugin is initialized.
But in framework-customizations/theme/hooks.php there is an add_action( 'after_setup_theme', '_action_theme_setup' ); that is not executed anymore. Now we changed that line to add_action( 'fw_init', '_action_theme_setup' );. But the users that downloaded the framework before v1.2.3 have that code in the theme. In this release we added a piece of code that executes that function if it exists.

v1.2.2

17 Sep 19:04
Compare
Choose a tag to compare
  • SQL enhancements
  • css fix

v1.2.1

17 Sep 11:42
Compare
Choose a tag to compare
  • 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).

v1.2.0

17 Sep 09:17
Compare
Choose a tag to compare
  • Removed constants

Do not use the FW_* constants, they are deprecated and will be removed in the next major release.

Avoid constants

How to migrate from constants to functions:

  • Replace the FW_CT_* constants with the fw_get_stylesheet_customizations_directory() and fw_get_stylesheet_customizations_directory_uri() functions
  • Replace the FW_PT_* constants with the fw_get_template_customizations_directory() and fw_get_template_customizations_directory_uri()
  • Replace the FW_DIR, FW_EXTENSIONS_DIR, FW_URI, FW_EXTENSIONS_URI with the fw_get_framework_directory() and fw_get_framework_directory_uri()

v1.1.5

16 Sep 13:56
Compare
Choose a tag to compare
  • Widgets: WP4.0 fix
  • Shortcodes enhancements

v1.1.4

16 Sep 13:50
Compare
Choose a tag to compare
Version 1.1.4

v1.1.3

16 Sep 12:27
Compare
Choose a tag to compare
  • Fixed option-type date-picker #10
  • Option-type Icon: FontAwesome class now is saved with the 'fa ' prefix #8 #9
  • Fixed thumbnails in option-type upload and multi-upload #6

v1.1.2

15 Sep 22:19
Compare
Choose a tag to compare
  • Minor translation fixes #1
  • Removed deprecated function
  • Do not register back-end styles and scripts if not in admin area
  • Fixed action that changes posts_per_page in all main queries #5

v1.1.1

15 Sep 20:18
Compare
Choose a tag to compare
Minor fixes

v1.1.0

09 Sep 19:02
Compare
Choose a tag to compare
  • Minimum required WordPress version 4.0
  • Breadcrumbs extension fixes
  • Builder fixes for WP 4.0
  • fwEvents javascript helper refactor
  • Added manifest.php to all extensions
  • Added installation instructions