From 287094d0e2fa41841a7709208664abe1dbe1ad7d Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Thu, 23 Jan 2025 18:43:26 +0200 Subject: [PATCH] Revert "refactor: rename Footer 1-4 to Widget Area 1-4" This reverts commit dde936a314bd238801c05def8694c1c9db3e0459. --- .../Core/Components/FooterWidgetFour.php | 3 +-- .../Core/Components/FooterWidgetOne.php | 4 ++-- .../Core/Components/FooterWidgetThree.php | 3 +-- .../Core/Components/FooterWidgetTwo.php | 3 +-- inc/core/front_end.php | 12 ++++-------- 5 files changed, 9 insertions(+), 16 deletions(-) diff --git a/header-footer-grid/Core/Components/FooterWidgetFour.php b/header-footer-grid/Core/Components/FooterWidgetFour.php index a30f1aeebe..eeec5cfae0 100644 --- a/header-footer-grid/Core/Components/FooterWidgetFour.php +++ b/header-footer-grid/Core/Components/FooterWidgetFour.php @@ -29,8 +29,7 @@ class FooterWidgetFour extends Abstract_FooterWidget { * @access public */ public function init() { - // translators: %d: the number of the widget. - $this->set_property( 'label', sprintf( __( 'Widget Area %d', 'neve' ), 4 ) ); + $this->set_property( 'label', __( 'Footer Four', 'neve' ) ); $this->set_property( 'id', self::COMPONENT_ID ); $this->set_property( 'width', 3 ); diff --git a/header-footer-grid/Core/Components/FooterWidgetOne.php b/header-footer-grid/Core/Components/FooterWidgetOne.php index 87bf6067e8..abd6d6e975 100644 --- a/header-footer-grid/Core/Components/FooterWidgetOne.php +++ b/header-footer-grid/Core/Components/FooterWidgetOne.php @@ -28,8 +28,8 @@ class FooterWidgetOne extends Abstract_FooterWidget { * @access public */ public function init() { - // translators: %d: the number of the widget. - $this->set_property( 'label', sprintf( __( 'Widget Area %d', 'neve' ), 1 ) ); + $this->set_property( 'label', __( 'Footer One', 'neve' ) ); + $this->set_property( 'id', self::COMPONENT_ID ); $this->set_property( 'width', 3 ); diff --git a/header-footer-grid/Core/Components/FooterWidgetThree.php b/header-footer-grid/Core/Components/FooterWidgetThree.php index dbd736ac65..c8efb0d3be 100644 --- a/header-footer-grid/Core/Components/FooterWidgetThree.php +++ b/header-footer-grid/Core/Components/FooterWidgetThree.php @@ -28,8 +28,7 @@ class FooterWidgetThree extends Abstract_FooterWidget { * @access public */ public function init() { - // translators: %d: the number of the widget. - $this->set_property( 'label', sprintf( __( 'Widget Area %d', 'neve' ), 3 ) ); + $this->set_property( 'label', __( 'Footer Three', 'neve' ) ); $this->set_property( 'id', self::COMPONENT_ID ); $this->set_property( 'width', 3 ); $this->set_property( 'section', 'sidebar-widgets-footer-three-widgets' ); diff --git a/header-footer-grid/Core/Components/FooterWidgetTwo.php b/header-footer-grid/Core/Components/FooterWidgetTwo.php index 11070ecf15..177419701b 100644 --- a/header-footer-grid/Core/Components/FooterWidgetTwo.php +++ b/header-footer-grid/Core/Components/FooterWidgetTwo.php @@ -29,8 +29,7 @@ class FooterWidgetTwo extends Abstract_FooterWidget { * @access public */ public function init() { - // translators: %d: the number of the widget. - $this->set_property( 'label', sprintf( __( 'Widget Area %d', 'neve' ), 2 ) ); + $this->set_property( 'label', __( 'Footer Two', 'neve' ) ); $this->set_property( 'id', self::COMPONENT_ID ); $this->set_property( 'width', 3 ); $this->set_property( 'section', 'sidebar-widgets-footer-two-widgets' ); diff --git a/inc/core/front_end.php b/inc/core/front_end.php index c676f56a05..ef86ee1d4a 100644 --- a/inc/core/front_end.php +++ b/inc/core/front_end.php @@ -485,14 +485,10 @@ public function register_sidebars() { $footer_sidebars = apply_filters( 'neve_footer_widget_areas_array', array( - // translators: %d: the number of the widget. - 'footer-one-widgets' => sprintf( __( 'Widget Area %d', 'neve' ), 1 ), - // translators: %d: the number of the widget. - 'footer-two-widgets' => sprintf( __( 'Widget Area %d', 'neve' ), 2 ), - // translators: %d: the number of the widget. - 'footer-three-widgets' => sprintf( __( 'Widget Area %d', 'neve' ), 3 ), - // translators: %d: the number of the widget. - 'footer-four-widgets' => sprintf( __( 'Widget Area %d', 'neve' ), 4 ), + 'footer-one-widgets' => esc_html__( 'Footer One', 'neve' ), + 'footer-two-widgets' => esc_html__( 'Footer Two', 'neve' ), + 'footer-three-widgets' => esc_html__( 'Footer Three', 'neve' ), + 'footer-four-widgets' => esc_html__( 'Footer Four', 'neve' ), ) );