Skip to content

Commit 6c05e13

Browse files
committed
Theme check: mandatory classes
1 parent 7534afc commit 6c05e13

20 files changed

+899
-142
lines changed

archive-author.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
<?php $author_description = get_the_author_meta( 'description' );
2424
echo wpautop( $author_description ); ?>
2525
<?php if ( get_the_author_meta( 'user_fb' ) ) {
26-
printf( '<p>' . __( 'Facebook:', 'strombringer' ) . ' <a href="%s">%s</a></p>', get_the_author_meta( 'user_fb' ), get_the_author() );
26+
printf( '<p>' . __( 'Facebook:', 'stormbringer' ) . ' <a href="%s">%s</a></p>', get_the_author_meta( 'user_fb' ), get_the_author() );
2727
} ?>
2828
<?php if ( get_the_author_meta( 'user_tw' ) ) {
29-
printf( '<p>' . __( 'Twitter:', 'strombringer' ) . ' <a href="http://twitter.com/%s">%s</a></p>', get_the_author_meta( 'user_tw' ), get_the_author_meta( 'user_tw' ) );
29+
printf( '<p>' . __( 'Twitter:', 'stormbringer' ) . ' <a href="http://twitter.com/%s">%s</a></p>', get_the_author_meta( 'user_tw' ), get_the_author_meta( 'user_tw' ) );
3030
} ?>
3131
<?php if ( get_the_author_meta( 'google_profile' ) ) {
32-
printf( '<p>' . __( 'Google Plus:', 'strombringer' ) . ' <a href="%s">%s</a></p>', get_the_author_meta( 'google_profile' ), get_the_author() );
32+
printf( '<p>' . __( 'Google Plus:', 'stormbringer' ) . ' <a href="%s">%s</a></p>', get_the_author_meta( 'google_profile' ), get_the_author() );
3333
} ?>
3434
</div>
3535
</div>

archive.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<?php
3737
while ( have_posts() ) : the_post(); ?>
3838

