diff --git a/404.php b/404.php index 379f06a..2015b09 100644 --- a/404.php +++ b/404.php @@ -5,6 +5,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + get_header(); $container = get_theme_mod( 'understrap_container_type' ); diff --git a/archive.php b/archive.php index 68f009c..cd7854e 100644 --- a/archive.php +++ b/archive.php @@ -7,6 +7,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + get_header(); ?> diff --git a/author.php b/author.php index 8e60728..76ab557 100644 --- a/author.php +++ b/author.php @@ -7,6 +7,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + get_header(); $container = get_theme_mod( 'understrap_container_type' ); ?> diff --git a/comments.php b/comments.php index efecf87..f8500d7 100644 --- a/comments.php +++ b/comments.php @@ -8,6 +8,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + /* * If the current post is protected by a password and * the visitor has not yet entered the password we will diff --git a/footer.php b/footer.php index bcf0f64..92c7be0 100644 --- a/footer.php +++ b/footer.php @@ -7,6 +7,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + $container = get_theme_mod( 'understrap_container_type' ); ?> diff --git a/functions.php b/functions.php index 18b407f..a86173d 100644 --- a/functions.php +++ b/functions.php @@ -5,6 +5,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + /** * Initialize theme default settings */ diff --git a/global-templates/hero.php b/global-templates/hero.php index dbfae79..fb02503 100644 --- a/global-templates/hero.php +++ b/global-templates/hero.php @@ -5,6 +5,9 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} ?> diff --git a/global-templates/left-sidebar-check.php b/global-templates/left-sidebar-check.php index aa9afb1..a8e9669 100644 --- a/global-templates/left-sidebar-check.php +++ b/global-templates/left-sidebar-check.php @@ -5,6 +5,9 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} ?> diff --git a/gulpconfig.json b/gulpconfig.json index 249ae4f..bb55944 100644 --- a/gulpconfig.json +++ b/gulpconfig.json @@ -12,7 +12,7 @@ "js": "./js", "css": "./css", "img": "./img", - "imgsrc": "./src/img", + "imgsrc": "./src/img", "sass": "./sass", "node": "./node_modules/", "bower": "./bower_components/", diff --git a/header.php b/header.php index f93c894..83cbb0d 100644 --- a/header.php +++ b/header.php @@ -7,6 +7,10 @@ * @package understrap */ +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + $container = get_theme_mod( 'understrap_container_type' ); ?> @@ -29,7 +33,7 @@ $container = get_theme_mod( 'understrap_container_type' );
- +