fones 0.1.0

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 (97) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/CHANGELOG.md +8 -0
  4. data/Gemfile +28 -0
  5. data/Gemfile.lock +108 -0
  6. data/LICENSE +20 -0
  7. data/README.md +61 -0
  8. data/Rakefile +54 -0
  9. data/VERSION +1 -0
  10. data/bin/fones +12 -0
  11. data/features/step_definitions/fones_steps.rb +38 -0
  12. data/features/support/env.rb +17 -0
  13. data/fones.gemspec +187 -0
  14. data/layouts/config/config.tt +19 -0
  15. data/layouts/default/css/_1030up.scss.erb +8 -0
  16. data/layouts/default/css/_1240up.scss.erb +8 -0
  17. data/layouts/default/css/_2x.scss.erb +40 -0
  18. data/layouts/default/css/_481up.scss.erb +109 -0
  19. data/layouts/default/css/_768up.scss.erb +280 -0
  20. data/layouts/default/css/_base.scss.erb +836 -0
  21. data/layouts/default/css/_grid.scss.erb +48 -0
  22. data/layouts/default/css/_header.scss.erb +18 -0
  23. data/layouts/default/css/_mixins.scss.erb +248 -0
  24. data/layouts/default/css/_normalize.scss.erb +536 -0
  25. data/layouts/default/css/_print.scss.erb +80 -0
  26. data/layouts/default/css/ie.scss.erb +52 -0
  27. data/layouts/default/css/login.scss.erb +65 -0
  28. data/layouts/default/css/style.css.scss.erb +111 -0
  29. data/layouts/default/functions/functions.php.erb +166 -0
  30. data/layouts/default/functions/library/admin.php.erb +131 -0
  31. data/layouts/default/functions/library/bones.php.erb +397 -0
  32. data/layouts/default/functions/library/custom-post-type.php.erb +122 -0
  33. data/layouts/default/functions/library/translation/README +18 -0
  34. data/layouts/default/functions/library/translation/da_DK.po +374 -0
  35. data/layouts/default/functions/library/translation/de_DE.po +385 -0
  36. data/layouts/default/functions/library/translation/default.po +372 -0
  37. data/layouts/default/functions/library/translation/es_ES.po +380 -0
  38. data/layouts/default/functions/library/translation/fr_FR.po +579 -0
  39. data/layouts/default/functions/library/translation/he_IL.po +382 -0
  40. data/layouts/default/functions/library/translation/hr.po +548 -0
  41. data/layouts/default/functions/library/translation/it_IT.po +376 -0
  42. data/layouts/default/functions/library/translation/ja.po +492 -0
  43. data/layouts/default/functions/library/translation/nb_NO.po +380 -0
  44. data/layouts/default/functions/library/translation/nl_NL.po +376 -0
  45. data/layouts/default/functions/library/translation/pl_PL.po +371 -0
  46. data/layouts/default/functions/library/translation/pt_PT.po +376 -0
  47. data/layouts/default/functions/library/translation/ru_RU.po +358 -0
  48. data/layouts/default/functions/library/translation/sv_SE.po +380 -0
  49. data/layouts/default/functions/library/translation/translation.php.erb +18 -0
  50. data/layouts/default/functions/library/translation/zh_CN.po +382 -0
  51. data/layouts/default/img/apple-icon-touch.png +0 -0
  52. data/layouts/default/img/custom-post-icon.png +0 -0
  53. data/layouts/default/img/favicon.ico +0 -0
  54. data/layouts/default/img/favicon.png +0 -0
  55. data/layouts/default/img/login-logo.png +0 -0
  56. data/layouts/default/img/nothing.gif +0 -0
  57. data/layouts/default/img/nothumb.gif +0 -0
  58. data/layouts/default/img/screenshot.png +0 -0
  59. data/layouts/default/img/win8-tile-icon.png +0 -0
  60. data/layouts/default/js/admin.js +1 -0
  61. data/layouts/default/js/libs/modernizr.custom.min.js +4 -0
  62. data/layouts/default/js/scripts.js +108 -0
  63. data/layouts/default/js/theme.js +2 -0
  64. data/layouts/default/templates/404.php.erb +43 -0
  65. data/layouts/default/templates/archive-custom_type.php.erb +73 -0
  66. data/layouts/default/templates/archive.php.erb +108 -0
  67. data/layouts/default/templates/attachment.php.erb +32 -0
  68. data/layouts/default/templates/comments.php.erb +121 -0
  69. data/layouts/default/templates/footer.php.erb +22 -0
  70. data/layouts/default/templates/header.php.erb +63 -0
  71. data/layouts/default/templates/index.php.erb +72 -0
  72. data/layouts/default/templates/page-custom.php.erb +66 -0
  73. data/layouts/default/templates/page.php.erb +60 -0
  74. data/layouts/default/templates/search.php.erb +71 -0
  75. data/layouts/default/templates/sidebar.php.erb +17 -0
  76. data/layouts/default/templates/single-custom_type.php.erb +78 -0
  77. data/layouts/default/templates/single.php.erb +61 -0
  78. data/layouts/default/templates/taxonomy-custom_cat.php.erb +87 -0
  79. data/lib/fones.rb +11 -0
  80. data/lib/forge/builder.rb +269 -0
  81. data/lib/forge/cli.rb +86 -0
  82. data/lib/forge/config.rb +61 -0
  83. data/lib/forge/engines.rb +12 -0
  84. data/lib/forge/error.rb +8 -0
  85. data/lib/forge/generator.rb +144 -0
  86. data/lib/forge/guard.rb +65 -0
  87. data/lib/forge/project.rb +162 -0
  88. data/lib/forge/version.rb +3 -0
  89. data/lib/guard/forge/assets.rb +31 -0
  90. data/lib/guard/forge/config.rb +34 -0
  91. data/lib/guard/forge/functions.rb +33 -0
  92. data/lib/guard/forge/templates.rb +28 -0
  93. data/pkg/fones-0.1.0.gem +0 -0
  94. data/spec/lib/forge/config_spec.rb +79 -0
  95. data/spec/lib/forge/project_spec.rb +34 -0
  96. data/spec/spec_helper.rb +13 -0
  97. metadata +437 -0
