<?php /* Plugin Name: GS Custom Settings Description: A plugin for custom site, theme and plugin settings. Version: 0.6.1 Author: Kevin Van Lierde Author URI: http://webketje.com/ */ // include customSettings class require_once GSPLUGINPATH . 'custom_settings/customsettings.class.php'; // initiate customSettings customSettings::upgrade(); customSettings::createDataSubfolder(); $custom_settings = customSettings::retrieveAllSettings(); $custom_settings_dictionary = customSettings::mapAllSettings(); $custom_settings_lang = customSettings::getLangFile(); customSettings::loadJsLibs(); // register plugin register_plugin('custom_settings', $custom_settings_lang['title'], customSettings::$version, 'Kevin Van Lierde', 'http://webketje.com', $custom_settings_lang['descr'], 'site', 'custom_settings_init'); // provide a way for other themes/ plugins to check // whether GS Custom Settings is active and what version define('GS_CUSTOM_SETTINGS', customSettings::$version); // GS hooks add_action('nav-tab', 'createNavTab', array('site', 'custom_settings', $custom_settings_lang['tab_name'])); // front-end filter (WYSIWYG) add_filter('content', 'custom_settings_filter'); // Show Tab function function custom_settings_init() { customSettings::init();