| Server IP : 47.82.179.145 / Your IP : 216.73.216.89 Web Server : nginx/1.26.3 System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.3.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/scuipturepactory.com/wp-content/themes/blossom-fashion/inc/ |
Upload File : |
<?php
/**
* Widget Areas
*
* @package Blossom_Fashion
*/
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function blossom_fashion_widgets_init(){
$sidebars = array(
'sidebar' => array(
'name' => __( 'Sidebar', 'blossom-fashion' ),
'id' => 'sidebar',
'description' => __( 'Default Sidebar', 'blossom-fashion' ),
),
'footer-one'=> array(
'name' => __( 'Footer One', 'blossom-fashion' ),
'id' => 'footer-one',
'description' => __( 'Add footer one widgets here.', 'blossom-fashion' ),
),
'footer-two'=> array(
'name' => __( 'Footer Two', 'blossom-fashion' ),
'id' => 'footer-two',
'description' => __( 'Add footer two widgets here.', 'blossom-fashion' ),
),
'footer-three'=> array(
'name' => __( 'Footer Three', 'blossom-fashion' ),
'id' => 'footer-three',
'description' => __( 'Add footer three widgets here.', 'blossom-fashion' ),
),
'footer-four'=> array(
'name' => __( 'Footer Four', 'blossom-fashion' ),
'id' => 'footer-four',
'description' => __( 'Add footer four widgets here.', 'blossom-fashion' ),
)
);
foreach( $sidebars as $sidebar ){
register_sidebar( array(
'name' => esc_html( $sidebar['name'] ),
'id' => esc_attr( $sidebar['id'] ),
'description' => esc_html( $sidebar['description'] ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title" itemprop="name">',
'after_title' => '</h2>',
) );
}
}
add_action( 'widgets_init', 'blossom_fashion_widgets_init' );