Skip to content

Commit

Permalink
Remove symlink, add core
Browse files Browse the repository at this point in the history
  • Loading branch information
seothemes committed Jun 22, 2019
1 parent a07bbcc commit d7765fa
Show file tree
Hide file tree
Showing 24 changed files with 64 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Expand Up @@ -77,6 +77,7 @@ do-not-edit/vendor/seothemes/core/.gitignore export-ignore
do-not-edit/vendor/seothemes/core/CHANGELOG.md export-ignore
do-not-edit/vendor/seothemes/core/composer.json export-ignore
do-not-edit/vendor/seothemes/core/README.md export-ignore
do-not-edit/vendor/seothemes/core/docs/ export-ignore

do-not-edit/vendor/tgmpa/tgm-plugin-activation/.editorconfig export-ignore
do-not-edit/vendor/tgmpa/tgm-plugin-activation/.scrutinizer.yml export-ignore
Expand Down
1 change: 0 additions & 1 deletion do-not-edit/vendor/seothemes/core

This file was deleted.

Binary file added do-not-edit/vendor/seothemes/core/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
63 changes: 63 additions & 0 deletions do-not-edit/vendor/seothemes/core/docs/Example.php
@@ -0,0 +1,63 @@
<?php
/**
* Example of how to create a custom component which accepts a config.
*
* @package SeoThemes\GenesisStarterTheme
* @link https://seothemes.com/genesis-starter-theme
* @author SEO Themes
* @copyright Copyright © 2018 SEO Themes
* @license GPL-3.0-or-later
*/

namespace SeoThemes\GenesisStarterTheme;

use SeoThemes\Core\Component;

/**
* Example of how to create a custom component.
*
* Example config (usually located at config/defaults.php):
*
* ```
* $core_example = [
* Example::SUB_CONFIG => [
* Example::KEY => 'value',
* ],
* ];
*
* return [
* Example::class => $core_example,
* ];
* ```
*/
class Example extends Component {

const SUB_CONFIG = 'sub-config';
const KEY = 'key';

/**
* Initialize class.
*
* @since 3.3.0
*
* @return void
*/
public function init() {
if ( array_key_exists( self::SUB_CONFIG, $this->config ) ) {
$this->test( $this->config[ self::SUB_CONFIG ] );
}
}

/**
* Example method.
*
* @since 3.3.0
*
* @param array $config Components sub config.
*
* @return void
*/
protected function test( $config ) {
printf( '%s is the value of %s', $config[ self::KEY ], self::KEY );
}
}

0 comments on commit d7765fa

Please sign in to comment.