| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Sticky Elementor – Sticky Header, Menu Color After Sticky, Logo Swap & Back to Top Button |
| 4 |
* Description: Free Sticky Header for Elementor. Features Logo Swap, Shrink Effect, Mobile Sticky Menu, Scroll Blur, and Zero Layout Shift. No Pro Required! |
| 5 |
* Version: 1.2.4 |
| 6 |
* Author: Bhumi |
| 7 |
* Requires at least: 5.0 |
| 8 |
* Requires PHP: 7.2 |
| 9 |
* Tested up to: 7.1 |
| 10 |
* License: GPL2+ |
| 11 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 12 |
* Text Domain: sticky-elementor |
| 13 |
* |
| 14 |
* @package StickyElementor |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
exit; |
| 19 |
} |
| 20 |
|
| 21 |
// Define plugin constants with a unique prefix. |
| 22 |
define( 'STICEL_FILE', __FILE__ ); |
| 23 |
define( 'STICEL_PLUGIN_BASE', plugin_basename( STICEL_FILE ) ); |
| 24 |
define( 'STICEL_PATH', plugin_dir_path( STICEL_FILE ) ); |
| 25 |
define( 'STICEL_MODULES_PATH', STICEL_PATH . 'includes/modules/' ); |
| 26 |
define( 'STICEL_URL', plugins_url( '/', STICEL_FILE ) ); |
| 27 |
define( 'STICEL_ASSETS_URL', STICEL_URL . 'assets/' ); |
| 28 |
define( 'STICKY_PLUGIN_URL', plugins_url( '/', STICEL_FILE ) ); |
| 29 |
|
| 30 |
define( 'STICEL_HEADER_VERSION', '1.2.2' ); |
| 31 |
define( 'STICEL_PREVIOUS_STABLE_VERSION', '1.2.1' ); |
| 32 |
|
| 33 |
require_once STICEL_PATH . 'includes/class-sticel-plugin-loader.php'; |
| 34 |
|
| 35 |
/** |
| 36 |
* Initialize plugin. |
| 37 |
* |
| 38 |
* @since 1.0.1 |
| 39 |
*/ |
| 40 |
function sticel_plugin_loader_init() { |
| 41 |
if ( class_exists( 'SticEl\StickyElementorPluginLoader' ) ) { |
| 42 |
$plugin = new SticEl\StickyElementorPluginLoader(); |
| 43 |
$plugin->init(); |
| 44 |
} |
| 45 |
} |
| 46 |
add_action( 'plugins_loaded', 'sticel_plugin_loader_init' ); |