'Option Title ## optionnal explanations', * 'option_variable' => 'Option Title {radio|value1|Text1|value2|Text2} ## optionnal explanations', * 'option_variable' => 'Option Title {textarea|rows|cols} ## optionnal explanations', * 'option_variable' => 'Option Title {checkbox|option_varname1|value1|Text1|option_varname2|value2|Text2} ## optionnal explanations', * Examples : * 'your_age' => 'Your Age', * 'cc_number' => 'Credit Card Number ## I can swear I will not misuse it :P', * 'gender' => 'Gender {radio|girl|You are a female|boy|You are a male} ## What is your gender ?' * Dont forget the comma at the end of each line ! */ 'floatbar' => 'Sidebar Option {radio|left|Left Sidebar|right|Right Sidebar}', ), __FILE__ /* Parent. DO NOT MODIFY THIS LINE ! * This is used to check which file (and thus theme) is calling * the function (useful when another theme with a Theme Toolkit * was installed before */ ); /************************************************************************************ * THEME AUTHOR : Congratulations ! The hard work is all done now :) * * From now on, you can create functions for your theme that will use the array * of variables $mytheme->option. For example there will be now a variable * $mytheme->option['your_age'] with value as set by theme end-user in the admin menu. ************************************************************************************/ /*************************************** * Additionnal Features and Functions * * Create your own functions using the array * of user defined variables $mytheme->option. * **************************************/ /* mytheme_about use to print either what the author wrote in his profile (Admin Area, Users page), or a friendly message if nothing has been filled in. */ function mytheme_about() { if (get_the_author_description()) { print get_the_author_description(); } else { print "The author does not say much about himself"; } } /* mytheme_sidebar() Prints css style according to what has been defined in the admin pannel */ function mytheme_sidebar() { global $mytheme; if ($mytheme->option['floatbar'] == 'right') { echo ' /* Menu on the Right */ #content {float: left;} #sidebar {float: right;} '; } else { echo ' /* Menu of the Left */ #content {float: right;} #sidebar {float: left;} '; } } ?>