Skip to content

Commit

Permalink
Merge pull request #7 from carlwhittick/patch-1
Browse files Browse the repository at this point in the history
Corrected a few typos and adjusted some grammar
  • Loading branch information
Shipu authored May 23, 2017
2 parents b8d5770 + 6c4f37b commit c02d857
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ When the download is complete, you have to call this package service in `config/
Shipu\Themevel\Providers\ThemevelServiceProvider::class,
```

To use facade you have to add this line in `app.php` in `aliases` array:
To use facade you have to add this line in `app.php` to the `aliases` array:

```php
'Theme' => Shipu\Themevel\Facades\Theme::class,
Expand Down Expand Up @@ -182,15 +182,15 @@ Theme::all(); // return Array

### has

For getting theme exist or not:
For getting whether the theme exists or not:

```php
Theme::has(); // return bool
```

### getThemeInfo

For getting theme exist or not:
For info about the specified theme:

```php
$themeInfo = Theme::getThemeInfo('theme-name'); // return Collection
Expand All @@ -212,16 +212,16 @@ $themeName = $themeInfo['changelog']['versions'];

### assets

For binding theme asset you can use `assets` method:
For binding theme assets you can use the `assets` method:

```php
Theme::assets('your_asset_path'); // return string
```
It's generate `BASE_URL/theme_roots/your_active_theme_name/assets/your_asset_path`
It's generated at `BASE_URL/theme_roots/your_active_theme_name/assets/your_asset_path`

If `your_asset_path` not exist then it's find to active theme immediate parent assets folder. Look like `BASE_URL/theme_roots/your_active_theme_parent_name/assets/your_asset_path`
If `your_asset_path` does not exist then it's find to active theme immediate parent assets folder. Look like `BASE_URL/theme_roots/your_active_theme_parent_name/assets/your_asset_path`

For using helper you can also get assets path:
When using helper you can also get assets path:
```php
themes('your_asset_path'); // return string
```
Expand Down Expand Up @@ -259,7 +259,7 @@ echo lang('your_theme_name::your_asset_path'); // return string
## How to use in Route
```php
Route::get('/', function () {
Theme::set('your_themen_name');
Theme::set('your_theme_name');
return view('welcome');
});
```
Expand Down

0 comments on commit c02d857

Please sign in to comment.