Skip to content

Commit

Permalink
Merge pull request #108 from oceanwp/rc-2.4.1
Browse files Browse the repository at this point in the history
Rc 2.4.1
  • Loading branch information
eramits authored Oct 22, 2024
2 parents b02358f + 106d32b commit a0d892c
Show file tree
Hide file tree
Showing 12 changed files with 190 additions and 144 deletions.
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ module.exports = function (grunt) {
prod: {
files: {
"assets/css/admin.min.css": "assets/css/admin.css",
"assets/css/pluginUpdateMessage.min.css": "assets/css/pluginUpdateMessage.css",
"includes/menu-icons/css/admin.min.css": "includes/menu-icons/css/admin.css",
"includes/panel/assets/css/import-export.min.css": "includes/panel/assets/css/import-export.css",
"includes/panel/assets/css/demos.min.css": "includes/panel/assets/css/demos.css",
Expand Down
1 change: 1 addition & 0 deletions assets/css/pluginUpdateMessage.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
== Changelog ==

= 2.4.1 - OCT 21 2024 =
- Fixed: OceanWP Metabox Settings: Logo: Customizer logo doesn't get overridden on individual level (main Customizer logo always displayed).
- Fixed: OceanWP Customizer: General Options tab not displayed with OceanWP version 3.6.1 and lower.
- Fixed: Plugin Update Notice: Breaking layout display in the plugins area on multisite.

= 2.4.0 - OCT 16 2024 =
- NEW: Customizer: Library upgraded to default WordPress ReactJS.
- NEW: Customizer: User Interface.
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions includes/compatibility/ocean.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
/**
* OceanWP theme local Google fonts functionality
*
* @package OceanWP WordPress theme
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

/**
* Control Preload google fonts.
Expand Down Expand Up @@ -106,7 +115,6 @@ function oceanwp_local_elementor_webfonts_enqueue( $src, $handle ) {
}
}


/**
* Enqueues Local Google Font
*/
Expand Down Expand Up @@ -180,7 +188,6 @@ function oceanwp_webfonts_enqueue( $src, $font_name ) {
}
}


/**
* Get Google Font CSS
*/
Expand Down
84 changes: 48 additions & 36 deletions includes/panel/theme-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,46 +147,59 @@ public static function sticky_notice_css( $hook ) {
*/
private static function get_panels() {

$panels = array(
'oe_styles_and_settings_panel' => array(
$theme = wp_get_theme();
$version = $theme->get( 'Version' );

$panels = array();

if ( version_compare( $version, '4.0.0', '>' ) ) {
$panels['oe_styles_and_settings_panel'] = array(
'label' => esc_html__( 'Site Style & Settings Panel', 'ocean-extra' ),
),
'oe_colors_panel' => array(
);
$panels['oe_colors_panel'] = array(
'label' => esc_html__( 'Colors Panel', 'ocean-extra' ),
),
'oe_site_page_settings_panel' => array(
);
$panels['oe_site_page_settings_panel'] = array(
'label' => esc_html__( 'Site Page Settings Panel', 'ocean-extra' ),
),
'oe_typography_panel' => array(
'label' => esc_html__( 'Typography Panel', 'ocean-extra' ),
),
'oe_topbar_panel' => array(
'label' => esc_html__( 'Top Bar Panel', 'ocean-extra' ),
),
'oe_header_panel' => array(
'label' => esc_html__( 'Header Panel', 'ocean-extra' ),
),
'oe_site_performance_panel' => array(
);
$panels['oe_site_performance_panel'] = array(
'label' => esc_html__( 'Site Performance Panel', 'ocean-extra' ),
),
'oe_seo_settings_panel' => array(
);
$panels['oe_seo_settings_panel'] = array(
'label' => esc_html__( 'SEO Panel', 'ocean-extra' ),
),
'oe_blog_panel' => array(
'label' => esc_html__( 'Blog Panel', 'ocean-extra' ),
),
'oe_sidebar_panel' => array(
'label' => esc_html__( 'Sidebar Panel', 'ocean-extra' ),
),
'oe_footer_widgets_panel' => array(
'label' => esc_html__( 'Footer Widgets Panel', 'ocean-extra' ),
),
'oe_footer_bottom_panel' => array(
'label' => esc_html__( 'Footer Bottom Panel', 'ocean-extra' ),
),
'oe_custom_code_panel' => array(
'label' => esc_html__( 'Custom CSS/JS Panel', 'ocean-extra' ),
),
);
}

if ( version_compare( $version, '4.0.0', '<' ) ) {
$panels['oe_general_panel'] = array(
'label' => esc_html__( 'General Panel', 'ocean-extra' ),
);
}

// Panels that are included regardless of the theme version
$panels['oe_typography_panel'] = array(
'label' => esc_html__( 'Typography Panel', 'ocean-extra' ),
);
$panels['oe_topbar_panel'] = array(
'label' => esc_html__( 'Top Bar Panel', 'ocean-extra' ),
);
$panels['oe_header_panel'] = array(
'label' => esc_html__( 'Header Panel', 'ocean-extra' ),
);
$panels['oe_blog_panel'] = array(
'label' => esc_html__( 'Blog Panel', 'ocean-extra' ),
);
$panels['oe_sidebar_panel'] = array(
'label' => esc_html__( 'Sidebar Panel', 'ocean-extra' ),
);
$panels['oe_footer_widgets_panel'] = array(
'label' => esc_html__( 'Footer Widgets Panel', 'ocean-extra' ),
);
$panels['oe_footer_bottom_panel'] = array(
'label' => esc_html__( 'Footer Bottom Panel', 'ocean-extra' ),
);
$panels['oe_custom_code_panel'] = array(
'label' => esc_html__( 'Custom CSS/JS Panel', 'ocean-extra' ),
);

// Apply filters and return
Expand Down Expand Up @@ -275,7 +288,6 @@ public static function get_default_settings() {
return apply_filters( 'oe_default_panels', $default );
}


}

new Ocean_Extra_Theme_Panel();
2 changes: 1 addition & 1 deletion includes/post-settings/apply-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct() {
add_filter( 'ocean_custom_header_template', array( $this, 'custom_header_template' ) );

// Custom logo.
//add_filter( 'get_custom_logo', array( $this, 'custom_logo' ) );
add_filter( 'get_custom_logo', array( $this, 'custom_logo' ) );

// getustom logo ID for the retina function.
add_filter( 'ocean_custom_logo', array( $this, 'custom_logo_id' ) );
Expand Down
83 changes: 48 additions & 35 deletions includes/themepanel/theme-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,46 +498,59 @@ private static function validate_panels( $settings ) {
* Return customizer panels
*/
public static function get_panels() {
$panels = array(
'oe_styles_and_settings_panel' => array(
$theme = wp_get_theme();
$version = $theme->get( 'Version' );

$panels = array();

if ( version_compare( $version, '4.0.0', '>' ) ) {
$panels['oe_styles_and_settings_panel'] = array(
'label' => esc_html__( 'Site Style & Settings Panel', 'ocean-extra' ),
),
'oe_colors_panel' => array(
);
$panels['oe_colors_panel'] = array(
'label' => esc_html__( 'Colors Panel', 'ocean-extra' ),
),
'oe_site_page_settings_panel' => array(
);
$panels['oe_site_page_settings_panel'] = array(
'label' => esc_html__( 'Site Page Settings Panel', 'ocean-extra' ),
),
'oe_typography_panel' => array(
'label' => esc_html__( 'Typography Panel', 'ocean-extra' ),
),
'oe_topbar_panel' => array(
'label' => esc_html__( 'Top Bar Panel', 'ocean-extra' ),
),
'oe_header_panel' => array(
'label' => esc_html__( 'Header Panel', 'ocean-extra' ),
),
'oe_site_performance_panel' => array(
);
$panels['oe_site_performance_panel'] = array(
'label' => esc_html__( 'Site Performance Panel', 'ocean-extra' ),
),
'oe_seo_settings_panel' => array(
);
$panels['oe_seo_settings_panel'] = array(
'label' => esc_html__( 'SEO Panel', 'ocean-extra' ),
),
'oe_blog_panel' => array(
'label' => esc_html__( 'Blog Panel', 'ocean-extra' ),
),
'oe_sidebar_panel' => array(
'label' => esc_html__( 'Sidebar Panel', 'ocean-extra' ),
),
'oe_footer_widgets_panel' => array(
'label' => esc_html__( 'Footer Widgets Panel', 'ocean-extra' ),
),
'oe_footer_bottom_panel' => array(
'label' => esc_html__( 'Footer Bottom Panel', 'ocean-extra' ),
),
'oe_custom_code_panel' => array(
'label' => esc_html__( 'Custom CSS/JS Panel', 'ocean-extra' ),
),
);
}

if ( version_compare( $version, '4.0.0', '<' ) ) {
$panels['oe_general_panel'] = array(
'label' => esc_html__( 'General Panel', 'ocean-extra' ),
);
}

// Panels that are included regardless of the theme version
$panels['oe_typography_panel'] = array(
'label' => esc_html__( 'Typography Panel', 'ocean-extra' ),
);
$panels['oe_topbar_panel'] = array(
'label' => esc_html__( 'Top Bar Panel', 'ocean-extra' ),
);
$panels['oe_header_panel'] = array(
'label' => esc_html__( 'Header Panel', 'ocean-extra' ),
);
$panels['oe_blog_panel'] = array(
'label' => esc_html__( 'Blog Panel', 'ocean-extra' ),
);
$panels['oe_sidebar_panel'] = array(
'label' => esc_html__( 'Sidebar Panel', 'ocean-extra' ),
);
$panels['oe_footer_widgets_panel'] = array(
'label' => esc_html__( 'Footer Widgets Panel', 'ocean-extra' ),
);
$panels['oe_footer_bottom_panel'] = array(
'label' => esc_html__( 'Footer Bottom Panel', 'ocean-extra' ),
);
$panels['oe_custom_code_panel'] = array(
'label' => esc_html__( 'Custom CSS/JS Panel', 'ocean-extra' ),
);

// Apply filters and return
Expand Down
5 changes: 2 additions & 3 deletions includes/update-message.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class OE_Plugin_Update_Message {
public function __construct() {

add_action( 'in_plugin_update_message-ocean-extra/ocean-extra.php', array( $this, 'plugin_update_message' ), 10, 2 );
add_action( 'after_plugin_row_ocean-extra/ocean-extra.php', array( $this, 'ms_plugin_update_message' ), 10, 2 );
add_action( 'admin_enqueue_scripts', array( $this, 'plugin_update_asset' ) );
}

Expand Down Expand Up @@ -135,9 +134,9 @@ public function ms_plugin_update_message( $file, $plugin ) {
public function plugin_update_asset() {
$screen = get_current_screen();

if ( 'plugins' === $screen->id ) {
if ( 'plugins' === $screen->id || 'plugins-network' === $screen->id ) {
wp_enqueue_style(
'oss-plugin-update',
'oe-plugin-update',
plugins_url( '/assets/css/pluginUpdateMessage.min.css', __DIR__ ),
array(),
false
Expand Down
Loading

0 comments on commit a0d892c

Please sign in to comment.