Sindbad~EG File Manager

Current Path : /home/frekansk/.trash/wp-content/themes/turitor/core/hooks/
Upload File :
Current File : /home/frekansk/.trash/wp-content/themes/turitor/core/hooks/widget-areas.php

<?php if (!defined('ABSPATH')) die('Direct access forbidden.');
/**
 * register widget area
 */

      function turitor_widget_init()
      {
         if (function_exists('register_sidebar')) {
            register_sidebar(
                  array(
                     'name' => esc_html__('Blog widget area', 'turitor'),
                     'id' => 'sidebar-1',
                     'description' => esc_html__('Appears on posts.', 'turitor'),
                     'before_widget' => '<div id="%1$s" class="widget %2$s">',
                     'after_widget' => '</div>',
                     'before_title' => '<h4 class="widget-title">',
                     'after_title' => '</h4>',
                  )
            );
         }
      
         if (function_exists('register_sidebar') && class_exists( 'SFWD_LMS' )) {
            register_sidebar(
                  array(
                     'name' => esc_html__('Learndash widget area', 'turitor'),
                     'id' => 'sidebar-2',
                     'description' => esc_html__('Appears on posts.', 'turitor'),
                     'before_widget' => '<div id="%1$s" class="widget %2$s">',
                     'after_widget' => '</div>',
                     'before_title' => '<h4 class="widget-title">',
                     'after_title' => '</h4>',
                  )
            );
         }

         if (function_exists('register_sidebar') && class_exists( 'woocommerce' )) {
            register_sidebar(
                  array(
                     'name' => esc_html__('Woo Sidebar', 'turitor'),
                     'id' => 'sidebar-woo',
                     'description' => esc_html__('Appears on WooCommerce page.', 'turitor'),
                     'before_widget' => '<div id="%1$s" class="widget %2$s">',
                     'after_widget' => '</div>',
                     'before_title' => '<h4 class="widget-title">',
                     'after_title' => '</h4>',
                  )
            );
         }
      }

     add_action('widgets_init', 'turitor_widget_init');

   if(defined( 'FW' )):
      function footer_left_widgets_init(){
            if ( function_exists('register_sidebar') )
            register_sidebar(array(
            'name' => esc_html__('Footer Left','turitor'),
            'id' => 'footer-left',
            'before_widget' => '<div class="footer-widget footer-left-widget">',
            'after_widget' => '</div>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
            )
         );
         }
         add_action( 'widgets_init', 'footer_left_widgets_init' );

         function footer_two_widgets_init(){
         if ( function_exists('register_sidebar') )
         register_sidebar(array(
            'name' => esc_html__('Footer widget Two','turitor'),
            'id' => 'footer-two',
            'before_widget' => '<div class="footer-widget footer-two-widget">',
            'after_widget' => '</div>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
         )
         );
         }
         add_action( 'widgets_init', 'footer_two_widgets_init' );

         function footer_three_widgets_init(){
         if ( function_exists('register_sidebar') )
         register_sidebar(array(
            'name' => esc_html__('Footer widget Three','turitor'),
            'id' => 'footer-three',
            'before_widget' => '<div class="footer-widget footer-three-widget">',
            'after_widget' => '</div>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
         )
         );
         }
         add_action( 'widgets_init', 'footer_three_widgets_init' );

         function footer_four_widgets_init(){
         if ( function_exists('register_sidebar') )
         register_sidebar(array(
            'name' => esc_html__('Footer widget Four','turitor'),
            'id' => 'footer-four',
            'before_widget' => '<div class="footer-widget footer-four-widget">',
            'after_widget' => '</div>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
         )
         );
         }
         add_action( 'widgets_init', 'footer_four_widgets_init' );

        
   endif;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists