wordpress-starter 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. data/CHANGELOG.md +13 -0
  2. data/README.md +47 -4
  3. data/lib/wordpress-starter.rb +3 -2
  4. data/stylesheets/wordpress/_defaults.scss +267 -20
  5. data/stylesheets/wordpress/_page.scss +0 -363
  6. data/stylesheets/wordpress/_responsive.scss +0 -115
  7. data/stylesheets/wordpress/_theme.scss +0 -82
  8. data/stylesheets/wordpress/_typography.scss +0 -134
  9. data/templates/foundation/404.php +24 -0
  10. data/templates/{starter → foundation}/admin/README.txt +0 -0
  11. data/templates/{starter → foundation}/admin/assets/css/admin-style.css +0 -0
  12. data/templates/{starter → foundation}/admin/assets/css/colorpicker.css +0 -0
  13. data/templates/{starter → foundation}/admin/assets/images/1col.png +0 -0
  14. data/templates/{starter → foundation}/admin/assets/images/2-col-portfolio.png +0 -0
  15. data/templates/{starter → foundation}/admin/assets/images/2cl.png +0 -0
  16. data/templates/{starter → foundation}/admin/assets/images/2cr.png +0 -0
  17. data/templates/{starter → foundation}/admin/assets/images/3-col-portfolio.png +0 -0
  18. data/templates/{starter → foundation}/admin/assets/images/3cm.png +0 -0
  19. data/templates/{starter → foundation}/admin/assets/images/3cr.png +0 -0
  20. data/templates/{starter → foundation}/admin/assets/images/4-col-portfolio.png +0 -0
  21. data/templates/{starter → foundation}/admin/assets/images/accept.png +0 -0
  22. data/templates/{starter → foundation}/admin/assets/images/button_check.png +0 -0
  23. data/templates/{starter → foundation}/admin/assets/images/colorpicker/blank.gif +0 -0
  24. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
  25. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
  26. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
  27. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
  28. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
  29. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
  30. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
  31. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
  32. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
  33. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
  34. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
  35. data/templates/{starter → foundation}/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
  36. data/templates/{starter → foundation}/admin/assets/images/colorpicker/select.png +0 -0
  37. data/templates/{starter → foundation}/admin/assets/images/dropdown-arrow.png +0 -0
  38. data/templates/{starter → foundation}/admin/assets/images/favicon.ico +0 -0
  39. data/templates/{starter → foundation}/admin/assets/images/icon-add.png +0 -0
  40. data/templates/{starter → foundation}/admin/assets/images/icon-backup.png +0 -0
  41. data/templates/{starter → foundation}/admin/assets/images/icon-delete.png +0 -0
  42. data/templates/{starter → foundation}/admin/assets/images/icon-docs.png +0 -0
  43. data/templates/{starter → foundation}/admin/assets/images/icon-edit.png +0 -0
  44. data/templates/{starter → foundation}/admin/assets/images/icon-home.png +0 -0
  45. data/templates/{starter → foundation}/admin/assets/images/icon-info.png +0 -0
  46. data/templates/{starter → foundation}/admin/assets/images/icon-notice.png +0 -0
  47. data/templates/{starter → foundation}/admin/assets/images/icon-paint.png +0 -0
  48. data/templates/{starter → foundation}/admin/assets/images/icon-settings.png +0 -0
  49. data/templates/{starter → foundation}/admin/assets/images/icon-slider.png +0 -0
  50. data/templates/{starter → foundation}/admin/assets/images/icon-warn.png +0 -0
  51. data/templates/{starter → foundation}/admin/assets/images/icon_option.png +0 -0
  52. data/templates/{starter → foundation}/admin/assets/images/loading-bottom.gif +0 -0
  53. data/templates/{starter → foundation}/admin/assets/images/select.png +0 -0
  54. data/templates/{starter → foundation}/admin/assets/images/sign_warning.png +0 -0
  55. data/templates/{starter → foundation}/admin/assets/images/stop.png +0 -0
  56. data/templates/{starter → foundation}/admin/assets/images/toggle_tabs.png +0 -0
  57. data/templates/{starter → foundation}/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  58. data/templates/{starter → foundation}/admin/assets/images/warning.png +0 -0
  59. data/templates/{starter → foundation}/admin/assets/images/wrench.png +0 -0
  60. data/templates/{starter → foundation}/admin/assets/images/wrench16.png +0 -0
  61. data/templates/{starter → foundation}/admin/assets/js/ajaxupload.js +0 -0
  62. data/templates/{starter → foundation}/admin/assets/js/colorpicker.js +0 -0
  63. data/templates/{starter → foundation}/admin/assets/js/cookie.js +0 -0
  64. data/templates/{starter → foundation}/admin/assets/js/jquery.maskedinput-1.2.2.js +0 -0
  65. data/templates/{starter → foundation}/admin/assets/js/jquery.tipsy.js +0 -0
  66. data/templates/{starter → foundation}/admin/assets/js/of-medialibrary-uploader.js +0 -0
  67. data/templates/{starter → foundation}/admin/assets/js/smof.js +0 -0
  68. data/templates/foundation/admin/classes/class.options-machine.php +627 -0
  69. data/templates/{starter → foundation}/admin/front-end/options.php +0 -0
  70. data/templates/{starter → foundation}/admin/functions/functions.admin.php +0 -0
  71. data/templates/{starter → foundation}/admin/functions/functions.interface.php +0 -0
  72. data/templates/{starter → foundation}/admin/functions/functions.load.php +0 -0
  73. data/templates/foundation/admin/functions/functions.mediauploader.php +194 -0
  74. data/templates/foundation/admin/functions/functions.options.php +508 -0
  75. data/templates/{starter → foundation}/admin/functions/functions.php +0 -0
  76. data/templates/{starter → foundation}/admin/index.php +88 -86
  77. data/templates/{starter → foundation}/admin/layouts/default.css +0 -0
  78. data/templates/{starter → foundation}/admin/layouts/placebo.css +0 -0
  79. data/templates/foundation/archive.php +57 -0
  80. data/templates/foundation/category.php +40 -0
  81. data/templates/foundation/comments.php +65 -0
  82. data/templates/foundation/content-aside.php +26 -0
  83. data/templates/foundation/content-image.php +29 -0
  84. data/templates/foundation/content-link.php +27 -0
  85. data/templates/foundation/content-none.php +21 -0
  86. data/templates/foundation/content-page.php +24 -0
  87. data/templates/foundation/content-quote.php +26 -0
  88. data/templates/foundation/content-status.php +33 -0
  89. data/templates/foundation/content.php +67 -0
  90. data/templates/foundation/editor-style.scss +359 -0
  91. data/templates/foundation/footer.php +29 -0
  92. data/templates/foundation/functions.php +1425 -0
  93. data/templates/foundation/header.php +63 -0
  94. data/templates/foundation/ie.scss +1 -0
  95. data/templates/{starter → foundation}/images/bg/bg0.png +0 -0
  96. data/templates/{starter → foundation}/images/bg/bg1.png +0 -0
  97. data/templates/{starter → foundation}/images/bg/bg10.png +0 -0
  98. data/templates/{starter → foundation}/images/bg/bg11.png +0 -0
  99. data/templates/{starter → foundation}/images/bg/bg2.png +0 -0
  100. data/templates/{starter → foundation}/images/bg/bg3.png +0 -0
  101. data/templates/{starter → foundation}/images/bg/bg4.png +0 -0
  102. data/templates/{starter → foundation}/images/bg/bg5.png +0 -0
  103. data/templates/{starter → foundation}/images/bg/bg6.jpg +0 -0
  104. data/templates/{starter → foundation}/images/bg/bg7.jpg +0 -0
  105. data/templates/{starter → foundation}/images/bg/bg8.png +0 -0
  106. data/templates/{starter → foundation}/images/bg/bg9.png +0 -0
  107. data/templates/foundation/images/fairhead-icons/fc-webicon-behance-m.png +0 -0
  108. data/templates/foundation/images/fairhead-icons/fc-webicon-behance-s.png +0 -0
  109. data/templates/foundation/images/fairhead-icons/fc-webicon-behance.png +0 -0
  110. data/templates/foundation/images/fairhead-icons/fc-webicon-behance.svg +48 -0
  111. data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud-m.png +0 -0
  112. data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud-s.png +0 -0
  113. data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud.png +0 -0
  114. data/templates/foundation/images/fairhead-icons/fc-webicon-creativecloud.svg +48 -0
  115. data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble-m.png +0 -0
  116. data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble-s.png +0 -0
  117. data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble.png +0 -0
  118. data/templates/foundation/images/fairhead-icons/fc-webicon-dribbble.svg +28 -0
  119. data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox-m.png +0 -0
  120. data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox-s.png +0 -0
  121. data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox.png +0 -0
  122. data/templates/foundation/images/fairhead-icons/fc-webicon-dropbox.svg +73 -0
  123. data/templates/foundation/images/fairhead-icons/fc-webicon-evernote-m.png +0 -0
  124. data/templates/foundation/images/fairhead-icons/fc-webicon-evernote-s.png +0 -0
  125. data/templates/foundation/images/fairhead-icons/fc-webicon-evernote.png +0 -0
  126. data/templates/foundation/images/fairhead-icons/fc-webicon-evernote.svg +62 -0
  127. data/templates/foundation/images/fairhead-icons/fc-webicon-facebook-m.png +0 -0
  128. data/templates/foundation/images/fairhead-icons/fc-webicon-facebook-s.png +0 -0
  129. data/templates/foundation/images/fairhead-icons/fc-webicon-facebook.png +0 -0
  130. data/templates/foundation/images/fairhead-icons/fc-webicon-facebook.svg +15 -0
  131. data/templates/foundation/images/fairhead-icons/fc-webicon-flickr-m.png +0 -0
  132. data/templates/foundation/images/fairhead-icons/fc-webicon-flickr-s.png +0 -0
  133. data/templates/foundation/images/fairhead-icons/fc-webicon-flickr.png +0 -0
  134. data/templates/foundation/images/fairhead-icons/fc-webicon-flickr.svg +14 -0
  135. data/templates/foundation/images/fairhead-icons/fc-webicon-github-m.png +0 -0
  136. data/templates/foundation/images/fairhead-icons/fc-webicon-github-s.png +0 -0
  137. data/templates/foundation/images/fairhead-icons/fc-webicon-github.png +0 -0
  138. data/templates/foundation/images/fairhead-icons/fc-webicon-github.svg +38 -0
  139. data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus-m.png +0 -0
  140. data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus-s.png +0 -0
  141. data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus.png +0 -0
  142. data/templates/foundation/images/fairhead-icons/fc-webicon-googleplus.svg +52 -0
  143. data/templates/foundation/images/fairhead-icons/fc-webicon-icloud-m.png +0 -0
  144. data/templates/foundation/images/fairhead-icons/fc-webicon-icloud-s.png +0 -0
  145. data/templates/foundation/images/fairhead-icons/fc-webicon-icloud.png +0 -0
  146. data/templates/foundation/images/fairhead-icons/fc-webicon-icloud.svg +26 -0
  147. data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin-m.png +0 -0
  148. data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin-s.png +0 -0
  149. data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin.png +0 -0
  150. data/templates/foundation/images/fairhead-icons/fc-webicon-linkedin.svg +28 -0
  151. data/templates/foundation/images/fairhead-icons/fc-webicon-mail-m.png +0 -0
  152. data/templates/foundation/images/fairhead-icons/fc-webicon-mail-s.png +0 -0
  153. data/templates/foundation/images/fairhead-icons/fc-webicon-mail.png +0 -0
  154. data/templates/foundation/images/fairhead-icons/fc-webicon-mail.svg +27 -0
  155. data/templates/foundation/images/fairhead-icons/fc-webicon-msn-m.png +0 -0
  156. data/templates/foundation/images/fairhead-icons/fc-webicon-msn-s.png +0 -0
  157. data/templates/foundation/images/fairhead-icons/fc-webicon-msn.png +0 -0
  158. data/templates/foundation/images/fairhead-icons/fc-webicon-msn.svg +44 -0
  159. data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest-m.png +0 -0
  160. data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest-s.png +0 -0
  161. data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest.png +0 -0
  162. data/templates/foundation/images/fairhead-icons/fc-webicon-pinterest.svg +42 -0
  163. data/templates/foundation/images/fairhead-icons/fc-webicon-rdio-m.png +0 -0
  164. data/templates/foundation/images/fairhead-icons/fc-webicon-rdio-s.png +0 -0
  165. data/templates/foundation/images/fairhead-icons/fc-webicon-rdio.png +0 -0
  166. data/templates/foundation/images/fairhead-icons/fc-webicon-rdio.svg +18 -0
  167. data/templates/foundation/images/fairhead-icons/fc-webicon-rss-m.png +0 -0
  168. data/templates/foundation/images/fairhead-icons/fc-webicon-rss-s.png +0 -0
  169. data/templates/foundation/images/fairhead-icons/fc-webicon-rss.png +0 -0
  170. data/templates/foundation/images/fairhead-icons/fc-webicon-rss.svg +18 -0
  171. data/templates/foundation/images/fairhead-icons/fc-webicon-skitch-m.png +0 -0
  172. data/templates/foundation/images/fairhead-icons/fc-webicon-skitch-s.png +0 -0
  173. data/templates/foundation/images/fairhead-icons/fc-webicon-skitch.png +0 -0
  174. data/templates/foundation/images/fairhead-icons/fc-webicon-skitch.svg +24 -0
  175. data/templates/foundation/images/fairhead-icons/fc-webicon-skype-m.png +0 -0
  176. data/templates/foundation/images/fairhead-icons/fc-webicon-skype-s.png +0 -0
  177. data/templates/foundation/images/fairhead-icons/fc-webicon-skype.png +0 -0
  178. data/templates/foundation/images/fairhead-icons/fc-webicon-skype.svg +25 -0
  179. data/templates/foundation/images/fairhead-icons/fc-webicon-spotify-m.png +0 -0
  180. data/templates/foundation/images/fairhead-icons/fc-webicon-spotify-s.png +0 -0
  181. data/templates/foundation/images/fairhead-icons/fc-webicon-spotify.png +0 -0
  182. data/templates/foundation/images/fairhead-icons/fc-webicon-spotify.svg +38 -0
  183. data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon-m.png +0 -0
  184. data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon-s.png +0 -0
  185. data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon.png +0 -0
  186. data/templates/foundation/images/fairhead-icons/fc-webicon-stumbleupon.svg +22 -0
  187. data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr-m.png +0 -0
  188. data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr-s.png +0 -0
  189. data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr.png +0 -0
  190. data/templates/foundation/images/fairhead-icons/fc-webicon-tumblr.svg +16 -0
  191. data/templates/foundation/images/fairhead-icons/fc-webicon-twitter-m.png +0 -0
  192. data/templates/foundation/images/fairhead-icons/fc-webicon-twitter-s.png +0 -0
  193. data/templates/foundation/images/fairhead-icons/fc-webicon-twitter.png +0 -0
  194. data/templates/foundation/images/fairhead-icons/fc-webicon-twitter.svg +24 -0
  195. data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo-m.png +0 -0
  196. data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo-s.png +0 -0
  197. data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo.png +0 -0
  198. data/templates/foundation/images/fairhead-icons/fc-webicon-vimeo.svg +20 -0
  199. data/templates/foundation/images/fairhead-icons/fc-webicon-youtube-m.png +0 -0
  200. data/templates/foundation/images/fairhead-icons/fc-webicon-youtube-s.png +0 -0
  201. data/templates/foundation/images/fairhead-icons/fc-webicon-youtube.png +0 -0
  202. data/templates/foundation/images/fairhead-icons/fc-webicon-youtube.svg +106 -0
  203. data/templates/foundation/images/fairhead-icons/fc-webicon-youversion-m.png +0 -0
  204. data/templates/foundation/images/fairhead-icons/fc-webicon-youversion-s.png +0 -0
  205. data/templates/foundation/images/fairhead-icons/fc-webicon-youversion.png +0 -0
  206. data/templates/foundation/images/fairhead-icons/fc-webicon-youversion.svg +54 -0
  207. data/templates/foundation/images/fairhead-icons/fc-webicon-zerply-m.png +0 -0
  208. data/templates/foundation/images/fairhead-icons/fc-webicon-zerply-s.png +0 -0
  209. data/templates/foundation/images/fairhead-icons/fc-webicon-zerply.png +0 -0
  210. data/templates/foundation/images/fairhead-icons/fc-webicon-zerply.svg +20 -0
  211. data/templates/foundation/images/foundation/orbit/bullets.jpg +0 -0
  212. data/templates/foundation/images/foundation/orbit/left-arrow-small.png +0 -0
  213. data/templates/foundation/images/foundation/orbit/left-arrow.png +0 -0
  214. data/templates/foundation/images/foundation/orbit/loading.gif +0 -0
  215. data/templates/foundation/images/foundation/orbit/mask-black.png +0 -0
  216. data/templates/foundation/images/foundation/orbit/pause-black.png +0 -0
  217. data/templates/foundation/images/foundation/orbit/right-arrow-small.png +0 -0
  218. data/templates/foundation/images/foundation/orbit/right-arrow.png +0 -0
  219. data/templates/foundation/images/foundation/orbit/rotator-black.png +0 -0
  220. data/templates/foundation/images/foundation/orbit/timer-black.png +0 -0
  221. data/templates/foundation/index.php +19 -0
  222. data/templates/foundation/javascripts/app.js +38 -0
  223. data/templates/foundation/javascripts/foundation.min.js +77 -0
  224. data/templates/foundation/javascripts/jquery.foundation.accordion.js +39 -0
  225. data/templates/foundation/javascripts/jquery.foundation.alerts.js +20 -0
  226. data/templates/foundation/javascripts/jquery.foundation.buttons.js +79 -0
  227. data/templates/foundation/javascripts/jquery.foundation.clearing.js +480 -0
  228. data/templates/foundation/javascripts/jquery.foundation.forms.js +494 -0
  229. data/templates/foundation/javascripts/jquery.foundation.joyride.js +639 -0
  230. data/templates/foundation/javascripts/jquery.foundation.magellan.js +86 -0
  231. data/templates/foundation/javascripts/jquery.foundation.mediaQueryToggle.js +27 -0
  232. data/templates/foundation/javascripts/jquery.foundation.navigation.js +55 -0
  233. data/templates/foundation/javascripts/jquery.foundation.orbit.js +897 -0
  234. data/templates/foundation/javascripts/jquery.foundation.reveal.js +794 -0
  235. data/templates/foundation/javascripts/jquery.foundation.tabs.js +56 -0
  236. data/templates/foundation/javascripts/jquery.foundation.tooltips.js +193 -0
  237. data/templates/foundation/javascripts/jquery.foundation.topbar.js +156 -0
  238. data/templates/foundation/javascripts/modernizr.foundation.js +4 -0
  239. data/templates/foundation/languages/readme.txt +6 -0
  240. data/templates/foundation/license.txt +281 -0
  241. data/templates/foundation/loop.php +30 -0
  242. data/templates/foundation/manifest.rb +285 -0
  243. data/templates/foundation/options.php +43 -0
  244. data/templates/foundation/page.php +29 -0
  245. data/templates/foundation/print.css +1 -0
  246. data/templates/foundation/print.scss +1 -0
  247. data/templates/foundation/readme.txt +6 -0
  248. data/templates/foundation/sass/_app.scss +50 -0
  249. data/templates/foundation/sass/_settings.scss +243 -0
  250. data/templates/foundation/screen.scss +1 -0
  251. data/templates/foundation/screenshot.png +0 -0
  252. data/templates/foundation/search.php +31 -0
  253. data/templates/{starter → foundation}/search.png +0 -0
  254. data/templates/foundation/searchform.php +14 -0
  255. data/templates/foundation/sidebar.php +15 -0
  256. data/templates/foundation/single.php +31 -0
  257. data/templates/foundation/style.css +17 -0
  258. data/templates/foundation/stylesheets/fc-webicons.css +156 -0
  259. data/templates/foundation/tag.php +41 -0
  260. data/templates/project/404.php +24 -0
  261. data/templates/project/admin/README.txt +25 -0
  262. data/templates/project/admin/assets/css/admin-style.css +838 -0
  263. data/templates/project/admin/assets/css/colorpicker.css +177 -0
  264. data/templates/project/admin/assets/images/1col.png +0 -0
  265. data/templates/project/admin/assets/images/2-col-portfolio.png +0 -0
  266. data/templates/project/admin/assets/images/2cl.png +0 -0
  267. data/templates/project/admin/assets/images/2cr.png +0 -0
  268. data/templates/project/admin/assets/images/3-col-portfolio.png +0 -0
  269. data/templates/project/admin/assets/images/3cm.png +0 -0
  270. data/templates/project/admin/assets/images/3cr.png +0 -0
  271. data/templates/project/admin/assets/images/4-col-portfolio.png +0 -0
  272. data/templates/project/admin/assets/images/accept.png +0 -0
  273. data/templates/project/admin/assets/images/button_check.png +0 -0
  274. data/templates/project/admin/assets/images/colorpicker/blank.gif +0 -0
  275. data/templates/project/admin/assets/images/colorpicker/colorpicker_background.png +0 -0
  276. data/templates/project/admin/assets/images/colorpicker/colorpicker_hex.png +0 -0
  277. data/templates/project/admin/assets/images/colorpicker/colorpicker_hsb_b.png +0 -0
  278. data/templates/project/admin/assets/images/colorpicker/colorpicker_hsb_h.png +0 -0
  279. data/templates/project/admin/assets/images/colorpicker/colorpicker_hsb_s.png +0 -0
  280. data/templates/project/admin/assets/images/colorpicker/colorpicker_indic.gif +0 -0
  281. data/templates/project/admin/assets/images/colorpicker/colorpicker_overlay.png +0 -0
  282. data/templates/project/admin/assets/images/colorpicker/colorpicker_rgb_b.png +0 -0
  283. data/templates/project/admin/assets/images/colorpicker/colorpicker_rgb_g.png +0 -0
  284. data/templates/project/admin/assets/images/colorpicker/colorpicker_rgb_r.png +0 -0
  285. data/templates/project/admin/assets/images/colorpicker/colorpicker_select.gif +0 -0
  286. data/templates/project/admin/assets/images/colorpicker/colorpicker_submit.png +0 -0
  287. data/templates/project/admin/assets/images/colorpicker/select.png +0 -0
  288. data/templates/project/admin/assets/images/dropdown-arrow.png +0 -0
  289. data/templates/project/admin/assets/images/favicon.ico +0 -0
  290. data/templates/project/admin/assets/images/icon-add.png +0 -0
  291. data/templates/project/admin/assets/images/icon-backup.png +0 -0
  292. data/templates/project/admin/assets/images/icon-delete.png +0 -0
  293. data/templates/project/admin/assets/images/icon-docs.png +0 -0
  294. data/templates/project/admin/assets/images/icon-edit.png +0 -0
  295. data/templates/project/admin/assets/images/icon-home.png +0 -0
  296. data/templates/project/admin/assets/images/icon-info.png +0 -0
  297. data/templates/project/admin/assets/images/icon-notice.png +0 -0
  298. data/templates/project/admin/assets/images/icon-paint.png +0 -0
  299. data/templates/project/admin/assets/images/icon-settings.png +0 -0
  300. data/templates/project/admin/assets/images/icon-slider.png +0 -0
  301. data/templates/project/admin/assets/images/icon-warn.png +0 -0
  302. data/templates/project/admin/assets/images/icon_option.png +0 -0
  303. data/templates/project/admin/assets/images/loading-bottom.gif +0 -0
  304. data/templates/project/admin/assets/images/select.png +0 -0
  305. data/templates/project/admin/assets/images/sign_warning.png +0 -0
  306. data/templates/project/admin/assets/images/stop.png +0 -0
  307. data/templates/project/admin/assets/images/toggle_tabs.png +0 -0
  308. data/templates/project/admin/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  309. data/templates/project/admin/assets/images/warning.png +0 -0
  310. data/templates/project/admin/assets/images/wrench.png +0 -0
  311. data/templates/project/admin/assets/images/wrench16.png +0 -0
  312. data/templates/project/admin/assets/js/ajaxupload.js +606 -0
  313. data/templates/project/admin/assets/js/colorpicker.js +455 -0
  314. data/templates/project/admin/assets/js/cookie.js +1 -0
  315. data/templates/project/admin/assets/js/jquery.maskedinput-1.2.2.js +252 -0
  316. data/templates/project/admin/assets/js/jquery.tipsy.js +241 -0
  317. data/templates/project/admin/assets/js/of-medialibrary-uploader.js +168 -0
  318. data/templates/project/admin/assets/js/smof.js +623 -0
  319. data/templates/{starter → project}/admin/classes/class.options-machine.php +0 -0
  320. data/templates/project/admin/front-end/options.php +77 -0
  321. data/templates/project/admin/functions/functions.admin.php +76 -0
  322. data/templates/project/admin/functions/functions.interface.php +232 -0
  323. data/templates/project/admin/functions/functions.load.php +14 -0
  324. data/templates/{starter → project}/admin/functions/functions.mediauploader.php +0 -0
  325. data/templates/project/admin/functions/functions.options.php +508 -0
  326. data/templates/project/admin/functions/functions.php +0 -0
  327. data/templates/project/admin/index.php +87 -0
  328. data/templates/project/admin/layouts/default.css +0 -0
  329. data/templates/project/admin/layouts/placebo.css +0 -0
  330. data/templates/project/archive.php +57 -0
  331. data/templates/{starter → project}/category.php +0 -0
  332. data/templates/project/comments.php +65 -0
  333. data/templates/{starter → project}/content-aside.php +0 -0
  334. data/templates/{starter → project}/content-image.php +0 -0
  335. data/templates/{starter → project}/content-link.php +0 -0
  336. data/templates/{starter → project}/content-none.php +0 -0
  337. data/templates/project/content-page.php +24 -0
  338. data/templates/{starter → project}/content-quote.php +0 -0
  339. data/templates/{starter → project}/content-status.php +0 -0
  340. data/templates/project/content.php +67 -0
  341. data/templates/{starter → project}/editor-style.scss +0 -0
  342. data/templates/project/footer.php +29 -0
  343. data/templates/project/functions.php +1233 -0
  344. data/templates/project/header.php +63 -0
  345. data/templates/project/images/bg/bg0.png +0 -0
  346. data/templates/project/images/bg/bg1.png +0 -0
  347. data/templates/project/images/bg/bg10.png +0 -0
  348. data/templates/project/images/bg/bg11.png +0 -0
  349. data/templates/project/images/bg/bg2.png +0 -0
  350. data/templates/project/images/bg/bg3.png +0 -0
  351. data/templates/project/images/bg/bg4.png +0 -0
  352. data/templates/project/images/bg/bg5.png +0 -0
  353. data/templates/project/images/bg/bg6.jpg +0 -0
  354. data/templates/project/images/bg/bg7.jpg +0 -0
  355. data/templates/project/images/bg/bg8.png +0 -0
  356. data/templates/project/images/bg/bg9.png +0 -0
  357. data/templates/project/index.php +19 -0
  358. data/templates/project/javascripts/app.js +6 -0
  359. data/templates/{starter → project/javascripts}/moderninzr.min.js +0 -0
  360. data/templates/project/languages/readme.txt +6 -0
  361. data/templates/project/license.txt +281 -0
  362. data/templates/{starter → project}/loop.php +0 -0
  363. data/templates/project/manifest.rb +131 -4
  364. data/templates/project/options.php +42 -0
  365. data/templates/project/page.php +29 -0
  366. data/templates/project/readme.txt +6 -1
  367. data/templates/project/screenshot.png +0 -0
  368. data/templates/project/search.php +31 -0
  369. data/templates/project/searchform.php +14 -0
  370. data/templates/project/sidebar.php +15 -0
  371. data/templates/project/single.php +31 -0
  372. data/templates/project/style.css +5 -0
  373. data/templates/{starter → project}/tag.php +0 -0
  374. data/templates/starter/404.php +42 -19
  375. data/templates/starter/README.md +41 -0
  376. data/templates/starter/archive.php +89 -49
  377. data/templates/starter/comments.php +43 -32
  378. data/templates/starter/content-page.php +12 -16
  379. data/templates/starter/content-single.php +59 -0
  380. data/templates/starter/content.php +52 -58
  381. data/templates/starter/footer.php +20 -22
  382. data/templates/starter/functions.php +60 -1156
  383. data/templates/starter/header.php +31 -52
  384. data/templates/starter/image.php +111 -0
  385. data/templates/starter/inc/custom-header.php +184 -0
  386. data/templates/starter/inc/extras.php +79 -0
  387. data/templates/starter/inc/template-tags.php +175 -0
  388. data/templates/starter/inc/theme-options/theme-options.php +306 -0
  389. data/templates/starter/index.php +41 -11
  390. data/templates/starter/javascripts/html5.js +6 -0
  391. data/templates/starter/javascripts/keyboard-image-navigation.js +14 -0
  392. data/templates/starter/javascripts/small-menu.js +39 -0
  393. data/templates/starter/languages/readme.txt +6 -0
  394. data/templates/starter/layouts/content-sidebar-sidebar.css +27 -0
  395. data/templates/starter/layouts/content-sidebar.css +25 -0
  396. data/templates/starter/layouts/sidebar-content-sidebar.css +27 -0
  397. data/templates/starter/layouts/sidebar-content.css +25 -0
  398. data/templates/starter/layouts/sidebar-sidebar-content.css +22 -0
  399. data/templates/starter/license.txt +281 -0
  400. data/templates/starter/manifest.rb +22 -110
  401. data/templates/starter/no-results.php +34 -0
  402. data/templates/starter/page.php +16 -14
  403. data/templates/starter/print.scss +1 -104
  404. data/templates/starter/rtl.css +17 -0
  405. data/templates/starter/screen.scss +653 -1
  406. data/templates/starter/screenshot.png +0 -0
  407. data/templates/starter/search.php +31 -21
  408. data/templates/starter/searchform.php +8 -9
  409. data/templates/starter/sidebar.php +29 -10
  410. data/templates/starter/single.php +24 -21
  411. data/templates/starter/style.css +10 -6
  412. metadata +401 -100
  413. data/templates/project/print.css +0 -4
  414. data/templates/starter/admin/functions/functions.options.php +0 -507
  415. data/templates/starter/app.js +0 -97
  416. data/templates/starter/options.php +0 -407
  417. data/templates/starter/readme.txt +0 -1
