__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if (! class_exists('Elementor\Plugin')) {
return;
}
add_action('init', function () {
if (class_exists('Elementor\Plugin')) {
\Elementor\Plugin::$instance->experiments->remove_feature('block_editor_assets_optimize');
}
if (
get_option(
'elementor_disable_color_schemes',
'__DEFAULT__'
) === '__DEFAULT__'
) {
update_option('elementor_disable_color_schemes', 'yes');
}
add_filter('elementor/schemes/enabled_schemes', function ($s) {
// blocksy_print($s);
// return ['color'];
return $s;
});
if (
get_option(
'elementor_disable_typography_schemes',
'__DEFAULT__'
) === '__DEFAULT__'
) {
update_option('elementor_disable_typography_schemes', 'yes');
}
if (! get_option('elementor_viewport_lg')) {
update_option('elementor_viewport_lg', 1000);
}
if (! get_option('elementor_viewport_md')) {
update_option('elementor_viewport_md', 690);
}
add_filter(
'rest_request_after_callbacks',
function ($response, $handler, \WP_REST_Request $request) {
$route = $request->get_route();
$rest_id = substr($route, strrpos($route, '/') + 1);
$palettes = [];
foreach (blocksy_manager()->colors->get_color_palette() as $paletteKey => $paletteValue) {
$key = 'blocksy_palette_' . str_replace('color', '', $paletteKey);
$palettes[$key] = [
'id' => $key,
'title' => $paletteValue['title'],
'value' => 'var(--' . $paletteValue['variable'] . ')'
];
}
if (isset($palettes[$rest_id])) {
return new \WP_REST_Response($palettes[$rest_id]);
}
if (
$route === '/elementor/v1/globals'
&&
method_exists($response, 'get_data')
) {
$data = $response->get_data();
$colors = blocksy_get_colors(blocksy_get_theme_mod('colorPalette'), [
'color1' => [ 'color' => '#2872fa' ],
'color2' => [ 'color' => '#1559ed' ],
'color3' => [ 'color' => '#3A4F66' ],
'color4' => [ 'color' => '#192a3d' ],
'color5' => [ 'color' => '#e1e8ed' ],
'color6' => [ 'color' => '#f2f5f7' ],
'color7' => [ 'color' => '#FAFBFC' ],
'color8' => [ 'color' => '#ffffff' ],
]);
$colors_for_palette = [
'blocksy_palette_1' => 'color1',
'blocksy_palette_2' => 'color2',
'blocksy_palette_3' => 'color3',
'blocksy_palette_4' => 'color4',
'blocksy_palette_5' => 'color5',
'blocksy_palette_6' => 'color6',
'blocksy_palette_7' => 'color7',
'blocksy_palette_8' => 'color8'
];
foreach (blocksy_manager()->colors->get_color_palette() as $paletteKey => $paletteValue) {
$key = 'blocksy_palette_' . str_replace('color', '', $paletteKey);
$data['colors'][$key] = [
'id' => $key,
'title' => $paletteValue['title'],
'value' => $paletteValue['color']
];
}
$response->set_data($data);
}
return $response;
},
1000, 3
);
/*
add_action('elementor/frontend/section/before_render', function ($element) {
$settings = $element->get_settings_for_display();
if (
! $element->get_data('isInner')
&&
blocksy_akg('blocksy_stretch_section', $settings, '') !== 'stretched'
) {
$element->add_render_attribute('_wrapper', [
'class' => 'ct-section-boxed'
]);
}
});
*/
add_action(
'elementor/element/section/section_layout/after_section_start',
function ($element, $args) {
$element->add_control('blocksy_stretch_section', [
'type' => \Elementor\Controls_Manager::SWITCHER,
'label' => esc_html__( 'Full Width Section', 'blocksy' ),
'return_value' => 'stretched',
'hide_in_inner' => true,
'default' => '',
'separator' => 'after',
'prefix_class' => 'ct-section-',
]);
},
10, 2
);
add_action(
'elementor/element/section/section_layout/before_section_end',
function ($element, $args) {
$element->remove_control('stretch_section');
// $element->add_control('fix_columns_alignment', [
// 'type' => \Elementor\Controls_Manager::SWITCHER,
// 'label' => esc_html__( 'Columns Alignment Fix', 'blocksy' ),
// 'return_value' => 'fix',
// 'default' => apply_filters(
// 'blocksy:integrations:elementor:fix_columns_alignment:default',
// ''
// ),
// 'separator' => 'before',
// 'prefix_class' => 'ct-columns-alignment-',
// ]);
},
10, 2
);
});
add_action(
'elementor/theme/register_locations',
function ($elementor_theme_manager) {
$elementor_theme_manager->register_all_core_location();
}
);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| avatars.php | File | 368 B | 0640 |
|
| bbpress.php | File | 252 B | 0640 |
|
| beaver-themer.php | File | 1.21 KB | 0640 |
|
| cartflows.php | File | 149 B | 0640 |
|
| cdn.php | File | 494 B | 0640 |
|
| coauthors.php | File | 1.64 KB | 0640 |
|
| custom-post-types.php | File | 5.11 KB | 0640 |
|
| dfi.php | File | 221 B | 0640 |
|
| disqus.php | File | 497 B | 0640 |
|
| elementor.php | File | 4.32 KB | 0640 |
|
| fluent-forms.php | File | 94 B | 0640 |
|
| generateblocks.php | File | 200 B | 0640 |
|
| greenshift.php | File | 227 B | 0640 |
|
| qubely.php | File | 237 B | 0640 |
|
| secupress.php | File | 455 B | 0640 |
|
| simply-static.php | File | 2.71 KB | 0640 |
|
| stackable.php | File | 139 B | 0640 |
|
| theme-builders.php | File | 2.73 KB | 0640 |
|
| tribe-events.php | File | 884 B | 0640 |
|
| tutorlms.php | File | 4.16 KB | 0640 |
|
| wpc-variations-table.php | File | 317 B | 0640 |
|
| wprocket.php | File | 609 B | 0640 |
|
| yith.php | File | 102 B | 0640 |
|
| zion.php | File | 846 B | 0640 |
|