/** * This file represents an example of the code that themes would use to register * the required plugins. * * It is expected that theme authors would copy and paste this code into their * functions.php file, and amend to suit. * * @package TGM-Plugin-Activation * @subpackage Example * @version 2.3.6 * @author Thomas Griffin * @author Gary Jones * @copyright Copyright (c) 2012, Thomas Griffin * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link https://github.com/thomasgriffin/TGM-Plugin-Activation */ /** * Include the TGM_Plugin_Activation class. */ require_once dirname( __FILE__ ) . '/class-tgm-plugin-activation.php'; add_action( 'tgmpa_register', 'my_theme_register_required_plugins' ); /** * Register the required plugins for this theme. * * In this example, we register two plugins - one included with the TGMPA library * and one from the .org repo. * * The variable passed to tgmpa_register_plugins() should be an array of plugin * arrays. * * This function is hooked into tgmpa_init, which is fired within the * TGM_Plugin_Activation class constructor. */ function my_theme_register_required_plugins() { /** * Array of plugin arrays. Required keys are name and slug. * If the source is NOT from the .org repo, then source is also required. */ $plugins = array( // This is an example of how to include a plugin pre-packaged with a theme array( 'name' => 'Contact Form 7', // The plugin name 'slug' => 'contact-form-7', // The plugin slug (typically the folder name) 'source' => get_stylesheet_directory() . '/includes/plugins/contact-form-7.zip', // The plugin source 'required' => true, // If false, the plugin is only 'recommended' instead of required 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins 'external_url' => '', // If set, overrides default API URL and points to an external URL ), array( 'name' => 'Cherry Plugin', // The plugin name. 'slug' => 'cherry-plugin', // The plugin slug (typically the folder name). 'source' => PARENT_DIR . '/includes/plugins/cherry-plugin.zip', // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '1.1', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented. 'force_activation' => true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ) ); /** * Array of configuration settings. Amend each line as needed. * If you want the default strings to be available under your own theme domain, * leave the strings uncommented. * Some of the strings are added into a sprintf, so see the comments at the * end of each line for what each argument will be. */ $config = array( 'domain' => CURRENT_THEME, // Text domain - likely want to be the same as your theme. 'default_path' => '', // Default absolute path to pre-packaged plugins 'parent_menu_slug' => 'themes.php', // Default parent menu slug 'parent_url_slug' => 'themes.php', // Default parent URL slug 'menu' => 'install-required-plugins', // Menu slug 'has_notices' => true, // Show admin notices or not 'is_automatic' => true, // Automatically activate plugins after installation or not 'message' => '', // Message to output right before the plugins table 'strings' => array( 'page_title' => theme_locals("page_title"), 'menu_title' => theme_locals("menu_title"), 'installing' => theme_locals("installing"), // %1$s = plugin name 'oops' => theme_locals("oops_2"), 'notice_can_install_required' => _n_noop( theme_locals("notice_can_install_required"), theme_locals("notice_can_install_required_2") ), // %1$s = plugin name(s) 'notice_can_install_recommended' => _n_noop( theme_locals("notice_can_install_recommended"), theme_locals("notice_can_install_recommended_2") ), // %1$s = plugin name(s) 'notice_cannot_install' => _n_noop( theme_locals("notice_cannot_install"), theme_locals("notice_cannot_install_2") ), // %1$s = plugin name(s) 'notice_can_activate_required' => _n_noop( theme_locals("notice_can_activate_required"), theme_locals("notice_can_activate_required_2") ), // %1$s = plugin name(s) 'notice_can_activate_recommended' => _n_noop( theme_locals("notice_can_activate_recommended"), theme_locals("notice_can_activate_recommended_2") ), // %1$s = plugin name(s) 'notice_cannot_activate' => _n_noop( theme_locals("notice_cannot_activate"), theme_locals("notice_cannot_activate_2") ), // %1$s = plugin name(s) 'notice_ask_to_update' => _n_noop( theme_locals("notice_ask_to_update"), theme_locals("notice_ask_to_update_2") ), // %1$s = plugin name(s) 'notice_cannot_update' => _n_noop( theme_locals("notice_cannot_update"), theme_locals("notice_cannot_update_2") ), // %1$s = plugin name(s) 'install_link' => _n_noop( theme_locals("install_link"), theme_locals("install_link_2") ), 'activate_link' => _n_noop( theme_locals("activate_link"), theme_locals("activate_link_2") ), 'return' => theme_locals("return"), 'plugin_activated' => theme_locals("plugin_activated"), 'complete' => theme_locals("complete"), // %1$s = dashboard link 'nag_type' => theme_locals("updated") // Determines admin notice type - can only be 'updated' or 'error' ) ); tgmpa( $plugins, $config ); } Update Your Ride along with BAFANG Electric Bike Conversion Kits

Update Your Ride along with BAFANG Electric Bike Conversion Kits

Turning your regular bike in to an electrical one doesn't have to indicate surrendering your beloved structure or even investing in a new e-bike. With BAFANG's electrical bike sale kits, you get the best of both globes: the comfort of the bike you presently adore and the energy and effectiveness of a present day electric drive unit.

Let's check out how these kits completely transform the way you use - and also why a lot of bikers are opting for BAFANG to make that button.

Why Choose BAFANG for Your E-Bike Conversion?

The choice to turn your bike in to an e-bike commonly starts along with one straightforward main reason: you prefer a lot more out of your experience. Possibly it is actually longer distances, less complicated hillside climbs up, or merely the exciting of travelling without breaking a sweat. BAFANG has constructed a strong online reputation among cyclists for delivering precisely that - without overcomplicating points.

Their kits are actually built around mid-drive electric motors, understood for well balanced weight distribution, dependable energy use, and an even more all-natural pedaling sense. And BAFANG have not locked cyclists right into one certain style - they've developed their electric motors to be compatible along with mountain bicycle, road bikes, travelers, also trikes and also payload configurations. Therefore whether you ride to function or even to get away into attribute, there is actually a device for you.

Mid-Drive Motor Kits: Power Meets Precision

That compatibility is actually a single piece of the puzzle. What actually establishes BAFANG's packages apart is how they conduct when driving - or even path. The center of these sets is actually the mid-drive motor, offered in several electrical power degrees: 250W, 500W, 750W, plus all the technique around 1000W with the BBSHD series.

For area bikers as well as casual cyclists, the 250W or 500W BBS01B sets give just enough increase for smoother commutes. Yet if you're tackling steep goes up or even carrying body weight, the BBS02B (750W) or BBSHD (1000W) electric motors step in with up to 160 N.m of twist. That sort of durability helps make a genuine distinction when you're heading tough or even riding by means of wind and also rocks.

Each motor is actually created for responsiveness - so when you pedal, you feel prompt support. And also if you prefer making use of a throttle, that's installed as well. BAFANG has actually made sure the experience is as soft as it is strong.

Displays That Keep You responsible

Electrical power is great, however keeping in control of it matters equally as a lot. That's where BAFANG's display screens come into play. Whether you choose the C18, DPC18, or even another version like the C010 or DZ41, these shows may not be practically numbers on a monitor.

They deliver real-time information on speed, electric battery amount, span, and most notably - pedal help degrees. The majority of shows sustain up to 9 levels of PAS, therefore you can make improvements how much assistance you're acquiring. Some designs also possess automatic backlight adjustment and USB slots for charging your phone on the go.

And also considering that these screens are actually matched to different electric motor types (UART or CAN procedures), you're certainly not caught reckoning what collaborate. All of it fits - given that BAFANG created it that way.

Electric batteries That Go the Distance

Obviously, none of this particular functions without a trusted source of power. That's why BAFANG's electric battery options are worth a nearer seem. Readily available in a variety of abilities - coming from 13Ah to 20Ah - and also in 36V or even 48V setups, you may select the configuration that matches your motor as well as riding requirements best.

If you're making use of a 250W or 500W unit for brief urban area commutes, a smaller battery could be all you need. However, for 750W or even 1000W bodies, or if you're intending longer rides, that higher-capacity 20Ah option gives you the selection to always keep going without stress.

Each electric battery is constructed along with a 30A BMS (battery management unit), safeguarding against overcharging, overheating, and also various other concerns that minimize life expectancy. That suggests far fewer worries as well as additional kilometers.

Extras That Complete the Build

The kit doesn't cease at electric motors as well as electric batteries. What brings in the BAFANG conversion device therefore enticing is how everything cooperates. Attachments like rate sensing units guarantee precise data for both the show and PAS body. Nylon material gear link packages use smoother pedaling and boosted twist feedback. Scheduling wires give you the flexibility to adjust environments like rate limits or even throttle behavior to satisfy your inclinations.

And while that could sound specialized, installation is actually amazingly direct. The majority of kits feature the tools you'll need to have, and there's no shortage of bit-by-bit online videos online. Even if you've certainly never serviced your bike just before, you can likely draw this off along with a little persistence.

Dressmaker Your Setup to Fit Your Style

When every little thing is mounted, the real fun starts. BAFANG lets you customize certainly not just exactly how your bike trips, but just how it really feels. Choose your gear dimension - 36T, 42T, or 44T - depending upon whether you focus on speed or twist. Readjust your PAS settings to switch over in between kicked back and spirited flights. Check out various modes: throttle-only, pedal-assist, walk-assist, or even frequent pedaling when you merely want to go unplugged.

This flexibility is what makes BAFANG sets stand out from many pre-built e-bikes. You're not locked in to one setting or motor setting. You come to choose what works most effectively for your landscapes, your using style, and your day.

Offer Your Bike a Second Life with BAFANG

Along with all of these possibilities - coming from electric motors and also batteries to displays as well as add-ons - it is actually very clear that BAFANG isn't simply offering components. They're providing riders a possibility to build one thing individual. Rather than purchasing a new e-bike, you're improving the one you already recognize as well as rely on.

Which's the genuine market value: power, control, flexibility - and also the fulfillment of producing an e-bike that suits you wonderfully.