@@ -0,0 +1,794 @@
1
+ /*
2
+ * jQuery Reveal Plugin 1.1
3
+ * www.ZURB.com
4
+ * Copyright 2010, ZURB
5
+ * Free to use under the MIT license.
6
+ * http://www.opensource.org/licenses/mit-license.php
7
+ */
8
+ /*globals jQuery */
9
+
10
+ (function ($) {
11
+ 'use strict';
12
+ //
13
+ // Global variable.
14
+ // Helps us determine if the current modal is being queued for display.
15
+ //
16
+ var modalQueued = false;
17
+
18
+ //
19
+ // Bind the live 'click' event to all anchor elemnets with the data-reveal-id attribute.
20
+ //
21
+ $(document).on('click', 'a[data-reveal-id]', function ( event ) {
22
+ //
23
+ // Prevent default action of the event.
24
+ //
25
+ event.preventDefault();
26
+ //
27
+ // Get the clicked anchor data-reveal-id attribute value.
28
+ //
29
+ var modalLocation = $( this ).attr( 'data-reveal-id' );
30
+ //
31
+ // Find the element with that modalLocation id and call the reveal plugin.
32
+ //
33
+ $( '#' + modalLocation ).reveal( $( this ).data() );
34
+
35
+ });
36
+
37
+ /**
38
+ * @module reveal
39
+ * @property {Object} [options] Reveal options
40
+ */
41
+ $.fn.reveal = function ( options ) {
42
+ /*
43
+ * Cache the document object.
44
+ */
45
+ var $doc = $( document ),
46
+ /*
47
+ * Default property values.
48
+ */
49
+ defaults = {
50
+ /**
51
+ * Possible options: fade, fadeAndPop, none
52
+ *
53
+ * @property animation
54
+ * @type {String}
55
+ * @default fadeAndPop
56
+ */
57
+ animation: 'fadeAndPop',
58
+ /**
59
+ * Speed at which the reveal should show. How fast animtions are.
60
+ *
61
+ * @property animationSpeed
62
+ * @type {Integer}
63
+ * @default 300
64
+ */
65
+ animationSpeed: 300,
66
+ /**
67
+ * Should the modal close when the background is clicked?
68
+ *
69
+ * @property closeOnBackgroundClick
70
+ * @type {Boolean}
71
+ * @default true
72
+ */
73
+ closeOnBackgroundClick: true,
74
+ /**
75
+ * Specify a class name for the 'close modal' element.
76
+ * This element will close an open modal.
77
+ *
78
+ @example
79
+ <a href='#close' class='close-reveal-modal'>Close Me</a>
80
+ *
81
+ * @property dismissModalClass
82
+ * @type {String}
83
+ * @default close-reveal-modal
84
+ */
85
+ dismissModalClass: 'close-reveal-modal',
86
+ /**
87
+ * Specify a callback function that triggers 'before' the modal opens.
88
+ *
89
+ * @property open
90
+ * @type {Function}
91
+ * @default function(){}
92
+ */
93
+ open: $.noop,
94
+ /**
95
+ * Specify a callback function that triggers 'after' the modal is opened.
96
+ *
97
+ * @property opened
98
+ * @type {Function}
99
+ * @default function(){}
100
+ */
101
+ opened: $.noop,
102
+ /**
103
+ * Specify a callback function that triggers 'before' the modal prepares to close.
104
+ *
105
+ * @property close
106
+ * @type {Function}
107
+ * @default function(){}
108
+ */
109
+ close: $.noop,
110
+ /**
111
+ * Specify a callback function that triggers 'after' the modal is closed.
112
+ *
113
+ * @property closed
114
+ * @type {Function}
115
+ * @default function(){}
116
+ */
117
+ closed: $.noop
118
+ }
119
+ ;
120
+ //
121
+ // Extend the default options.
122
+ // This replaces the passed in option (options) values with default values.
123
+ //
124
+ options = $.extend( {}, defaults, options );
125
+
126
+ //
127
+ // Apply the plugin functionality to each element in the jQuery collection.
128
+ //
129
+ return this.not('.reveal-modal.open').each( function () {
130
+ //
131
+ // Cache the modal element
132
+ //
133
+ var modal = $( this ),
134
+ //
135
+ // Get the current css 'top' property value in decimal format.
136
+ //
137
+ topMeasure = parseInt( modal.css( 'top' ), 10 ),
138
+ //
139
+ // Calculate the top offset.
140
+ //
141
+ topOffset = modal.height() + topMeasure,
142
+ //
143
+ // Helps determine if the modal is locked.
144
+ // This way we keep the modal from triggering while it's in the middle of animating.
145
+ //
146
+ locked = false,
147
+ //
148
+ // Get the modal background element.
149
+ //
150
+ modalBg = $( '.reveal-modal-bg' ),
151
+ //
152
+ // Show modal properties
153
+ //
154
+ cssOpts = {
155
+ //
156
+ // Used, when we show the modal.
157
+ //
158
+ open : {
159
+ //
160
+ // Set the 'top' property to the document scroll minus the calculated top offset.
161
+ //
162
+ 'top': 0,
163
+ //
164
+ // Opacity gets set to 0.
165
+ //
166
+ 'opacity': 0,
167
+ //
168
+ // Show the modal
169
+ //
170
+ 'visibility': 'visible',
171
+ //
172
+ // Ensure it's displayed as a block element.
173
+ //
174
+ 'display': 'block'
175
+ },
176
+ //
177
+ // Used, when we hide the modal.
178
+ //
179
+ close : {
180
+ //
181
+ // Set the default 'top' property value.
182
+ //
183
+ 'top': topMeasure,
184
+ //
185
+ // Has full opacity.
186
+ //
187
+ 'opacity': 1,
188
+ //
189
+ // Hide the modal
190
+ //
191
+ 'visibility': 'hidden',
192
+ //
193
+ // Ensure the elment is hidden.
194
+ //
195
+ 'display': 'none'
196
+ }
197
+
198
+ },
199
+ //
200
+ // Initial closeButton variable.
201
+ //
202
+ $closeButton
203
+ ;
204
+
205
+ //
206
+ // Do we have a modal background element?
207
+ //
208
+ if ( modalBg.length === 0 ) {
209
+ //
210
+ // No we don't. So, let's create one.
211
+ //
212
+ modalBg = $( '<div />', { 'class' : 'reveal-modal-bg' } )
213
+ //
214
+ // Then insert it after the modal element.
215
+ //
216
+ .insertAfter( modal );
217
+ //
218
+ // Now, fade it out a bit.
219
+ //
220
+ modalBg.fadeTo( 'fast', 0.8 );
221
+ }
222
+
223
+ //
224
+ // Helper Methods
225
+ //
226
+
227
+ /**
228
+ * Unlock the modal for animation.
229
+ *
230
+ * @method unlockModal
231
+ */
232
+ function unlockModal() {
233
+ locked = false;
234
+ }
235
+
236
+ /**
237
+ * Lock the modal to prevent further animation.
238
+ *
239
+ * @method lockModal
240
+ */
241
+ function lockModal() {
242
+ locked = true;
243
+ }
244
+
245
+ /**
246
+ * Closes all open modals.
247
+ *
248
+ * @method closeOpenModal
249
+ */
250
+ function closeOpenModals() {
251
+ //
252
+ // Get all reveal-modal elements with the .open class.
253
+ //
254
+ var $openModals = $( ".reveal-modal.open" );
255
+ //
256
+ // Do we have modals to close?
257
+ //
258
+ if ( $openModals.length === 1 ) {
259
+ //
260
+ // Set the modals for animation queuing.
261
+ //
262
+ modalQueued = true;
263
+ //
264
+ // Trigger the modal close event.
265
+ //
266
+ $openModals.trigger( "reveal:close" );
267
+ }
268
+
269
+ }
270
+ /**
271
+ * Animates the modal opening.
272
+ * Handles the modal 'open' event.
273
+ *
274
+ * @method openAnimation
275
+ */
276
+ function openAnimation() {
277
+ //
278
+ // First, determine if we're in the middle of animation.
279
+ //
280
+ if ( !locked ) {
281
+ //
282
+ // We're not animating, let's lock the modal for animation.
283
+ //
284
+ lockModal();
285
+ //
286
+ // Close any opened modals.
287
+ //
288
+ closeOpenModals();
289
+ //
290
+ // Now, add the open class to this modal.
291
+ //
292
+ modal.addClass( "open" );
293
+
294
+ //
295
+ // Are we executing the 'fadeAndPop' animation?
296
+ //
297
+ if ( options.animation === "fadeAndPop" ) {
298
+ //
299
+ // Yes, we're doing the 'fadeAndPop' animation.
300
+ // Okay, set the modal css properties.
301
+ //
302
+ //
303
+ // Set the 'top' property to the document scroll minus the calculated top offset.
304
+ //
305
+ cssOpts.open.top = $doc.scrollTop() - topOffset;
306
+ //
307
+ // Flip the opacity to 0.
308
+ //
309
+ cssOpts.open.opacity = 0;
310
+ //
311
+ // Set the css options.
312
+ //
313
+ modal.css( cssOpts.open );
314
+ //
315
+ // Fade in the background element, at half the speed of the modal element.
316
+ // So, faster than the modal element.
317
+ //
318
+ modalBg.fadeIn( options.animationSpeed / 2 );
319
+
320
+ //
321
+ // Let's delay the next animation queue.
322
+ // We'll wait until the background element is faded in.
323
+ //
324
+ modal.delay( options.animationSpeed / 2 )
325
+ //
326
+ // Animate the following css properties.
327
+ //
328
+ .animate( {
329
+ //
330
+ // Set the 'top' property to the document scroll plus the calculated top measure.
331
+ //
332
+ "top": $doc.scrollTop() + topMeasure + 'px',
333
+ //
334
+ // Set it to full opacity.
335
+ //
336
+ "opacity": 1
337
+
338
+ },
339
+ /*
340
+ * Fade speed.
341
+ */
342
+ options.animationSpeed,
343
+ /*
344
+ * End of animation callback.
345
+ */
346
+ function () {
347
+ //
348
+ // Trigger the modal reveal:opened event.
349
+ // This should trigger the functions set in the options.opened property.
350
+ //
351
+ modal.trigger( 'reveal:opened' );
352
+
353
+ }); // end of animate.
354
+
355
+ } // end if 'fadeAndPop'
356
+
357
+ //
358
+ // Are executing the 'fade' animation?
359
+ //
360
+ if ( options.animation === "fade" ) {
361
+ //
362
+ // Yes, were executing 'fade'.
363
+ // Okay, let's set the modal properties.
364
+ //
365
+ cssOpts.open.top = $doc.scrollTop() + topMeasure;
366
+ //
367
+ // Flip the opacity to 0.
368
+ //
369
+ cssOpts.open.opacity = 0;
370
+ //
371
+ // Set the css options.
372
+ //
373
+ modal.css( cssOpts.open );
374
+ //
375
+ // Fade in the modal background at half the speed of the modal.
376
+ // So, faster than modal.
377
+ //
378
+ modalBg.fadeIn( options.animationSpeed / 2 );
379
+
380
+ //
381
+ // Delay the modal animation.
382
+ // Wait till the modal background is done animating.
383
+ //
384
+ modal.delay( options.animationSpeed / 2 )
385
+ //
386
+ // Now animate the modal.
387
+ //
388
+ .animate( {
389
+ //
390
+ // Set to full opacity.
391
+ //
392
+ "opacity": 1
393
+ },
394
+
395
+ /*
396
+ * Animation speed.
397
+ */
398
+ options.animationSpeed,
399
+
400
+ /*
401
+ * End of animation callback.
402
+ */
403
+ function () {
404
+ //
405
+ // Trigger the modal reveal:opened event.
406
+ // This should trigger the functions set in the options.opened property.
407
+ //
408
+ modal.trigger( 'reveal:opened' );
409
+
410
+ });
411
+
412
+ } // end if 'fade'
413
+
414
+ //
415
+ // Are we not animating?
416
+ //
417
+ if ( options.animation === "none" ) {
418
+ //
419
+ // We're not animating.
420
+ // Okay, let's set the modal css properties.
421
+ //
422
+ //
423
+ // Set the top property.
424
+ //
425
+ cssOpts.open.top = $doc.scrollTop() + topMeasure;
426
+ //
427
+ // Set the opacity property to full opacity, since we're not fading (animating).
428
+ //
429
+ cssOpts.open.opacity = 1;
430
+ //
431
+ // Set the css property.
432
+ //
433
+ modal.css( cssOpts.open );
434
+ //
435
+ // Show the modal Background.
436
+ //
437
+ modalBg.css( { "display": "block" } );
438
+ //
439
+ // Trigger the modal opened event.
440
+ //
441
+ modal.trigger( 'reveal:opened' );
442
+
443
+ } // end if animating 'none'
444
+
445
+ }// end if !locked
446
+
447
+ }// end openAnimation
448
+
449
+
450
+ function openVideos() {
451
+ var video = modal.find('.flex-video'),
452
+ iframe = video.find('iframe');
453
+ if (iframe.length > 0) {
454
+ iframe.attr("src", iframe.data("src"));
455
+ video.fadeIn(100);
456
+ }
457
+ }
458
+
459
+ //
460
+ // Bind the reveal 'open' event.
461
+ // When the event is triggered, openAnimation is called
462
+ // along with any function set in the options.open property.
463
+ //
464
+ modal.bind( 'reveal:open.reveal', openAnimation );
465
+ modal.bind( 'reveal:open.reveal', openVideos);
466
+
467
+ /**
468
+ * Closes the modal element(s)
469
+ * Handles the modal 'close' event.
470
+ *
471
+ * @method closeAnimation
472
+ */
473
+ function closeAnimation() {
474
+ //
475
+ // First, determine if we're in the middle of animation.
476
+ //
477
+ if ( !locked ) {
478
+ //
479
+ // We're not animating, let's lock the modal for animation.
480
+ //
481
+ lockModal();
482
+ //
483
+ // Clear the modal of the open class.
484
+ //
485
+ modal.removeClass( "open" );
486
+
487
+ //
488
+ // Are we using the 'fadeAndPop' animation?
489
+ //
490
+ if ( options.animation === "fadeAndPop" ) {
491
+ //
492
+ // Yes, okay, let's set the animation properties.
493
+ //
494
+ modal.animate( {
495
+ //
496
+ // Set the top property to the document scrollTop minus calculated topOffset.
497
+ //
498
+ "top": $doc.scrollTop() - topOffset + 'px',
499
+ //
500
+ // Fade the modal out, by using the opacity property.
501
+ //
502
+ "opacity": 0
503
+
504
+ },
505
+ /*
506
+ * Fade speed.
507
+ */
508
+ options.animationSpeed / 2,
509
+ /*
510
+ * End of animation callback.
511
+ */
512
+ function () {
513
+ //
514
+ // Set the css hidden options.
515
+ //
516
+ modal.css( cssOpts.close );
517
+
518
+ });
519
+ //
520
+ // Is the modal animation queued?
521
+ //
522
+ if ( !modalQueued ) {
523
+ //
524
+ // Oh, the modal(s) are mid animating.
525
+ // Let's delay the animation queue.
526
+ //
527
+ modalBg.delay( options.animationSpeed )
528
+ //
529
+ // Fade out the modal background.
530
+ //
531
+ .fadeOut(
532
+ /*
533
+ * Animation speed.
534
+ */
535
+ options.animationSpeed,
536
+ /*
537
+ * End of animation callback.
538
+ */
539
+ function () {
540
+ //
541
+ // Trigger the modal 'closed' event.
542
+ // This should trigger any method set in the options.closed property.
543
+ //
544
+ modal.trigger( 'reveal:closed' );
545
+
546
+ });
547
+
548
+ } else {
549
+ //
550
+ // We're not mid queue.
551
+ // Trigger the modal 'closed' event.
552
+ // This should trigger any method set in the options.closed propety.
553
+ //
554
+ modal.trigger( 'reveal:closed' );
555
+
556
+ } // end if !modalQueued
557
+
558
+ } // end if animation 'fadeAndPop'
559
+
560
+ //
561
+ // Are we using the 'fade' animation.
562
+ //
563
+ if ( options.animation === "fade" ) {
564
+ //
565
+ // Yes, we're using the 'fade' animation.
566
+ //
567
+ modal.animate( { "opacity" : 0 },
568
+ /*
569
+ * Animation speed.
570
+ */
571
+ options.animationSpeed,
572
+ /*
573
+ * End of animation callback.
574
+ */
575
+ function () {
576
+ //
577
+ // Set the css close options.
578
+ //
579
+ modal.css( cssOpts.close );
580
+
581
+ }); // end animate
582
+
583
+ //
584
+ // Are we mid animating the modal(s)?
585
+ //
586
+ if ( !modalQueued ) {
587
+ //
588
+ // Oh, the modal(s) are mid animating.
589
+ // Let's delay the animation queue.
590
+ //
591
+ modalBg.delay( options.animationSpeed )
592
+ //
593
+ // Let's fade out the modal background element.
594
+ //
595
+ .fadeOut(
596
+ /*
597
+ * Animation speed.
598
+ */
599
+ options.animationSpeed,
600
+ /*
601
+ * End of animation callback.
602
+ */
603
+ function () {
604
+ //
605
+ // Trigger the modal 'closed' event.
606
+ // This should trigger any method set in the options.closed propety.
607
+ //
608
+ modal.trigger( 'reveal:closed' );
609
+
610
+ }); // end fadeOut
611
+
612
+ } else {
613
+ //
614
+ // We're not mid queue.
615
+ // Trigger the modal 'closed' event.
616
+ // This should trigger any method set in the options.closed propety.
617
+ //
618
+ modal.trigger( 'reveal:closed' );
619
+
620
+ } // end if !modalQueued
621
+
622
+ } // end if animation 'fade'
623
+
624
+ //
625
+ // Are we not animating?
626
+ //
627
+ if ( options.animation === "none" ) {
628
+ //
629
+ // We're not animating.
630
+ // Set the modal close css options.
631
+ //
632
+ modal.css( cssOpts.close );
633
+ //
634
+ // Is the modal in the middle of an animation queue?
635
+ //
636
+ if ( !modalQueued ) {
637
+ //
638
+ // It's not mid queueu. Just hide it.
639
+ //
640
+ modalBg.css( { 'display': 'none' } );
641
+ }
642
+ //
643
+ // Trigger the modal 'closed' event.
644
+ // This should trigger any method set in the options.closed propety.
645
+ //
646
+ modal.trigger( 'reveal:closed' );
647
+
648
+ } // end if not animating
649
+ //
650
+ // Reset the modalQueued variable.
651
+ //
652
+ modalQueued = false;
653
+ } // end if !locked
654
+
655
+ } // end closeAnimation
656
+
657
+ /**
658
+ * Destroys the modal and it's events.
659
+ *
660
+ * @method destroy
661
+ */
662
+ function destroy() {
663
+ //
664
+ // Unbind all .reveal events from the modal.
665
+ //
666
+ modal.unbind( '.reveal' );
667
+ //
668
+ // Unbind all .reveal events from the modal background.
669
+ //
670
+ modalBg.unbind( '.reveal' );
671
+ //
672
+ // Unbind all .reveal events from the modal 'close' button.
673
+ //
674
+ $closeButton.unbind( '.reveal' );
675
+ //
676
+ // Unbind all .reveal events from the body.
677
+ //
678
+ $( 'body' ).unbind( '.reveal' );
679
+
680
+ }
681
+
682
+ function closeVideos() {
683
+ var video = modal.find('.flex-video'),
684
+ iframe = video.find('iframe');
685
+ if (iframe.length > 0) {
686
+ iframe.data("src", iframe.attr("src"));
687
+ iframe.attr("src", "");
688
+ video.fadeOut(100);
689
+ }
690
+ }
691
+
692
+ //
693
+ // Bind the modal 'close' event
694
+ //
695
+ modal.bind( 'reveal:close.reveal', closeAnimation );
696
+ modal.bind( 'reveal:closed.reveal', closeVideos );
697
+ //
698
+ // Bind the modal 'opened' + 'closed' event
699
+ // Calls the unlockModal method.
700
+ //
701
+ modal.bind( 'reveal:opened.reveal reveal:closed.reveal', unlockModal );
702
+ //
703
+ // Bind the modal 'closed' event.
704
+ // Calls the destroy method.
705
+ //
706
+ modal.bind( 'reveal:closed.reveal', destroy );
707
+ //
708
+ // Bind the modal 'open' event
709
+ // Handled by the options.open property function.
710
+ //
711
+ modal.bind( 'reveal:open.reveal', options.open );
712
+ //
713
+ // Bind the modal 'opened' event.
714
+ // Handled by the options.opened property function.
715
+ //
716
+ modal.bind( 'reveal:opened.reveal', options.opened );
717
+ //
718
+ // Bind the modal 'close' event.
719
+ // Handled by the options.close property function.
720
+ //
721
+ modal.bind( 'reveal:close.reveal', options.close );
722
+ //
723
+ // Bind the modal 'closed' event.
724
+ // Handled by the options.closed property function.
725
+ //
726
+ modal.bind( 'reveal:closed.reveal', options.closed );
727
+
728
+ //
729
+ // We're running this for the first time.
730
+ // Trigger the modal 'open' event.
731
+ //
732
+ modal.trigger( 'reveal:open' );
733
+
734
+ //
735
+ // Get the closeButton variable element(s).
736
+ //
737
+ $closeButton = $( '.' + options.dismissModalClass )
738
+ //
739
+ // Bind the element 'click' event and handler.
740
+ //
741
+ .bind( 'click.reveal', function () {
742
+ //
743
+ // Trigger the modal 'close' event.
744
+ //
745
+ modal.trigger( 'reveal:close' );
746
+
747
+ });
748
+
749
+ //
750
+ // Should we close the modal background on click?
751
+ //
752
+ if ( options.closeOnBackgroundClick ) {
753
+ //
754
+ // Yes, close the modal background on 'click'
755
+ // Set the modal background css 'cursor' propety to pointer.
756
+ // Adds a pointer symbol when you mouse over the modal background.
757
+ //
758
+ modalBg.css( { "cursor": "pointer" } );
759
+ //
760
+ // Bind a 'click' event handler to the modal background.
761
+ //
762
+ modalBg.bind( 'click.reveal', function () {
763
+ //
764
+ // Trigger the modal 'close' event.
765
+ //
766
+ modal.trigger( 'reveal:close' );
767
+
768
+ });
769
+
770
+ }
771
+
772
+ //
773
+ // Bind keyup functions on the body element.
774
+ // We'll want to close the modal when the 'escape' key is hit.
775
+ //
776
+ $( 'body' ).bind( 'keyup.reveal', function ( event ) {
777
+ //
778
+ // Did the escape key get triggered?
779
+ //
780
+ if ( event.which === 27 ) { // 27 is the keycode for the Escape key
781
+ //
782
+ // Escape key was triggered.
783
+ // Trigger the modal 'close' event.
784
+ //
785
+ modal.trigger( 'reveal:close' );
786
+ }
787
+
788
+ }); // end $(body)
789
+
790
+ }); // end this.each
791
+
792
+ }; // end $.fn
793
+
794
+ } ( jQuery ) );