Skip to content

Commit

Permalink
control positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Sep 2, 2014
1 parent 7f71038 commit 4908a41
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
21 changes: 17 additions & 4 deletions inc/customizer/controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@ function storefront_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';

$wp_customize->get_section( 'colors' )->description = __( 'Adjust the general Storefront color scheme.', 'storefront' );
// Move background color setting alongside background image
$wp_customize->get_control( 'background_color' )->section = 'background_image';

// Change background image section title & priority
$wp_customize->get_section( 'background_image' )->title = __( 'Background', 'storefront' );
$wp_customize->get_section( 'background_image' )->priority = 30;

/**
* Add the typography section
*/
$wp_customize->add_section( 'storefront_typography' , array(
'title' => __( 'Typography', 'storefront-designer' ),
'priority' => 45,
) );

/**
* Accent Color
Expand All @@ -29,7 +42,7 @@ function storefront_customize_register( $wp_customize ) {

$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'storefront_accent_color', array(
'label' => 'Link / accent color',
'section' => 'colors',
'section' => 'storefront_typography',
'settings' => 'storefront_accent_color',
'priority' => 20,
) ) );
Expand All @@ -45,7 +58,7 @@ function storefront_customize_register( $wp_customize ) {

$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'storefront_text_color', array(
'label' => 'Text color',
'section' => 'colors',
'section' => 'storefront_typography',
'settings' => 'storefront_text_color',
'priority' => 30,
) ) );
Expand All @@ -61,7 +74,7 @@ function storefront_customize_register( $wp_customize ) {

$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'storefront_heading_color', array(
'label' => 'Heading color',
'section' => 'colors',
'section' => 'storefront_typography',
'settings' => 'storefront_heading_color',
'priority' => 40,
) ) );
Expand Down
6 changes: 4 additions & 2 deletions inc/structure/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ function storefront_footer_widgets() {
function storefront_credit() {
?>
<div class="site-info">
&copy; <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?><br />
<?php printf( __( '%1$s designed by %2$s.', 'storefront' ), 'Storefront', '<a href="http://woothemes.com" rel="designer">WooThemes</a>' ); ?>
&copy; <?php echo get_bloginfo( 'name' ) . ' ' . get_the_date( 'Y' ); ?>
<?php if ( apply_filters( 'storefront_credit_link', true ) ) { ?>
<br /> <?php printf( __( '%1$s designed by %2$s.', 'storefront' ), 'Storefront', '<a href="http://woothemes.com" rel="designer">WooThemes</a>' ); ?>
<?php } ?>
</div><!-- .site-info -->
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion sass/partials/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
* Secondary Navigation
*/
.secondary-navigation {
margin: 0;
margin: 0 0 1.618em;
width: auto;
clear: none;
line-height: 1;
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ fieldset {
* Secondary Navigation
*/
.secondary-navigation {
margin: 0;
margin: 0 0 1.618em;
width: auto;
clear: none;
line-height: 1; }
Expand Down

0 comments on commit 4908a41

Please sign in to comment.