340 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Philippines
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
bfintal says

Updates: The framework is going to be called BFI Core (since i don’t want to rename ALL the namespacing function prefixes in the library).

I recently released a WP theme that used the framework. Here’s the demo for it: http://themes.mas.gambit.ph/

So here’s some news, I’m updating my themes together with further making the framework stronger. As soon as the themes are updated, I’m going to release BFI Core.

237 posts
  • Bangladesh
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Most Wanted Bounty Winner
  • Referred between 10 and 49 users
  • Sold between 10 000 and 50 000 dollars
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.

340 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Philippines
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
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. :)

331 posts
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Microlancer Beta Tester
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
dekciw says

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

340 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Philippines
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
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
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 1-2 years
  • Canada
jamieedwards says

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

181 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 1-2 years
  • Sold between 50 000 and 100 000 dollars
  • Most Wanted Bounty Winner
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
ThemeRox says

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

88 posts
  • Exclusive Author
  • Has been a member for 1-2 years
mailmilisku says

is it ready to download?

340 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Philippines
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
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