Skip to content

Commit

Permalink
Merge pull request #133 from infinum/development
Browse files Browse the repository at this point in the history
v3.0.1 release
  • Loading branch information
dingo-d authored Apr 23, 2019
2 parents 7872432 + f206377 commit 40d10b2
Show file tree
Hide file tree
Showing 27 changed files with 780 additions and 351 deletions.
158 changes: 158 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# Change Log for the Eightshift WordPress Boilerplate

All notable changes to this project will be documented in this file.

This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).

## [Unreleased]

_No documentation available about unreleased changes as of yet._

## [3.0.1] - 2019-04-23

### Added

- Added code of conduct
- Minor phpcs fixes
- Added changelog
- Added widget class
- Minor updates to setup script
- Added flex grid mixin

### Changed

- phpcs.xml.dist ruleset name change
- Refactored scss assets
- Minor refactor in excerpt class

### Removed

- Remove jQuery override so that the theme obey wordpress.org rules

### Fixed

- Minor webpack config fix

## [3.0.0] - 2019-01-03

### Added

- Added setup wizard guide for easier theme setup

### Changed

- Travis update
- phpcs fixes
- Renamed Infinum -> Eightshift, since that is our new brand
- Updates in package.json and composer.json
- phpcs.xml.dist updates
- Added husky for precommit scripts
- Added object helper
- Cleaned assets

### Deprecated

- Boilerplate acts as a standalone theme now

### Removed

- Replaced `file_get_contents` with `file` (for support)

### Fixed

## [2.1.1] - 2018-05-03

### Added

- Travis integration
- Issue and contributing template
- Change color admin based on the environment (dev, staging, production)
- Added phpcs.xml.dist for the project
- Added validate xml helper for svg uploads
- Added lazy loading images feature

### Changed

- License update
- Small codebase changes
- Changes in @since tags

### Removed

- ACF functionality from the boilerplate
- jQuery webpack exposing due to admin issues

### Fixed

- Autoloader path fix
- Fixed setup script
- Fixed rename script
- Minor phpcs fixes

### Security

## [2.0.1] - 2018-02-07

### Added

- Locale class for translation handling
- Assets cache busting

### Changed

- Updated readme
- Updated eslintrc
- Updated stylelintrc
- Updated .gitignore
- Updated coding standards, added composer scripts

### Removed

- Removed ACF class from the boilerplate
- Removed unnecessary register_global_theme_options_variable method that set global variable

## [2.0.0] - 2018-01-19

This build is a breaking change in comparison to v1.0.0 (procedural -> OOP)

### Added

- Added namespaces, autoloader, webpack 3+
- Added import/export scripts
- Added project setup script
- Added util class
- Added ACF class
- Added theme options and helpers

### Changed

- Changed codebase to OOP
- Readme update
- Updated documentation
- .gitignore file update
- Asset update

### Deprecated

- Removed procedural code and updated the codebase to OOP

### Removed

- Removed jQuery from WP (used webpack to bundle it)

### Fixed

- Rename scripts minor fix with theme package name (shell script)
- Indentation fix

## [1.0.0] - 2018-01-03

Initial tagged release.

[Unreleased]: https://github.com/infinum/wp-boilerplate/compare/master...HEAD
[3.0.1]: https://github.com/infinum/wp-boilerplate/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/infinum/wp-boilerplate/compare/2.1.1...3.0.0
[2.1.1]: https://github.com/infinum/wp-boilerplate/compare/2.0.1...2.1.1
[2.0.1]: https://github.com/infinum/wp-boilerplate/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/infinum/wp-boilerplate/compare/1.0.0...2.0.0
[1.0.0]: https://github.com/infinum/wp-boilerplate/compare/26115acf804876208a03dc39298b70476dcc780f...1.0.0
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
17 changes: 11 additions & 6 deletions admin/class-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function enable_mime_types( $mimes ) {
* @param array $response Array of prepared attachment data.
* @param int|object $attachment Attachment ID or object.
*
* @since 3.0.1 Adding theme review comments.
* @since 3.0.0 Replacing file_get_content with file.
* @since 2.0.2 Added checks if xml file is valid.
* @since 1.0.0
Expand All @@ -74,6 +75,8 @@ public function enable_svg_library_preview( $response, $attachment ) {
$svg_content = implode( ' ', $svg_content );

if ( ! $this->is_valid_xml( $svg_content ) ) {

/* translators: path to file. */
new \WP_Error( sprintf( esc_html__( 'Error: File invalid: %s', 'inf_theme' ), $path ) );
return false;
}
Expand All @@ -89,13 +92,15 @@ public function enable_svg_library_preview( $response, $attachment ) {

// media single.
$response['sizes']['full'] = array(
'height' => $height,
'width' => $width,
'url' => $src,
'orientation' => $height > $width ? 'portrait' : 'landscape',
'height' => $height,
'width' => $width,
'url' => $src,
'orientation' => $height > $width ? 'portrait' : 'landscape',
);
}
} catch ( \Exception $e ) {

/* translators: Exception error description. */
new \WP_Error( sprintf( esc_html__( 'Error: %s', 'inf_theme' ), $e ) );
}
}
Expand All @@ -122,8 +127,8 @@ public function check_svg_on_media_upload( $response ) {
if ( file_exists( $path ) ) {
if ( ! $this->is_valid_xml( $svg_content ) ) {
return array(
'size' => $response,
'name' => $response['name'],
'size' => $response,
'name' => $response['name'],
);
}
}
Expand Down
33 changes: 0 additions & 33 deletions admin/class-users.php

This file was deleted.

36 changes: 36 additions & 0 deletions admin/class-widget.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* The Widget specific functionality.
*
* @since 3.0.1 Changed the name from Widgets to Widget.
* @since 1.0.0
* @package Inf_Theme\Admin
*/

namespace Inf_Theme\Admin;

/**
* Class Widget
*/
class Widget {

/**
* Set up widget areas
*
* @since 1.0.0
*/
public function register_widget_position() {
register_sidebar(
array(
'name' => esc_html__( 'Blog', 'inf_theme' ),
'id' => 'blog',
'description' => esc_html__( 'Description', 'inf_theme' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
)
);
}

}
35 changes: 0 additions & 35 deletions admin/class-widgets.php

This file was deleted.

Loading

0 comments on commit 40d10b2

Please sign in to comment.