stump-cli 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/lib/stump-cli/version.rb +1 -1
  2. data/lib/wp/{wp-content/themes/stump/.gitignore → .gitignore} +1 -0
  3. metadata +2 -64
  4. data/lib/wp/wp-content/themes/twentyfourteen/404.php +0 -32
  5. data/lib/wp/wp-content/themes/twentyfourteen/archive.php +0 -74
  6. data/lib/wp/wp-content/themes/twentyfourteen/author.php +0 -74
  7. data/lib/wp/wp-content/themes/twentyfourteen/category.php +0 -58
  8. data/lib/wp/wp-content/themes/twentyfourteen/comments.php +0 -66
  9. data/lib/wp/wp-content/themes/twentyfourteen/content-aside.php +0 -57
  10. data/lib/wp/wp-content/themes/twentyfourteen/content-audio.php +0 -57
  11. data/lib/wp/wp-content/themes/twentyfourteen/content-featured-post.php +0 -34
  12. data/lib/wp/wp-content/themes/twentyfourteen/content-gallery.php +0 -57
  13. data/lib/wp/wp-content/themes/twentyfourteen/content-image.php +0 -57
  14. data/lib/wp/wp-content/themes/twentyfourteen/content-link.php +0 -57
  15. data/lib/wp/wp-content/themes/twentyfourteen/content-none.php +0 -31
  16. data/lib/wp/wp-content/themes/twentyfourteen/content-page.php +0 -31
  17. data/lib/wp/wp-content/themes/twentyfourteen/content-quote.php +0 -57
  18. data/lib/wp/wp-content/themes/twentyfourteen/content-video.php +0 -57
  19. data/lib/wp/wp-content/themes/twentyfourteen/content.php +0 -66
  20. data/lib/wp/wp-content/themes/twentyfourteen/css/editor-style.css +0 -717
  21. data/lib/wp/wp-content/themes/twentyfourteen/css/ie.css +0 -1335
  22. data/lib/wp/wp-content/themes/twentyfourteen/featured-content.php +0 -39
  23. data/lib/wp/wp-content/themes/twentyfourteen/footer.php +0 -28
  24. data/lib/wp/wp-content/themes/twentyfourteen/functions.php +0 -519
  25. data/lib/wp/wp-content/themes/twentyfourteen/genericons/COPYING.txt +0 -9
  26. data/lib/wp/wp-content/themes/twentyfourteen/genericons/Genericons-Regular.otf +0 -0
  27. data/lib/wp/wp-content/themes/twentyfourteen/genericons/LICENSE.txt +0 -339
  28. data/lib/wp/wp-content/themes/twentyfourteen/genericons/README.txt +0 -123
  29. data/lib/wp/wp-content/themes/twentyfourteen/genericons/example.html +0 -464
  30. data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.eot +0 -0
  31. data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.svg +0 -135
  32. data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.ttf +0 -0
  33. data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.woff +0 -0
  34. data/lib/wp/wp-content/themes/twentyfourteen/genericons/genericons.css +0 -197
  35. data/lib/wp/wp-content/themes/twentyfourteen/header.php +0 -65
  36. data/lib/wp/wp-content/themes/twentyfourteen/image.php +0 -79
  37. data/lib/wp/wp-content/themes/twentyfourteen/images/pattern-dark.svg +0 -16
  38. data/lib/wp/wp-content/themes/twentyfourteen/images/pattern-light.svg +0 -6
  39. data/lib/wp/wp-content/themes/twentyfourteen/inc/back-compat.php +0 -63
  40. data/lib/wp/wp-content/themes/twentyfourteen/inc/custom-header.php +0 -147
  41. data/lib/wp/wp-content/themes/twentyfourteen/inc/customizer.php +0 -114
  42. data/lib/wp/wp-content/themes/twentyfourteen/inc/featured-content.php +0 -531
  43. data/lib/wp/wp-content/themes/twentyfourteen/inc/template-tags.php +0 -203
  44. data/lib/wp/wp-content/themes/twentyfourteen/inc/widgets.php +0 -269
  45. data/lib/wp/wp-content/themes/twentyfourteen/index.php +0 -61
  46. data/lib/wp/wp-content/themes/twentyfourteen/js/customizer.js +0 -38
  47. data/lib/wp/wp-content/themes/twentyfourteen/js/featured-content-admin.js +0 -9
  48. data/lib/wp/wp-content/themes/twentyfourteen/js/functions.js +0 -134
  49. data/lib/wp/wp-content/themes/twentyfourteen/js/html5.js +0 -8
  50. data/lib/wp/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js +0 -21
  51. data/lib/wp/wp-content/themes/twentyfourteen/js/slider.js +0 -598
  52. data/lib/wp/wp-content/themes/twentyfourteen/languages/twentyfourteen.pot +0 -467
  53. data/lib/wp/wp-content/themes/twentyfourteen/page-templates/contributors.php +0 -52
  54. data/lib/wp/wp-content/themes/twentyfourteen/page-templates/full-width.php +0 -42
  55. data/lib/wp/wp-content/themes/twentyfourteen/page.php +0 -48
  56. data/lib/wp/wp-content/themes/twentyfourteen/rtl.css +0 -854
  57. data/lib/wp/wp-content/themes/twentyfourteen/screenshot.png +0 -0
  58. data/lib/wp/wp-content/themes/twentyfourteen/search.php +0 -49
  59. data/lib/wp/wp-content/themes/twentyfourteen/sidebar-content.php +0 -16
  60. data/lib/wp/wp-content/themes/twentyfourteen/sidebar-footer.php +0 -19
  61. data/lib/wp/wp-content/themes/twentyfourteen/sidebar.php +0 -29
  62. data/lib/wp/wp-content/themes/twentyfourteen/single.php +0 -40
  63. data/lib/wp/wp-content/themes/twentyfourteen/style.css +0 -4321
  64. data/lib/wp/wp-content/themes/twentyfourteen/tag.php +0 -60
  65. data/lib/wp/wp-content/themes/twentyfourteen/taxonomy-post_format.php +0 -85
