| Conditions | 4 | 
| Paths | 8 | 
| Total Lines | 23 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | 	function bitsy_setup_theme_default_settings() { | 
            ||
| 11 | |||
| 12 | // Check if settings are set, if not set defaults.  | 
            ||
| 13 | // Caution: DO NOT check existence using === always check with == .  | 
            ||
| 14 | |||
| 15 | // Latest blog posts style.  | 
            ||
| 16 | $bitsy_posts_index_style = get_theme_mod( 'bitsy_posts_index_style' );  | 
            ||
| 17 | 		if ( '' == $bitsy_posts_index_style ) { | 
            ||
| 18 | set_theme_mod( 'bitsy_posts_index_style', 'default' );  | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 | // Sidebar position.  | 
            ||
| 22 | $bitsy_sidebar_position = get_theme_mod( 'bitsy_sidebar_position' );  | 
            ||
| 23 | 		if ( '' == $bitsy_sidebar_position ) { | 
            ||
| 24 | set_theme_mod( 'bitsy_sidebar_position', 'right' );  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 | // Container width.  | 
            ||
| 28 | $bitsy_container_type = get_theme_mod( 'bitsy_container_type' );  | 
            ||
| 29 | 		if ( '' == $bitsy_container_type ) { | 
            ||
| 30 | set_theme_mod( 'bitsy_container_type', 'container' );  | 
            ||
| 31 | }  | 
            ||
| 32 | }  | 
            ||
| 33 | endif;  | 
            ||
| 35 | add_action( 'after_setup_theme', 'bitsy_setup_theme_default_settings' );  |