config
4 years ago
includes
3 months ago
languages
4 years ago
media
4 years ago
scripts
3 months ago
static
4 years ago
styles
3 months ago
divi_amelia.php
4 years ago
package-lock.json
5 months ago
package.json
5 months ago
divi_amelia.php
43 lines
| 1 | <?php |
| 2 | /* |
| 3 | Plugin Name: Divi Amelia |
| 4 | Plugin URI: |
| 5 | Description: |
| 6 | Version: 1.0.0 |
| 7 | Author: |
| 8 | Author URI: |
| 9 | License: GPL2 |
| 10 | License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 | Text Domain: divi-divi_amelia |
| 12 | Domain Path: /languages |
| 13 | |
| 14 | Divi Amelia is free software: you can redistribute it and/or modify |
| 15 | it under the terms of the GNU General Public License as published by |
| 16 | the Free Software Foundation, either version 2 of the License, or |
| 17 | any later version. |
| 18 | |
| 19 | Divi Amelia is distributed in the hope that it will be useful, |
| 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | GNU General Public License for more details. |
| 23 | |
| 24 | You should have received a copy of the GNU General Public License |
| 25 | along with Divi Amelia. If not, see https://www.gnu.org/licenses/gpl-2.0.html. |
| 26 | */ |
| 27 | |
| 28 | if (! function_exists('divi_initialize_extension_amelia')) : |
| 29 | /** |
| 30 | * Creates the extension's main class instance. |
| 31 | * |
| 32 | * @since 1.0.0 |
| 33 | */ |
| 34 | function divi_initialize_extension_amelia() |
| 35 | { |
| 36 | require_once plugin_dir_path(__FILE__) . 'includes/DiviAmelia.php'; |
| 37 | |
| 38 | wp_register_style('wpamelia-divi', plugins_url('styles/divi-amelia.css', __FILE__), [], AMELIA_VERSION); |
| 39 | wp_enqueue_style('wpamelia-divi'); |
| 40 | } |
| 41 | add_action('divi_extensions_init', 'divi_initialize_extension_amelia'); |
| 42 | endif; |
| 43 |