wordpress-starter 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/CHANGELOG.md +1 -0
  2. data/LICENSE +20 -0
  3. data/README.md +34 -0
  4. data/lib/wordpress-starter.rb +29 -0
  5. data/stylesheets/_wordpress.scss +9 -0
  6. data/stylesheets/wordpress/_base.scss +74 -0
  7. data/stylesheets/wordpress/_defaults.scss +28 -0
  8. data/stylesheets/wordpress/_layout.scss +56 -0
  9. data/stylesheets/wordpress/_mixins.scss +57 -0
  10. data/stylesheets/wordpress/_page.scss +364 -0
  11. data/stylesheets/wordpress/_responsive.scss +231 -0
  12. data/stylesheets/wordpress/_theme.scss +83 -0
  13. data/stylesheets/wordpress/_typography.scss +135 -0
  14. data/stylesheets/wordpress/_utils.scss +64 -0
  15. data/templates/project/ie.scss +1 -0
  16. data/templates/project/manifest.rb +21 -0
  17. data/templates/project/print.css +4 -0
  18. data/templates/project/print.scss +104 -0
  19. data/templates/project/readme.txt +1 -0
  20. data/templates/project/screen.scss +1 -0
  21. data/templates/project/style.css +13 -0
  22. data/templates/starter/404.php +24 -0
  23. data/templates/starter/admin/README.txt +25 -0
  24. data/templates/starter/admin/assets/css/admin-style.css +838 -0
  25. data/templates/starter/admin/assets/css/colorpicker.css +177 -0
  26. data/templates/starter/admin/assets/images/1col.png +0 -0
  27. data/templates/starter/admin/assets/images/2-col-portfolio.png +0 -0
  28. data/templates/starter/admin/assets/images/2cl.png +0 -0
  29. data/templates/starter/admin/assets/images/2cr.png +0 -0
  30. data/templates/starter/admin/assets/images/3-col-portfolio.png +0 -0
  31. data/templates/starter/admin/assets/images/3cm.png +0 -0
  32. data/templates/starter/admin/assets/images/3cr.png +0 -0
  33. data/templates/starter/admin/assets/images/4-col-portfolio.png +0 -0
  34. data/templates/starter/admin/assets/images/accept.png +0 -0
  35. data/templates/starter/admin/assets/images/button_check.png +0 -0
  36. data/templates/starter/admin/assets/images/colorpicker/blank.gif +0 -0
  37. data/templates/starter/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
  38. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
  39. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
  40. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
  41. data/templates/starter/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
  42. data/templates/starter/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
  43. data/templates/starter/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
  44. data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
  45. data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
  46. data/templates/starter/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
  47. data/templates/starter/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
  48. data/templates/starter/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
  49. data/templates/starter/admin/assets/images/colorpicker/select.png +0 -0
  50. data/templates/starter/admin/assets/images/dropdown-arrow.png +0 -0
  51. data/templates/starter/admin/assets/images/favicon.ico +0 -0
  52. data/templates/starter/admin/assets/images/icon-add.png +0 -0
  53. data/templates/starter/admin/assets/images/icon-backup.png +0 -0
  54. data/templates/starter/admin/assets/images/icon-delete.png +0 -0
  55. data/templates/starter/admin/assets/images/icon-docs.png +0 -0
  56. data/templates/starter/admin/assets/images/icon-edit.png +0 -0
  57. data/templates/starter/admin/assets/images/icon-home.png +0 -0
  58. data/templates/starter/admin/assets/images/icon-info.png +0 -0
  59. data/templates/starter/admin/assets/images/icon-notice.png +0 -0
  60. data/templates/starter/admin/assets/images/icon-paint.png +0 -0
  61. data/templates/starter/admin/assets/images/icon-settings.png +0 -0
  62. data/templates/starter/admin/assets/images/icon-slider.png +0 -0
  63. data/templates/starter/admin/assets/images/icon-warn.png +0 -0
  64. data/templates/starter/admin/assets/images/icon_option.png +0 -0
  65. data/templates/starter/admin/assets/images/loading-bottom.gif +0 -0
  66. data/templates/starter/admin/assets/images/select.png +0 -0
  67. data/templates/starter/admin/assets/images/sign_warning.png +0 -0
  68. data/templates/starter/admin/assets/images/stop.png +0 -0
  69. data/templates/starter/admin/assets/images/toggle_tabs.png +0 -0
  70. data/templates/starter/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  71. data/templates/starter/admin/assets/images/warning.png +0 -0
  72. data/templates/starter/admin/assets/images/wrench.png +0 -0
  73. data/templates/starter/admin/assets/images/wrench16.png +0 -0
  74. data/templates/starter/admin/assets/js/ajaxupload.js +606 -0
  75. data/templates/starter/admin/assets/js/colorpicker.js +455 -0
  76. data/templates/starter/admin/assets/js/cookie.js +1 -0
  77. data/templates/starter/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
  78. data/templates/starter/admin/assets/js/jquery.tipsy.js +241 -0
  79. data/templates/starter/admin/assets/js/of-medialibrary-uploader.js +168 -0
  80. data/templates/starter/admin/assets/js/smof.js +623 -0
  81. data/templates/starter/admin/classes/class.options-machine.php +627 -0
  82. data/templates/starter/admin/front-end/options.php +77 -0
  83. data/templates/starter/admin/functions/functions.admin.php +76 -0
  84. data/templates/starter/admin/functions/functions.interface.php +232 -0
  85. data/templates/starter/admin/functions/functions.load.php +14 -0
  86. data/templates/starter/admin/functions/functions.mediauploader.php +194 -0
  87. data/templates/starter/admin/functions/functions.options.php +507 -0
  88. data/templates/starter/admin/functions/functions.php +0 -0
  89. data/templates/starter/admin/index.php +86 -0
  90. data/templates/starter/admin/layouts/default.css +0 -0
  91. data/templates/starter/admin/layouts/placebo.css +0 -0
  92. data/templates/starter/app.js +97 -0
  93. data/templates/starter/archive.php +57 -0
  94. data/templates/starter/category.php +40 -0
  95. data/templates/starter/comments.php +65 -0
  96. data/templates/starter/content-aside.php +26 -0
  97. data/templates/starter/content-image.php +29 -0
  98. data/templates/starter/content-link.php +27 -0
  99. data/templates/starter/content-none.php +21 -0
  100. data/templates/starter/content-page.php +24 -0
  101. data/templates/starter/content-quote.php +26 -0
  102. data/templates/starter/content-status.php +33 -0
  103. data/templates/starter/content.php +67 -0
  104. data/templates/starter/editor-style.scss +359 -0
  105. data/templates/starter/footer.php +29 -0
  106. data/templates/starter/functions.php +1211 -0
  107. data/templates/starter/header.php +63 -0
  108. data/templates/starter/ie.scss +1 -0
  109. data/templates/starter/images/bg/bg0.png +0 -0
  110. data/templates/starter/images/bg/bg1.png +0 -0
  111. data/templates/starter/images/bg/bg10.png +0 -0
  112. data/templates/starter/images/bg/bg11.png +0 -0
  113. data/templates/starter/images/bg/bg2.png +0 -0
  114. data/templates/starter/images/bg/bg3.png +0 -0
  115. data/templates/starter/images/bg/bg4.png +0 -0
  116. data/templates/starter/images/bg/bg5.png +0 -0
  117. data/templates/starter/images/bg/bg6.jpg +0 -0
  118. data/templates/starter/images/bg/bg7.jpg +0 -0
  119. data/templates/starter/images/bg/bg8.png +0 -0
  120. data/templates/starter/images/bg/bg9.png +0 -0
  121. data/templates/starter/index.php +19 -0
  122. data/templates/starter/loop.php +30 -0
  123. data/templates/starter/manifest.rb +149 -0
  124. data/templates/starter/moderninzr.min.js +4 -0
  125. data/templates/starter/options.php +407 -0
  126. data/templates/starter/page.php +29 -0
  127. data/templates/starter/print.scss +104 -0
  128. data/templates/starter/readme.txt +1 -0
  129. data/templates/starter/screen.scss +1 -0
  130. data/templates/starter/search.php +31 -0
  131. data/templates/starter/search.png +0 -0
  132. data/templates/starter/searchform.php +14 -0
  133. data/templates/starter/sidebar.php +15 -0
  134. data/templates/starter/single.php +31 -0
  135. data/templates/starter/style.css +13 -0
  136. data/templates/starter/tag.php +41 -0
  137. metadata +230 -0
