fones 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,80 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: Print Stylesheet
4
+
5
+ This is the print stylesheet. There's probably not a lot
6
+ of reasons to edit this stylesheet. If you want to
7
+ though, go for it.
8
+
9
+ ******************************************************************/
10
+
11
+
12
+
13
+ * {
14
+ background: transparent !important;
15
+ color: black !important;
16
+ text-shadow: none !important;
17
+ filter:none !important;
18
+ -ms-filter: none !important;
19
+ }
20
+
21
+ a, a:visited {
22
+ color: #444 !important;
23
+ text-decoration: underline;
24
+
25
+ // show links on printed pages
26
+ &:after {
27
+ content: " (" attr(href) ")";
28
+ }
29
+
30
+ // show title too
31
+ abbr[title]:after {
32
+ content: " (" attr(title) ")";
33
+ }
34
+ }
35
+
36
+ .ir a:after,
37
+ a[href^="javascript:"]:after,
38
+ a[href^="#"]:after {
39
+ content: "";
40
+ }
41
+
42
+ pre, blockquote {
43
+ border: 1px solid #999;
44
+ page-break-inside: avoid;
45
+ }
46
+
47
+ thead {
48
+ display: table-header-group;
49
+ }
50
+
51
+ tr, img {
52
+ page-break-inside: avoid;
53
+ }
54
+
55
+ img {
56
+ max-width: 100% !important;
57
+ }
58
+
59
+ @page {
60
+ margin: 0.5cm;
61
+ }
62
+
63
+ p, h2, h3 {
64
+ orphans: 3;
65
+ widows: 3;
66
+ }
67
+
68
+ h2,
69
+ h3 {
70
+ page-break-after: avoid;
71
+ }
72
+
73
+ // hide content people who print don't need to see
74
+ .sidebar,
75
+ .page-navigation,
76
+ .wp-prev-next,
77
+ .respond-form,
78
+ nav {
79
+ display: none;
80
+ }
@@ -0,0 +1,52 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: IE Stylesheet
4
+
5
+ So instead of using the respond.js file to add media query support
6
+ to IE, we're going to use SASS to create an easily readable css file.
7
+ Here, we import all the styles the standard stylesheet gets, only
8
+ without the media queries. No need to worry about editing anything!
9
+
10
+ ******************************************************************/
11
+
12
+ /*
13
+ Remember, all the BASE styles are called already since IE can
14
+ read those. Below, we need to import only the stuff IE can't
15
+ understand (what's inside the media queries). We also need to
16
+ import the mixins file so SASS can understand the variables.
17
+ */
18
+
19
+ /* import mixins */
20
+ @import "mixins";
21
+
22
+ @import "grid";
23
+ @import "481up";
24
+ @import "768up";
25
+ @import "1030up";
26
+
27
+ /*
28
+ you can call the larger styles if you want, but there's really no need
29
+ */
30
+
31
+
32
+ /******************************************************************
33
+ ADDITIONAL IE FIXES
34
+ These fixes are now ONLY seen by IE, so you don't have to worry
35
+ about using prefixes, although it's best practice. For more info
36
+ on using Modernizr classes, check out this link:
37
+ http://www.modernizr.com/docs/
38
+ ******************************************************************/
39
+
40
+ /*
41
+ For example, you can use something like:
42
+
43
+ .no-textshadow .class { ... }
44
+
45
+ You can also target specific versions by using the classes applied to
46
+ the html element. These can sometimes change, so take a look inside the
47
+ header.php file to see what they are:
48
+
49
+
50
+ .lt-ie8 .class { ... }
51
+
52
+ */
@@ -0,0 +1,65 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: Login Stylesheet
4
+
5
+ This stylesheet is loaded (if admin.php is setup in your
6
+ functions file) on the login page. This way you can style
7
+ the login page. It won't affect any other page, admin or front-end.
8
+
9
+ For more info, check out the codex:
10
+ http://codex.wordpress.org/Creating_Admin_Themes
11
+
12
+ ******************************************************************/
13
+
14
+
15
+ body.login {}
16
+
17
+
18
+ #login {} /* the form box */
19
+
20
+ /*
21
+ This is the Wordpress logo in the admin area.
22
+ You'll have to load your own images and mess
23
+ with the width and height.
24
+ */
25
+ .login h1 a {
26
+ background: url(../img/login-logo.png) no-repeat top center; /* make sure to replace this! */
27
+ width: 326px;
28
+ height: 67px;
29
+ text-indent: -9999px;
30
+ overflow: hidden;
31
+ padding-bottom: 15px;
32
+ display: block;
33
+ }
34
+
35
+ form {
36
+ margin-left: 8px;
37
+ padding: 26px 24px 46px;
38
+ font-weight: normal;
39
+ background: white;
40
+ border: 1px solid #E5E5E5;
41
+ border-radius: 3px;
42
+ box-shadow: none;
43
+ }
44
+
45
+ body form .input {
46
+ font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif;
47
+ font-weight: 200;
48
+ font-size: 24px;
49
+ width: 97%;
50
+ padding: 3px;
51
+ margin-top: 2px;
52
+ margin-right: 6px;
53
+ margin-bottom: 16px;
54
+ border: 1px solid #E5E5E5;
55
+ background: #FBFBFB;
56
+ outline: none;
57
+ box-shadow: inset 1px 1px 2px rgba(200,200,200,0.2);
58
+ }
59
+
60
+ /*
61
+ You'll have to override some of the default styles
62
+ but since we're referencing the id, it should be easy.
63
+ */
64
+ #wp-submit {} /* login button*/
65
+
@@ -0,0 +1,111 @@
1
+ // WordPress theme header
2
+ @import "header";
3
+
4
+
5
+ //
6
+ // IMPORTING STYLES
7
+ //
8
+
9
+ // import normalize
10
+ @import "normalize";
11
+
12
+ // import mixins
13
+ @import "mixins";
14
+
15
+ /*
16
+ BASE (MOBILE) SIZE
17
+ This are the mobile styles. It's what people see on their phones. If
18
+ you set a great foundation, you won't need to add too many styles in
19
+ the other stylesheets. Remember, keep it light: Speed is Important.
20
+ */
21
+
22
+ // styles in base.scss
23
+ @import "base";
24
+
25
+ /*
26
+ LARGER MOBILE DEVICES
27
+ This is for devices like the Galaxy Note or something that's
28
+ larger than an iPhone but smaller than a tablet. Let's call them
29
+ tweeners.
30
+ */
31
+ @media only screen and (min-width: 481px) {
32
+
33
+ // styles in 481up.scss
34
+ @import "481up";
35
+
36
+ } // end of media query
37
+
38
+ /*
39
+ TABLET & SMALLER LAPTOPS
40
+ This is the average viewing window. So Desktops, Laptops, and
41
+ in general anyone not viewing on a mobile device. Here's where
42
+ you can add resource intensive styles.
43
+ */
44
+ @media only screen and (min-width: 768px) {
45
+
46
+ // import grids
47
+ @import "grid";
48
+
49
+ // styles in 768up.scss
50
+ @import "768up";
51
+
52
+ } // end of media query
53
+
54
+ /*
55
+ DESKTOP
56
+ This is the average viewing window. So Desktops, Laptops, and
57
+ in general anyone not viewing on a mobile device. Here's where
58
+ you can add resource intensive styles.
59
+ */
60
+ @media only screen and (min-width: 1030px) {
61
+
62
+ // styles in 1030up.scss
63
+ @import "1030up";
64
+
65
+ } // end of media query
66
+
67
+ /*
68
+ LARGE VIEWING SIZE
69
+ This is for the larger monitors and possibly full screen viewers.
70
+ */
71
+ @media only screen and (min-width: 1240px) {
72
+
73
+ // styles in 1240up.scss
74
+ @import "1240up";
75
+
76
+ } // end of media query
77
+
78
+ /*
79
+ RETINA (2x RESOLUTION DEVICES)
80
+ This applies to the retina iPhone (4s) and iPad (2,3) along with
81
+ other displays with a 2x resolution. You can also create a media
82
+ query for retina AND a certain size if you want. Go Nuts.
83
+ */
84
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
85
+ only screen and (min--moz-device-pixel-ratio: 1.5),
86
+ only screen and (min-device-pixel-ratio: 1.5) {
87
+
88
+ // styles in 2x.scss
89
+ @import "2x";
90
+
91
+ } // end of media query
92
+
93
+ /*
94
+ iPHONE 5 MEDIA QUERY
95
+ Want to get fancy for no good reason? Knock yourself out.
96
+ */
97
+ @media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) {
98
+
99
+ // iPhone 5 or iPod Touch 5th generation styles (you can include your own file if you want)
100
+
101
+ }
102
+
103
+ /*
104
+ PRINT STYLESHEET
105
+ Feel free to customize this. Remember to add things that won't make
106
+ sense to print at the bottom. Things like nav, ads, and forms should
107
+ be set to display none.
108
+ */
109
+ @media print {
110
+ @import "print";
111
+ }
@@ -0,0 +1,166 @@
1
+ <?php
2
+ /*
3
+ Author:
4
+ URL:
5
+
6
+ This is where you can drop your custom functions or
7
+ just edit things like thumbnail sizes, header images,
8
+ sidebars, comments, ect.
9
+ */
10
+
11
+ /************* INCLUDE NEEDED FILES ***************/
12
+
13
+ /*
14
+ 1. library/bones.php
15
+ - head cleanup (remove rsd, uri links, junk css, ect)
16
+ - enqueueing scripts & styles
17
+ - theme support functions
18
+ - custom menu output & fallbacks
19
+ - related post function
20
+ - page-navi function
21
+ - removing <p> from around images
22
+ - customizing the post excerpt
23
+ - custom google+ integration
24
+ - adding custom fields to user profiles
25
+ */
26
+ require_once('library/bones.php'); // if you remove this, <%= theme_id %> will break
27
+
28
+ /*
29
+ 2. library/custom-post-type.php
30
+ - an example custom post type
31
+ - example custom taxonomy (like categories)
32
+ - example custom taxonomy (like tags)
33
+ */
34
+ require_once('library/custom-post-type.php'); // you can disable this if you like
35
+ /*
36
+ 3. library/admin.php
37
+ - removing some default WordPress dashboard widgets
38
+ - an example custom dashboard widget
39
+ - adding custom login css
40
+ - changing text in footer of admin
41
+ */
42
+ // require_once('library/admin.php'); // this comes turned off by default
43
+ /*
44
+ 4. library/translation/translation.php
45
+ - adding support for other languages
46
+ */
47
+ // require_once('library/translation/translation.php'); // this comes turned off by default
48
+
49
+ /************* THUMBNAIL SIZE OPTIONS *************/
50
+
51
+ // Thumbnail sizes
52
+ add_image_size( '<%= theme_id %>-thumb-600', 600, 150, true );
53
+ add_image_size( '<%= theme_id %>-thumb-300', 300, 100, true );
54
+ /*
55
+ to add more sizes, simply copy a line from above
56
+ and change the dimensions & name. As long as you
57
+ upload a "featured image" as large as the biggest
58
+ set width or height, all the other sizes will be
59
+ auto-cropped.
60
+
61
+ To call a different size, simply change the text
62
+ inside the thumbnail function.
63
+
64
+ For example, to call the 300 x 300 sized image,
65
+ we would use the function:
66
+ <?php the_post_thumbnail( '<%= theme_id %>-thumb-300' ); ?>
67
+ for the 600 x 100 image:
68
+ <?php the_post_thumbnail( '<%= theme_id %>-thumb-600' ); ?>
69
+
70
+ You can change the names and dimensions to whatever
71
+ you like. Enjoy!
72
+ */
73
+
74
+ /************* ACTIVE SIDEBARS ********************/
75
+
76
+ // Sidebars & Widgetizes Areas
77
+ function <%= theme_id %>_register_sidebars() {
78
+ register_sidebar(array(
79
+ 'id' => 'sidebar1',
80
+ 'name' => __('Sidebar 1', '<%= theme_id %>theme'),
81
+ 'description' => __('The first (primary) sidebar.', '<%= theme_id %>theme'),
82
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
83
+ 'after_widget' => '</div>',
84
+ 'before_title' => '<h4 class="widgettitle">',
85
+ 'after_title' => '</h4>',
86
+ ));
87
+
88
+ /*
89
+ to add more sidebars or widgetized areas, just copy
90
+ and edit the above sidebar code. In order to call
91
+ your new sidebar just use the following code:
92
+
93
+ Just change the name to whatever your new
94
+ sidebar's id is, for example:
95
+
96
+ register_sidebar(array(
97
+ 'id' => 'sidebar2',
98
+ 'name' => __('Sidebar 2', '<%= theme_id %>theme'),
99
+ 'description' => __('The second (secondary) sidebar.', '<%= theme_id %>theme'),
100
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
101
+ 'after_widget' => '</div>',
102
+ 'before_title' => '<h4 class="widgettitle">',
103
+ 'after_title' => '</h4>',
104
+ ));
105
+
106
+ To call the sidebar in your template, you can just copy
107
+ the sidebar.php file and rename it to your sidebar's name.
108
+ So using the above example, it would be:
109
+ sidebar-sidebar2.php
110
+
111
+ */
112
+ } // don't remove this bracket!
113
+
114
+ /************* COMMENT LAYOUT *********************/
115
+
116
+ // Comment Layout
117
+ function <%= theme_id %>_comments($comment, $args, $depth) {
118
+ $GLOBALS['comment'] = $comment; ?>
119
+ <li <?php comment_class(); ?>>
120
+ <article id="comment-<?php comment_ID(); ?>" class="clearfix">
121
+ <header class="comment-author vcard">
122
+ <?php
123
+ /*
124
+ this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:
125
+ echo get_avatar($comment,$size='32',$default='<path_to_url>' );
126
+ */
127
+ ?>
128
+ <!-- custom gravatar call -->
129
+ <?php
130
+ // create variable
131
+ $bgauthemail = get_comment_author_email();
132
+ ?>
133
+ <img data-gravatar="http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>?s=32" class="load-gravatar avatar avatar-48 photo" height="32" width="32" src="<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif" />
134
+ <!-- end custom gravatar call -->
135
+ <?php printf(__('<cite class="fn">%s</cite>', '<%= theme_id %>theme'), get_comment_author_link()) ?>
136
+ <time datetime="<?php echo comment_time('Y-m-j'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time(__('F jS, Y', '<%= theme_id %>theme')); ?> </a></time>
137
+ <?php edit_comment_link(__('(Edit)', '<%= theme_id %>theme'),' ','') ?>
138
+ </header>
139
+ <?php if ($comment->comment_approved == '0') : ?>
140
+ <div class="alert alert-info">
141
+ <p><?php _e('Your comment is awaiting moderation.', '<%= theme_id %>theme') ?></p>
142
+ </div>
143
+ <?php endif; ?>
144
+ <section class="comment_content clearfix">
145
+ <?php comment_text() ?>
146
+ </section>
147
+ <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
148
+ </article>
149
+ <!-- </li> is added by WordPress automatically -->
150
+ <?php
151
+ } // don't remove this bracket!
152
+
153
+ /************* SEARCH FORM LAYOUT *****************/
154
+
155
+ // Search Form
156
+ function <%= theme_id %>_wpsearch($form) {
157
+ $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
158
+ <label class="screen-reader-text" for="s">' . __('Search for:', '<%= theme_id %>theme') . '</label>
159
+ <input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="'.esc_attr__('Search the Site...','<%= theme_id %>theme').'" />
160
+ <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
161
+ </form>';
162
+ return $form;
163
+ } // don't remove this bracket!
164
+
165
+
166
+ ?>