Permalink
Browse files

Update v1.4.0

- add folding checkbox group option (credits to plovs -
https://github.com/plovs)
- add sample grouped options
- add transfer option
- fix css quirks on some options
- single call to admin/admin.php from functions.php
- unique database name for options & backup
- replaced ereg_replace function (deprecated in PHP 5.3)
- uses add_theme_page to replace add_submenu_page
- reorganized files, paths etc
- delete background option
- delete child types
- everything a bit faster now
- change reset method
  • Loading branch information...
1 parent eaa7115 commit 66e18cd98808a8fb5513dac4bf2b2ece6760c3b3 @syamilmj committed Apr 15, 2012
Showing with 1,986 additions and 1,730 deletions.
  1. +20 −3 admin/README.txt
  2. +0 −70 admin/admin-functions.php
  3. +0 −1,491 admin/admin-interface.php
  4. +41 −48 admin/{ → assets/css}/admin-style.css
  5. 0 admin/{ → assets}/css/colorpicker.css
  6. BIN admin/{ → assets}/images/1col.png
  7. BIN admin/{ → assets}/images/2-col-portfolio.png
  8. BIN admin/{ → assets}/images/2cl.png
  9. BIN admin/{ → assets}/images/2cr.png
  10. BIN admin/{ → assets}/images/3-col-portfolio.png
  11. BIN admin/{ → assets}/images/3cm.png
  12. BIN admin/{ → assets}/images/3cr.png
  13. BIN admin/{ → assets}/images/4-col-portfolio.png
  14. BIN admin/{ → assets}/images/accept.png
  15. BIN admin/{ → assets}/images/button_check.png
  16. BIN admin/{ → assets}/images/colorpicker/Thumbs.db
  17. BIN admin/{ → assets}/images/colorpicker/blank.gif
  18. BIN admin/{ → assets}/images/colorpicker/colorpicker_background.png
  19. BIN admin/{ → assets}/images/colorpicker/colorpicker_hex.png
  20. BIN admin/{ → assets}/images/colorpicker/colorpicker_hsb_b.png
  21. BIN admin/{ → assets}/images/colorpicker/colorpicker_hsb_h.png
  22. BIN admin/{ → assets}/images/colorpicker/colorpicker_hsb_s.png
  23. BIN admin/{ → assets}/images/colorpicker/colorpicker_indic.gif
  24. BIN admin/{ → assets}/images/colorpicker/colorpicker_overlay.png
  25. BIN admin/{ → assets}/images/colorpicker/colorpicker_rgb_b.png
  26. BIN admin/{ → assets}/images/colorpicker/colorpicker_rgb_g.png
  27. BIN admin/{ → assets}/images/colorpicker/colorpicker_rgb_r.png
  28. BIN admin/{ → assets}/images/colorpicker/colorpicker_select.gif
  29. BIN admin/{ → assets}/images/colorpicker/colorpicker_submit.png
  30. BIN admin/{ → assets}/images/colorpicker/select.png
  31. BIN admin/{ → assets}/images/dropdown-arrow.png
  32. BIN admin/{ → assets}/images/favicon.ico
  33. BIN admin/{ → assets}/images/icon-add.png
  34. BIN admin/{ → assets}/images/icon-backup.png
  35. BIN admin/{ → assets}/images/icon-delete.png
  36. BIN admin/{ → assets}/images/icon-docs.png
  37. BIN admin/{ → assets}/images/icon-edit.png
  38. BIN admin/{ → assets}/images/icon-home.png
  39. BIN admin/{ → assets}/images/icon-info.png
  40. BIN admin/{ → assets}/images/icon-notice.png
  41. BIN admin/{ → assets}/images/icon-paint.png
  42. BIN admin/{ → assets}/images/icon-settings.png
  43. BIN admin/{ → assets}/images/icon-slider.png
  44. BIN admin/{ → assets}/images/icon-warn.png
  45. BIN admin/{ → assets}/images/icon_option.png
  46. BIN admin/{ → assets}/images/loading-bottom.gif
  47. BIN admin/{ → assets}/images/select.png
  48. BIN admin/{ → assets}/images/sign_warning.png
  49. BIN admin/{ → assets}/images/stop.png
  50. BIN admin/{ → assets}/images/toggle_tabs.png
  51. BIN admin/{ → assets}/images/ui-bg_flat_0_aaaaaa_40x100.png
  52. BIN admin/{ → assets}/images/warning.png
  53. BIN admin/{ → assets}/images/wrench.png
  54. BIN admin/{ → assets}/images/wrench16.png
  55. 0 admin/{ → assets}/js/ajaxupload.js
  56. 0 admin/{ → assets}/js/colorpicker.js
  57. 0 admin/{ → assets}/js/cookie.js
  58. 0 admin/{ → assets}/js/jquery.maskedinput-1.2.2.js
  59. 0 admin/{ → assets}/js/jquery.tipsy.js
  60. 0 admin/{ → assets}/js/of-medialibrary-uploader.js
  61. +623 −0 admin/assets/js/smof.js
  62. +657 −0 admin/classes/class.options_machine.php
  63. +76 −0 admin/front-end/options.php
  64. +80 −0 admin/functions/functions.admin.php
  65. +245 −0 admin/functions/functions.interface.php
  66. +14 −0 admin/functions/functions.load.php
  67. +3 −3 admin/{medialibrary-uploader.php → functions/functions.mediauploader.php}
  68. +145 −89 admin/{theme-options.php → functions/functions.options.php}
  69. 0 admin/functions/functions.php
  70. +57 −0 admin/index.php
  71. +0 −4 admin/theme-functions.php
  72. +9 −22 functions.php
  73. +16 −0 readme.md
View
@@ -3,6 +3,23 @@ All questions and setup instructions please go to http://aquagraphite.com/2011/0
@author - Syamil MJ
@author - URI http://aquagraphite.com
@title - Slightly Modded Options Framework SMOF
-@description - Options frameworks with improved aesthetics and added features
-@version - 1.3
-@license - WTFPL - http://sam.zoy.org/wtfpl/
+@description - Options frameworks for WordPress Themes
+@version - 1.4.0
+@license - WTFPL - http://sam.zoy.org/wtfpl/
+
+Changelog:
+
+V 1.4.0 - 16 APRIL 2012
+- add folding checkbox group option (credits to plovs - https://github.com/plovs)
+- add sample grouped options
+- add transfer option
+- fix css quirks on some options
+- single call to admin/admin.php from functions.php
+- unique database name for options & backup
+- replaced ereg_replace function (deprecated in PHP 5.3)
+- uses add_theme_page to replace add_submenu_page
+- reorganized files, paths etc
+- delete background option
+- delete child types
+- everything a bit faster now
+- change reset method
@@ -1,70 +0,0 @@
-<?php
-/*-----------------------------------------------------------------------------------*/
-/* Head Hook
-/*-----------------------------------------------------------------------------------*/
-
-function of_head() { do_action( 'of_head' ); }
-
-/*-----------------------------------------------------------------------------------*/
-/* Add default options after activation */
-/*-----------------------------------------------------------------------------------*/
-if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
- //Call action that sets
- add_action('admin_head','of_option_setup');
-}
-
-/* set options=defaults if DB entry does not exist, else update defaults only */
-function of_option_setup() {
- global $of_options, $options_machine;
- $options_machine = new Options_Machine($of_options);
-
- if (!get_option(OPTIONS)){
- update_option(OPTIONS,$options_machine->Defaults);
- }
-}
-
-/*-----------------------------------------------------------------------------------*/
-/* Admin Backend */
-/*-----------------------------------------------------------------------------------*/
-function optionsframework_admin_message() {
-
- //Tweaked the message on theme activate
- ?>
- <script type="text/javascript">
- jQuery(function(){
-
- var message = '<p>This theme comes with an <a href="<?php echo admin_url('admin.php?page=optionsframework'); ?>">options panel</a> to configure settings. This theme also supports widgets, please visit the <a href="<?php echo admin_url('widgets.php'); ?>">widgets settings page</a> to configure them.</p>';
- jQuery('.themes-php #message2').html(message);
-
- });
- </script>
- <?php
-
-}
-
-add_action('admin_head', 'optionsframework_admin_message');
-
-
-/*-----------------------------------------------------------------------------------*/
-/* Small function to get all header classes */
-/*-----------------------------------------------------------------------------------*/
-
- function of_get_header_classes_array() {
- global $of_options;
-
- foreach ($of_options as $value) {
-
- if ($value['type'] == 'heading') {
- $hooks[] = ereg_replace("[^A-Za-z0-9]", "", strtolower($value['name']) );
- }
-
- }
-
- return $hooks;
-
- }
-
-
-/* For use in themes */
-$data = get_option(OPTIONS);
-?>
Oops, something went wrong.

0 comments on commit 66e18cd

Please sign in to comment.