| Server IP : 170.10.162.208 / Your IP : 216.73.216.38 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/usr/local/sitepad/editor/site-data/plugins/siteseo-pro/main/ |
Upload File : |
<?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');
}
}