Skip to content

Commit d58e275

Browse files
committed
init
0 parents  commit d58e275

28 files changed

Lines changed: 1204 additions & 0 deletions

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_store
2+
.srv/*
3+
!.srv/custom.ini
4+
/plugins/akismet
5+
/plugins/hello.php
6+
/themes/twenty*/

.srv/custom.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
file_uploads: On;
2+
memory_limit: 1024M;
3+
upload_max_filesize: 1024M;
4+
post_max_size: 1024M;
5+
max_execution_time: 600;
6+
max_input_time: 2000;

docker-compose.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
services:
2+
mysql:
3+
image: mysql:latest
4+
restart: always
5+
environment:
6+
MYSQL_ROOT_PASSWORD: wordpress
7+
MYSQL_DATABASE: gamestore
8+
MYSQL_USER: Admin
9+
MYSQL_PASSWORD: Admin123
10+
ports:
11+
- "3306:3306"
12+
volumes:
13+
- ./.srv/database:/var/lib/mysql
14+
15+
wordpress:
16+
image: wordpress:latest
17+
restart: always
18+
environment:
19+
WORDPRESS_DB_HOST: mysql:3306
20+
WORDPRESS_DB_USER: Admin
21+
WORDPRESS_DB_PASSWORD: Admin123
22+
WORDPRESS_DB_NAME: gamestore
23+
ports:
24+
- "8000:80"
25+
volumes:
26+
- ./.srv/wordpress:/var/www/html
27+
- ./.srv/custom.ini:/usr/local/etc/php/conf.d/custom.ini
28+
- './themes/:/var/www/html/wp-content/themes/'
29+
- './plugins/:/var/www/html/wp-content/plugins/'
30+
- './mu-plugins/:/var/www/html/wp-content/mu-plugins/'
31+
depends_on:
32+
- mysql
33+
links:
34+
- mysql
35+
phpmyadmin:
36+
image: phpmyadmin/phpmyadmin
37+
environment:
38+
MYSQL_USERNAME: Admin
39+
MYSQL_ROOT_PASSWORD: wordpress
40+
PMA_HOST: mysql
41+
PHA_HOSTS: mysql
42+
ports:
43+
- "8080:80"
44+
depends_on:
45+
- mysql
46+
links:
47+
- mysql
35.6 KB
Loading
86.4 KB
Loading
8.48 KB
Loading

themes/game-store/functions.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Functions and definitions
4+
*
5+
* @link https://developer.wordpress.org/themes/basics/theme-functions/
6+
*
7+
* @package game-store
8+
* @since 1.0.0
9+
*/
10+
11+
/**
12+
* Enqueue the CSS files.
13+
*
14+
* @since 1.0.0
15+
*
16+
* @return void
17+
*/
18+
function game_store_styles() {
19+
wp_enqueue_style(
20+
'game-store-style',
21+
get_stylesheet_uri(),
22+
[],
23+
wp_get_theme()->get( 'Version' )
24+
);
25+
}
26+
add_action( 'wp_enqueue_scripts', 'game_store_styles' );

themes/game-store/index.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/**
3+
* This file has been left empty on purpose.
4+
*
5+
* @link https://core.trac.wordpress.org/ticket/54272
6+
*
7+
* @package game-store
8+
* @since 1.0.0
9+
*/

themes/game-store/license.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- wp:pattern {"slug":"game-store/hidden-footer"} /-->

0 commit comments

Comments
 (0)