Skip to content

Commit 0284f32

Browse files
committed
Initial commit
0 parents  commit 0284f32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+6445
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

404.php

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
/**
3+
* The template for displaying 404 pages (not found)
4+
*
5+
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
6+
*
7+
* @package Gutenbergtheme
8+
*/
9+
10+
get_header(); ?>
11+
12+
<main id="primary" class="site-main">
13+
14+
<section class="error-404 not-found">
15+
<header class="page-header">
16+
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'cortila' ); ?></h1>
17+
</header><!-- .page-header -->
18+
19+
<div class="page-content">
20+
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'cortila' ); ?></p>
21+
22+
<?php
23+
get_search_form();
24+
25+
the_widget( 'WP_Widget_Recent_Posts' );
26+
?>
27+
28+
<div class="widget widget_categories">
29+
<h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'cortila' ); ?></h2>
30+
<ul>
31+
<?php
32+
wp_list_categories( array(
33+
'orderby' => 'count',
34+
'order' => 'DESC',
35+
'show_count' => 1,
36+
'title_li' => '',
37+
'number' => 10,
38+
) );
39+
?>
40+
</ul>
41+
</div><!-- .widget -->
42+
43+
<?php
44+
45+
/* translators: %1$s: smiley */
46+
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'cortila' ), convert_smilies( ':)' ) ) . '</p>';
47+
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
48+
49+
the_widget( 'WP_Widget_Tag_Cloud' );
50+
?>
51+
52+
</div><!-- .page-content -->
53+
</section><!-- .error-404 -->
54+
55+
</main><!-- #primary -->
56+
57+
<?php
58+
get_footer();

LICENSE

+339
Large diffs are not rendered by default.

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Gutenberg theme
2+
This theme is designed to showcase what Gutenberg can do with regards to themes. It is intended as a work in progress, at least until v1 of the new editor (and maybe beyond).
3+
4+
# Block focused
5+
If something isn't a block yet, this theme will not have it. As each block happens, the theme will gain that functionality.
6+
7+
# Styling just like Gutenberg
8+
The idea of the default look for this theme is to as closely replicate that of the Gutenberg editor output as possible. As a result the focus is on that styling not creating a new look.. yet. As things grow, we may have styles and go further into what the theme can have... who knows.

archive.php

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
/**
3+
* The template for displaying archive pages
4+
*
5+
* @link https://codex.wordpress.org/Template_Hierarchy
6+
*
7+
* @package Gutenbergtheme
8+
*/
9+
10+
get_header(); ?>
11+
12+
<main id="primary" class="site-main">
13+
14+
<?php
15+
if ( have_posts() ) : ?>
16+
17+
<header class="page-header">
18+
<?php
19+
the_archive_title( '<h1 class="page-title">', '</h1>' );
20+
the_archive_description( '<div class="archive-description">', '</div>' );
21+
?>
22+
</header><!-- .page-header -->
23+
24+
<?php
25+
/* Start the Loop */
26+
while ( have_posts() ) : the_post();
27+
28+
/*
29+
* Include the Post-Format-specific template for the content.
30+
* If you want to override this in a child theme, then include a file
31+
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
32+
*/
33+
get_template_part( 'template-parts/content', 'loop' );
34+
35+
endwhile;
36+
37+
the_posts_navigation();
38+
39+
else :
40+
41+
get_template_part( 'template-parts/content', 'none' );
42+
43+
endif; ?>
44+
45+
</main><!-- #primary -->
46+
47+
<?php
48+
get_footer();

assets/css/main-admin.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/vendor/chocolat.css

