Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": [ "@babel/preset-env" ],
"compact": false
}
29 changes: 29 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# A set of files you probably don't want in your WordPress.org distribution
.distignore
.editorconfig
.git
.gitignore
.gitlab-ci.yml
.travis.yml
.DS_Store
Thumbs.db
behat.yml
bin
circle.yml
composer.json
composer.lock
Gruntfile.js
package.json
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
phpcs.ruleset.xml
README.md
wp-cli.local.yml
tests
vendor
node_modules
*.sql
*.tar.gz
*.zip
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
node_modules
npm-debug.log
dist
*.swp
.cache
.idea
.yarn-error.log
15 changes: 8 additions & 7 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,29 @@
* The template for displaying 404 pages (not found)
*
* @package GWT
* @since Government Website Template 2.0
* @since Government Website Template 2.0
*/

get_header();
?>

<div id="main-content" class="row container-main" >
<div class="large-2 medium-2 columns"><p></p></div>

<div class="large-8 medium-8 columns">
<div class="notfound">
<h1 class="page-title"><?php _e( 'Sorry, the page you are looking for cannot be found', 'gwt_wp' ); ?></h1>
<h1 class="page-title"><?php esc_html_e( 'Sorry, the page you are looking for cannot be found', 'gwt_wp' ); ?></h1>

<div class="page-content notfound">
<p>The page you requested may have been moved to a new location or removed from the site.
<br>Go back to the <a href="<?php echo esc_url(home_url())?>">HOME PAGE</a> or find what you are looking for in the search box below.</p>
<br>Go back to the <a href="<?php echo esc_url( home_url() ); ?>">HOME PAGE</a> or find what you are looking for in the search box below.</p>
<aside class="search-404"><?php get_search_form(); ?></aside>
</div>
</div>
</div>

<div class="large-2 medium-2 columns"><p></p></div>
</div>

<?php get_footer(); ?>
<?php
get_footer();
66 changes: 65 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,70 @@
#Government Web Template (GWT) for WordPress
# Gumaca Government Web Template

Gumaca Government Web Template is a WordPress theme that complies with the
Uniform Website Content Policy (UWCP) of the government of the Philippines.
This theme is based on [GWT for WordPress](https://github.com/iGovPhil/gwt-wordpress).

## Project Status

The goal of this project is to produce a WordPress theme that (1) complies with
the UWCP and (2) complies with WordPress standards enough to have it published
in the official theme repository.

Much of the work done thus far is setting up build tools and cleaning up the
code.

## Getting Started

### Clone the repo.
```
cd <path to wp-content/themes>
git clone https://github.com/gumacahin/gumacagwt/
```

### Install javascript dependencies.
```
yarn
```

### Install php dependencies.
```
composer install
```

### Start dev server
```
yarn start
```

### Export bundle
```
yarn build
```

```
yarn bundle
```

Bundled theme files will be in the `wp-content/themes` directory.


## TODOs

* Streamline build
* Add tests
* Optimize
* WP code standards

PRs are welcome.

## Built with

* [Foundation for Sites](https://github.com/foundation/foundation-sites)

## GWT for WordPress README.md

Use this as a a guide for creating your banner slider images:

- Image should be inserted as a featured image, full size
- Caption input is on the title field
- Linked article should be indicated in the content field
Expand Down
Loading