@@ -16,11 +16,11 @@ |
||
16 | 16 | <div class="entry-content"> |
17 | 17 | <?php the_content(); ?> |
18 | 18 | <?php |
19 | - wp_link_pages( array( |
|
20 | - 'before' => '<div class="page-links">' . __( 'Pages:', 'stash' ), |
|
21 | - 'after' => '</div>', |
|
22 | - ) ); |
|
23 | - ?> |
|
19 | + wp_link_pages( array( |
|
20 | + 'before' => '<div class="page-links">' . __( 'Pages:', 'stash' ), |
|
21 | + 'after' => '</div>', |
|
22 | + ) ); |
|
23 | + ?> |
|
24 | 24 | </div><!-- .entry-content --> |
25 | 25 | |
26 | 26 | <footer class="entry-footer"> |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
8 | 8 | <header class="entry-header"> |
9 | - <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
|
9 | + <?php the_title('<h1 class="entry-title">', '</h1>'); ?> |
|
10 | 10 | |
11 | 11 | <div class="entry-meta"> |
12 | 12 | <?php stash_posted_on(); ?> |
@@ -16,10 +16,10 @@ discard block |
||
16 | 16 | <div class="entry-content"> |
17 | 17 | <?php the_content(); ?> |
18 | 18 | <?php |
19 | - wp_link_pages( array( |
|
20 | - 'before' => '<div class="page-links">' . __( 'Pages:', 'stash' ), |
|
19 | + wp_link_pages(array( |
|
20 | + 'before' => '<div class="page-links">'.__('Pages:', 'stash'), |
|
21 | 21 | 'after' => '</div>', |
22 | - ) ); |
|
22 | + )); |
|
23 | 23 | ?> |
24 | 24 | </div><!-- .entry-content --> |
25 | 25 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $root_dir = dirname(__DIR__); |
3 | -$webroot_dir = $root_dir . '/web'; |
|
3 | +$webroot_dir = $root_dir.'/web'; |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Use Dotenv to set required environment variables and load .env file in root |
7 | 7 | */ |
8 | -if (file_exists($root_dir . '/.env')) { |
|
8 | +if (file_exists($root_dir.'/.env')) { |
|
9 | 9 | Dotenv::load($root_dir); |
10 | 10 | } |
11 | 11 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | define('WP_ENV', getenv('WP_ENV') ?: 'development'); |
19 | 19 | |
20 | -$env_config = __DIR__ . '/environments/' . WP_ENV . '.php'; |
|
20 | +$env_config = __DIR__.'/environments/'.WP_ENV.'.php'; |
|
21 | 21 | |
22 | 22 | if (file_exists($env_config)) { |
23 | 23 | require_once $env_config; |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | * Custom Content Directory |
34 | 34 | */ |
35 | 35 | define('CONTENT_DIR', '/app'); |
36 | -define('WP_CONTENT_DIR', $webroot_dir . CONTENT_DIR); |
|
37 | -define('WP_CONTENT_URL', WP_HOME . CONTENT_DIR); |
|
36 | +define('WP_CONTENT_DIR', $webroot_dir.CONTENT_DIR); |
|
37 | +define('WP_CONTENT_URL', WP_HOME.CONTENT_DIR); |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * DB settings |
@@ -70,5 +70,5 @@ discard block |
||
70 | 70 | * Bootstrap WordPress |
71 | 71 | */ |
72 | 72 | if (!defined('ABSPATH')) { |
73 | - define('ABSPATH', $webroot_dir . '/wp/'); |
|
73 | + define('ABSPATH', $webroot_dir.'/wp/'); |
|
74 | 74 | } |
75 | 75 | \ No newline at end of file |
@@ -4,6 +4,6 @@ |
||
4 | 4 | * This file is required in the root directory so WordPress can find it. |
5 | 5 | * WP is hardcoded to look in its own directory or one directory up for wp-config.php. |
6 | 6 | */ |
7 | -require_once(dirname(__DIR__) . '/vendor/autoload.php'); |
|
8 | -require_once(dirname(__DIR__) . '/config/application.php'); |
|
9 | -require_once(ABSPATH . 'wp-settings.php'); |
|
10 | 7 | \ No newline at end of file |
8 | +require_once(dirname(__DIR__).'/vendor/autoload.php'); |
|
9 | +require_once(dirname(__DIR__).'/config/application.php'); |
|
10 | +require_once(ABSPATH.'wp-settings.php'); |
|
11 | 11 | \ No newline at end of file |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | /** WordPress view bootstrapper */ |
3 | 3 | define('WP_USE_THEMES', true); |
4 | -require(__DIR__ . '/wp/wp-blog-header.php'); |
|
5 | 4 | \ No newline at end of file |
5 | +require(__DIR__.'/wp/wp-blog-header.php'); |
|
6 | 6 | \ No newline at end of file |