Server : Apache/2.4.58 (Ubuntu) System : Linux yumsem00.cafe24.com 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 User : root ( 0) PHP Version : 8.2.14 Disable Function : NONE Directory : /var/www/html/wp-content/plugins/ele-custom-skin/ |
Upload File : |
<?php /* * Plugin Name: Ele Custom Skin * Version: 3.1.7 * Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want. * Plugin URI: https://dudaster.com * Author: Dudaster.com * Author URI: https://dudaster.com * Text Domain: ele-custom-skin * Domain Path: /languages * License: GPLv3 * License URI: http://www.gnu.org/licenses/gpl-3.0 * Elementor tested up to: 3.8.0 * Elementor Pro tested up to: 3.8.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly define( 'ELECS_DIR', plugin_dir_path( __FILE__ )); define( 'ELECS_NAME', plugin_basename( __FILE__ )); define( 'ELECS_URL', plugin_dir_url( __FILE__ )); define ('ELECS_VER','3.1.7'); include_once ELECS_DIR.'includes/ecs-notices.php'; include_once ELECS_DIR.'includes/ecs-dependencies.php'; include_once ELECS_DIR.'includes/enqueue-styles.php'; include_once ELECS_DIR.'includes/ajax-pagination.php'; //check if Elementor is installed if (ecs_dependencies()) { add_action( 'elementor_pro/init', 'elecs_elementor_init' ); function elecs_elementor_init(){ include_once ELECS_DIR.'includes/admin-bar-menu.php'; require_once ELECS_DIR.'theme-builder/init.php'; require_once ELECS_DIR.'modules/loop-item/module.php'; } add_action('elementor/widgets/register','elecs_add_skins'); function elecs_add_skins(){ require_once ELECS_DIR.'skins/skin-custom.php'; } include_once ELECS_DIR.'includes/pro-features.php'; // dynamic background fix require_once ELECS_DIR.'includes/dynamic-style.php'; add_action('init', 'ecs_check_for_notification'); } else { $notification = new Ecs_Notice(__( '<b>Ele Custom Skin</b> needs <b>Elementor</b> and <b>Elementor Pro</b> to work. Make sure you have them <b>both</b> installed.', 'ele-custom-skin' )); $notification->set_type('error'); $notification->show(); }