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.
- data/lib/stump-cli/version.rb +1 -1
- data/lib/wp/{wp-content/themes/stump/.gitignore → .gitignore} +1 -0
- metadata +2 -64
- data/lib/wp/wp-content/themes/twentyfourteen/404.php +0 -32
- data/lib/wp/wp-content/themes/twentyfourteen/archive.php +0 -74
- data/lib/wp/wp-content/themes/twentyfourteen/author.php +0 -74
- data/lib/wp/wp-content/themes/twentyfourteen/category.php +0 -58
- data/lib/wp/wp-content/themes/twentyfourteen/comments.php +0 -66
- data/lib/wp/wp-content/themes/twentyfourteen/content-aside.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content-audio.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content-featured-post.php +0 -34
- data/lib/wp/wp-content/themes/twentyfourteen/content-gallery.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content-image.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content-link.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content-none.php +0 -31
- data/lib/wp/wp-content/themes/twentyfourteen/content-page.php +0 -31
- data/lib/wp/wp-content/themes/twentyfourteen/content-quote.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content-video.php +0 -57
- data/lib/wp/wp-content/themes/twentyfourteen/content.php +0 -66
- data/lib/wp/wp-content/themes/twentyfourteen/css/editor-style.css +0 -717
- data/lib/wp/wp-content/themes/twentyfourteen/css/ie.css +0 -1335
- data/lib/wp/wp-content/themes/twentyfourteen/featured-content.php +0 -39
- data/lib/wp/wp-content/themes/twentyfourteen/footer.php +0 -28
- data/lib/wp/wp-content/themes/twentyfourteen/functions.php +0 -519
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/COPYING.txt +0 -9
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/Genericons-Regular.otf +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/LICENSE.txt +0 -339
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/README.txt +0 -123
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/example.html +0 -464
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.eot +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.svg +0 -135
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.ttf +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/font/genericons-regular-webfont.woff +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/genericons/genericons.css +0 -197
- data/lib/wp/wp-content/themes/twentyfourteen/header.php +0 -65
- data/lib/wp/wp-content/themes/twentyfourteen/image.php +0 -79
- data/lib/wp/wp-content/themes/twentyfourteen/images/pattern-dark.svg +0 -16
- data/lib/wp/wp-content/themes/twentyfourteen/images/pattern-light.svg +0 -6
- data/lib/wp/wp-content/themes/twentyfourteen/inc/back-compat.php +0 -63
- data/lib/wp/wp-content/themes/twentyfourteen/inc/custom-header.php +0 -147
- data/lib/wp/wp-content/themes/twentyfourteen/inc/customizer.php +0 -114
- data/lib/wp/wp-content/themes/twentyfourteen/inc/featured-content.php +0 -531
- data/lib/wp/wp-content/themes/twentyfourteen/inc/template-tags.php +0 -203
- data/lib/wp/wp-content/themes/twentyfourteen/inc/widgets.php +0 -269
- data/lib/wp/wp-content/themes/twentyfourteen/index.php +0 -61
- data/lib/wp/wp-content/themes/twentyfourteen/js/customizer.js +0 -38
- data/lib/wp/wp-content/themes/twentyfourteen/js/featured-content-admin.js +0 -9
- data/lib/wp/wp-content/themes/twentyfourteen/js/functions.js +0 -134
- data/lib/wp/wp-content/themes/twentyfourteen/js/html5.js +0 -8
- data/lib/wp/wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js +0 -21
- data/lib/wp/wp-content/themes/twentyfourteen/js/slider.js +0 -598
- data/lib/wp/wp-content/themes/twentyfourteen/languages/twentyfourteen.pot +0 -467
- data/lib/wp/wp-content/themes/twentyfourteen/page-templates/contributors.php +0 -52
- data/lib/wp/wp-content/themes/twentyfourteen/page-templates/full-width.php +0 -42
- data/lib/wp/wp-content/themes/twentyfourteen/page.php +0 -48
- data/lib/wp/wp-content/themes/twentyfourteen/rtl.css +0 -854
- data/lib/wp/wp-content/themes/twentyfourteen/screenshot.png +0 -0
- data/lib/wp/wp-content/themes/twentyfourteen/search.php +0 -49
- data/lib/wp/wp-content/themes/twentyfourteen/sidebar-content.php +0 -16
- data/lib/wp/wp-content/themes/twentyfourteen/sidebar-footer.php +0 -19
- data/lib/wp/wp-content/themes/twentyfourteen/sidebar.php +0 -29
- data/lib/wp/wp-content/themes/twentyfourteen/single.php +0 -40
- data/lib/wp/wp-content/themes/twentyfourteen/style.css +0 -4321
- data/lib/wp/wp-content/themes/twentyfourteen/tag.php +0 -60
- data/lib/wp/wp-content/themes/twentyfourteen/taxonomy-post_format.php +0 -85
@@ -1,134 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Theme functions file
|
3
|
-
*
|
4
|
-
* Contains handlers for navigation, accessibility, header sizing
|
5
|
-
* footer widgets and Featured Content slider
|
6
|
-
*
|
7
|
-
*/
|
8
|
-
( function( $ ) {
|
9
|
-
var body = $( 'body' ),
|
10
|
-
_window = $( window );
|
11
|
-
|
12
|
-
// Enable menu toggle for small screens.
|
13
|
-
( function() {
|
14
|
-
var nav = $( '#primary-navigation' ), button, menu;
|
15
|
-
if ( ! nav ) {
|
16
|
-
return;
|
17
|
-
}
|
18
|
-
|
19
|
-
button = nav.find( '.menu-toggle' );
|
20
|
-
if ( ! button ) {
|
21
|
-
return;
|
22
|
-
}
|
23
|
-
|
24
|
-
// Hide button if menu is missing or empty.
|
25
|
-
menu = nav.find( '.nav-menu' );
|
26
|
-
if ( ! menu || ! menu.children().length ) {
|
27
|
-
button.hide();
|
28
|
-
return;
|
29
|
-
}
|
30
|
-
|
31
|
-
$( '.menu-toggle' ).on( 'click.twentyfourteen', function() {
|
32
|
-
nav.toggleClass( 'toggled-on' );
|
33
|
-
} );
|
34
|
-
} )();
|
35
|
-
|
36
|
-
/*
|
37
|
-
* Makes "skip to content" link work correctly in IE9 and Chrome for better
|
38
|
-
* accessibility.
|
39
|
-
*
|
40
|
-
* @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
|
41
|
-
*/
|
42
|
-
_window.on( 'hashchange.twentyfourteen', function() {
|
43
|
-
var hash = location.hash.substring( 1 ), element;
|
44
|
-
|
45
|
-
if ( ! hash ) {
|
46
|
-
return;
|
47
|
-
}
|
48
|
-
|
49
|
-
element = document.getElementById( hash );
|
50
|
-
|
51
|
-
if ( element ) {
|
52
|
-
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
|
53
|
-
element.tabIndex = -1;
|
54
|
-
}
|
55
|
-
|
56
|
-
element.focus();
|
57
|
-
|
58
|
-
// Repositions the window on jump-to-anchor to account for header height.
|
59
|
-
window.scrollBy( 0, -80 );
|
60
|
-
}
|
61
|
-
} );
|
62
|
-
|
63
|
-
$( function() {
|
64
|
-
// Search toggle.
|
65
|
-
$( '.search-toggle' ).on( 'click.twentyfourteen', function( event ) {
|
66
|
-
var that = $( this ),
|
67
|
-
wrapper = $( '.search-box-wrapper' );
|
68
|
-
|
69
|
-
that.toggleClass( 'active' );
|
70
|
-
wrapper.toggleClass( 'hide' );
|
71
|
-
|
72
|
-
if ( that.is( '.active' ) || $( '.search-toggle .screen-reader-text' )[0] === event.target ) {
|
73
|
-
wrapper.find( '.search-field' ).focus();
|
74
|
-
}
|
75
|
-
} );
|
76
|
-
|
77
|
-
/*
|
78
|
-
* Fixed header for large screen.
|
79
|
-
* If the header becomes more than 48px tall, unfix the header.
|
80
|
-
*
|
81
|
-
* The callback on the scroll event is only added if there is a header
|
82
|
-
* image and we are not on mobile.
|
83
|
-
*/
|
84
|
-
if ( _window.width() > 781 ) {
|
85
|
-
var mastheadHeight = $( '#masthead' ).height(),
|
86
|
-
toolbarOffset, mastheadOffset;
|
87
|
-
|
88
|
-
if ( mastheadHeight > 48 ) {
|
89
|
-
body.removeClass( 'masthead-fixed' );
|
90
|
-
}
|
91
|
-
|
92
|
-
if ( body.is( '.header-image' ) ) {
|
93
|
-
toolbarOffset = body.is( '.admin-bar' ) ? $( '#wpadminbar' ).height() : 0;
|
94
|
-
mastheadOffset = $( '#masthead' ).offset().top - toolbarOffset;
|
95
|
-
|
96
|
-
_window.on( 'scroll.twentyfourteen', function() {
|
97
|
-
if ( _window.scrollTop() > mastheadOffset && mastheadHeight < 49 ) {
|
98
|
-
body.addClass( 'masthead-fixed' );
|
99
|
-
} else {
|
100
|
-
body.removeClass( 'masthead-fixed' );
|
101
|
-
}
|
102
|
-
} );
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
// Focus styles for menus.
|
107
|
-
$( '.primary-navigation, .secondary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() {
|
108
|
-
$( this ).parents().toggleClass( 'focus' );
|
109
|
-
} );
|
110
|
-
} );
|
111
|
-
|
112
|
-
_window.load( function() {
|
113
|
-
// Arrange footer widgets vertically.
|
114
|
-
if ( $.isFunction( $.fn.masonry ) ) {
|
115
|
-
$( '#footer-sidebar' ).masonry( {
|
116
|
-
itemSelector: '.widget',
|
117
|
-
columnWidth: function( containerWidth ) {
|
118
|
-
return containerWidth / 4;
|
119
|
-
},
|
120
|
-
gutterWidth: 0,
|
121
|
-
isResizable: true,
|
122
|
-
isRTL: $( 'body' ).is( '.rtl' )
|
123
|
-
} );
|
124
|
-
}
|
125
|
-
|
126
|
-
// Initialize Featured Content slider.
|
127
|
-
if ( body.is( '.slider' ) ) {
|
128
|
-
$( '.featured-content' ).featuredslider( {
|
129
|
-
selector: '.featured-content-inner > article',
|
130
|
-
controlsContainer: '.featured-content'
|
131
|
-
} );
|
132
|
-
}
|
133
|
-
} );
|
134
|
-
} )( jQuery );
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
3
|
-
*/
|
4
|
-
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
|
5
|
-
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</style>";
|
6
|
-
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?: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,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
|
7
|
-
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);
|
8
|
-
if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Twenty Fourteen keyboard support for image navigation.
|
3
|
-
*/
|
4
|
-
( function( $ ) {
|
5
|
-
$( document ).on( 'keydown.twentyfourteen', function( e ) {
|
6
|
-
var url = false;
|
7
|
-
|
8
|
-
// Left arrow key code.
|
9
|
-
if ( e.which === 37 ) {
|
10
|
-
url = $( '.previous-image a' ).attr( 'href' );
|
11
|
-
|
12
|
-
// Right arrow key code.
|
13
|
-
} else if ( e.which === 39 ) {
|
14
|
-
url = $( '.entry-attachment a' ).attr( 'href' );
|
15
|
-
}
|
16
|
-
|
17
|
-
if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) {
|
18
|
-
window.location = url;
|
19
|
-
}
|
20
|
-
} );
|
21
|
-
} )( jQuery );
|