- added a default css file to include to have a first handle
- cahnged get_path/url to root_path/url - changed path setup -> now automatic from inside plugin
This commit is contained in:
@@ -19,10 +19,9 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
/*
|
||||
* plugin dir root
|
||||
PLGNTLS_class::set_root_dir( plugin_dir_path(__FILE__), plugin_dir_url(__FILE__) );
|
||||
*/
|
||||
include_once( plugin_dir_path(__FILE__) . '/utils/plgntls_class.php');
|
||||
PLGNTLS_class::set_root_dir( plugin_dir_path(__FILE__), plugin_dir_url(__FILE__) );
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -30,26 +29,27 @@ PLGNTLS_class::set_root_dir( plugin_dir_path(__FILE__), plugin_dir_url(__FILE__)
|
||||
* general inclusions
|
||||
*/
|
||||
// utils :
|
||||
include_once(PLGNTLS_class::get_path() . 'php/utils/globals.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'utils/console_log.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/utils/globals.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'utils/console_log.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . 'php/admin_menu/example_menu.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/admin_menu/example_menu.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . 'php/paypal/paypal.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/paypal/paypal.php');
|
||||
|
||||
include_once(PLGNTLS_class::root_path() . '/php/user_infos.php');
|
||||
include_once(PLGNTLS_class::root_path() . '/php/hide_admin.php');
|
||||
//include_once(PLGNTLS_class::root_path() . '/php/menus.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/register_partenaires.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/redirections.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/author_restriction.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/filter_mail.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/prof_check_page.php');
|
||||
include_once(PLGNTLS_class::root_path() . 'php/renew_card.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . '/php/user_infos.php');
|
||||
include_once(PLGNTLS_class::get_path() . '/php/hide_admin.php');
|
||||
//include_once(PLGNTLS_class::get_path() . '/php/menus.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/register_partenaires.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/redirections.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/author_restriction.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/filter_mail.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/prof_check_page.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/renew_card.php');
|
||||
|
||||
// form builder patch :
|
||||
//include_once(PLGNTLS_class::get_path() . 'php/form_builder_patch/url_validation.php');
|
||||
//include_once(PLGNTLS_class::get_path() . 'php/form_builder_patch/multiple_modals.php');
|
||||
//include_once(PLGNTLS_class::root_path() . 'php/form_builder_patch/url_validation.php');
|
||||
//include_once(PLGNTLS_class::root_path() . 'php/form_builder_patch/multiple_modals.php');
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user