PluginProbe
Daddy Plus / 1.0.8
Daddy Plus v1.0.8
trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.3 1.0.30 All 33 releases
daddy-plus / daddy-plus.php

daddy-plus.php in Daddy Plus 1.0.8, at daddy-plus.php

74 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.8
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 if ( 'MultiBiz' == $activate_theme ) {
61 require 'inc/multibiz/multibiz.php';
62 }
63
64 }
65 add_action( 'init', 'daddy_plus_init' );
66 }
67
68 // on plugin activation.
69 function daddy_plus_activate() {
70 require_once plugin_dir_path( __FILE__ ) . 'inc/daddy-plus-activator.php';
71 daddy_plus_plugin_activator::activate();
72 }
73 register_activation_hook( __FILE__, 'daddy_plus_activate' );
74