403Webshell
Server IP : 77.39.210.126  /  Your IP : 216.73.216.203
Web Server : Apache
System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64
User : artecasarepresti ( 1022)
PHP Version : 7.4.33
Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/artecasarepresti/www/wp-content/themes/Avada/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/artecasarepresti/www/wp-content/themes/Avada/includes//class-avada-sidebars.php
<?php
/**
 * Handles sidebars.
 *
 * @author     ThemeFusion
 * @copyright  (c) Copyright by ThemeFusion
 * @link       https://theme-fusion.com
 * @package    Avada
 * @subpackage Core
 */

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Direct script access denied.' );
}

/**
 * Handle sidebars.
 */
class Avada_Sidebars {

	/**
	 * Constructor.
	 */
	public function __construct() {
		add_action( 'widgets_init', [ $this, 'widgets_init' ] );
	}

	/**
	 * Register our sidebars.
	 */
	public function widgets_init() {

		// Main Blog widget area.
		register_sidebar(
			[
				'name'          => 'Blog Sidebar',
				'id'            => 'avada-blog-sidebar',
				'description'   => __( 'Default Sidebar of Avada', 'Avada' ),
				'before_widget' => '<section id="%1$s" class="widget %2$s">',
				'after_widget'  => '</section>',
				'before_title'  => '<div class="heading"><h4 class="widget-title">',
				'after_title'   => '</h4></div>',
			]
		);

		// Footer widget areas.
		$columns = (int) Avada()->settings->get( 'footer_widgets_columns' ) + 1;

		if ( ! $columns || 1 === $columns ) {
			$columns = 5;
		}

		// Register he footer widgets.
		for ( $i = 1; $i < $columns; $i++ ) {

			register_sidebar(
				[
					'name'          => sprintf( 'Footer Widget %s', $i ),
					'id'            => 'avada-footer-widget-' . $i,
					'before_widget' => '<section id="%1$s" class="fusion-footer-widget-column widget %2$s">',
					'after_widget'  => '<div style="clear:both;"></div></section>',
					'before_title'  => '<h4 class="widget-title">',
					'after_title'   => '</h4>',
				]
			);

		}

		// Sliding bar widget areas.
		$columns = (int) Avada()->settings->get( 'slidingbar_widgets_columns' ) + 1;

		if ( ! $columns || 1 === $columns ) {
			$columns = 5;
		}

		// Register the slidingbar widgets.
		for ( $i = 1; $i < $columns; $i++ ) {

			register_sidebar(
				[
					'name'          => sprintf( 'Sliding Bar Widget %s', $i ),
					'id'            => 'avada-slidingbar-widget-' . $i,
					'before_widget' => '<section id="%1$s" class="fusion-slidingbar-widget-column widget %2$s">',
					'after_widget'  => '<div style="clear:both;"></div></section>',
					'before_title'  => '<h4 class="widget-title">',
					'after_title'   => '</h4>',
				]
			);

		}
	}

}

/* Omit closing PHP tag to avoid "Headers already sent" issues. */

Youez - 2016 - github.com/yon3zu
LinuXploit