@@ -0,0 +1,18 @@
1
+ <?php
2
+ /* Welcome to Bones :)
3
+ Thanks to the fantastic work by Bones users, we've now
4
+ the ability to translate Bones into different languages.
5
+
6
+ Developed by: Eddie Machado
7
+ URL: http://themble.com/bones/
8
+ */
9
+
10
+
11
+
12
+ // Adding Translation Option
13
+ load_theme_textdomain( '<%= theme_id %>theme', get_template_directory() .'/library/translation' );
14
+ $locale = get_locale();
15
+ $locale_file = get_template_directory() ."/library/translation/$locale.php";
16
+ if ( is_readable($locale_file) ) require_once($locale_file);
17
+
18
+ ?>
@@ -0,0 +1,382 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wp theme bones\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-03-02 22:11+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Language-Team: Colt Ma <mumchristmas@gmail.com>\n"
8
+ "Language-Team: fulgor <frag.fulgor@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-SourceCharset: utf-8\n"
13
+ "X-Poedit-KeywordsList: __;_e;_n\n"
14
+ "X-Poedit-Basepath: /home/fulgor/GIT/bones\n"
15
+ "Last-Translator: Colt Ma <mumchristmas@gmail.com>\n"
16
+ "X-Poedit-Language: Chinese\n"
17
+ "X-Poedit-Country: CHINA\n"
18
+ "X-Poedit-SearchPath-0: /home/fulgor/GIT/bones\n"
19
+
20
+ #: comments.php:12
21
+ msgid "This post is password protected. Enter the password to view comments."
22
+ msgstr "本文已开启密码保护。阅读前请输入密码。"
23
+
24
+ #: comments.php:23
25
+ msgid "Response"
26
+ msgstr "回复"
27
+
28
+ #: comments.php:24
29
+ msgid "Responses"
30
+ msgstr "条回复"
31
+
32
+ #: comments.php:25
33
+ msgid "One"
34
+ msgstr "一个"
35
+
36
+ #: comments.php:26
37
+ msgid "No"
38
+ msgstr "未"
39
+
40
+ #: comments.php:32
41
+ msgid "to"
42
+ msgstr "于"
43
+
44
+ #: comments.php:59
45
+ msgid "Comments are closed."
46
+ msgstr "评论已关闭"
47
+
48
+ #: comments.php:70
49
+ msgid "Leave a Reply"
50
+ msgstr "发表评论"
51
+
52
+ #: comments.php:70
53
+ #, php-format
54
+ msgid "Leave a Reply to %s"
55
+ msgstr "对 %s 发表评论"
56
+
57
+ #: comments.php:78
58
+ msgid "You must be"
59
+ msgstr "你必须"
60
+
61
+ #: comments.php:78
62
+ msgid "logged in"
63
+ msgstr "已登录"
64
+
65
+ #: comments.php:78
66
+ msgid "to post a comment"
67
+ msgstr "发表评论"
68
+
69
+ #: comments.php:86
70
+ msgid "Logged in as"
71
+ msgstr "用户名:"
72
+
73
+ #: comments.php:86
74
+ msgid "Log out of this account"
75
+ msgstr "注销此帐户"
76
+
77
+ #: comments.php:86
78
+ msgid "Log out"
79
+ msgstr "注销"
80
+
81
+ #: comments.php:93
82
+ msgid "Name"
83
+ msgstr "称谓"
84
+
85
+ #: comments.php:93
86
+ #: comments.php:98
87
+ msgid "(required)"
88
+ msgstr "(必填项)"
89
+
90
+ #: comments.php:94
91
+ msgid "Your Name"
92
+ msgstr "您的称谓"
93
+
94
+ #: comments.php:98
95
+ msgid "Email"
96
+ msgstr "电子邮件"
97
+
98
+ #: comments.php:99
99
+ msgid "Your Email"
100
+ msgstr "你的电邮"
101
+
102
+ #: comments.php:100
103
+ msgid "will not be published"
104
+ msgstr "未被发布"
105
+
106
+ #: comments.php:104
107
+ msgid "Website"
108
+ msgstr "个人网址"
109
+
110
+ #: comments.php:105
111
+ msgid "Your Website"
112
+ msgstr "个人网页"
113
+
114
+ #: comments.php:112
115
+ msgid "Your Comment Here..."
116
+ msgstr "请填写评论……"
117
+
118
+ #: comments.php:115
119
+ msgid "Submit Comment"
120
+ msgstr "提交评论"
121
+
122
+ #: comments.php:120
123
+ msgid "You can use these tags"
124
+ msgstr "你可以使用这些标签"
125
+
126
+ #: header.php:23
127
+ #, php-format
128
+ msgid "Page %s"
129
+ msgstr "第 %s 页"
130
+
131
+ #: taxonomy-custom_cat.php:22
132
+ #: archive.php:9
133
+ msgid "Posts Categorized:"
134
+ msgstr "文章分类:"
135
+
136
+ #: taxonomy-custom_cat.php:32
137
+ #: embed-post_meta.php:1
138
+ #: single-custom_type.php:30
139
+ msgid "Posted"
140
+ msgstr "发布于"
141
+
142
+ #: taxonomy-custom_cat.php:32
143
+ #: embed-post_meta.php:1
144
+ #: single-custom_type.php:30
145
+ msgid "by"
146
+ msgstr "作者:"
147
+
148
+ #: taxonomy-custom_cat.php:32
149
+ #: embed-post_meta.php:1
150
+ #: single-custom_type.php:30
151
+ msgid "filed under"
152
+ msgstr "分类:"
153
+
154
+ #: taxonomy-custom_cat.php:41
155
+ msgid "Read more"
156
+ msgstr "阅读全文"
157
+
158
+ #: functions.php:103
159
+ msgid "(Edit)"
160
+ msgstr "【编辑】"
161
+
162
+ #: functions.php:107
163
+ msgid "Your comment is awaiting moderation."
164
+ msgstr "您的评论正等待审核"
165
+
166
+ #: functions.php:124
167
+ msgid "Search for:"
168
+ msgstr "搜索内容:"
169
+
170
+ #: functions.php:125
171
+ msgid "Search the Site..."
172
+ msgstr "站内搜索"
173
+
174
+ #: 404.php:11
175
+ msgid "Epic 404 - Article Not Found"
176
+ msgstr "错误 404 - 您所访问的文档似乎并不存在"
177
+
178
+ #: 404.php:17
179
+ msgid "The article you were looking for was not found, but maybe try looking again!"
180
+ msgstr "您寻找的内容并不存在,要不再找找?"
181
+
182
+ #: search.php:7
183
+ msgid "Search Results for:"
184
+ msgstr "搜索结果:"
185
+
186
+ #: search.php:23
187
+ msgid "Read more on"
188
+ msgstr "阅读全文:"
189
+
190
+ #: archive.php:13
191
+ msgid "Posts Tagged:"
192
+ msgstr "文章标签:"
193
+
194
+ #: archive.php:17
195
+ #: author.php:8
196
+ msgid "Posts By:"
197
+ msgstr "文章作者:"
198
+
199
+ #: archive.php:21
200
+ msgid "Daily Archives:"
201
+ msgstr "每日归档:"
202
+
203
+ #: archive.php:25
204
+ msgid "Monthly Archives:"
205
+ msgstr "月度归档:"
206
+
207
+ #: archive.php:29
208
+ msgid "Yearly Archives:"
209
+ msgstr "年度归档:"
210
+
211
+ #: single-custom_type.php:43
212
+ msgid "Custom Tags"
213
+ msgstr "自定义标签"
214
+
215
+ #: embed-tags.php:3
216
+ msgid "Tag"
217
+ msgstr "标签"
218
+
219
+ #: embed-tags.php:3
220
+ msgid "Tags"
221
+ msgstr "标签"
222
+
223
+ #: image.php:20
224
+ msgid "Read the rest of this entry"
225
+ msgstr "阅读剩余内容"
226
+
227
+ #: image.php:38
228
+ msgid "Sorry, no attachments matched your criteria."
229
+ msgstr "抱歉,未找到您所需的内容。"
230
+
231
+ #: embed-prev_next.php:3
232
+ msgid "&laquo; Older Entries"
233
+ msgstr "&laquo; 往期内容"
234
+
235
+ #: embed-prev_next.php:4
236
+ msgid "Newer Entries &raquo;"
237
+ msgstr "近期内容 &raquo;"
238
+
239
+ #: footer.php:9
240
+ msgid "is powered by"
241
+ msgstr "基于"
242
+
243
+ #: embed-not_found.php:3
244
+ msgid "Not Found"
245
+ msgstr "未能找到内容"
246
+
247
+ #: embed-not_found.php:6
248
+ msgid "Sorry, but the requested resource was not found on this site."
249
+ msgstr "抱歉,本站未能提供您所寻找的资源。"
250
+
251
+ #: sidebar.php:15
252
+ msgid "Please activate some Widgets."
253
+ msgstr "请启用一些小插件"
254
+
255
+ #: library/bones.php:52
256
+ msgid "Read more &raquo;"
257
+ msgstr "阅读全文 &raquo;"
258
+
259
+ #: library/custom-post-type.php:24
260
+ msgid "Custom Types"
261
+ msgstr "自定义类型"
262
+
263
+ #: library/custom-post-type.php:25
264
+ msgid "Custom Post"
265
+ msgstr "自定义文章板式"
266
+
267
+ #: library/custom-post-type.php:26
268
+ msgid "Add New"
269
+ msgstr "新建"
270
+
271
+ #: library/custom-post-type.php:27
272
+ msgid "Add New Custom Type"
273
+ msgstr "新建自定义类型"
274
+
275
+ #: library/custom-post-type.php:28
276
+ msgid "Edit"
277
+ msgstr "编辑"
278
+
279
+ #: library/custom-post-type.php:29
280
+ msgid "Edit Post Types"
281
+ msgstr "编辑文章类型"
282
+
283
+ #: library/custom-post-type.php:30
284
+ msgid "New Post Type"
285
+ msgstr "新建文章类型"
286
+
287
+ #: library/custom-post-type.php:31
288
+ msgid "View Post Type"
289
+ msgstr "查看文章类型"
290
+
291
+ #: library/custom-post-type.php:32
292
+ msgid "Search Post Type"
293
+ msgstr "搜索文章类型"
294
+
295
+ #: library/custom-post-type.php:33
296
+ msgid "Nothing found in the Database."
297
+ msgstr "数据库无内容。"
298
+
299
+ #: library/custom-post-type.php:34
300
+ msgid "Nothing found in Trash"
301
+ msgstr "垃圾箱无内容"
302
+
303
+ #: library/custom-post-type.php:37
304
+ msgid "This is the example custom post type"
305
+ msgstr "这是个自定义文章类型的样例"
306
+
307
+ #: library/custom-post-type.php:73
308
+ msgid "Custom Categories"
309
+ msgstr "自定义分类"
310
+
311
+ #: library/custom-post-type.php:74
312
+ msgid "Custom Category"
313
+ msgstr "自定义分类"
314
+
315
+ #: library/custom-post-type.php:75
316
+ msgid "Search Custom Categories"
317
+ msgstr "搜索自定义分类"
318
+
319
+ #: library/custom-post-type.php:76
320
+ msgid "All Custom Categories"
321
+ msgstr "全部自定义分类"
322
+
323
+ #: library/custom-post-type.php:77
324
+ msgid "Parent Custom Category"
325
+ msgstr "上级自定义分类"
326
+
327
+ #: library/custom-post-type.php:78
328
+ msgid "Parent Custom Category:"
329
+ msgstr "上级自定义分类:"
330
+
331
+ #: library/custom-post-type.php:79
332
+ msgid "Edit Custom Category"
333
+ msgstr "编辑自定义分类"
334
+
335
+ #: library/custom-post-type.php:80
336
+ msgid "Update Custom Category"
337
+ msgstr "更新自定义分类"
338
+
339
+ #: library/custom-post-type.php:81
340
+ msgid "Add New Custom Category"
341
+ msgstr "新建自定义分类"
342
+
343
+ #: library/custom-post-type.php:82
344
+ msgid "New Custom Category Name"
345
+ msgstr "新自定义分类名称"
346
+
347
+ #: library/custom-post-type.php:95
348
+ msgid "Custom Tag"
349
+ msgstr "自定义标签"
350
+
351
+ #: library/custom-post-type.php:96
352
+ msgid "Search Custom Tags"
353
+ msgstr "搜索自定义标签"
354
+
355
+ #: library/custom-post-type.php:97
356
+ msgid "All Custom Tags"
357
+ msgstr "所有自定义标签"
358
+
359
+ #: library/custom-post-type.php:98
360
+ msgid "Parent Custom Tag"
361
+ msgstr "上级自定义标签"
362
+
363
+ #: library/custom-post-type.php:99
364
+ msgid "Parent Custom Tag:"
365
+ msgstr "上级自定义标签:"
366
+
367
+ #: library/custom-post-type.php:100
368
+ msgid "Edit Custom Tag"
369
+ msgstr "编辑自定义标签"
370
+
371
+ #: library/custom-post-type.php:101
372
+ msgid "Update Custom Tag"
373
+ msgstr "更新自定义标签"
374
+
375
+ #: library/custom-post-type.php:102
376
+ msgid "Add New Custom Tag"
377
+ msgstr "新建自定义标签"
378
+
379
+ #: library/custom-post-type.php:103
380
+ msgid "New Custom Tag Name"
381
+ msgstr "新自定义标签名称"
382
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ // Theme Options JavaScript goes here
@@ -0,0 +1,4 @@
1
+ /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2
+ * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-hashchange-history-audio-video-input-inputtypes-localstorage-websockets-geolocation-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-css_mediaqueries-css_regions-css_supports-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.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.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},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.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.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},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,e.prefixed=function(a,b,c){return b?J(a,b,c):J(a,"pfx")},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))},Modernizr.addTest("mediaqueries",Modernizr.mq("only all")),Modernizr.addTest("regions",function(){var a=Modernizr.prefixed("flowFrom"),b=Modernizr.prefixed("flowInto");if(!a||!b)return!1;var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f="modernizr_flow_for_regions_check";d.innerText="M",c.style.cssText="top: 150px; left: 150px; padding: 0px;",e.style.cssText="width: 50px; height: 50px; padding: 42px;",e.style[a]=f,c.appendChild(d),c.appendChild(e),document.documentElement.appendChild(c);var g,h,i=d.getBoundingClientRect();return d.style[b]=f,g=d.getBoundingClientRect(),h=g.left-i.left,document.documentElement.removeChild(c),d=e=c=undefined,h==42}),Modernizr.addTest("supports","CSSSupportsRule"in window);
@@ -0,0 +1,108 @@
1
+ /*
2
+ Bones Scripts File
3
+ Author: Eddie Machado
4
+
5
+ This file should contain any js scripts you want to add to the site.
6
+ Instead of calling it in the header or throwing it inside wp_head()
7
+ this file will be called automatically in the footer so as not to
8
+ slow the page load.
9
+
10
+ */
11
+
12
+ // IE8 ployfill for GetComputed Style (for Responsive Script below)
13
+ if (!window.getComputedStyle) {
14
+ window.getComputedStyle = function(el, pseudo) {
15
+ this.el = el;
16
+ this.getPropertyValue = function(prop) {
17
+ var re = /(\-([a-z]){1})/g;
18
+ if (prop == 'float') prop = 'styleFloat';
19
+ if (re.test(prop)) {
20
+ prop = prop.replace(re, function () {
21
+ return arguments[2].toUpperCase();
22
+ });
23
+ }
24
+ return el.currentStyle[prop] ? el.currentStyle[prop] : null;
25
+ }
26
+ return this;
27
+ }
28
+ }
29
+
30
+ // as the page loads, call these scripts
31
+ jQuery(document).ready(function($) {
32
+
33
+ /*
34
+ Responsive jQuery is a tricky thing.
35
+ There's a bunch of different ways to handle
36
+ it, so be sure to research and find the one
37
+ that works for you best.
38
+ */
39
+
40
+ /* getting viewport width */
41
+ var responsive_viewport = $(window).width();
42
+
43
+ /* if is below 481px */
44
+ if (responsive_viewport < 481) {
45
+
46
+ } /* end smallest screen */
47
+
48
+ /* if is larger than 481px */
49
+ if (responsive_viewport > 481) {
50
+
51
+ } /* end larger than 481px */
52
+
53
+ /* if is above or equal to 768px */
54
+ if (responsive_viewport >= 768) {
55
+
56
+ /* load gravatars */
57
+ $('.comment img[data-gravatar]').each(function(){
58
+ $(this).attr('src',$(this).attr('data-gravatar'));
59
+ });
60
+
61
+ }
62
+
63
+ /* off the bat large screen actions */
64
+ if (responsive_viewport > 1030) {
65
+
66
+ }
67
+
68
+
69
+ // add all your scripts here
70
+
71
+
72
+ }); /* end of as page load scripts */
73
+
74
+
75
+ /*! A fix for the iOS orientationchange zoom bug.
76
+ Script by @scottjehl, rebound by @wilto.
77
+ MIT License.
78
+ */
79
+ (function(w){
80
+ // This fix addresses an iOS bug, so return early if the UA claims it's something else.
81
+ if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){ return; }
82
+ var doc = w.document;
83
+ if( !doc.querySelector ){ return; }
84
+ var meta = doc.querySelector( "meta[name=viewport]" ),
85
+ initialContent = meta && meta.getAttribute( "content" ),
86
+ disabledZoom = initialContent + ",maximum-scale=1",
87
+ enabledZoom = initialContent + ",maximum-scale=10",
88
+ enabled = true,
89
+ x, y, z, aig;
90
+ if( !meta ){ return; }
91
+ function restoreZoom(){
92
+ meta.setAttribute( "content", enabledZoom );
93
+ enabled = true; }
94
+ function disableZoom(){
95
+ meta.setAttribute( "content", disabledZoom );
96
+ enabled = false; }
97
+ function checkTilt( e ){
98
+ aig = e.accelerationIncludingGravity;
99
+ x = Math.abs( aig.x );
100
+ y = Math.abs( aig.y );
101
+ z = Math.abs( aig.z );
102
+ // If portrait orientation and in one of the danger zones
103
+ if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
104
+ if( enabled ){ disableZoom(); } }
105
+ else if( !enabled ){ restoreZoom(); } }
106
+ w.addEventListener( "orientationchange", restoreZoom, false );
107
+ w.addEventListener( "devicemotion", checkTilt, false );
108
+ })( this );