Skip to content

Commit 81cf721

Browse files
committed
update 1
1 parent d3cdbc0 commit 81cf721

File tree

5 files changed

+79
-0
lines changed

5 files changed

+79
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM wordpress:latest
2+
COPY ./index.php /usr/src/wordpress/unique_wp_query.php
3+
COPY ./test_theme /usr/src/wordpress/wp-content/themes/testtheme
4+
RUN rm -rf /usr/local/etc/php/conf.d/opcache-recommended.ini

test_theme/footer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<footer>
2+
<div id="footer">© <?php date('Y'); ?> <?php bloginfo('name'); ?> Theme is copyrighted to Vincy.</div>
3+
</footer>
4+
</div>
5+
</div>
6+
<?php wp_footer(); ?>
7+
</body>
8+
</html>

test_theme/header.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<html>
2+
<head>
3+
<meta charset="<?php bloginfo( 'charset' ); ?>">
4+
<title><?php bloginfo('name'); ?><?php wp_title( '|', true, 'left' ); ?></title>
5+
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
6+
<?php wp_head(); ?>
7+
</head>
8+
<body>
9+
<div align="center">
10+
<div id="inner">
11+
<header>
12+
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo bloginfo('name'); ?>" rel="home">
13+
<h1><?php bloginfo( 'name' ); ?></h1>
14+
</a>
15+
</header>

test_theme/index.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
get_header(); ?>
3+
<div id="contentArea">
4+
<div id="mainContent">
5+
<?php while ( have_posts() ) : the_post(); ?>
6+
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title() ?></a></h2>
7+
<?php the_content() ?>
8+
<?php endwhile; ?>
9+
</div>
10+
<?php get_sidebar(); ?>
11+
</div>
12+
<?php get_footer(); ?>

test_theme/style.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
Theme Name: SharpEdge
3+
Theme URI: http://localhost:85/wordpress/themes/sharpEdge
4+
Version: 0.1
5+
Author: Vincy
6+
Author URI: https://phppot.com/
7+
Description: A Minimal WordPress Theme.
8+
Tags: minimal, simple, responsive, light-weight
9+
Text Domain: sharpEdge
10+
*/
11+
a {
12+
color: #A0A0A0;
13+
text-decoration: none;
14+
}
15+
#inner {
16+
width: 778px;
17+
text-align: left;
18+
}
19+
#contentArea {
20+
border-top: #CCCCCC 2px solid;
21+
overflow:hidden
22+
}
23+
#mainContent {
24+
float:left;
25+
width: 70%;
26+
}
27+
#sidebar {
28+
float: right;
29+
width: 28%;
30+
padding-left: 3px;
31+
padding-bottom:100%;
32+
margin-bottom:-100%;
33+
background-color: #DDDDDD;
34+
}
35+
#footer {
36+
clear:both;
37+
padding: 2px;
38+
color: #DDDDDD;
39+
background-color: #000000;
40+
}

0 commit comments

Comments
 (0)