wordpress-starter 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,63 @@
1
+ <?php
2
+ /**
3
+ * The Header for our theme.
4
+ *
5
+ * @category Theme
6
+ * @package [starter]
7
+ * @author [Your Name]
8
+ * @copyright 2012 [Your Name]
9
+ */
10
+ ?><!DOCTYPE html>
11
+ <!--[if IEMobile 7 ]> <html <?php language_attributes(); ?>class="no-js iem7"> <![endif]-->
12
+ <!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
13
+ <!--[if IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
14
+ <!--[if IE 8 ]> <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
15
+ <!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
16
+ <head>
17
+ <meta charset="<?php bloginfo( 'charset' ); ?>" />
18
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
19
+
20
+ <title><?php
21
+ /*
22
+ * Print the <title> tag based on what is being viewed.
23
+ * We filter the output of wp_title() a bit -- see
24
+ * starter_filter_wp_title() in functions.php.
25
+ */
26
+ wp_title( '|', true, 'right' );
27
+
28
+ ?></title>
29
+
30
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
31
+ <meta http-equiv="cleartype" content="on">
32
+
33
+ <?php
34
+ /* Always have wp_head() just before the closing </head>
35
+ * tag of your theme, or you will break many plugins, which
36
+ * generally use this hook to add elements to <head> such
37
+ * as styles, scripts, and meta tags.
38
+ */
39
+ wp_head();
40
+ ?>
41
+
42
+ <!--[if lt IE 9]>
43
+ <link href="<?php echo get_template_directory_uri();?>/stylesheets/ie.css" media="all" rel="stylesheet">
44
+ <![endif]-->
45
+
46
+ <?php if ( wp_count_posts()->publish > 0 ) : ?>
47
+ <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo( 'name' ); ?> Feed" href="<?php echo home_url(); ?>/feed/">
48
+ <?php endif; ?>
49
+ </head>
50
+ <body <?php body_class(); ?>>
51
+ <div class="page">
52
+ <header class="header" role="banner">
53
+ <hgroup>
54
+ <h1>
55
+ <a href="<?php echo site_url();?>"><span class="assistive-text"><?php bloginfo( 'name' );?></span></a>
56
+ </h1>
57
+ <h2 class="assistive-text"><?php bloginfo( 'description' );?></h2>
58
+ </hgroup>
59
+ </header>
60
+ <div class="container">
61
+ <?php wp_nav_menu( array( 'container' => 'nav', 'container_class' => 'nav-menu', 'theme_location' => 'primary', 'fallback_cb' => 'starter_page_menu' ) ); ?>
62
+ <section class="content" role="document">
63
+ <div class="main" role="main">
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,19 @@
1
+ <?php
2
+ /**
3
+ * The main template file.
4
+ *
5
+ * @category Theme
6
+ * @package [starter]
7
+ * @author [Your Name]
8
+ * @copyright 2012 [Your Name]
9
+ */
10
+
11
+ get_header();
12
+
13
+ /* Run the loop to output the posts.
14
+ * If you want to overload this in a child theme then include a file
15
+ * called loop-index.php and that will be used instead.
16
+ */
17
+ get_template_part( 'loop', 'index' );
18
+
19
+ get_footer();
@@ -0,0 +1,30 @@
1
+ <?php
2
+ /**
3
+ * The loop that displays posts.
4
+ *
5
+ * The loop displays the posts and the post content. See
6
+ * http://codex.wordpress.org/The_Loop to understand it and
7
+ * http://codex.wordpress.org/Template_Tags to understand
8
+ * the tags used in it.
9
+ *
10
+ * @category Theme
11
+ * @package [starter]
12
+ * @author [Your Name]
13
+ * @copyright 2012 [Your Name]
14
+ */
15
+
16
+ /* If there are no posts to display, such as an empty archive page */
17
+ if ( have_posts() ):
18
+ while ( have_posts() ):
19
+ the_post();
20
+
21
+ get_template_part( 'content', get_post_format() );
22
+
23
+ comments_template( '', true );
24
+ endwhile;
25
+
26
+ /* Display navigation to next/previous pages when applicable */
27
+ do_action( 'pagination' );
28
+ else:
29
+ get_template_part( 'content', 'none' );
30
+ endif;
@@ -0,0 +1,149 @@
1
+ # Description
2
+ description "This is a blank WordPress theme configured to use Sass"
3
+
4
+ # Auto discover directories
5
+ discover :directories
6
+
7
+ file 'admin/assets/css/admin-style.css'
8
+ file 'admin/assets/css/colorpicker.css'
9
+
10
+ file 'admin/assets/images/colorpicker/blank.gif'
11
+ file 'admin/assets/images/colorpicker/colorpicker_background.png'
12
+ file 'admin/assets/images/colorpicker/colorpicker_hex.png'
13
+ file 'admin/assets/images/colorpicker/colorpicker_hsb_b.png'
14
+ file 'admin/assets/images/colorpicker/colorpicker_hsb_h.png'
15
+ file 'admin/assets/images/colorpicker/colorpicker_hsb_s.png'
16
+ file 'admin/assets/images/colorpicker/colorpicker_indic.gif'
17
+ file 'admin/assets/images/colorpicker/colorpicker_overlay.png'
18
+ file 'admin/assets/images/colorpicker/colorpicker_rgb_b.png'
19
+ file 'admin/assets/images/colorpicker/colorpicker_rgb_g.png'
20
+ file 'admin/assets/images/colorpicker/colorpicker_rgb_r.png'
21
+ file 'admin/assets/images/colorpicker/colorpicker_select.gif'
22
+ file 'admin/assets/images/colorpicker/colorpicker_submit.png'
23
+ file 'admin/assets/images/colorpicker/select.png'
24
+
25
+ file 'admin/assets/images/1col.png'
26
+ file 'admin/assets/images/2-col-portfolio.png'
27
+ file 'admin/assets/images/2cl.png'
28
+ file 'admin/assets/images/2cr.png'
29
+ file 'admin/assets/images/3-col-portfolio.png'
30
+ file 'admin/assets/images/3cm.png'
31
+ file 'admin/assets/images/3cr.png'
32
+ file 'admin/assets/images/4-col-portfolio.png'
33
+ file 'admin/assets/images/accept.png'
34
+ file 'admin/assets/images/button_check.png'
35
+ file 'admin/assets/images/dropdown-arrow.png'
36
+ file 'admin/assets/images/favicon.ico'
37
+ file 'admin/assets/images/icon_option.png'
38
+ file 'admin/assets/images/icon-add.png'
39
+ file 'admin/assets/images/icon-backup.png'
40
+ file 'admin/assets/images/icon-delete.png'
41
+ file 'admin/assets/images/icon-docs.png'
42
+ file 'admin/assets/images/icon-edit.png'
43
+ file 'admin/assets/images/icon-home.png'
44
+ file 'admin/assets/images/icon-info.png'
45
+ file 'admin/assets/images/icon-notice.png'
46
+ file 'admin/assets/images/icon-paint.png'
47
+ file 'admin/assets/images/icon-settings.png'
48
+ file 'admin/assets/images/icon-slider.png'
49
+ file 'admin/assets/images/icon-warn.png'
50
+ file 'admin/assets/images/loading-bottom.gif'
51
+ file 'admin/assets/images/select.png'
52
+ file 'admin/assets/images/sign_warning.png'
53
+ file 'admin/assets/images/stop.png'
54
+ file 'admin/assets/images/toggle_tabs.png'
55
+ file 'admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png'
56
+ file 'admin/assets/images/warning.png'
57
+ file 'admin/assets/images/wrench.png'
58
+ file 'admin/assets/images/wrench16.png'
59
+
60
+ file 'admin/assets/js/ajaxupload.js'
61
+ file 'admin/assets/js/colorpicker.js'
62
+ file 'admin/assets/js/cookie.js'
63
+ file 'admin/assets/js/jquery.maskedinput-1.2.2.js'
64
+ file 'admin/assets/js/jquery.tipsy.js'
65
+ file 'admin/assets/js/of-medialibrary-uploader.js'
66
+ file 'admin/assets/js/smof.js'
67
+
68
+ file 'admin/classes/class.options-machine.php'
69
+
70
+ file 'admin/front-end/options.php'
71
+
72
+ file 'admin/functions/functions.admin.php'
73
+ file 'admin/functions/functions.interface.php'
74
+ file 'admin/functions/functions.load.php'
75
+ file 'admin/functions/functions.mediauploader.php'
76
+ file 'admin/functions/functions.options.php'
77
+ file 'admin/functions/functions.php'
78
+
79
+ file 'admin/layouts/default.css'
80
+ file 'admin/layouts/placebo.css'
81
+
82
+ file 'admin/index.php'
83
+ file 'admin/README.txt'
84
+
85
+ file 'images/bg/bg0.png'
86
+ file 'images/bg/bg1.png'
87
+ file 'images/bg/bg2.png'
88
+ file 'images/bg/bg3.png'
89
+ file 'images/bg/bg4.png'
90
+ file 'images/bg/bg5.png'
91
+ file 'images/bg/bg6.jpg'
92
+ file 'images/bg/bg7.jpg'
93
+ file 'images/bg/bg8.png'
94
+ file 'images/bg/bg9.png'
95
+ file 'images/bg/bg10.png'
96
+ file 'images/bg/bg11.png'
97
+
98
+ # Wordpress Import
99
+ file '404.php'
100
+ file 'archive.php'
101
+ file 'category.php'
102
+ file 'comments.php'
103
+ file 'content-aside.php'
104
+ file 'content-image.php'
105
+ file 'content-link.php'
106
+ file 'content-none.php'
107
+ file 'content-page.php'
108
+ file 'content-quote.php'
109
+ file 'content-status.php'
110
+ file 'content.php'
111
+ file 'footer.php'
112
+ file 'functions.php'
113
+ file 'header.php'
114
+ file 'index.php'
115
+ file 'loop.php'
116
+ file 'options.php'
117
+ file 'page.php'
118
+ file 'readme.txt'
119
+ file 'search.php'
120
+ file 'searchform.php'
121
+ file 'sidebar.php'
122
+ file 'single.php'
123
+ file 'style.css'
124
+ file 'tag.php'
125
+
126
+ directory 'languages'
127
+
128
+ image 'search.png'
129
+
130
+ # Javascript Import
131
+ javascript 'app.js'
132
+ javascript 'moderninzr.min.js'
133
+
134
+ # Stylesheet Import
135
+ stylesheet 'editor-style.scss', :media => 'screen, projection'
136
+ stylesheet 'screen.scss', :media => 'screen, projection'
137
+ stylesheet 'print.scss', :media => 'screen, projection'
138
+ stylesheet 'ie.scss', :media => 'screen, projection', :condition => "lt IE 9"
139
+
140
+ # Compass Extension Help
141
+ help %Q{
142
+ compass create -r wordpress-starter --using wordpress/starter -s compressed starter
143
+ }
144
+
145
+ # Compass Extension Welcome Message
146
+ # Users will see this when they create a new project using this template.
147
+ welcome_message %Q{
148
+ This is a blank WordPress theme configured to use Sass
149
+ }
@@ -0,0 +1,4 @@
1
+ /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2
+ * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexboxlegacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
3
+ */
4
+ ;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.flexboxlegacy=function(){return J("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
@@ -0,0 +1,407 @@
1
+ <?php
2
+ function of_options() {
3
+ // Access the WordPress Categories via an Array
4
+ $of_categories = array();
5
+ $of_categories_obj = get_categories( 'hide_empty=0' );
6
+ foreach ( $of_categories_obj as $of_cat ) {
7
+ $of_categories[$of_cat->cat_ID] = $of_cat->cat_name;}
8
+ $categories_tmp = array_unshift( $of_categories, "Select a category:" );
9
+
10
+ //Access the WordPress Pages via an Array
11
+ $of_pages = array();
12
+ $of_pages_obj = get_pages( 'sort_column=post_parent,menu_order' );
13
+ foreach ( $of_pages_obj as $of_page ) {
14
+ $of_pages[$of_page->ID] = $of_page->post_name; }
15
+ $of_pages_tmp = array_unshift( $of_pages, "Select a page:" );
16
+
17
+ //Testing
18
+ $of_options_select = array( "one", "two", "three", "four", "five" );
19
+ $of_options_radio = array( "one" => "One", "two" => "Two", "three" => "Three", "four" => "Four", "five" => "Five" );
20
+
21
+ //Sample Homepage blocks for the layout manager (sorter)
22
+ $of_options_homepage_blocks = array
23
+ (
24
+ "disabled" => array (
25
+ "placebo" => "placebo", //REQUIRED!
26
+ "block_one" => "Block One",
27
+ "block_two" => "Block Two",
28
+ "block_three" => "Block Three",
29
+ ),
30
+ "enabled" => array (
31
+ "placebo" => "placebo", //REQUIRED!
32
+ "block_four" => "Block Four",
33
+ ),
34
+ );
35
+
36
+
37
+ //Stylesheets Reader
38
+ $alt_stylesheet_path = LAYOUT_PATH;
39
+ $alt_stylesheets = array();
40
+
41
+ if ( is_dir( $alt_stylesheet_path ) ) {
42
+ if ( $alt_stylesheet_dir = opendir( $alt_stylesheet_path ) ) {
43
+ while ( ( $alt_stylesheet_file = readdir( $alt_stylesheet_dir ) ) !== false ) {
44
+ if ( stristr( $alt_stylesheet_file, ".css" ) !== false ) {
45
+ $alt_stylesheets[] = $alt_stylesheet_file;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+
52
+ //Background Images Reader
53
+ $bg_images_path = STYLESHEETPATH. '/images/bg/'; // change this to where you store your bg images
54
+ $bg_images_url = get_bloginfo( 'template_url' ).'/images/bg/'; // change this to where you store your bg images
55
+ $bg_images = array();
56
+
57
+ if ( is_dir( $bg_images_path ) ) {
58
+ if ( $bg_images_dir = opendir( $bg_images_path ) ) {
59
+ while ( ( $bg_images_file = readdir( $bg_images_dir ) ) !== false ) {
60
+ if ( stristr( $bg_images_file, ".png" ) !== false || stristr( $bg_images_file, ".jpg" ) !== false ) {
61
+ $bg_images[] = $bg_images_url . $bg_images_file;
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+
68
+ /*-----------------------------------------------------------------------------------*/
69
+ /* TO DO: Add options/functions that use these */
70
+ /*-----------------------------------------------------------------------------------*/
71
+
72
+ //More Options
73
+ $uploads_arr = wp_upload_dir();
74
+ $all_uploads_path = $uploads_arr['path'];
75
+ $all_uploads = get_option( 'of_uploads' );
76
+ $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" );
77
+ $body_repeat = array( "no-repeat", "repeat-x", "repeat-y", "repeat" );
78
+ $body_pos = array( "top left", "top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right" );
79
+
80
+ // Image Alignment radio box
81
+ $of_options_thumb_align = array( "alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center" );
82
+
83
+ // Image Links to Options
84
+ $of_options_image_link_to = array( "image" => "The Image", "post" => "The Post" );
85
+
86
+ // Set the Options Array
87
+ global $of_options;
88
+
89
+ $of_options = array();
90
+
91
+ $of_options[] = array(
92
+ "name" => "Home Settings",
93
+ "type" => "heading"
94
+ );
95
+
96
+ $of_options[] = array(
97
+ "name" => "Hello there!",
98
+ "desc" => "",
99
+ "id" => "introduction",
100
+ "std" => '<h3 style="margin: 0 0 10px;">'.__( 'Welcome to the WordPress Starter Theme.', 'starter' ).'</h3> This is a demo of the SMOF options framework, edit the options.php file inside the theme folder to setup your own, you can learn about the SMOF at <a href="//aquagraphite.com/2011/11/smof-documentation/" target="_blank">aquagraphite</a>.',
101
+ "icon" => true,
102
+ "type" => "info"
103
+ );
104
+
105
+ $of_options[] = array(
106
+ "name" => "Media Uploader",
107
+ "desc" => "Upload images using the native media uploader, or define the URL directly",
108
+ "id" => "media_upload",
109
+ "std" => "",
110
+ "type" => "media"
111
+ );
112
+
113
+ $of_options[] = array( "name" => "Media Uploader Min",
114
+ "desc" => "Upload images using native media uploader. This is a min version, meaning it has no url to copy paste. Perfect for logo.",
115
+ "id" => "media_upload_2",
116
+ "std" => "",
117
+ "mod" => "min",
118
+ "type" => "media" );
119
+
120
+ $of_options[] = array( "name" => "Homepage Layout Manager",
121
+ "desc" => "Organize how you want the layout to appear on the homepage",
122
+ "id" => "homepage_blocks",
123
+ "std" => $of_options_homepage_blocks,
124
+ "type" => "sorter" );
125
+
126
+ $of_options[] = array( "name" => "Slider Options",
127
+ "desc" => "Unlimited slider with drag and drop sortings.",
128
+ "id" => "pingu_slider",
129
+ "std" => "",
130
+ "type" => "slider" );
131
+
132
+ $of_options[] = array( "name" => "Background Images",
133
+ "desc" => "Select a background pattern.",
134
+ "id" => "custom_bg",
135
+ "std" => $bg_images_url."bg0.png",
136
+ "type" => "tiles",
137
+ "options" => $bg_images,
138
+ );
139
+
140
+ $of_options[] = array( "name" => "Typography",
141
+ "desc" => "Typography option with each property can be called individually.",
142
+ "id" => "custom_type",
143
+ "std" => array( 'size' => '12px', 'style' => 'bold italic' ),
144
+ "type" => "typography" );
145
+
146
+ $of_options[] = array( "name" => "General Settings",
147
+ "type" => "heading" );
148
+
149
+ $url = ADMIN_DIR . 'assets/images/';
150
+ $of_options[] = array( "name" => "Main Layout",
151
+ "desc" => "Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.",
152
+ "id" => "layout",
153
+ "std" => "2c-l-fixed.css",
154
+ "type" => "images",
155
+ "options" => array(
156
+ '1col-fixed.css' => $url . '1col.png',
157
+ '2c-r-fixed.css' => $url . '2cr.png',
158
+ '2c-l-fixed.css' => $url . '2cl.png',
159
+ '3c-fixed.css' => $url . '3cm.png',
160
+ '3c-r-fixed.css' => $url . '3cr.png' )
161
+ );
162
+ $of_options[] = array( "name" => "Custom Favicon",
163
+ "desc" => "Upload a 16px x 16px Png/Gif image that will represent your website's favicon.",
164
+ "id" => "custom_favicon",
165
+ "std" => "",
166
+ "type" => "upload" );
167
+
168
+ $of_options[] = array( "name" => "Tracking Code",
169
+ "desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
170
+ "id" => "google_analytics",
171
+ "std" => "",
172
+ "type" => "textarea" );
173
+
174
+
175
+ $of_options[] = array( "name" => "Footer Text",
176
+ "desc" => "You can use the following shortcodes in your footer text: [wp-link] [theme-link] [loginout-link] [blog-title] [blog-link] [the-year]",
177
+ "id" => "footer_text",
178
+ "std" => "Powered by [wp-link]. Built on the [theme-link].",
179
+ "type" => "textarea" );
180
+
181
+ $of_options[] = array( "name" => "Styling Options",
182
+ "type" => "heading" );
183
+
184
+ $of_options[] = array( "name" => "Theme Stylesheet",
185
+ "desc" => "Select your themes alternative color scheme.",
186
+ "id" => "alt_stylesheet",
187
+ "std" => "default.css",
188
+ "type" => "select",
189
+ "options" => $alt_stylesheets );
190
+
191
+ $of_options[] = array( "name" => "Body Background Color",
192
+ "desc" => "Pick a background color for the theme (default: #fff).",
193
+ "id" => "body_background",
194
+ "std" => "",
195
+ "type" => "color" );
196
+
197
+ $of_options[] = array( "name" => "Header Background Color",
198
+ "desc" => "Pick a background color for the header (default: #fff).",
199
+ "id" => "header_background",
200
+ "std" => "",
201
+ "type" => "color" );
202
+
203
+ $of_options[] = array( "name" => "Footer Background Color",
204
+ "desc" => "Pick a background color for the footer (default: #fff).",
205
+ "id" => "footer_background",
206
+ "std" => "",
207
+ "type" => "color" );
208
+
209
+ $of_options[] = array( "name" => "Body Font",
210
+ "desc" => "Specify the body font properties",
211
+ "id" => "body_font",
212
+ "std" => array( 'size' => '12px', 'face' => 'arial', 'style' => 'normal', 'color' => '#000000' ),
213
+ "type" => "typography" );
214
+
215
+ $of_options[] = array( "name" => "Custom CSS",
216
+ "desc" => "Quickly add some CSS to your theme by adding it to this block.",
217
+ "id" => "custom_css",
218
+ "std" => "",
219
+ "type" => "textarea" );
220
+
221
+ $of_options[] = array( "name" => "Example Options",
222
+ "type" => "heading" );
223
+
224
+ $of_options[] = array( "name" => "Typography",
225
+ "desc" => "This is a typographic specific option.",
226
+ "id" => "typography",
227
+ "std" => array( 'size' => '12px', 'face' => 'verdana', 'style' => 'bold italic', 'color' => '#123456' ),
228
+ "type" => "typography" );
229
+
230
+ $of_options[] = array( "name" => "Border",
231
+ "desc" => "This is a border specific option.",
232
+ "id" => "border",
233
+ "std" => array( 'width' => '2', 'style' => 'dotted', 'color' => '#444444' ),
234
+ "type" => "border" );
235
+
236
+ $of_options[] = array( "name" => "Colorpicker",
237
+ "desc" => "No color selected.",
238
+ "id" => "example_colorpicker",
239
+ "std" => "",
240
+ "type" => "color" );
241
+
242
+ $of_options[] = array( "name" => "Colorpicker (default #2098a8)",
243
+ "desc" => "Color selected.",
244
+ "id" => "example_colorpicker_2",
245
+ "std" => "#2098a8",
246
+ "type" => "color" );
247
+
248
+ $of_options[] = array( "name" => "Upload",
249
+ "desc" => "An image uploader without text input.",
250
+ "id" => "uploader",
251
+ "std" => "",
252
+ "type" => "upload" );
253
+
254
+ $of_options[] = array( "name" => "Upload Min",
255
+ "desc" => "An image uploader with text input.",
256
+ "id" => "uploader2",
257
+ "std" => "",
258
+ "mod" => "min",
259
+ "type" => "upload" );
260
+
261
+ $of_options[] = array( "name" => "Input Text",
262
+ "desc" => "A text input field.",
263
+ "id" => "test_text",
264
+ "std" => "Default Value",
265
+ "type" => "text" );
266
+
267
+ $of_options[] = array( "name" => "Input Checkbox (false)",
268
+ "desc" => "Example checkbox with false selected.",
269
+ "id" => "example_checkbox_false",
270
+ "std" => 0,
271
+ "type" => "checkbox" );
272
+
273
+ $of_options[] = array( "name" => "Input Checkbox (true)",
274
+ "desc" => "Example checkbox with true selected.",
275
+ "id" => "example_checkbox_true",
276
+ "std" => 1,
277
+ "type" => "checkbox" );
278
+
279
+ $of_options[] = array( "name" => "Normal Select",
280
+ "desc" => "Normal Select Box.",
281
+ "id" => "example_select",
282
+ "std" => "three",
283
+ "type" => "select",
284
+ "options" => $of_options_select );
285
+
286
+ $of_options[] = array( "name" => "Mini Select",
287
+ "desc" => "A mini select box.",
288
+ "id" => "example_select_2",
289
+ "std" => "two",
290
+ "type" => "select2",
291
+ "class" => "mini", //mini, tiny, small
292
+ "options" => $of_options_radio );
293
+
294
+ $of_options[] = array( "name" => "Input Radio (one)",
295
+ "desc" => "Radio select with default of 'one'.",
296
+ "id" => "example_radio",
297
+ "std" => "one",
298
+ "type" => "radio",
299
+ "options" => $of_options_radio );
300
+
301
+ $url = ADMIN_DIR . 'assets/images/';
302
+ $of_options[] = array( "name" => "Image Select",
303
+ "desc" => "Use radio buttons as images.",
304
+ "id" => "images",
305
+ "std" => "warning.css",
306
+ "type" => "images",
307
+ "options" => array(
308
+ 'warning.css' => $url . 'warning.png',
309
+ 'accept.css' => $url . 'accept.png',
310
+ 'wrench.css' => $url . 'wrench.png' ) );
311
+
312
+ $of_options[] = array( "name" => "Textarea",
313
+ "desc" => "Textarea description.",
314
+ "id" => "example_textarea",
315
+ "std" => "Default Text",
316
+ "type" => "textarea" );
317
+
318
+ $of_options[] = array( "name" => "Multicheck",
319
+ "desc" => "Multicheck description.",
320
+ "id" => "example_multicheck",
321
+ "std" => array( "three", "two" ),
322
+ "type" => "multicheck",
323
+ "options" => $of_options_radio );
324
+
325
+ $of_options[] = array( "name" => "Select a Category",
326
+ "desc" => "A list of all the categories being used on the site.",
327
+ "id" => "example_category",
328
+ "std" => "Select a category:",
329
+ "type" => "select",
330
+ "options" => $of_categories );
331
+
332
+ //Advanced Settings
333
+ $of_options[] = array( "name" => "Advanced Settings",
334
+ "type" => "heading" );
335
+
336
+ $of_options[] = array( "name" => "Folding Checkbox",
337
+ "desc" => "This checkbox will hide/show a couple of options group. Try it out!",
338
+ "id" => "offline",
339
+ "std" => 0,
340
+ "folds" => 1,
341
+ "type" => "checkbox" );
342
+
343
+ $of_options[] = array( "name" => "Hidden option 1",
344
+ "desc" => "This is a sample hidden option 1",
345
+ "id" => "hidden_option_1",
346
+ "std" => "Hi, I\'m just a text input",
347
+ "fold" => "offline", /* the checkbox hook */
348
+ "type" => "text" );
349
+
350
+ $of_options[] = array( "name" => "Hidden option 2",
351
+ "desc" => "This is a sample hidden option 2",
352
+ "id" => "hidden_option_2",
353
+ "std" => "Hi, I\'m just a text input",
354
+ "fold" => "offline", /* the checkbox hook */
355
+ "type" => "text" );
356
+
357
+ $of_options[] = array( "name" => "Hello there!",
358
+ "desc" => "",
359
+ "id" => "introduction_2",
360
+ "std" => "<h3 style=\"margin: 0 0 10px;\">Grouped Options.</h3>
361
+ 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.",
362
+ "icon" => true,
363
+ "type" => "info" );
364
+
365
+ $of_options[] = array( "name" => "Some pretty colors for you",
366
+ "desc" => "Color 1.",
367
+ "id" => "example_colorpicker_3",
368
+ "std" => "#2098a8",
369
+ "type" => "color" );
370
+
371
+ $of_options[] = array( "name" => "",
372
+ "desc" => "Color 2.",
373
+ "id" => "example_colorpicker_4",
374
+ "std" => "#2098a8",
375
+ "type" => "color" );
376
+
377
+ $of_options[] = array( "name" => "",
378
+ "desc" => "Color 3.",
379
+ "id" => "example_colorpicker_5",
380
+ "std" => "#2098a8",
381
+ "type" => "color" );
382
+
383
+ $of_options[] = array( "name" => "",
384
+ "desc" => "Color 4.",
385
+ "id" => "example_colorpicker_6",
386
+ "std" => "#2098a8",
387
+ "type" => "color" );
388
+
389
+ // Backup Options
390
+ $of_options[] = array( "name" => "Backup Options",
391
+ "type" => "heading" );
392
+
393
+ $of_options[] = array( "name" => "Backup and Restore Options",
394
+ "id" => "of_backup",
395
+ "std" => "",
396
+ "type" => "backup",
397
+ "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.',
398
+ );
399
+
400
+ $of_options[] = array( "name" => "Transfer Theme Options Data",
401
+ "id" => "of_transfer",
402
+ "std" => "",
403
+ "type" => "transfer",
404
+ "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".
405
+ ',
406
+ );
407
+ }