@@ -1,63 +0,0 @@
1
- <?php
2
- /**
3
- * Twenty Fourteen back compat functionality
4
- *
5
- * Prevents Twenty Fourteen from running on WordPress versions prior to 3.6,
6
- * since this theme is not meant to be backward compatible beyond that
7
- * and relies on many newer functions and markup changes introduced in 3.6.
8
- *
9
- * @package WordPress
10
- * @subpackage Twenty_Fourteen
11
- * @since Twenty Fourteen 1.0
12
- */
13
-
14
- /**
15
- * Prevent switching to Twenty Fourteen on old versions of WordPress.
16
- *
17
- * Switches to the default theme.
18
- *
19
- * @since Twenty Fourteen 1.0
20
- */
21
- function twentyfourteen_switch_theme() {
22
- switch_theme( WP_DEFAULT_THEME, WP_DEFAULT_THEME );
23
- unset( $_GET['activated'] );
24
- add_action( 'admin_notices', 'twentyfourteen_upgrade_notice' );
25
- }
26
- add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' );
27
-
28
- /**
29
- * Add message for unsuccessful theme switch.
30
- *
31
- * Prints an update nag after an unsuccessful attempt to switch to
32
- * Twenty Fourteen on WordPress versions prior to 3.6.
33
- *
34
- * @since Twenty Fourteen 1.0
35
- */
36
- function twentyfourteen_upgrade_notice() {
37
- $message = sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] );
38
- printf( '<div class="error"><p>%s</p></div>', $message );
39
- }
40
-
41
- /**
42
- * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6.
43
- *
44
- * @since Twenty Fourteen 1.0
45
- */
46
- function twentyfourteen_customize() {
47
- wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ), '', array(
48
- 'back_link' => true,
49
- ) );
50
- }
51
- add_action( 'load-customize.php', 'twentyfourteen_customize' );
52
-
53
- /**
54
- * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.
55
- *
56
- * @since Twenty Fourteen 1.0
57
- */
58
- function twentyfourteen_preview() {
59
- if ( isset( $_GET['preview'] ) ) {
60
- wp_die( sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] ) );
61
- }
62
- }
63
- add_action( 'template_redirect', 'twentyfourteen_preview' );
@@ -1,147 +0,0 @@
1
- <?php
2
- /**
3
- * Implement Custom Header functionality for Twenty Fourteen
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
9
-
10
- /**
11
- * Set up the WordPress core custom header settings.
12
- *
13
- * @since Twenty Fourteen 1.0
14
- *
15
- * @uses twentyfourteen_header_style()
16
- * @uses twentyfourteen_admin_header_style()
17
- * @uses twentyfourteen_admin_header_image()
18
- */
19
- function twentyfourteen_custom_header_setup() {
20
- /**
21
- * Filter Twenty Fourteen custom-header support arguments.
22
- *
23
- * @since Twenty Fourteen 1.0
24
- *
25
- * @param array $args {
26
- * An array of custom-header support arguments.
27
- *
28
- * @type bool $header_text Whether to display custom header text. Default false.
29
- * @type int $width Width in pixels of the custom header image. Default 1260.
30
- * @type int $height Height in pixels of the custom header image. Default 240.
31
- * @type bool $flex_height Whether to allow flexible-height header images. Default true.
32
- * @type string $admin_head_callback Callback function used to style the image displayed in
33
- * the Appearance > Header screen.
34
- * @type string $admin_preview_callback Callback function used to create the custom header markup in
35
- * the Appearance > Header screen.
36
- * }
37
- */
38
- add_theme_support( 'custom-header', apply_filters( 'twentyfourteen_custom_header_args', array(
39
- 'default-text-color' => 'fff',
40
- 'width' => 1260,
41
- 'height' => 240,
42
- 'flex-height' => true,
43
- 'wp-head-callback' => 'twentyfourteen_header_style',
44
- 'admin-head-callback' => 'twentyfourteen_admin_header_style',
45
- 'admin-preview-callback' => 'twentyfourteen_admin_header_image',
46
- ) ) );
47
- }
48
- add_action( 'after_setup_theme', 'twentyfourteen_custom_header_setup' );
49
-
50
- if ( ! function_exists( 'twentyfourteen_header_style' ) ) :
51
- /**
52
- * Styles the header image and text displayed on the blog
53
- *
54
- * @see twentyfourteen_custom_header_setup().
55
- *
56
- */
57
- function twentyfourteen_header_style() {
58
- $text_color = get_header_textcolor();
59
-
60
- // If no custom color for text is set, let's bail.
61
- if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) )
62
- return;
63
-
64
- // If we get this far, we have custom styles.
65
- ?>
66
- <style type="text/css" id="twentyfourteen-header-css">
67
- <?php
68
- // Has the text been hidden?
69
- if ( ! display_header_text() ) :
70
- ?>
71
- .site-title,
72
- .site-description {
73
- clip: rect(1px 1px 1px 1px); /* IE7 */
74
- clip: rect(1px, 1px, 1px, 1px);
75
- position: absolute;
76
- }
77
- <?php
78
- // If the user has set a custom color for the text, use that.
79
- elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :
80
- ?>
81
- .site-title a {
82
- color: #<?php echo esc_attr( $text_color ); ?>;
83
- }
84
- <?php endif; ?>
85
- </style>
86
- <?php
87
- }
88
- endif; // twentyfourteen_header_style
89
-
90
-
91
- if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) :
92
- /**
93
- * Style the header image displayed on the Appearance > Header screen.
94
- *
95
- * @see twentyfourteen_custom_header_setup()
96
- *
97
- * @since Twenty Fourteen 1.0
98
- */
99
- function twentyfourteen_admin_header_style() {
100
- ?>
101
- <style type="text/css" id="twentyfourteen-admin-header-css">
102
- .appearance_page_custom-header #headimg {
103
- background-color: #000;
104
- border: none;
105
- max-width: 1260px;
106
- min-height: 48px;
107
- }
108
- #headimg h1 {
109
- font-family: Lato, sans-serif;
110
- font-size: 18px;
111
- line-height: 48px;
112
- margin: 0 0 0 30px;
113
- }
114
- .rtl #headimg h1 {
115
- margin: 0 30px 0 0;
116
- }
117
- #headimg h1 a {
118
- color: #fff;
119
- text-decoration: none;
120
- }
121
- #headimg img {
122
- vertical-align: middle;
123
- }
124
- </style>
125
- <?php
126
- }
127
- endif; // twentyfourteen_admin_header_style
128
-
129
- if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) :
130
- /**
131
- * Create the custom header image markup displayed on the Appearance > Header screen.
132
- *
133
- * @see twentyfourteen_custom_header_setup()
134
- *
135
- * @since Twenty Fourteen 1.0
136
- */
137
- function twentyfourteen_admin_header_image() {
138
- ?>
139
- <div id="headimg">
140
- <?php if ( get_header_image() ) : ?>
141
- <img src="<?php header_image(); ?>" alt="">
142
- <?php endif; ?>
143
- <h1 class="displaying-header-text"><a id="name"<?php echo sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
144
- </div>
145
- <?php
146
- }
147
- endif; // twentyfourteen_admin_header_image
@@ -1,114 +0,0 @@
1
- <?php
2
- /**
3
- * Twenty Fourteen Theme Customizer support
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
9
-
10
- /**
11
- * Implement Theme Customizer additions and adjustments.
12
- *
13
- * @since Twenty Fourteen 1.0
14
- *
15
- * @param WP_Customize_Manager $wp_customize Theme Customizer object.
16
- */
17
- function twentyfourteen_customize_register( $wp_customize ) {
18
- // Add postMessage support for site title and description.
19
- $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
20
- $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
21
- $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
22
-
23
- // Rename the label to "Site Title Color" because this only affects the site title in this theme.
24
- $wp_customize->get_control( 'header_textcolor' )->label = __( 'Site Title Color', 'twentyfourteen' );
25
-
26
- // Rename the label to "Display Site Title & Tagline" in order to make this option extra clear.
27
- $wp_customize->get_control( 'display_header_text' )->label = __( 'Display Site Title &amp; Tagline', 'twentyfourteen' );
28
-
29
- // Add custom description to Colors and Background controls or sections.
30
- if ( property_exists( $wp_customize->get_control( 'background_color' ), 'description' ) ) {
31
- $wp_customize->get_control( 'background_color' )->description = __( 'May only be visible on wide screens.', 'twentyfourteen' );
32
- $wp_customize->get_control( 'background_image' )->description = __( 'May only be visible on wide screens.', 'twentyfourteen' );
33
- } else {
34
- $wp_customize->get_section( 'colors' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
35
- $wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
36
- }
37
-
38
- // Add the featured content section in case it's not already there.
39
- $wp_customize->add_section( 'featured_content', array(
40
- 'title' => __( 'Featured Content', 'twentyfourteen' ),
41
- 'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
42
- esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
43
- admin_url( 'edit.php?show_sticky=1' )
44
- ),
45
- 'priority' => 130,
46
- ) );
47
-
48
- // Add the featured content layout setting and control.
49
- $wp_customize->add_setting( 'featured_content_layout', array(
50
- 'default' => 'grid',
51
- 'sanitize_callback' => 'twentyfourteen_sanitize_layout',
52
- ) );
53
-
54
- $wp_customize->add_control( 'featured_content_layout', array(
55
- 'label' => __( 'Layout', 'twentyfourteen' ),
56
- 'section' => 'featured_content',
57
- 'type' => 'select',
58
- 'choices' => array(
59
- 'grid' => __( 'Grid', 'twentyfourteen' ),
60
- 'slider' => __( 'Slider', 'twentyfourteen' ),
61
- ),
62
- ) );
63
- }
64
- add_action( 'customize_register', 'twentyfourteen_customize_register' );
65
-
66
- /**
67
- * Sanitize the Featured Content layout value.
68
- *
69
- * @since Twenty Fourteen 1.0
70
- *
71
- * @param string $layout Layout type.
72
- * @return string Filtered layout type (grid|slider).
73
- */
74
- function twentyfourteen_sanitize_layout( $layout ) {
75
- if ( ! in_array( $layout, array( 'grid', 'slider' ) ) ) {
76
- $layout = 'grid';
77
- }
78
-
79
- return $layout;
80
- }
81
-
82
- /**
83
- * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.
84
- *
85
- * @since Twenty Fourteen 1.0
86
- */
87
- function twentyfourteen_customize_preview_js() {
88
- wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20131205', true );
89
- }
90
- add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
91
-
92
- /**
93
- * Add contextual help to the Themes and Post edit screens.
94
- *
95
- * @since Twenty Fourteen 1.0
96
- */
97
- function twentyfourteen_contextual_help() {
98
- if ( 'admin_head-edit.php' === current_filter() && 'post' !== $GLOBALS['typenow'] ) {
99
- return;
100
- }
101
-
102
- get_current_screen()->add_help_tab( array(
103
- 'id' => 'twentyfourteen',
104
- 'title' => __( 'Twenty Fourteen', 'twentyfourteen' ),
105
- 'content' =>
106
- '<ul>' .
107
- '<li>' . sprintf( __( 'The home page features your choice of up to 6 posts prominently displayed in a grid or slider, controlled by a <a href="%1$s">tag</a>; you can change the tag and layout in <a href="%2$s">Appearance &rarr; Customize</a>. If no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'customize.php' ), admin_url( 'edit.php?show_sticky=1' ) ) . '</li>' .
108
- '<li>' . sprintf( __( 'Enhance your site design by using <a href="%s">Featured Images</a> for posts you&rsquo;d like to stand out (also known as post thumbnails). This allows you to associate an image with your post without inserting it. Twenty Fourteen uses featured images for posts and pages&mdash;above the title&mdash;and in the Featured Content area on the home page.', 'twentyfourteen' ), 'http://codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail' ) . '</li>' .
109
- '<li>' . sprintf( __( 'For an in-depth tutorial, and more tips and tricks, visit the <a href="%s">Twenty Fourteen documentation</a>.', 'twentyfourteen' ), 'http://codex.wordpress.org/Twenty_Fourteen' ) . '</li>' .
110
- '</ul>',
111
- ) );
112
- }
113
- add_action( 'admin_head-themes.php', 'twentyfourteen_contextual_help' );
114
- add_action( 'admin_head-edit.php', 'twentyfourteen_contextual_help' );