commit eec53627170d01dab321835e5fba1958fda783a8 Author: Aaron Yarborough Date: Mon Dec 17 16:30:35 2018 +0000 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b181ec --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +*.log +wp-config.php +wp-content/advanced-cache.php +wp-content/backup-db/ +wp-content/backups/ +wp-content/blogs.dir/ +wp-content/cache/ +wp-content/upgrade/ +wp-content/uploads/ +wp-content/mu-plugins/ +wp-content/wp-cache-config.php +wp-content/plugins/hello.php + +/.htaccess +/license.txt +/readme.html +/sitemap.xml +/sitemap.xml.gz + diff --git a/README.md b/README.md new file mode 100644 index 0000000..52dbf5d --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +graal-archive diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..c365ebe --- /dev/null +++ b/comments.php @@ -0,0 +1,48 @@ + + +
+ +

+ ' . get_the_title() . '' + ); + ?> +

+ +
    + 'ul', + 'short_ping' => true, + 'avatar_size' => 30, + )); + ?> +
+ + 1 && get_option('page_comments')) : + ?> + + + + +

+ + + + + + +
\ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..80a236a --- /dev/null +++ b/footer.php @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..b4d43d6 --- /dev/null +++ b/functions.php @@ -0,0 +1,33 @@ + +> + + + + + + G-Archive - Graal's player-made content archive + + + +> + +
+
+
+
+ + + +
+
+
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/helpers.php b/helpers.php new file mode 100644 index 0000000..d472973 --- /dev/null +++ b/helpers.php @@ -0,0 +1,20 @@ + + +
+
+ + +
+ +

+
+
+ + +
 
+ +
+
+ + +
+

Uhhh...

+

There are no posts to show right now! Check back later.

+
+ +
+
+ + \ No newline at end of file diff --git a/metabox.php b/metabox.php new file mode 100644 index 0000000..66880b3 --- /dev/null +++ b/metabox.php @@ -0,0 +1,31 @@ + 'extra_post_options', + 'title' => __('Extra Post Options', 'garchive'), + 'post_types' => array('post'), + 'context' => 'normal', + 'priority' => 'high', + 'autosave' => 'false', + 'fields' => array( + array( + 'id' => $prefix . 'creators', + 'type' => 'textarea', + 'name' => __('Creators', 'garchive'), + 'description' => __('A list of creators invovled in making the content.', 'garchive') + ), + array( + 'id' => $prefix . 'source', + 'type' => 'text', + 'name' => __('Source', 'garchive'), + 'description' => __('A link to the original content source.', 'garchive') + ) + ) + ); + + return $meta_boxes; +}); + +?> \ No newline at end of file diff --git a/scripts/main.js b/scripts/main.js new file mode 100644 index 0000000..55a0ea9 --- /dev/null +++ b/scripts/main.js @@ -0,0 +1,37 @@ +(function($) { + var postGrid, + search, + searchbox; + + $(document).ready(function() { + postGrid = $('#postGrid'); + search = $('#search'); + searchbox = $('#searchBox') + + initPostGrid(postGrid, '.gar-post-box'); + initSearch('a[data-toggle=search]', search, searchbox); + }); + + function initSearch(toggleSelector, search, searchbox) { + $(toggleSelector).click(function(e) { + e.preventDefault(); + + search.toggleClass('open'); + if (search.hasClass('open')) { + searchbox.focus(); + } + }); + } + + function initPostGrid(grid, itemSelector) { + // Don't init masonry if there are no items + if (!$(itemSelector).length) + return; + + grid.masonry({ + itemSelector: itemSelector, + percentPosition: true, + gutter: 20 + }); + } +})(jQuery); \ No newline at end of file diff --git a/single.php b/single.php new file mode 100644 index 0000000..e237d6e --- /dev/null +++ b/single.php @@ -0,0 +1,31 @@ + + +
+ +

+ + + +
+ +

 

+ + + +

 

+ +
+ +
+ + + +
+ + +
+ + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..b3e712b --- /dev/null +++ b/style.css @@ -0,0 +1,186 @@ +/* +Theme Name: gArchive +Author: Aaron Yarborough +Author URI: http://aaronjy.me +Description: Theme for gArchive +Version: 2 +Text Domain: garchive +*/ + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Bitter', serif; +} + +html, +body { + font-family: 'Montserrat', sans-serif; +} + +a { + color: rgb(25, 145, 99); + font-weight: bold; + transition: .3s color; + text-decoration: none !important; +} + +a:hover { + color: rgb(34, 211, 143); +} + +.gar-list-flat { + margin: 0; + padding: 0; + list-style: none; +} + +.gar-list-flat li { + display: inline-block; +} + +.gar-header-title { + font-size: 40px; + font-family: 'Bitter', serif; + font-weight: 600; +} + +.gar-header-title a { + color: #111; +} + +.gar-header-nav { + margin: 20px 0; +} + +.gar-header-nav li { + margin: 0 10px; +} + +#postGrid .gar-post-box { + width: calc(50% - 10px); + margin-bottom: 20px; + display: inline-block; +} + +.gar-post-box { + padding: 15px; +} + +.gar-post-box-author { + color: #888; +} + +.gar-header { + margin-top: 30px; + margin-bottom: 40px; +} + +.gar-footer { + margin-top: 40px; + padding: 20px 0; + background-color: #111; + color: #fff !important; +} + +.gar-post-subtitle { + color: #777; + margin-top: 20px; +} + +.gar-post-subtitle p { + margin-bottom: 5px; +} + +.gar-post-box-category a { + font-weight: 400; + font-size: 14px; +} + +.comments-title { + font-size: 20px; + margin-bottom: 20px; +} + +.commentlist { + list-style: none; + padding: 0; +} + +.commentlist .comment { + margin-bottom: 20px; +} + +.comment-form-comment>label { + display: block; +} + +.single h2 { + margin-top: 40px; + margin-bottom: 25px; +} + +.wp-block-code { + max-height: 500px; +} + +pre { + font-size: 72.5%; +} + +#search { + width: 100%; + height: 100px; + padding: 30px; + display: flex; + align-items: center; + position: relative; + margin-top: -100px; + transition: 0.5s margin-top; +} + +#search.open { + margin-top: 0; +} + +#searchBox { + width: 100%; + height: 100%; + box-sizing: border-box; + border: none; + border-bottom: 1px solid #111; + background-color: #fff; +} + +#searchBtn { + width: 100%; + height: 100%; + font-family: 'Montserrat', sans-serif; + font-size: 15px; + font-weight: bold; + border: 0; + padding: 8px; + color: #fff; + background-color: #111; +} + +#comment { + max-width: 100%; +} + +@media only screen and (max-width: 767px) { + #postGrid .gar-post-box { + width: 100%; + margin-bottom: 20px; + } +} + +@media only screen and (max-width: 575px) { + #searchBox { + padding: 5px; + margin-bottom: 5px; + } +} \ No newline at end of file diff --git a/template-homepage.php b/template-homepage.php new file mode 100644 index 0000000..c8acea4 --- /dev/null +++ b/template-homepage.php @@ -0,0 +1,41 @@ + + + -1, + 'post_type' => 'post' + )); + +?> + + + +
+
+ have_posts()): $posts->the_post() ?> +
+ +

+
+
+ + + +
 
+ + +
+
+ +
+
+ + + \ No newline at end of file