Remove responsive layout on/off option, regenerate .pot file

This commit is contained in:
Alexander Agnarson 2020-03-23 21:32:04 +01:00
parent 149bbd58fb
commit c1dc8c9ba8
3 changed files with 202 additions and 219 deletions

View file

@ -209,7 +209,7 @@ if ( ! function_exists( 'featureon_styles' ) ) {
function featureon_styles() { function featureon_styles() {
wp_enqueue_style( 'featureon-style', get_stylesheet_uri() ); wp_enqueue_style( 'featureon-style', get_stylesheet_uri() );
if ( get_theme_mod('responsive','on') =='on' ) { wp_enqueue_style( 'featureon-responsive', get_template_directory_uri().'/responsive.css' ); } wp_enqueue_style( 'featureon-responsive', get_template_directory_uri().'/responsive.css' );
if ( get_theme_mod('dark','off') == 'on' ) { wp_enqueue_style( 'featureon-dark', get_template_directory_uri().'/dark.css' ); } if ( get_theme_mod('dark','off') == 'on' ) { wp_enqueue_style( 'featureon-dark', get_template_directory_uri().'/dark.css' ); }
wp_enqueue_style( 'featureon-font-awesome', get_template_directory_uri().'/fonts/all.min.css' ); wp_enqueue_style( 'featureon-font-awesome', get_template_directory_uri().'/fonts/all.min.css' );
} }

View file

@ -63,15 +63,6 @@ Kirki::add_section( 'styling', array(
/* Add Fields /* Add Fields
/* ------------------------------------ */ /* ------------------------------------ */
// General: Responsive Layout
Kirki::add_field( 'featureon_theme', array(
'type' => 'switch',
'settings' => 'responsive',
'label' => esc_html__( 'Responsive Layout', 'featureon' ),
'description' => esc_html__( 'Mobile and tablet optimizations (responsive.css)', 'featureon' ),
'section' => 'general',
'default' => 'on',
) );
// General: Mobile Sidebar // General: Mobile Sidebar
Kirki::add_field( 'featureon_theme', array( Kirki::add_field( 'featureon_theme', array(
'type' => 'radio', 'type' => 'radio',

File diff suppressed because it is too large Load diff