PluginProbe
Countix Sales Countdown Timer / trunk
Countix Sales Countdown Timer vtrunk
sales-countdown-timer / includes / define.php

define.php in Countix Sales Countdown Timer trunk, at includes/define.php

40 lines 2.1 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;
4 }
5 define( 'SALES_COUNTDOWN_TIMER_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . "sales-countdown-timer" . DIRECTORY_SEPARATOR );
6 define( 'SALES_COUNTDOWN_TIMER_ADMIN', SALES_COUNTDOWN_TIMER_DIR . "admin" . DIRECTORY_SEPARATOR );
7 define( 'SALES_COUNTDOWN_TIMER_FRONTEND', SALES_COUNTDOWN_TIMER_DIR . "frontend" . DIRECTORY_SEPARATOR );
8 define( 'SALES_COUNTDOWN_TIMER_LANGUAGES', SALES_COUNTDOWN_TIMER_DIR . "languages" . DIRECTORY_SEPARATOR );
9 define( 'SALES_COUNTDOWN_TIMER_INCLUDES', SALES_COUNTDOWN_TIMER_DIR . "includes" . DIRECTORY_SEPARATOR );
10 $plugin_url = plugins_url( 'sales-countdown-timer' );
11 //$plugin_url = plugins_url( '', __FILE__ );
12 $plugin_url = str_replace( '/includes', '', $plugin_url );
13 define( 'SALES_COUNTDOWN_TIMER_CSS', $plugin_url . "/css/" );
14 define( 'SALES_COUNTDOWN_TIMER_CSS_DIR', SALES_COUNTDOWN_TIMER_DIR . "css" . DIRECTORY_SEPARATOR );
15 define( 'SALES_COUNTDOWN_TIMER_JS', $plugin_url . "/js/" );
16 define( 'SALES_COUNTDOWN_TIMER_JS_DIR', SALES_COUNTDOWN_TIMER_DIR . "js" . DIRECTORY_SEPARATOR );
17 define( 'SALES_COUNTDOWN_TIMER_IMAGES', WP_PLUGIN_URL . "/sales-countdown-timer/images/" );
18
19
20 /*Include functions file*/
21 if ( is_file( SALES_COUNTDOWN_TIMER_INCLUDES . "functions.php" ) ) {
22 require_once SALES_COUNTDOWN_TIMER_INCLUDES . "functions.php";
23 }
24
25 if ( is_file( SALES_COUNTDOWN_TIMER_INCLUDES . "data.php" ) ) {
26 require_once SALES_COUNTDOWN_TIMER_INCLUDES . "data.php";
27 }
28 if ( is_file( SALES_COUNTDOWN_TIMER_INCLUDES . "support.php" ) ) {
29 require_once SALES_COUNTDOWN_TIMER_INCLUDES . "support.php";
30 }
31 if ( is_file( SALES_COUNTDOWN_TIMER_INCLUDES . "countdown-style.php" ) ) {
32 require_once SALES_COUNTDOWN_TIMER_INCLUDES . "countdown-style.php";
33 }
34
35 if ( is_file( SALES_COUNTDOWN_TIMER_INCLUDES . '3rd/elementor/elementor.php' ) ) {
36 require_once SALES_COUNTDOWN_TIMER_INCLUDES . '3rd/elementor/elementor.php';
37 }
38 vi_include_folder( SALES_COUNTDOWN_TIMER_ADMIN, 'SALES_COUNTDOWN_TIMER_Admin_' );
39 vi_include_folder( SALES_COUNTDOWN_TIMER_FRONTEND, 'SALES_COUNTDOWN_TIMER_Frontend_' );
40