This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpmu_customize_register( $wp_customize ) { | |
} | |
add_action( 'customize_register', 'wpmu_customize_register' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************* | |
Section | |
********************************************/ | |
// colors section | |
$wp_customize->add_section( 'wpmu_colors' , array( | |
'title' => __( 'Colors', 'wpmu') | |
) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************* | |
Color settings | |
********************************************/ | |
//logo position | |
$wp_customize->add_setting( 'wpmu_nav_color' ); | |
$wp_customize->add_control( 'wpmu_nav_color', array ( | |
'label' => 'Navigation Menu Color', | |
'section' => 'wpmu_colors', | |
'settings' => 'wpmu_header_color', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpmu_header_color( $header_color ) { | |
$header_color = get_theme_mod( 'wpmu_header_color', 'blue' ); | |
return $header_color; | |
} | |
add_filter( 'wpmu_header_color_css' , 'wpmu_header_color' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav.main.blue | |
nav.main.blue a { | |
background: #312d72; | |
} | |
nav.main.red, | |
nav.main.red a { | |
background: #8b1b1b; | |
} | |
nav.main.green, | |
nav.main.green a { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="updated notice"> | |
<p>Something has been updated, awesome</p> | |
</div> | |
<div class="error notice"> | |
<p>There has been an error. Bummer</p> | |
</div> | |
<div class="update-nag notice"> | |
<p>You should really update to achieve some awesome instad of bummer</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_error_notice() { | |
?> | |
<div class="error notice"> | |
<p><?php _e( 'There has been an error. Bummer!', 'my_plugin_textdomain' ); ?></p> | |
</div> | |
<?php | |
} | |
add_action( 'admin_notices', 'my_error_notice' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_error_notice() { | |
?> | |
<div class="error notice"> | |
<p><?php _e( 'There has been an error. Bummer!', 'my_plugin_textdomain' ); ?></p> | |
</div> | |
<?php | |
} | |
add_action( 'admin_notices', 'my_error_notice' ); | |
function my_update_notice() { |