HEX
Server: Apache
System: Linux linplesk41.pumo.com.tw 3.10.0-962.3.2.lve1.5.27.el7.x86_64 #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64
User: rajlaw (10192)
PHP: 7.4.24
Disabled: phpinfo,passthru,exec,shell_exec,system,popen,proc_open,proc_close,show_source,pcntl_exec,escapeshellcmd,proc_get_status,proc_nice,proc_terminate,escapeshellarg
Upload Files
File: /home/httpd/vhosts/rajlaw.com.tw/httpdocs/wp-content/themes/advokat/inc/template-sidebar.php
<?php
/**
 * @author  rs-theme
 * @since   1.0
 * @version 1.0 
 */

function advokat_widgets_init() {
	register_sidebar( array(
		'name'          => esc_html__( 'Sidebar', 'advokat' ),
		'id'            => 'sidebar-1',
		'description'   => esc_html__( 'Add widgets here.', 'advokat' ),
		'before_widget' => '<section id="%1$s" class="widget %2$s">',
		'after_widget'  => '</section>',
		'before_title'  => '<h2 class="widget-title">',
		'after_title'   => '</h2>',
	) );


	if ( class_exists( 'WooCommerce' ) ) {
		register_sidebar( array(
			'name'          => esc_html__( 'Sidebar Shop', 'advokat' ),
			'id'            => 'sidebar_shop',
			'description'   => esc_html__( 'Sidebar Shop', 'advokat' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h2 class="widget-title">',
			'after_title'   => '</h2>',
		) );
	}
	if (class_exists( 'ReduxFramework' )){
		register_sidebar( array(
			'name'          => esc_html__( 'Off Canvas Sidebar', 'advokat' ),
			'id'            => 'sidebarcanvas-1',
			'description'   => esc_html__( 'Add widgets here.', 'advokat' ),
			'before_widget' => '<li id="%1$s" class="widget %2$s">',
			'after_widget'  => '</li>',
			'before_title'  => '<h2 class="widget-title">',
			'after_title'   => '</h2>',
		) );
	}

	register_sidebar( array(
			'name' => esc_html__( 'Footer One Widget Area', 'advokat' ),
			'id' => 'footer1',
			'description' => esc_html__( 'Add Text widgets area', 'advokat' ),
			'before_widget' => '<section id="%1$s" class="widget %2$s">',
			'after_widget' => '</section>',
			'before_title' => '<h4 class="footer-title">',
			'after_title' => '</h4>'
	) ); 		 				

	 register_sidebar( array(
			'name' => esc_html__( 'Footer Two Widget Area', 'advokat' ),
			'id' => 'footer2',
			'description' => esc_html__( 'Add text box widgets area', 'advokat' ),
			'before_widget' => '<section id="%1$s" class="widget %2$s">',
			'after_widget' => '</section>',
			'before_title' => '<h4 class="footer-title">',
			'after_title' => '</h4>'
	) ); 
	 register_sidebar( array(
			'name' => esc_html__( 'Footer Three Widget Area', 'advokat' ),
			'id' => 'footer3',
			'description' => esc_html__( 'Add text box widgets area', 'advokat' ),
			'before_widget' => '<section id="%1$s" class="widget %2$s">',
			'after_widget' => '</section>',
			'before_title' => '<h4 class="footer-title">',
			'after_title' => '</h4>'
	) );

	register_sidebar( array(
			'name' => esc_html__( 'Footer Four Widget Area', 'advokat' ),
			'id' => 'footer4',
			'description' => esc_html__( 'Add text box widgets area', 'advokat' ),
			'before_widget' => '<section id="%1$s" class="widget %2$s">',
			'after_widget' => '</section>',
			'before_title' => '<h4 class="footer-title">',
			'after_title' => '</h4>'
	) ); 

			
}
add_action( 'widgets_init', 'advokat_widgets_init' );