-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added composer.jsonMoved uikit to vendor folder. Added Carbon Fields.…
… Updated installation notes in README.md. Deleted lib folder.
- Loading branch information
Showing
8 changed files
with
303 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"require": { | ||
"squizlabs/php_codesniffer": "*", | ||
"htmlburger/carbon-fields": "^3.1", | ||
"uikit/uikit": "^3.1" | ||
}, | ||
"scripts": { | ||
"install-wpcs": [ | ||
"composer create-project wp-coding-standards/wpcs --no-dev", | ||
"./vendor/bin/phpcs --config-set installed_paths ./wpcs" | ||
] | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* Add Theme optiions using Carbon Fields. | ||
* | ||
* @link https://github.com/htmlburger/carbon-fields-docs/tree/master/documentation | ||
* | ||
* @package ThemeWPUGPH | ||
*/ | ||
|
||
use Carbon_Fields\Container; | ||
use Carbon_Fields\Field; | ||
|
||
/** | ||
* Add options used in theme. | ||
* | ||
* @return void | ||
*/ | ||
function themewpugph_options() { | ||
Container::make( 'theme_options', __( 'Theme Options', 'themewpugph' ) ) | ||
->add_fields( | ||
array( | ||
Field::make( 'text', 'themewpugph_org_name', 'Organization Name' ), | ||
Field::make( 'date', 'themewpugph_org_year', 'Year of Foundation' ) | ||
->set_input_format( 'Y', 'Y' ) | ||
->set_storage_format( 'Y' ), | ||
) | ||
); | ||
} | ||
add_action( 'carbon_fields_register_fields', 'themewpugph_options' ); |
Submodule uikit
deleted from
109a9b