The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Theme Settings
#1
I created a generic theme settings plugin which makes it very easy to provide configurable themes.

Theme Settings version 0.1:
  • Just provide a short PHP settings.php with the configuration input fields, and
  • Replace references to these settings in your template file(s) with get_theme_setting('nameOfSetting', 'defaultValue').
  • The schema support allows you to easily define multiple settings in *.properties files and enables the user to switch multiple settings at once.
  • Using the LESS plugin it is also easy to make your CSS files configurable.

Version 0.4:

  • It now supports the I18N plugin for multilanguage sites: just add class "i18n" to input fields in settings.php to mark fields that might have different values in different languages.

An example theme can be found here.

For more information and usage instructions see http://mvlcek.bplaced.net/get-simple/theme-settings.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Theme Settings - by mvlcek - 2014-07-12, 08:34:42
RE: Theme Settings - by shawn_a - 2014-07-12, 08:51:27
RE: Theme Settings - by Carlos - 2014-07-12, 17:32:34
RE: Theme Settings - by mvlcek - 2014-07-12, 18:22:34
RE: Theme Settings - by Tzvook - 2014-07-15, 20:47:06
RE: Theme Settings - by Tzvook - 2014-07-15, 21:50:44
RE: Theme Settings - by Tzvook - 2014-07-15, 22:33:26
RE: Theme Settings - by Oleg06 - 2014-07-13, 05:25:31
RE: Theme Settings - by Oleg06 - 2014-07-15, 23:13:45
RE: Theme Settings - by Tzvook - 2014-07-15, 23:22:20
RE: Theme Settings - by Oleg06 - 2014-07-15, 23:34:09
RE: Theme Settings - by Tzvook - 2014-07-15, 23:40:01
RE: Theme Settings - by Tzvook - 2014-07-30, 02:34:35
RE: Theme Settings - by mvlcek - 2014-07-30, 02:49:59
RE: Theme Settings - by Tzvook - 2014-07-30, 03:04:02
RE: Theme Settings - by mvlcek - 2014-07-31, 15:19:23
RE: Theme Settings - by Tzvook - 2014-07-31, 06:12:49
RE: Theme Settings - by Oleg06 - 2014-07-16, 00:36:17
RE: Theme Settings - by Oleg06 - 2015-04-08, 19:58:34
RE: Theme Settings - by mvlcek - 2015-04-09, 06:12:22
RE: Theme Settings - by Arugula - 2015-12-31, 16:31:18
RE: Theme Settings - by mvlcek - 2015-12-31, 23:02:12
RE: Theme Settings - by Arugula - 2016-01-01, 10:23:45
RE: Theme Settings - by mvlcek - 2016-01-01, 20:03:16
RE: Theme Settings - by Arugula - 2016-01-02, 15:56:20
Multi-lang: Theme Settings - by Tzvook - 2016-02-13, 04:28:21
RE: Theme Settings - by mvlcek - 2016-02-15, 02:16:41
RE: Theme Settings - by Timbow - 2016-10-13, 08:04:27
RE: Theme Settings - by DrogoNevets - 2016-10-14, 14:29:33
RE: Theme Settings - by Oleg06 - 2019-11-15, 00:27:47



Users browsing this thread: 3 Guest(s)