+190
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
.chocolat-zoomable.chocolat-zoomed{
2+
cursor : zoom-out;
3+
}
4+
.chocolat-open{
5+
overflow: hidden;
6+
}
7+
.chocolat-overlay{
8+
height:100%;
9+
width:100%;
10+
position:fixed;
11+
left:0;
12+
top:0;
13+
z-index:10;
14+
background-color:#fff;
15+
display: none;
16+
opacity: 0.8;
17+
}
18+
.chocolat-wrapper{
19+
height:100%;
20+
width:100%;
21+
position:fixed;
22+
display: none;
23+
left:0;
24+
top:0;
25+
z-index:16;
26+
color: #fff;
27+
}
28+
.chocolat-zoomable .chocolat-img{
29+
cursor : zoom-in;
30+
}
31+
.chocolat-loader{
32+
height:32px;
33+
width:32px;
34+
position:absolute;
35+
left:50%;
36+
top:50% ;
37+
margin-left:-16px;
38+
margin-top:-16px;
39+
z-index:11;
40+
background:url(../../images/loader.gif);
41+
display:none;
42+
}
43+
.chocolat-content{
44+
position:fixed;
45+
width:0px;
46+
height:0px;
47+
left:50%;
48+
top:50%;
49+
z-index:14;
50+
text-align: left;
51+
}
52+
53+
.chocolat-content .chocolat-img{
54+
position:absolute;
55+
width:100%;
56+
height:100%;
57+
}
58+
.chocolat-wrapper .chocolat-left{
59+
position:absolute;
60+
left:0;
61+
width:50px;
62+
height:100px;
63+
top: 50%;
64+
margin-top: -50px;
65+
cursor:pointer;
66+
background:url(../../images/left.png) 50% 50% no-repeat;
67+
z-index: 17;
68+
display: none;
69+
70+
}
71+
.chocolat-wrapper .chocolat-right{
72+
position:absolute;
73+
right:0;
74+
width:50px;
75+
height:100px;
76+
top: 50%;
77+
margin-top: -50px;
78+
cursor:pointer;
79+
background:url(../../images/right.png) 50% 50% no-repeat;
80+
z-index: 17;
81+
display: none;
82+
}
83+
.chocolat-wrapper .chocolat-right.active{
84+
display: block;
85+
}
86+
.chocolat-wrapper .chocolat-left.active{
87+
display: block;
88+
}
89+
.chocolat-wrapper .chocolat-top{
90+
position:absolute;
91+
top:0px;
92+
right: 0;
93+
left: 0;
94+
line-height:50px;
95+
height:50px;
96+
overflow: hidden;
97+
z-index: 17;
98+
margin-bottom: 10px;
99+
}
100+
.chocolat-wrapper .chocolat-close{
101+
width:50px;
102+
height:50px;
103+
cursor:pointer;
104+
position: absolute;
105+
top: 0;
106+
right: 0;
107+
background:url(../../images/close.png) 50% 50% no-repeat;
108+
}
109+
.chocolat-wrapper .chocolat-bottom{
110+
position:absolute;
111+
bottom:0;
112+
left: 0;
113+
right: 0;
114+
line-height:40px;
115+
height:40px;
116+
font-size:12px;
117+
z-index: 17;
118+
padding-left: 15px;
119+
padding-right: 15px;
120+
background: rgba(0, 0, 0, 0.2);
121+
text-align: right;
122+
margin-top: 10px;
123+
}
124+
.chocolat-wrapper .chocolat-set-title{
125+
display: inline-block;
126+
padding-right: 15px;
127+
line-height: 1;
128+
border-right: 1px solid rgba(255, 255, 255, 0.3);
129+
}
130+
.chocolat-wrapper .chocolat-pagination{
131+
float: right;
132+
display: inline-block;
133+
padding-left: 15px;
134+
padding-right: 15px;
135+
margin-right: 15px;
136+
/*border-right: 1px solid rgba(255, 255, 255, 0.2);*/
137+
}
138+
.chocolat-wrapper .chocolat-fullscreen{
139+
width: 16px;
140+
height: 40px;
141+
background: url(../../images/fullscreen.png) 50% 50% no-repeat;
142+
display: block;
143+
margin:auto;
144+
cursor: pointer;
145+
float: right;
146+
}
147+
.chocolat-wrapper .chocolat-description{
148+
display: inline-block;
149+
float: left;
150+
}
151+
152+
/* no container mode*/
153+
body.chocolat-open>.chocolat-overlay{
154+
z-index:15;
155+
}
156+
body.chocolat-open>.chocolat-loader{
157+
z-index:15;
158+
}
159+
body.chocolat-open>.chocolat-content{
160+
z-index:17;
161+
}
162+
163+
/* container mode*/
164+
.chocolat-in-container .chocolat-wrapper,
165+
.chocolat-in-container .chocolat-content,
166+
.chocolat-in-container .chocolat-overlay{
167+
position: absolute;
168+
}
169+
.chocolat-in-container{
170+
position: relative;
171+
}
172+
173+
/* uncomment to hide controls when zoomed-in*/
174+
/*
175+
.chocolat-zoomable .chocolat-top,
176+
.chocolat-zoomable .chocolat-bottom,
177+
.chocolat-zoomable .chocolat-right,
178+
.chocolat-zoomable .chocolat-left {
179+
transition: opacity .3s ease, visibility 0s .3s;
180+
opacity: 1;
181+
}
182+
183+
.chocolat-zoomable.chocolat-zoomed .chocolat-top,
184+
.chocolat-zoomable.chocolat-zoomed .chocolat-bottom,
185+
.chocolat-zoomable.chocolat-zoomed .chocolat-right,
186+
.chocolat-zoomable.chocolat-zoomed .chocolat-left {
187+
visibility: hidden;
188+
opacity: 0;
189+
}
190+
*/

assets/css/vendor/swiper.min.css

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)