248 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
dmsumon
says

Yaaay! Very good news! Every body is waiting for this new framework BFI Core. I have a question “Does the framework includes any built in slider function?” Thank you.

350 posts Gambit
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
+4 more
bfintal
says

Nope it doesn’t include a slider. What it does however is to make all your files organized as well as makes adding anything easier.

It provides extendable classes to make adding admin panels, admin meta options, menu locations, etc.. easy. For example, to add a new menu location, just create a new model file under the navigation folder which only contains:

<?php

class BFINavigationPrimaryModel extends BFINavigationModel {

    const SLUG = 'primary_menu';

    function __construct() {
        $this->slug = self::SLUG;
        $this->name = 'This is the theme\'s primary menu on the top of the site.';
    }
}

After that, it takes care of the rest and the Appearance > Menus admin panel will have a new drop down for selecting a menu to use for your ‘primary menu’.

Aside from this, the framework provides new helper functions. For example, it provides the function bfi_breadcrumbs which you can just call in your view file and it’ll output some breadcrumbs for your page. The function look like:

bfi_breadcrumbs($class = '', $delimiter = '', $attrString = '')

Here’s a real implementation example. Adding a new admin panel with a bunch of options is a pain. With the framework, to create a new admin panel, you just have to create a class for it. Then for options, you just add them with a function call. For example:

$this->addOption(array(
    "name" => "Background color",
    "type" => "colorpicker",
    "desc" => "The background color of the site. This can be hidden by the page media.",
    "id" => "style_background_color",
    "std" => "#54acf0",
));

The framework will take care of creating the menu in the admin and displaying the option. You can then use the following function to get the value the user saved:

bfi_get_option('style_background_color');

The good thing about this is that the framework already does the caching of the option values so that multiple calls won’t add any database queries. It also doesn’t clutter the database with multiple rows, and just keeps all the theme’s options in just a single row for fast and clean access. :)

332 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
dekciw
says

Oh.. That menu example. Basically, you’re trying to replace 1-line WP core function with that? :D

350 posts Gambit
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
+4 more
bfintal
says

Okay so that was a bad example to showcase the framework lol! The previous shortcode example was better: http://themeforest.net/forums/thread/thinking-of-releasing-my-wp-theme-framework-for-free/84195?page=2#message_content_708821 or a widget, page/blog meta options example maybe.

But unfortunately if this class isn’t followed, then it would be weird since you’ll do a 1-liner for the menu, then a class for some other thing.. that would definitely be confusing. The reason for classes is that each class is a single file, then different classes go into different model folders for better organization.

21 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
jamieedwards
says

Sounds interesting, I will keep my eye on this post to see how it all comes about.

202 posts Quality Templates
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
ThemeRox
says

Hi, Really great idea? When we will able to download it? Is there it is ready?

107 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
mailmilisku
says

is it ready to download?

350 posts Gambit
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 100+ items on Envato Market
+4 more
bfintal
says

Glad people are interested in this! :)

It’s not yet ready, I’m still cleaning the code since I want pure separation of the framework and theme-specific files.

by
by
by
by
by
by