diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/classes/class-fl-child-theme.php b/classes/class-fl-child-theme.php index c1c7f65..133f279 100755 --- a/classes/class-fl-child-theme.php +++ b/classes/class-fl-child-theme.php @@ -14,11 +14,14 @@ final class FLChildTheme { */ static public function enqueue_scripts() { - wp_enqueue_style( 'fl-child-theme', FL_CHILD_THEME_URL . '/style.css' , array(), '1.0.0', 'all' ); + wp_enqueue_style( CHILD_THEME_NAME, FL_CHILD_THEME_URL . '/style.css' , array(), '1.0.0', 'all' ); wp_enqueue_style( 'dashicons' ); // wp_dequeue_style( 'foundation-icons' ); // wp_dequeue_style( 'font-awesome' ); - - + // Take out the default lightbox + // wp_dequeue_script('jquery-magnificpopup'); + // wp_dequeue_style('jquery-magnificpopup'); + } + } \ No newline at end of file diff --git a/css/presets.css b/css/presets.css old mode 100644 new mode 100755 diff --git a/css/remove-mobile.css b/css/remove-mobile.css old mode 100644 new mode 100755 diff --git a/functions.php b/functions.php index c04b79b..e2b3a73 100755 --- a/functions.php +++ b/functions.php @@ -19,6 +19,7 @@ add_image_size( 'medium', 300, 300, true ); // Overwrite default and hard cropping } + add_action( 'after_setup_theme', 'br_theme_setup', 15 ); /** * Beavertron theme set up @@ -26,6 +27,7 @@ * @since 1.0.0 */ function br_theme_setup() { + // Defines // Child theme constant settings. @@ -78,6 +80,7 @@ function br_theme_setup() { if ( class_exists( 'GFCommon' ) ) { include_once( get_stylesheet_directory() . '/includes-child/gravity.php' ); } + // Get the plugins. //require_once get_stylesheet_directory() . '/plugins.php'; @@ -172,4 +175,9 @@ function bt_added_fonts( $system ) { return $system; } + + } // Closing After Set Up Hook + + +add_filter( 'fl_builder_override_lightbox', __return_true ); diff --git a/includes-child/beaverbuilder.php b/includes-child/beaverbuilder.php old mode 100644 new mode 100755 index fe02bbd..46ee24b --- a/includes-child/beaverbuilder.php +++ b/includes-child/beaverbuilder.php @@ -12,6 +12,14 @@ */ + /** + * + * Remove BB Plugin LightBox + * @since 1.0.0 + */ + //add_filter( 'fl_builder_override_lightbox', __return_true ); + + add_filter( 'fl_builder_font_families_system', 'bt_added_fonts_plugin' ); /** @@ -31,4 +39,206 @@ function bt_added_fonts_plugin( $system ) { ); return $system; +} + + +add_filter( 'fl_builder_register_settings_form', 'wb_builder_register_settings_form', 10, 2 ); +/* + * Filter the Global Settings Options. + * Media breakpoints and form title have been changed. + */ +function wb_builder_register_settings_form( $form, $id ) { + if ( 'global' == $id ) { + // Modify the row settings $form config array. + + $form = array( + 'title' => __( 'Beavertron Global Settings', 'fl-builder' ), + 'tabs' => array( + 'general' => array( + 'title' => __('General', 'fl-builder'), + 'description' => __('Note: These settings apply to all posts and pages.', 'fl-builder'), + 'sections' => array( + 'page_heading' => array( + 'title' => __('Default Page Heading', 'fl-builder'), + 'fields' => array( + 'show_default_heading' => array( + 'type' => 'select', + 'label' => _x( 'Show', 'General settings form field label. Intended meaning: "Show page heading?"', 'fl-builder' ), + 'default' => '0', + 'options' => array( + '0' => __('No', 'fl-builder'), + '1' => __('Yes', 'fl-builder') + ), + 'toggle' => array( + '0' => array( + 'fields' => array('default_heading_selector') + ) + ), + 'help' => __('Choosing no will hide the default theme heading for the "Page" post type. You will also be required to enter some basic CSS for this to work if you choose no.', 'fl-builder'), + ), + 'default_heading_selector' => array( + 'type' => 'text', + 'label' => __('CSS Selector', 'fl-builder'), + 'default' => '.fl-post-header', + 'help' => __('Enter a CSS selector for the default page heading to hide it.', 'fl-builder') + ) + ) + ), + 'rows' => array( + 'title' => __('Rows', 'fl-builder'), + 'fields' => array( + 'row_margins' => array( + 'type' => 'unit', + 'label' => __('Margins', 'fl-builder'), + 'default' => '0', + 'placeholder' => '0', + 'responsive' => true, + 'description' => 'px' + ), + 'row_padding' => array( + 'type' => 'unit', + 'label' => __('Padding', 'fl-builder'), + 'default' => '20', + 'placeholder' => '0', + 'responsive' => true, + 'description' => 'px' + ), + 'row_width' => array( + 'type' => 'text', + 'label' => __('Max Width', 'fl-builder'), + 'default' => '1100', + 'maxlength' => '4', + 'size' => '5', + 'description' => 'px', + 'help' => __('All rows will default to this width. You can override this and make a row full width in the settings for each row.', 'fl-builder') + ), + 'row_width_default' => array( + 'type' => 'select', + 'label' => __( 'Default Row Width', 'fl-builder' ), + 'default' => 'fixed', + 'options' => array( + 'fixed' => __( 'Fixed', 'fl-builder' ), + 'full' => __( 'Full Width', 'fl-builder' ) + ), + 'toggle' => array( + 'full' => array( + 'fields' => array('row_content_width_default') + ) + ), + ), + 'row_content_width_default' => array( + 'type' => 'select', + 'label' => __( 'Default Row Content Width', 'fl-builder' ), + 'default' => 'fixed', + 'options' => array( + 'fixed' => __( 'Fixed', 'fl-builder' ), + 'full' => __( 'Full Width', 'fl-builder' ) + ), + ) + ) + ), + 'modules' => array( + 'title' => __('Modules', 'fl-builder'), + 'fields' => array( + 'module_margins' => array( + 'type' => 'unit', + 'label' => __('Margins', 'fl-builder'), + 'default' => '20', + 'placeholder' => '0', + 'responsive' => true, + 'description' => 'px' + ) + ) + ), + 'responsive' => array( + 'title' => __('Responsive Layout', 'fl-builder'), + 'fields' => array( + 'responsive_enabled' => array( + 'type' => 'select', + 'label' => _x( 'Enabled', 'General settings form field label. Intended meaning: "Responsive layout enabled?"', 'fl-builder' ), + 'default' => '1', + 'options' => array( + '0' => __('No', 'fl-builder'), + '1' => __('Yes', 'fl-builder') + ), + 'toggle' => array( + '1' => array( + 'fields' => array('auto_spacing', 'responsive_breakpoint', 'medium_breakpoint') + ) + ) + ), + 'auto_spacing' => array( + 'type' => 'select', + 'label' => _x( 'Enable Auto Spacing', 'General settings form field label. Intended meaning: "Enable auto spacing for responsive layouts?"', 'fl-builder' ), + 'default' => '1', + 'options' => array( + '0' => __('No', 'fl-builder'), + '1' => __('Yes', 'fl-builder') + ), + 'help' => __('When auto spacing is enabled, the builder will automatically adjust the margins and padding in your layout once the small device breakpoint is reached. Most users will want to leave this enabled.', 'fl-builder') + ), + 'medium_breakpoint' => array( + 'type' => 'text', + 'label' => __('Medium Device Breakpoint', 'fl-builder'), + 'default' => '1200', + 'maxlength' => '4', + 'size' => '5', + 'description' => 'px', + 'help' => __('The browser width at which the layout will adjust for medium devices such as tablets.', 'fl-builder') + ), + 'responsive_breakpoint' => array( + 'type' => 'text', + 'label' => __('Small Device Breakpoint', 'fl-builder'), + 'default' => '767', + 'maxlength' => '4', + 'size' => '5', + 'description' => 'px', + 'help' => __('The browser width at which the layout will adjust for small devices such as phones.', 'fl-builder') + ) + ) + ) + ) + ), + 'css' => array( + 'title' => __('CSS', 'fl-builder'), + 'sections' => array( + 'css' => array( + 'title' => '', + 'fields' => array( + 'css' => array( + 'type' => 'code', + 'label' => '', + 'editor' => 'css', + 'rows' => '18', + 'preview' => array( + 'type' => 'none' + ) + ) + ) + ) + ) + ), + 'js' => array( + 'title' => __('JavaScript', 'fl-builder'), + 'sections' => array( + 'js' => array( + 'title' => '', + 'fields' => array( + 'js' => array( + 'type' => 'code', + 'label' => '', + 'editor' => 'javascript', + 'rows' => '18', + 'preview' => array( + 'type' => 'none' + ) + ) + ) + ) + ) + ) + )); + } + + return $form; } \ No newline at end of file diff --git a/includes-child/client-file.php b/includes-child/client-file.php old mode 100644 new mode 100755 diff --git a/includes-child/customizer.php b/includes-child/customizer.php old mode 100644 new mode 100755 index a7476f1..d7453b0 --- a/includes-child/customizer.php +++ b/includes-child/customizer.php @@ -108,19 +108,19 @@ function bt_register_theme_customizer( $wp_customize ) { ) ) ); - // Add buttons border color + // Add buttons hover & focus background color // Add setting. - $wp_customize->add_setting( 'bt_button_border', array( - 'default' => bt_button_border_default(), + $wp_customize->add_setting( 'bt_button_hover_color', array( + 'default' => bt_button_hover_color_default(), 'sanitize_callback' => 'sanitize_hex_color', - ) ); + ) ); // Add control $wp_customize->add_control( new WP_Customize_Color_Control( - $wp_customize, 'bt_button_border', array( - 'label' => __( 'Button Border Color', 'beavertron' ), //set the label to appear in the Customizer + $wp_customize, 'bt_button_hover_color', array( + 'label' => __( 'Button Hover Color', 'beavertron' ), //set the label to appear in the Customizer 'section' => 'bt_buttons', //select the section for it to appear under - 'settings' => 'bt_button_border' //pick the setting it applies to + 'settings' => 'bt_button_hover_color' //pick the setting it applies to ) ) ); @@ -140,54 +140,57 @@ function bt_register_theme_customizer( $wp_customize ) { ) ) ); - // Add buttons hover & focus background color + // Add buttons text hover color // Add setting. - $wp_customize->add_setting( 'bt_button_hover_color', array( - 'default' => bt_button_hover_color_default(), + $wp_customize->add_setting( 'bt_text_button_hover_color', array( + 'default' => bt_text_button_hover_color_default(), 'sanitize_callback' => 'sanitize_hex_color', - ) ); + ) ); // Add control $wp_customize->add_control( new WP_Customize_Color_Control( - $wp_customize, 'bt_button_hover_color', array( - 'label' => __( 'Button Hover Color', 'beavertron' ), //set the label to appear in the Customizer + $wp_customize, 'bt_text_button_hover_color', array( + 'label' => __( 'Text Button Hover Color', 'beavertron' ), //set the label to appear in the Customizer 'section' => 'bt_buttons', //select the section for it to appear under - 'settings' => 'bt_button_hover_color' //pick the setting it applies to + 'settings' => 'bt_text_button_hover_color' //pick the setting it applies to ) ) ); - - // Add buttons border hover color + + + // Add buttons border color // Add setting. - $wp_customize->add_setting( 'bt_button_hover_border', array( - 'default' => bt_button_hover_border_default(), + $wp_customize->add_setting( 'bt_button_border', array( + 'default' => bt_button_border_default(), 'sanitize_callback' => 'sanitize_hex_color', ) ); // Add control $wp_customize->add_control( new WP_Customize_Color_Control( - $wp_customize, 'bt_button_hover_border', array( - 'label' => __( 'Button Border Hover Color', 'beavertron' ), //set the label to appear in the Customizer + $wp_customize, 'bt_button_border', array( + 'label' => __( 'Button Border Color', 'beavertron' ), //set the label to appear in the Customizer 'section' => 'bt_buttons', //select the section for it to appear under - 'settings' => 'bt_button_hover_border' //pick the setting it applies to + 'settings' => 'bt_button_border' //pick the setting it applies to ) ) ); - // Add buttons text hover color + + // Add buttons border hover color // Add setting. - $wp_customize->add_setting( 'bt_text_button_hover_color', array( - 'default' => bt_text_button_hover_color_default(), + $wp_customize->add_setting( 'bt_button_hover_border', array( + 'default' => bt_button_hover_border_default(), 'sanitize_callback' => 'sanitize_hex_color', ) ); // Add control $wp_customize->add_control( new WP_Customize_Color_Control( - $wp_customize, 'bt_text_button_hover_color', array( - 'label' => __( 'Text Button Hover Color', 'beavertron' ), //set the label to appear in the Customizer + $wp_customize, 'bt_button_hover_border', array( + 'label' => __( 'Button Border Hover Color', 'beavertron' ), //set the label to appear in the Customizer 'section' => 'bt_buttons', //select the section for it to appear under - 'settings' => 'bt_text_button_hover_color' //pick the setting it applies to + 'settings' => 'bt_button_hover_border' //pick the setting it applies to ) ) ); + // Remove Panels and Sections by uncommenting. diff --git a/includes-child/gravity.php b/includes-child/gravity.php old mode 100644 new mode 100755 diff --git a/includes-child/mobile-menu-removal.php b/includes-child/mobile-menu-removal.php old mode 100644 new mode 100755 diff --git a/includes-child/output.php b/includes-child/output.php old mode 100644 new mode 100755 diff --git a/includes-child/woocommerce/customize-woo.php b/includes-child/woocommerce/customize-woo.php old mode 100644 new mode 100755 diff --git a/includes-child/woocommerce/woo.css b/includes-child/woocommerce/woo.css old mode 100644 new mode 100755 diff --git a/includes-child/woocommerce/woocommerce.php b/includes-child/woocommerce/woocommerce.php old mode 100644 new mode 100755 diff --git a/includes/archive-header.php b/includes/archive-header.php old mode 100644 new mode 100755 diff --git a/index.php b/index.php old mode 100644 new mode 100755 diff --git a/js/remove-mobile.js b/js/remove-mobile.js old mode 100644 new mode 100755 diff --git a/plugins.php b/plugins.php old mode 100644 new mode 100755 diff --git a/style.css b/style.css index c32b671..7684a0e 100755 --- a/style.css +++ b/style.css @@ -331,7 +331,10 @@ a.more-link:hover, /* # Site Header ---------------------------------------------------------------------------------------------------- */ - +.fl-page-nav-wrap { + border-bottom: none; + border-top: none; +} /* # Site Navigation ---------------------------------------------------------------------------------------------------- */