@@ -0,0 +1,507 @@
1
+ <?php
2
+ add_action( 'init', 'of_options' );
3
+
4
+ if ( !function_exists( 'of_options' ) ) {
5
+ function of_options() {
6
+ // Access the WordPress Categories via an Array
7
+ $of_categories = array();
8
+ $of_categories_obj = get_categories( 'hide_empty=0' );
9
+ foreach ( $of_categories_obj as $of_cat ) {
10
+ $of_categories[$of_cat->cat_ID] = $of_cat->cat_name;
11
+ }
12
+ $categories_tmp = array_unshift( $of_categories, "Select a category:" );
13
+
14
+ // Access the WordPress Pages via an Array
15
+ $of_pages = array();
16
+ $of_pages_obj = get_pages( 'sort_column=post_parent,menu_order' );
17
+ foreach ( $of_pages_obj as $of_page ) {
18
+ $of_pages[$of_page->ID] = $of_page->post_name; }
19
+ $of_pages_tmp = array_unshift( $of_pages, "Select a page:" );
20
+
21
+ // Testing
22
+ $of_options_select = array( "one", "two", "three", "four", "five" );
23
+ $of_options_radio = array( "one" => "One", "two" => "Two", "three" => "Three", "four" => "Four", "five" => "Five" );
24
+
25
+ // Sample Homepage blocks for the layout manager (sorter)
26
+ $of_options_homepage_blocks = array
27
+ (
28
+ "disabled" => array (
29
+ "placebo" => "placebo", //REQUIRED!
30
+ "block_one" => "Block One",
31
+ "block_two" => "Block Two",
32
+ "block_three" => "Block Three",
33
+ ),
34
+ "enabled" => array (
35
+ "placebo" => "placebo", //REQUIRED!
36
+ "block_four" => "Block Four",
37
+ ),
38
+ );
39
+
40
+ // Stylesheets Reader
41
+ $alt_stylesheet_path = LAYOUT_PATH;
42
+ $alt_stylesheets = array();
43
+
44
+ if ( is_dir( $alt_stylesheet_path ) ) {
45
+ if ( $alt_stylesheet_dir = opendir( $alt_stylesheet_path ) ) {
46
+ while ( ( $alt_stylesheet_file = readdir( $alt_stylesheet_dir ) ) !== false ) {
47
+ if ( stristr( $alt_stylesheet_file, ".css" ) !== false ) {
48
+ $alt_stylesheets[] = $alt_stylesheet_file;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+
55
+ //Background Images Reader
56
+ $bg_images_path = STYLESHEETPATH. '/images/bg/'; // change this to where you store your bg images
57
+ $bg_images_url = get_bloginfo( 'template_url' ).'/images/bg/'; // change this to where you store your bg images
58
+ $bg_images = array();
59
+
60
+ if ( is_dir( $bg_images_path ) ) {
61
+ if ( $bg_images_dir = opendir( $bg_images_path ) ) {
62
+ while ( ( $bg_images_file = readdir( $bg_images_dir ) ) !== false ) {
63
+ if ( stristr( $bg_images_file, ".png" ) !== false || stristr( $bg_images_file, ".jpg" ) !== false ) {
64
+ $bg_images[] = $bg_images_url . $bg_images_file;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ /*-----------------------------------------------------------------------------------*/
71
+ /* TO DO: Add options/functions that use these */
72
+ /*-----------------------------------------------------------------------------------*/
73
+
74
+ //More Options
75
+ $uploads_arr = wp_upload_dir();
76
+ $all_uploads_path = $uploads_arr['path'];
77
+ $all_uploads = get_option( 'of_uploads' );
78
+ $other_entries = array( "Select a number:", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19" );
79
+ $body_repeat = array( "no-repeat", "repeat-x", "repeat-y", "repeat" );
80
+ $body_pos = array( "top left", "top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right" );
81
+
82
+ // Image Alignment radio box
83
+ $of_options_thumb_align = array( "alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center" );
84
+
85
+ // Image Links to Options
86
+ $of_options_image_link_to = array( "image" => "The Image", "post" => "The Post" );
87
+
88
+ /*-----------------------------------------------------------------------------------*/
89
+ /* The Options Array */
90
+ /*-----------------------------------------------------------------------------------*/
91
+
92
+ // Set the Options Array
93
+ global $of_options;
94
+ $of_options = array();
95
+
96
+ $of_options[] = array(
97
+ "name" => "Home Settings",
98
+ "type" => "heading"
99
+ );
100
+
101
+ $of_options[] = array(
102
+ "name" => "Hello there!",
103
+ "desc" => "",
104
+ "id" => "introduction",
105
+ "std" => "<h3 style=\"margin: 0 0 10px;\">Welcome to the Options Framework demo.</h3> This is a slightly modified version of the original options framework by Devin Price with a couple of aesthetical improvements on the interface and some cool additional features. If you want to learn how to setup these options or just need general help on using it feel free to visit my blog at <a href=\"http://aquagraphite.com/2011/09/29/slightly-modded-options-framework/\">AquaGraphite.com</a>",
106
+ "icon" => true,
107
+ "type" => "info" );
108
+
109
+ $of_options[] = array(
110
+ "name" => "Media Uploader",
111
+ "desc" => "Upload images using the native media uploader, or define the URL directly",
112
+ "id" => "media_upload",
113
+ "std" => "",
114
+ "type" => "media"
115
+ );
116
+
117
+ $of_options[] = array(
118
+ "name" => "Media Uploader Min",
119
+ "desc" => "Upload images using native media uploader. This is a min version, meaning it has no url to copy paste. Perfect for logo.",
120
+ "id" => "media_upload_2",
121
+ "std" => "",
122
+ "mod" => "min",
123
+ "type" => "media"
124
+ );
125
+
126
+ $of_options[] = array(
127
+ "name" => "Homepage Layout Manager",
128
+ "desc" => "Organize how you want the layout to appear on the homepage",
129
+ "id" => "homepage_blocks",
130
+ "std" => $of_options_homepage_blocks,
131
+ "type" => "sorter"
132
+ );
133
+
134
+ $of_options[] = array(
135
+ "name" => "Slider Options",
136
+ "desc" => "Unlimited slider with drag and drop sortings.",
137
+ "id" => "pingu_slider",
138
+ "std" => "",
139
+ "type" => "slider"
140
+ );
141
+
142
+ $of_options[] = array(
143
+ "name" => "Background Images",
144
+ "desc" => "Select a background pattern.",
145
+ "id" => "custom_bg",
146
+ "std" => $bg_images_url."bg0.png",
147
+ "type" => "tiles",
148
+ "options" => $bg_images,
149
+ );
150
+
151
+ $of_options[] = array(
152
+ "name" => "Typography",
153
+ "desc" => "Typography option with each property can be called individually.",
154
+ "id" => "custom_type",
155
+ "std" => array( 'size' => '12px', 'style' => 'bold italic' ),
156
+ "type" => "typography"
157
+ );
158
+
159
+ $of_options[] = array( "name" => "General Settings",
160
+ "type" => "heading"
161
+ );
162
+
163
+ $url = ADMIN_DIR . 'assets/images/';
164
+ $of_options[] = array(
165
+ "name" => "Main Layout",
166
+ "desc" => "Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.",
167
+ "id" => "layout",
168
+ "std" => "2c-l-fixed.css",
169
+ "type" => "images",
170
+ "options" => array(
171
+ '1col-fixed.css' => $url . '1col.png',
172
+ '2c-r-fixed.css' => $url . '2cr.png',
173
+ '2c-l-fixed.css' => $url . '2cl.png',
174
+ '3c-fixed.css' => $url . '3cm.png',
175
+ '3c-r-fixed.css' => $url . '3cr.png',
176
+ ),
177
+ );
178
+ $of_options[] = array(
179
+ "name" => "Custom Favicon",
180
+ "desc" => "Upload a 16px x 16px Png/Gif image that will represent your website's favicon.",
181
+ "id" => "custom_favicon",
182
+ "std" => "",
183
+ "type" => "upload",
184
+ );
185
+
186
+ $of_options[] = array(
187
+ "name" => "Tracking Code",
188
+ "desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
189
+ "id" => "google_analytics",
190
+ "std" => "",
191
+ "type" => "textarea",
192
+ );
193
+
194
+ $of_options[] = array(
195
+ "name" => "Footer Text",
196
+ "desc" => "You can use the following shortcodes in your footer text: [wp-link] [theme-link] [loginout-link] [blog-title] [blog-link] [the-year]",
197
+ "id" => "footer_text",
198
+ "std" => "Powered by [wp-link]. Built on the [theme-link].",
199
+ "type" => "textarea",
200
+ );
201
+
202
+ $of_options[] = array(
203
+ "name" => "Styling Options",
204
+ "type" => "heading",
205
+ );
206
+
207
+ $of_options[] = array(
208
+ "name" => "Theme Stylesheet",
209
+ "desc" => "Select your themes alternative color scheme.",
210
+ "id" => "alt_stylesheet",
211
+ "std" => "default.css",
212
+ "type" => "select",
213
+ "options" => $alt_stylesheets,
214
+ );
215
+
216
+ $of_options[] = array(
217
+ "name" => "Body Background Color",
218
+ "desc" => "Pick a background color for the theme (default: #fff).",
219
+ "id" => "body_background",
220
+ "std" => "",
221
+ "type" => "color",
222
+ );
223
+
224
+ $of_options[] = array(
225
+ "name" => "Header Background Color",
226
+ "desc" => "Pick a background color for the header (default: #fff).",
227
+ "id" => "header_background",
228
+ "std" => "",
229
+ "type" => "color",
230
+ );
231
+
232
+ $of_options[] = array(
233
+ "name" => "Footer Background Color",
234
+ "desc" => "Pick a background color for the footer (default: #fff).",
235
+ "id" => "footer_background",
236
+ "std" => "",
237
+ "type" => "color",
238
+ );
239
+
240
+ $of_options[] = array(
241
+ "name" => "Body Font",
242
+ "desc" => "Specify the body font properties",
243
+ "id" => "body_font",
244
+ "std" => array( 'size' => '12px', 'face' => 'arial', 'style' => 'normal', 'color' => '#000000' ),
245
+ "type" => "typography",
246
+ );
247
+
248
+ $of_options[] = array(
249
+ "name" => "Custom CSS",
250
+ "desc" => "Quickly add some CSS to your theme by adding it to this block.",
251
+ "id" => "custom_css",
252
+ "std" => "",
253
+ "type" => "textarea",
254
+ );
255
+
256
+ $of_options[] = array(
257
+ "name" => "Example Options",
258
+ "type" => "heading",
259
+ );
260
+
261
+ $of_options[] = array(
262
+ "name" => "Typography",
263
+ "desc" => "This is a typographic specific option.",
264
+ "id" => "typography",
265
+ "std" => array(
266
+ 'size' => '12px',
267
+ 'face' => 'verdana',
268
+ 'style' => 'bold italic',
269
+ 'color' => '#123456',
270
+ ),
271
+ "type" => "typography",
272
+ );
273
+
274
+ $of_options[] = array(
275
+ "name" => "Border",
276
+ "desc" => "This is a border specific option.",
277
+ "id" => "border",
278
+ "std" => array(
279
+ 'width' => '2',
280
+ 'style' => 'dotted',
281
+ 'color' => '#444444',
282
+ ),
283
+ "type" => "border",
284
+ );
285
+
286
+ $of_options[] = array(
287
+ "name" => "Colorpicker",
288
+ "desc" => "No color selected.",
289
+ "id" => "example_colorpicker",
290
+ "std" => "",
291
+ "type" => "color"
292
+ );
293
+
294
+ $of_options[] = array(
295
+ "name" => "Colorpicker (default #2098a8)",
296
+ "desc" => "Color selected.",
297
+ "id" => "example_colorpicker_2",
298
+ "std" => "#2098a8",
299
+ "type" => "color"
300
+ );
301
+
302
+ $of_options[] = array(
303
+ "name" => "Upload",
304
+ "desc" => "An image uploader without text input.",
305
+ "id" => "uploader",
306
+ "std" => "",
307
+ "type" => "upload"
308
+ );
309
+
310
+ $of_options[] = array(
311
+ "name" => "Upload Min",
312
+ "desc" => "An image uploader with text input.",
313
+ "id" => "uploader2",
314
+ "std" => "",
315
+ "mod" => "min",
316
+ "type" => "upload"
317
+ );
318
+
319
+ $of_options[] = array(
320
+ "name" => "Input Text",
321
+ "desc" => "A text input field.",
322
+ "id" => "test_text",
323
+ "std" => "Default Value",
324
+ "type" => "text"
325
+ );
326
+
327
+ $of_options[] = array(
328
+ "name" => "Input Checkbox (false)",
329
+ "desc" => "Example checkbox with false selected.",
330
+ "id" => "example_checkbox_false",
331
+ "std" => 0,
332
+ "type" => "checkbox"
333
+ );
334
+
335
+ $of_options[] = array(
336
+ "name" => "Input Checkbox (true)",
337
+ "desc" => "Example checkbox with true selected.",
338
+ "id" => "example_checkbox_true",
339
+ "std" => 1,
340
+ "type" => "checkbox"
341
+ );
342
+
343
+ $of_options[] = array(
344
+ "name" => "Normal Select",
345
+ "desc" => "Normal Select Box.",
346
+ "id" => "example_select",
347
+ "std" => "three",
348
+ "type" => "select",
349
+ "options" => $of_options_select
350
+ );
351
+
352
+ $of_options[] = array(
353
+ "name" => "Mini Select",
354
+ "desc" => "A mini select box.",
355
+ "id" => "example_select_2",
356
+ "std" => "two",
357
+ "type" => "select2",
358
+ "class" => "mini", //mini, tiny, small
359
+ "options" => $of_options_radio
360
+ );
361
+
362
+ $of_options[] = array(
363
+ "name" => "Input Radio (one)",
364
+ "desc" => "Radio select with default of 'one'.",
365
+ "id" => "example_radio",
366
+ "std" => "one",
367
+ "type" => "radio",
368
+ "options" => $of_options_radio
369
+ );
370
+
371
+ $url = ADMIN_DIR . 'assets/images/';
372
+ $of_options[] = array(
373
+ "name" => "Image Select",
374
+ "desc" => "Use radio buttons as images.",
375
+ "id" => "images",
376
+ "std" => "warning.css",
377
+ "type" => "images",
378
+ "options" => array(
379
+ 'warning.css' => $url . 'warning.png',
380
+ 'accept.css' => $url . 'accept.png',
381
+ 'wrench.css' => $url . 'wrench.png'
382
+ )
383
+ );
384
+
385
+ $of_options[] = array(
386
+ "name" => "Textarea",
387
+ "desc" => "Textarea description.",
388
+ "id" => "example_textarea",
389
+ "std" => "Default Text",
390
+ "type" => "textarea"
391
+ );
392
+
393
+ $of_options[] = array(
394
+ "name" => "Multicheck",
395
+ "desc" => "Multicheck description.",
396
+ "id" => "example_multicheck",
397
+ "std" => array( "three", "two" ),
398
+ "type" => "multicheck",
399
+ "options" => $of_options_radio
400
+ );
401
+
402
+ $of_options[] = array(
403
+ "name" => "Select a Category",
404
+ "desc" => "A list of all the categories being used on the site.",
405
+ "id" => "example_category",
406
+ "std" => "Select a category:",
407
+ "type" => "select",
408
+ "options" => $of_categories
409
+ );
410
+
411
+ //Advanced Settings
412
+ $of_options[] = array(
413
+ "name" => "Advanced Settings",
414
+ "type" => "heading"
415
+ );
416
+
417
+ $of_options[] = array(
418
+ "name" => "Folding Checkbox",
419
+ "desc" => "This checkbox will hide/show a couple of options group. Try it out!",
420
+ "id" => "offline",
421
+ "std" => 0,
422
+ "folds" => 1,
423
+ "type" => "checkbox"
424
+ );
425
+
426
+ $of_options[] = array(
427
+ "name" => "Hidden option 1",
428
+ "desc" => "This is a sample hidden option 1",
429
+ "id" => "hidden_option_1",
430
+ "std" => "Hi, I\'m just a text input",
431
+ "fold" => "offline", /* the checkbox hook */
432
+ "type" => "text"
433
+ );
434
+
435
+ $of_options[] = array(
436
+ "name" => "Hidden option 2",
437
+ "desc" => "This is a sample hidden option 2",
438
+ "id" => "hidden_option_2",
439
+ "std" => "Hi, I\'m just a text input",
440
+ "fold" => "offline", /* the checkbox hook */
441
+ "type" => "text"
442
+ );
443
+
444
+ $of_options[] = array(
445
+ "name" => "Hello there!",
446
+ "desc" => "",
447
+ "id" => "introduction_2",
448
+ "std" => "<h3 style=\"margin: 0 0 10px;\">Grouped Options.</h3> You can group a bunch of options under a single heading by removing the 'name' value from the options array except for the first option in the group.",
449
+ "icon" => true,
450
+ "type" => "info"
451
+ );
452
+
453
+ $of_options[] = array(
454
+ "name" => "Some pretty colors for you",
455
+ "desc" => "Color 1.",
456
+ "id" => "example_colorpicker_3",
457
+ "std" => "#2098a8",
458
+ "type" => "color",
459
+ );
460
+
461
+ $of_options[] = array(
462
+ "name" => "",
463
+ "desc" => "Color 2.",
464
+ "id" => "example_colorpicker_4",
465
+ "std" => "#2098a8",
466
+ "type" => "color",
467
+ );
468
+
469
+ $of_options[] = array(
470
+ "name" => "",
471
+ "desc" => "Color 3.",
472
+ "id" => "example_colorpicker_5",
473
+ "std" => "#2098a8",
474
+ "type" => "color",
475
+ );
476
+
477
+ $of_options[] = array(
478
+ "name" => "",
479
+ "desc" => "Color 4.",
480
+ "id" => "example_colorpicker_6",
481
+ "std" => "#2098a8",
482
+ "type" => "color",
483
+ );
484
+
485
+ // Backup Options
486
+ $of_options[] = array(
487
+ "name" => "Backup Options",
488
+ "type" => "heading",
489
+ );
490
+
491
+ $of_options[] = array(
492
+ "name" => "Backup and Restore Options",
493
+ "id" => 'of_backup',
494
+ "std" => '',
495
+ "type" => 'backup',
496
+ "desc" => 'You can use the two buttons below to backup your current options, and then restore it back at a later time. This is useful if you want to experiment on the options but would like to keep the old settings in case you need it back.',
497
+ );
498
+
499
+ $of_options[] = array(
500
+ 'name' => 'Transfer Theme Options Data',
501
+ 'id' => 'of_transfer',
502
+ 'std' => '',
503
+ 'type' => 'transfer',
504
+ 'desc' => 'You can tranfer the saved options data between different installs by copying the text inside the text box. To import data from another install, replace the data in the text box with the one from another install and click "Import Options".',
505
+ );
506
+ }
507
+ }