-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
258 additions
and
8 deletions.
There are no files selected for viewing
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,15 @@ | ||
<?php | ||
|
||
namespace Theme\Models; | ||
|
||
use Radiate\Database\Models\Term as Model; | ||
|
||
class Category extends Model | ||
{ | ||
/** | ||
* The taxonomy | ||
* | ||
* @var string | ||
*/ | ||
protected static $taxonomy = 'category'; | ||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace Theme\Models; | ||
|
||
use Radiate\Database\Models\Post as Model; | ||
|
||
class Page extends Model | ||
{ | ||
/** | ||
* The post type | ||
* | ||
* @var string | ||
*/ | ||
protected static $postType = 'page'; | ||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace Theme\Models; | ||
|
||
use Radiate\Database\Models\Post as Model; | ||
|
||
class Post extends Model | ||
{ | ||
/** | ||
* The post type | ||
* | ||
* @var string | ||
*/ | ||
protected static $postType = 'post'; | ||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace Theme\Models; | ||
|
||
use Radiate\Database\Models\Term as Model; | ||
|
||
class PostTag extends Model | ||
{ | ||
/** | ||
* The taxonomy | ||
* | ||
* @var string | ||
*/ | ||
protected static $taxonomy = 'post_tag'; | ||
} |
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,10 @@ | ||
<?php | ||
|
||
namespace Theme\Models; | ||
|
||
use Radiate\Database\Models\User as Model; | ||
|
||
class User extends Model | ||
{ | ||
// | ||
} |
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,20 @@ | ||
<?php | ||
|
||
namespace Theme\Providers; | ||
|
||
use Radiate\Foundation\Providers\ScheduleServiceProvider as ServiceProvider; | ||
use Radiate\Schedule\Schedule; | ||
|
||
class ScheduleServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Schedule events | ||
* | ||
* @param \Radiate\Schedule\Schedule $schedule | ||
* @return void | ||
*/ | ||
public function schedule(Schedule $schedule) | ||
{ | ||
// | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
namespace Theme\Providers; | ||
|
||
use Radiate\Support\ServiceProvider; | ||
|
||
class ThemeServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Register the services | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Boot the services | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
// | ||
} | ||
} |
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,15 @@ | ||
<?php | ||
|
||
return [ | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Asset URL | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This URL is used to properly generate URLs when using the UrlGenerator | ||
| class. | ||
| | ||
*/ | ||
|
||
'asset_url' => get_stylesheet_directory_uri() . '/assets/', | ||
]; |
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,77 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Authentication Defaults | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option controls the default authentication "guard" and password | ||
| reset options for your application. You may change these defaults | ||
| as required, but they're a perfect start for most applications. | ||
| | ||
*/ | ||
|
||
'defaults' => [ | ||
'guard' => 'web', | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Authentication Guards | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Next, you may define every authentication guard for your application. | ||
| Of course, a great default configuration has been defined for you | ||
| here which uses session storage and the Eloquent user provider. | ||
| | ||
| All authentication drivers have a user provider. This defines how the | ||
| users are actually retrieved out of your database or other storage | ||
| mechanisms used by this application to persist your user's data. | ||
| | ||
| Supported: "session" | ||
| | ||
*/ | ||
|
||
'guards' => [ | ||
'web' => [ | ||
'driver' => 'session', | ||
'provider' => 'users', | ||
], | ||
|
||
# 'api' => [ | ||
# 'driver' => 'session', | ||
# 'provider' => 'users', | ||
# ], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| User Providers | ||
|-------------------------------------------------------------------------- | ||
| | ||
| All authentication drivers have a user provider. This defines how the | ||
| users are actually retrieved out of your database or other storage | ||
| mechanisms used by this application to persist your user's data. | ||
| | ||
| If you have multiple user tables or models you may configure multiple | ||
| sources which represent each model / table. These sources may then | ||
| be assigned to any extra authentication guards you have defined. | ||
| | ||
| Supported: "wordpress", "radiate" | ||
| | ||
*/ | ||
|
||
'providers' => [ | ||
# 'users' => [ | ||
# 'driver' => 'wordpress', | ||
# 'table' => 'users', | ||
# ], | ||
|
||
'users' => [ | ||
'driver' => 'radiate', | ||
'model' => \Theme\Models\User::class, | ||
], | ||
], | ||
]; |
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