PluginProbe
Daddy Plus / trunk
Daddy Plus vtrunk
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 trunk, at daddy-plus.php

136 lines 3.9 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.32
11 * Author: Themes Daddy
12 * Author URI: https://themesdaddy.com/
13 * Tested up to: 7.1
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 if ( 'Avine' == $activate_theme ) {
64 require 'inc/avine/avine.php';
65 }
66 if ( 'Enovia' == $activate_theme ) {
67 require 'inc/enovia/enovia.php';
68 }
69 if ( 'Avire' == $activate_theme ) {
70 require 'inc/avire/avire.php';
71 }
72 if ( 'Flixify' == $activate_theme ) {
73 require 'inc/flixify/flixify.php';
74 }
75 if ( 'Flixita News' == $activate_theme ) {
76 require 'inc/flixita-news/flixita-news.php';
77 }
78 if ( 'Flecto' == $activate_theme ) {
79 require 'inc/flecto/flecto.php';
80 }
81 if ( 'QuickBiz' == $activate_theme ) {
82 require 'inc/quickbiz/quickbiz.php';
83 }
84 if ( 'Alvert' == $activate_theme ) {
85 require 'inc/alvert/alvert.php';
86 }
87 if ( 'Quickify' == $activate_theme ) {
88 require 'inc/quickify/quickify.php';
89 }
90 if ( 'Avinza' == $activate_theme ) {
91 require 'inc/avinza/avinza.php';
92 }
93 if ( 'Flectine' == $activate_theme ) {
94 require 'inc/flectine/flectine.php';
95 }
96 if ( 'Britely' == $activate_theme ) {
97 require 'inc/britely/britely.php';
98 }
99 if ( 'Abiz' == $activate_theme ) {
100 require 'inc/abiz/abiz.php';
101 }
102 if ( 'Altiva' == $activate_theme ) {
103 require 'inc/altiva/altiva.php';
104 }
105 if ( 'Avinex' == $activate_theme ) {
106 require 'inc/avinex/avinex.php';
107 }
108 if ( 'Flixona' == $activate_theme ) {
109 require 'inc/flixona/flixona.php';
110 }
111 if ( 'Arvina' == $activate_theme ) {
112 require 'inc/arvina/arvina.php';
113 }
114 if ( 'Quicksy' == $activate_theme ) {
115 require 'inc/quicksy/quicksy.php';
116 }
117 if ( 'Zestify' == $activate_theme ) {
118 require 'inc/zestify/zestify.php';
119 }
120 if ( 'BizVita' == $activate_theme ) {
121 require 'inc/bizvita/bizvita.php';
122 }
123 if ( 'TechBoost' == $activate_theme ) {
124 require 'inc/techboost/techboost.php';
125 }
126 }
127 add_action( 'init', 'daddy_plus_init' );
128 }
129
130 // on plugin activation.
131 function daddy_plus_activate() {
132 require_once plugin_dir_path( __FILE__ ) . 'inc/daddy-plus-activator.php';
133 daddy_plus_plugin_activator::activate();
134 }
135 register_activation_hook( __FILE__, 'daddy_plus_activate' );
136