From 5ac65810e78a01fedf844c97fa7df69f1ae0d08f Mon Sep 17 00:00:00 2001 From: Nadim Tuhin Date: Tue, 20 Oct 2015 12:54:29 +0600 Subject: [PATCH] refactored theme.php --- theme.php | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/theme.php b/theme.php index 0fd154c..d577934 100644 --- a/theme.php +++ b/theme.php @@ -1,55 +1,7 @@ %s. -Onepager requires at least PHP %s to run smoothly. -
Please update your PHP version to run this plugin and keep you website secure.'; - - wp_die( sprintf( $notice, PHP_VERSION, ONEPAGER_PHP_VERSION ) ); -} - -onepager_php_version_check(); - - -require( ONEPAGER_PATH . '/app/inc/support.php' ); -require( ONEPAGER_PATH . '/src/functions.php' ); -require( ONEPAGER_PATH . '/src/theme_helpers.php' ); -require( ONEPAGER_PATH . '/vendor/autoload.php' ); - -require( ONEPAGER_PATH . '/app/Onepager.php' ); -require( ONEPAGER_PATH . '/app/bootstrap.php' ); - -require( ONEPAGER_PATH . '/app/Api/routes.php' ); -require( ONEPAGER_PATH . '/app/OptionsPanel/settings.php' ); -require( ONEPAGER_PATH . '/app/Metabox/metabox.php' ); - - -add_action( 'wp_head', 'print_onepager_meta' ); -function print_onepager_meta() { - echo ""; -} - -do_action( 'onepager_loaded' ); +require( __DIR__ . "/tx-onepager.php" );