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

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.

244 posts
  • Has been part of the Envato Community for over 3 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 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.

196 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
+4 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by