Completed
Push — master ( 02c4bb...d27ae5 )
by Warwick
07:49 queued 02:53
created

404-widget.php ➔ my_search_placeholder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * LSX functions and definitions - Config.
4
 *
5
 * @package    lsx
6
 * @subpackage 404-widget
7
 */
8
9
if ( ! function_exists( 'lsx_widget_area_404_init' ) ) :
10
	function lsx_widget_area_404_init() {
11
		register_sidebar( array(
12
				'name'          => esc_html__( '404 page', 'lsx' ),
13
				'id'            => 'sidebar-404',
14
				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
15
				'after_widget'  => '</aside>',
16
				'before_title'  => '<h3 class="widget-title">',
17
				'after_title'   => '</h3>',
18
		) );
19
	}
20
21
endif;
22
23
add_action( 'widgets_init', 'lsx_widget_area_404_init' );
24
25
if ( ! function_exists( 'my_search_placeholder' ) ) :
26
	function my_search_placeholder() {
27
		return __( 'lsdev.biz', 'Total' );
28
	}
29
30
endif;
31
32
add_filter( 'search_placeholder_text', 'my_search_placeholder' );
33