Linux 软件免费装
Banner图

ThemePlus – Modern Theme Options Framework by FrontTheme

开发者 farukahmed
更新时间 2026年6月24日 04:21
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

theme options framework admin panel theme settings options panel

下载

1.0.0

详情介绍:

ThemePlus is a free, open-source WordPress theme options framework built for developers who want a modern, lightweight React-powered options panel — no legacy dependencies, no upsells, no license keys. Built from scratch with React, Vite, and modern PHP 8, ThemePlus delivers a polished admin interface, 30 field types, full white-label support, Google Fonts integration, custom font uploads, Import/Export, conditional logic, a REST API, and a Developer Panel — all free, with no license keys and no upsells. 30 Field Types Every input a theme could need, organized into clean categories: Every field has a verified, documented value shape. For example: White-Label Support ThemePlus is designed to disappear into your theme. Configure themeplus_framework_config() with your theme's name, slug, option key, and icon — your users see your theme's own settings panel, never "ThemePlus". Convention: section and subsection icon takes a FontAwesome name only ('pen'). The Icon field default takes the full FontAwesome class ('fa-solid fa-star'). The plugin translates its own fallback strings; your theme translates its config strings in your own text domain. Google Fonts + Custom Fonts The Typography field includes a searchable browser of 1,899 Google Fonts with live preview, weight and style selection, subset support, and automatic font enqueueing on the frontend. Skip Google Fonts entirely and upload self-hosted fonts (WOFF2, WOFF) via the built-in Custom Fonts module — magic-byte verified, capability-gated, and output into @font-face rules automatically. Note: Custom fonts are stored as Media Library attachments and are not affected by Reset All or Reset Section — use the per-font Delete button to remove uploaded files. Conditional Logic Show or hide any field based on the value of another. Supports 10 operators and three relation formats: Operators: ==, !=, >, <, >=, <=, contains, !contains, empty, !empty Single condition: 'required' => ['sidebar_position', '==', 'left'] Multiple AND conditions: 'required' => [['enable_header', '==', true], ['header_style', '!=', 'minimal']] Multiple OR conditions: 'required' => ['relation' => 'OR', 'conditions' => [['mode', '==', 'simple'], ['mode', '==', 'expert']]] Array value (matches any): 'required' => ['header_elements', 'contains', 'search'] Dot-notation sub-key: 'required' => ['body_typography.font-family', '==', 'Inter'] empty / !empty note: false and 0 are NOT considered empty — only truly absent values, empty strings, empty arrays, and null. Sections and Subsections Organize theme options into a hierarchical sidebar. Add sections with themeplus_add_section(), nest subsections inline via the subsections key, or attach subsections from a separate hook with themeplus_add_subsection() — the pattern for child themes and extension plugins. Import / Export Backup and restore all theme settings with one click. Import/Export handles JSON serialization and restores defaults cleanly. REST API Full REST API under the themeplus/v1 namespace — get options, save options, reset all, reset section, get configuration. All endpoints require the configured capability (default edit_theme_options) with nonce verification. Options are sanitized per field type before storage. Developer Panel Enable dev mode (define('THEMEPLUS_DEV', true)) to access a Developer Panel showing every registered field with its current value, PHP data type, and copy-ready code snippets for all three access patterns. Includes field statistics by type and section. Security GPL Licensed — Free Forever ThemePlus is GPL-2.0-or-later — the same license as WordPress itself. Use it in personal projects, client work, and commercial ThemeForest themes without restriction.

安装:

From WordPress.org
  1. Go to Plugins → Add New
  2. Search for ThemePlus
  3. Click Install Now then Activate
Upload ZIP
  1. Download themeplus.zip from GitHub Releases
  2. Go to Plugins → Add New → Upload Plugin
  3. Upload the ZIP and activate
After Activation ThemePlus does nothing on its own — it is a framework for theme developers. To add a settings panel to your theme:
  1. Copy includes/config/sample-config.php from the plugin into your theme (rename my_theme_ prefixes to your own)
  2. Include it in functions.php: require_once get_template_directory() . '/inc/themeplus-config.php';
  3. Configure themeplus_framework_config() with your theme's details
  4. Add sections and fields using themeplus_add_section()
  5. Retrieve values with themeplus_get_option('field_id')

屏幕截图:

  • All 30 field types — complete field type overview
  • Typography field — Google Fonts browser with live preview and subset selection
  • Custom Fonts module — upload and manage self-hosted WOFF2/WOFF fonts
  • Conditional logic — fields shown and hidden based on other field values
  • Import/Export — one-click backup and restore of all settings
  • Developer Panel — field metadata, current values, and code snippets
  • Dark mode — full dark color scheme matching WordPress admin

升级注意事项:

1.0.0 Initial release — no upgrade steps required.

常见问题:

Is ThemePlus really free?

Yes, completely. ThemePlus is open-source and GPL-2.0-or-later. There are no premium tiers, no feature locks, and no license keys.

Can ThemePlus replace my current theme options framework?

ThemePlus provides 30 field types, white-label support, conditional logic, Google Fonts, custom fonts, Import/Export, a REST API, and a Developer Panel — all in a modern React UI. It is designed as a complete, standalone theme options solution for WordPress theme developers.

Does it work with PHP 8.0+?

Yes. ThemePlus requires PHP 8.0 or higher and uses PHP 8 type hints, union types, and named arguments throughout.

How do I retrieve an option value in my theme?

$value = themeplus_get_option( 'field_id', 'default_value' ); For structured fields like image, border, or repeater, the return value is an array — see the field shapes in the Description section above.

What is the correct way to use the icon field vs section icons?

Section and subsection icon takes a FontAwesome name only: 'pen', 'palette', 'code'. The Icon field default takes the full FontAwesome class: 'fa-solid fa-star', 'fa-brands fa-github'. The picker modal handles selection in the UI — the default is only the stored fallback.

Can I use ThemePlus in a ThemeForest theme?

Yes. ThemePlus is GPL-licensed and can be bundled with commercial themes. The recommended approach for ThemeForest is TGM Plugin Activation so buyers can install it from your theme package.

Does it support multisite?

The plugin activates per-site. The uninstall routine cleans up options across all sites on the network.

Why are my custom fonts not reset when I click Reset All?

Custom fonts are uploaded files stored in the Media Library — not option values. Reset All and Reset Section only affect your option values. Use the Delete button in the Custom Fonts section to remove uploaded font files. This is intentional: resetting settings should never silently delete uploaded assets.

Does the Typography field load Google Fonts automatically?

Yes. Any typography field set to a Google Font is automatically enqueued on the frontend via a combined Google Fonts URL. System fonts and custom uploaded fonts are detected and excluded from the Google Fonts request automatically.

What is the Developer Panel?

When define('THEMEPLUS_DEV', true) is added to wp-config.php, a Developer Panel appears in the sidebar showing every registered field with its current saved value, PHP data type, dependency metadata, and code snippets for themeplus_get_option(), direct array access, and themeplus_update_option(). Remove the constant on production sites.

Can I add a subsection from a child theme or extension plugin?

Yes — use themeplus_add_subsection( 'parent_section_id', [ ...subsection config... ] ) from your own init hook (priority 20 or later, after the parent section is registered). This is the recommended pattern for child themes and addon plugins extending a parent theme's panel.

Does ThemePlus support empty/!empty conditional logic on false and 0?

No — intentionally. false and 0 are NOT considered empty. Only truly absent values, empty strings, empty arrays, and null trigger empty. This matches PHP's empty() semantics for booleans and integers, which is the least surprising behavior for theme developers.

更新日志:

1.0.0