39-
<?= stormbringer_bootstrap_grid( $counter_posts, [
39+
<?php echo stormbringer_bootstrap_grid( $counter_posts, [
4040
'xs' => 12,
4141
'sm' => 6,
4242
'md' => 4,

css/styles.css

+842-96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/styles.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/styles.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-resetpass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div class="form-input">
2727
<input placeholder="<?php _e('Confirm new password', 'stormbringer') ?>" type="password" name="pass2" id="pass2<?php $template->the_instance(); ?>" class="input-small" value="" autocomplete="off"/>
2828
<p id="pass-strength-result" class="help-block hide-if-no-js"><?php _e('Strength indicator', 'stormbringer'); ?></p>
29-
<p class="help-block indicator-hint"><?php _e('Hint: the password should be at least eight characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
29+
<p class="help-block indicator-hint"><?php _e('Hint: the password should be at least eight characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).', 'stormbringer'); ?></p>
3030
</div>
3131
</div>
3232

inc/admin/customizer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function stormbringer_customize_register( $wp_customize ) {
105105

106106
// Libraries ****************************
107107
$wp_customize->add_section( 'libraries', array(
108-
'title' => __( 'External Libraries' ),
108+
'title' => __( 'External Libraries', 'stormbringer' ),
109109
'priority' => 10,
110110
) );
111111

@@ -152,7 +152,7 @@ function stormbringer_customize_register( $wp_customize ) {
152152
'lang',
153153
array(
154154
'section' => 'title_tagline',
155-
'label' => __( 'Site Language' ),
155+
'label' => __( 'Site Language', 'stormbringer' ),
156156
'type' => 'text'
157157
)
158158
);

inc/front/bodyclass.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function stormbringer_body_class( $classes = '' ) {
2323
$classes[] = 'locale-'.get_locale();
2424
$classes[] = ( is_child_theme() ? 'child-theme' : 'parent-theme' );
2525

26+
2627
// Multisite
2728
if ( is_multisite() ) {
2829
$classes[] = 'multisite';

inc/front/owlcarousel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function post_gallery( $value, $attr ) {
5656
* @return array
5757
*/
5858
function add_gallery_type( $types = array() ) {
59-
$types['owlcarousel'] = esc_html__( 'Owlcarousel', 'jetpack' );
59+
$types['owlcarousel'] = esc_html__( 'Owlcarousel', 'stormbringer' );
6060

6161
return $types;
6262
}
@@ -210,7 +210,7 @@ function shortcode_callback( $attr ) {
210210
return sprintf(
211211
'<a href="%s">%s</a>',
212212
esc_url( get_permalink( $post->ID ) . '#' . $gallery_instance . '-owlcarousel' ),
213-
esc_html__( 'Click to view owlcarousel.', 'jetpack' )
213+
esc_html__( 'Click to view owlcarousel.', 'stormbringer' )
214214
);
215215
}
216216

inc/front/password.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ function custom_password_form() {
55
global $post;
66
$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
77
$o = '
8-
<p>'.__('This content is protected by a password, type the password below:','godspeed').'</p>
8+
<p>'.__('This content is protected by a password, type the password below:','stormbringer').'</p>
99
<form class="form-stacked protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post">
1010
<fieldset>
1111
<div class="clearfix">
12-
<label for="' . $label . '">' . __( 'Password:','godspeed' ) . '</label>
12+
<label for="' . $label . '">' . __( 'Password:','stormbringer' ) . '</label>
1313
<div class="input">
14-
<input class="form-control" placeholder="' . __( 'Password:','godspeed' ) . '" name="post_password" id="' . $label . '" type="password" size="30"/>
15-
<input class="btn btn-primary" type="submit" name="Submit" value="' . esc_attr__( 'Send','godspeed' ) . '" />
14+
<input class="form-control" placeholder="' . __( 'Password:','stormbringer' ) . '" name="post_password" id="' . $label . '" type="password" size="30"/>
15+
<input class="btn btn-primary" type="submit" name="Submit" value="' . esc_attr__( 'Send','stormbringer' ) . '" />
1616
</div>
1717
<!-- /clearfix -->
1818
</fieldset>

inc/front/scripts.php

-12
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ function stormbringer_js_libraries_footer() {
6161

6262
$libraries = get_theme_support('libraries')[0];
6363

64-
if ( !is_admin() ) {
65-
//wp_deregister_script( 'jquery' );
66-
wp_deregister_script('wp-embed');
67-
if ( @$libraries['jquery'] && get_theme_mod( 'libraries_jquery', true ) ) {
68-
//wp_enqueue_script( 'jquery', '//cdnjs.cloudflare.com/ajax/libs/jquery/'.$libraries['jquery'].'/jquery.min.js', array(), null, true );
69-
}
70-
}
71-
72-
/*if ( @$libraries['modernizr'] && get_theme_mod( 'libraries_modernizr', true ) ) {
73-
wp_enqueue_script( 'modernizr', '//cdnjs.cloudflare.com/ajax/libs/modernizr/' . $libraries['modernizr'] . '/modernizr.min.js', array(), null, true );
74-
}*/
75-
7664
if(@$libraries['bootstrap'] && get_theme_mod('libraries_bootstrap', true)){
7765
wp_enqueue_script( 'bootstrap', '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/'.$libraries['bootstrap'].'/js/bootstrap.min.js', array('jquery'), null, true );
7866
}

inc/front/styles.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function stormbringer_preprocessor() {
4545

4646
}
4747

48-
add_action( 'wp_enqueue_scripts', 'stormbringer_preprocessor');
48+
add_action( 'wp_enqueue_scripts', 'stormbringer_preprocessor', 100);
4949

5050

5151
function stormbringer_livereload(){
@@ -126,4 +126,4 @@ function stormbringer_css() {
126126
}
127127

128128
}
129-
add_action( 'wp_enqueue_scripts', 'stormbringer_css', -100 );
129+
add_action( 'wp_enqueue_scripts', 'stormbringer_css' );

inc/plugins/thememylogin.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ function stormbringer_thememylogin_options($args){
2626
}
2727

2828

29-
function stormbringer_thememylogin_enqueue_scripts() {
29+
/*
30+
* function stormbringer_thememylogin_enqueue_scripts() {
3031
wp_deregister_script('password-strength');
3132
wp_dequeue_style('password-strength');
3233
}
3334
3435
add_action('wp_enqueue_scripts', 'stormbringer_thememylogin_enqueue_scripts',60);
36+
*/
3537

3638
function stormbringer_thememylogin_init() {
3739
global $theme_my_login;
@@ -108,7 +110,7 @@ function stormbringer_thememylogin_errors($errors){
108110
}
109111

110112

111-
$errors = str_replace(strtoupper(str_replace('!',':',__('Error!'))),'',strip_tags($errors,'<span><br>'));
113+
$errors = str_replace(strtoupper(str_replace('!',':',__('Error!', 'stormbringer'))),'',strip_tags($errors,'<span><br>'));
112114
printf('<div class="alert alert-'.$newclass.'"><button type="button" class="close" data-dismiss="alert">&times;</button><h4>'.$args['message_'.$class].'</h4><p>%s</p></div>',$errors);
113115
}
114116
}

inc/plugins/woocommerce.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ function wc_form_field_args($args, $key, $value = null)
187187
*
188188
* @return mixed
189189
*/
190-
function strombringer_woocommerce_order_button_html($button)
190+
function stormbringer_woocommerce_order_button_html($button)
191191
{
192192

193193
$button = str_replace('button', 'button btn btn-block btn-lg btn-primary', $button);
194194

195195
return $button;
196196
}
197197

198-
//add_filter('woocommerce_order_button_html', 'strombringer_woocommerce_order_button_html');
198+
//add_filter('woocommerce_order_button_html', 'stormbringer_woocommerce_order_button_html');
199199

200200
/**
201201
* Woocommerce: Account filter account menu item classes

page-styles.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@
779779

780780
<h2 id="tables-example">Basic example</h2>
781781

782-
<p>For basic stylinglight padding and only horizontal dividersadd the base class <code>.table</code> to
782+
<p>For basic styling&mdash;light padding and only horizontal dividers&mdash;add the base class <code>.table</code> to
783783
any <code>
784784
&lt;table&gt;</code>. It may seem super redundant, but given the widespread use of tables for other
785785
plugins like
@@ -1649,7 +1649,7 @@ class to your <code>.radio</code>, <code>.radio-inline</code>, <code>.checkbox</
16491649
<div class="checkbox">
16501650
<label>
16511651
<input type="checkbox" value="">
1652-
Option one is this and thatbe sure to include why it's great
1652+
Option one is this and that&mdash;be sure to include why it's great
16531653
</label>
16541654
</div>
16551655
<div class="checkbox disabled">
@@ -1663,7 +1663,7 @@ class to your <code>.radio</code>, <code>.radio-inline</code>, <code>.checkbox</
16631663
<div class="radio">
16641664
<label>
16651665
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked="">
1666-
Option one is this and thatbe sure to include why it's great
1666+
Option one is this and that&mdash;be sure to include why it's great
16671667
</label>
16681668
</div>
16691669
<div class="radio">
@@ -2087,15 +2087,15 @@ class="btn btn-*"&gt;</code> buttons in this case, but that CSS property is not
20872087
<div class="radio">
20882088
<label class="checkbox">
20892089
<input type="checkbox" id="checkboxError" value="option1">
2090-
Option one is this and thatbe sure to include why it's great
2090+
Option one is this and that&mdash;be sure to include why it's great
20912091
</label>
20922092
</div>
20932093
</div>
20942094
<div class="has-success">
20952095
<div class="radio">
20962096
<label>
20972097
<input type="radio" name="optionsRadios" id="radiosSuccess1" value="option1" checked="">
2098-
Option one is this and thatbe sure to include why it's great
2098+
Option one is this and that&mdash;be sure to include why it's great
20992099
</label>
21002100
</div>
21012101
<div class="radio">
@@ -2656,7 +2656,7 @@ class="btn btn-*"&gt;</code> buttons in this case, but that CSS property is not
26562656
<span class="nt">&lt;/p&gt;</span></code></pre>
26572657
</div>
26582658

2659-
<p>Create block level buttonsthose that span the full width of a parent by adding <code>.btn-block</code>.
2659+
<p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.
26602660
</p>
26612661

26622662
<div class="bs-example">
@@ -5053,7 +5053,7 @@ class="btn-toolbar"&gt;</code>
50535053

50545054
<p>Add the relative form sizing classes to the <code>.input-group</code> itself and contents within will
50555055
automatically
5056-
resizeno need for repeating the form control size classes on each element.</p>
5056+
resize&mdash;no need for repeating the form control size classes on each element.</p>
50575057

50585058
<form class="bs-example bs-example-form" role="form">
50595059
<div class="input-group input-group-lg">

scss/_content.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

scss/application.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@
6262
@import "helpers/widgets";
6363
@import "helpers/woocommerce";
6464
@import "helpers/jetpack";
65+
@import "helpers/elementor";
6566
//@import "helpers/datepicker";
6667

6768

6869
@import "helpers/stormbringer_style"; // Remove <-------
6970

70-
7171
// Custom styles
72-
7372
@import "header";
7473
@import "home";
7574
@import "content";

scss/helpers/_elementor.scss

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.elementor-widget-button .elementor-button{
2+
@extend .btn;
3+
@extend .btn-default;
4+
}
5+
6+
.elementor-element.elementor-button-success .elementor-button,
7+
.elementor-element.elementor-button-warning .elementor-button,
8+
.elementor-element.elementor-button-danger .elementor-button,
9+
.elementor-element.elementor-button-info .elementor-button
10+
{
11+
@extend .btn;
12+
@extend .btn-primary;
13+
}

stormbringer-child/scss/application.scss

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
@import "../../stormbringer/scss/helpers/widgets";
6262
@import "../../stormbringer/scss/helpers/woocommerce";
6363
@import "../../stormbringer/scss/helpers/jetpack";
64+
@import "../../stormbringer/scss/helpers/elementor";
6465
//@import "../../stormbringer/scss/helpers/datepicker";
6566

6667

style.css

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
/*
22
Theme Name: StormBringer
3-
Theme URI: http://www.nicolasmollet.com
3+
Theme URI: https://github.com/nicomollet/stormbringer
44
Github Theme URI: https://github.com/nicomollet/stormbringer
55
Description: A simple responsive theme based on twitter's bootstrap framework.
66
Version: 0.2.8
77
Author: Nicolas Mollet
88
Author URI: http://www.nicolasmollet.com
9-
Tags: twitter-bootstrap, cdnjs
9+
Text Domain: stormbringer
10+
Tags: translation-ready, full-width-template, custom-menu, grid-layout
1011
License: GNU General Public License v2.0 & Apache License 2.0
1112
License URI: http://www.gnu.org/licenses/gpl-2.0.html http://www.apache.org/licenses/LICENSE-2.0
1213
*/
14+
15+
16+
/* Theme check compatibility */
17+
.wp-caption-text{}
18+
.gallery-caption{}
19+
.bypostauthor{}
20+
.sticky{}

0 commit comments

Comments
 (0)