'; echo '

'; printf( __( 'Default: %s', 'activetab' ), $default_settings['max_width'] ); echo '

'; } function activetab_field_layout_callback() { $settings = activetab_get_settings(); $default_settings = activetab_default_settings(); $options = array( 'content-sidebar' => __( 'content / sidebar-right', 'activetab' ), 'sidebar-content' => __( 'sidebar-left / content', 'activetab' ), 'content' => __( 'content (full width, no sidebars)', 'activetab' ), 'content-sidebar-sidebar' => __( 'content / sidebar-left / sidebar-right', 'activetab' ), 'sidebar-content-sidebar' => __( 'sidebar-left / content / sidebar-right', 'activetab' ), 'sidebar-sidebar-content' => __( 'sidebar-left / sidebar-right / content', 'activetab' ) ); foreach ( $options as $key => $value ): $checked = ''; if ( $settings['layout'] == $key ) { $checked = ' checked="checked"'; } echo '

'."\n"; endforeach; echo '

'.__( 'General layout settings', 'activetab' ).'

'; } function activetab_field_logo_callback() { $settings = activetab_get_settings(); $default_settings = activetab_default_settings(); echo ''; echo ''.__( 'Choose image', 'activetab' ).''; if( !empty( $settings['logo_url'] ) ) { echo ''; } ?>

'; } function activetab_field_excerpt_or_content_callback() { $settings = activetab_get_settings(); $default_settings = activetab_default_settings(); $options = array( 'excerpt' => __( 'Excerpt', 'activetab' ), 'content' => __( 'Full content', 'activetab' ) ); foreach ( $options as $key => $value ): $checked = ''; if ( $settings['excerpt_or_content_in_list'] == $key ) { $checked = ' checked="checked"'; } echo '

'."\n"; endforeach; echo '

'.__( 'Show excerpt or full content in the list of posts', 'activetab' ).'

'; } function activetab_field_code_head_callback() { $settings = activetab_get_settings(); $default_settings = activetab_default_settings(); echo ''; echo '

'.__( 'Code will be added to head section just before closing [head] tag', 'activetab' ).'

'; } function activetab_field_code_footer_callback() { $settings = activetab_get_settings(); $default_settings = activetab_default_settings(); echo ''; echo '

'.__( 'Code will be added to body section just before closing [body] tag', 'activetab' ).'

'; } function activetab_settings() { ?>