| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly. |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* Plugin Name: Daddy Plus |
| 8 |
* Plugin URI: |
| 9 |
* Description: Daddy Plus plugin provides Daddy themes extra settings for front page. |
| 10 |
* Version: 1.0.6 |
| 11 |
* Author: Themes Daddy |
| 12 |
* Author URI: |
| 13 |
* Tested up to: 6.4 |
| 14 |
* Requires: 4.6 or higher |
| 15 |
* License: GPLv3 or later |
| 16 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 17 |
* Requires PHP: 5.6 |
| 18 |
* Text Domain: daddy-plus |
| 19 |
*/ |
| 20 |
|
| 21 |
/* |
| 22 |
Daddy Plus is free software: you can redistribute it and/or modify |
| 23 |
it under the terms of the GNU General Public License as published by |
| 24 |
the Free Software Foundation, either version 2 of the License, or |
| 25 |
any later version. |
| 26 |
|
| 27 |
Daddy Plus is distributed in the hope that it will be useful, |
| 28 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 |
GNU General Public License for more details. |
| 31 |
|
| 32 |
You should have received a copy of the GNU General Public License |
| 33 |
along with Daddy Plus. If not, see http://www.gnu.org/licenses/gpl-3.0.html. |
| 34 |
*/ |
| 35 |
|
| 36 |
define( 'daddy_plus_plugin_url', plugin_dir_url( __FILE__ ) ); |
| 37 |
define( 'daddy_plus_plugin_dir', plugin_dir_path( __FILE__ ) ); |
| 38 |
|
| 39 |
if ( ! function_exists( 'daddy_plus_init' ) ) { |
| 40 |
function daddy_plus_init() { |
| 41 |
|
| 42 |
$activate_theme_data = wp_get_theme(); // getting current theme data. |
| 43 |
$activate_theme = $activate_theme_data->name; |
| 44 |
require_once('inc/customize-upgrade-control.php'); |
| 45 |
|
| 46 |
if ( 'Flixita' == $activate_theme ) { |
| 47 |
require 'inc/flixita/flixita.php'; |
| 48 |
} |
| 49 |
|
| 50 |
if ( 'FlixiCart' == $activate_theme ) { |
| 51 |
require 'inc/flixicart/flixicart.php'; |
| 52 |
} |
| 53 |
|
| 54 |
if ( 'Alexia' == $activate_theme ) { |
| 55 |
require 'inc/alexia/alexia.php'; |
| 56 |
} |
| 57 |
if ( 'Arvila' == $activate_theme ) { |
| 58 |
require 'inc/arvila/arvila.php'; |
| 59 |
} |
| 60 |
|
| 61 |
} |
| 62 |
add_action( 'init', 'daddy_plus_init' ); |
| 63 |
} |
| 64 |
|
| 65 |
// on plugin activation. |
| 66 |
function daddy_plus_activate() { |
| 67 |
require_once plugin_dir_path( __FILE__ ) . 'inc/daddy-plus-activator.php'; |
| 68 |
daddy_plus_plugin_activator::activate(); |
| 69 |
} |
| 70 |
register_activation_hook( __FILE__, 'daddy_plus_activate' ); |
| 71 |
|