Skip to content

Commit

Permalink
Revert "refactor: rename Footer 1-4 to Widget Area 1-4"
Browse files Browse the repository at this point in the history
This reverts commit dde936a.
  • Loading branch information
Soare-Robert-Daniel committed Jan 23, 2025
1 parent 446ec5c commit 287094d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
3 changes: 1 addition & 2 deletions header-footer-grid/Core/Components/FooterWidgetFour.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions header-footer-grid/Core/Components/FooterWidgetOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
3 changes: 1 addition & 2 deletions header-footer-grid/Core/Components/FooterWidgetThree.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
3 changes: 1 addition & 2 deletions header-footer-grid/Core/Components/FooterWidgetTwo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
12 changes: 4 additions & 8 deletions inc/core/front_end.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
)
);

Expand Down

0 comments on commit 287094d

Please sign in to comment.