-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making Websites With October CMS - Part 28 - Search
- Loading branch information
Ivan Dorić
authored and
Ivan Dorić
committed
Jan 16, 2017
1 parent
24f1d8b
commit 0ea223c
Showing
144 changed files
with
7,914 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
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,7 @@ | ||
# How to contribute | ||
|
||
Contributions to this project are highly welcome. | ||
|
||
1. Submit your pull requests to the `develop` branch | ||
1. Adhere to the [PSR-2 coding](http://www.php-fig.org/psr/psr-2/) standard | ||
1. If you are not sure if your ideas are fit for this project, create an issue and ask |
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,19 @@ | ||
# MIT license | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,75 @@ | ||
<?php namespace OFFLINE\SiteSearch; | ||
|
||
use Backend; | ||
use System\Classes\PluginBase; | ||
|
||
/** | ||
* SiteSearch Plugin Information File | ||
*/ | ||
class Plugin extends PluginBase | ||
{ | ||
/** | ||
* Returns information about this plugin. | ||
* | ||
* @return array | ||
*/ | ||
public function pluginDetails() | ||
{ | ||
return [ | ||
'name' => 'offline.sitesearch::lang.plugin.name', | ||
'description' => 'offline.sitesearch::lang.plugin.description', | ||
'author' => 'offline.sitesearch::lang.plugin.author', | ||
'icon' => 'icon-search', | ||
'homepage' => 'https://github.com/OFFLINE-GmbH/oc-site-search-plugin', | ||
]; | ||
} | ||
|
||
/** | ||
* Registers any front-end components implemented in this plugin. | ||
* | ||
* @return array | ||
*/ | ||
public function registerComponents() | ||
{ | ||
return [ | ||
'OFFLINE\SiteSearch\Components\SearchResults' => 'searchResults', | ||
'OFFLINE\SiteSearch\Components\SiteSearchInclude' => 'siteSearchInclude', | ||
]; | ||
} | ||
|
||
/** | ||
* Registers any back-end permissions. | ||
* | ||
* @return array | ||
*/ | ||
public function registerPermissions() | ||
{ | ||
return [ | ||
'offline.sitesearch.manage_settings' => [ | ||
'tab' => 'offline.sitesearch::lang.plugin.name', | ||
'label' => 'offline.sitesearch::lang.plugin.manage_settings_permission', | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* Registers any back-end settings. | ||
* | ||
* @return array | ||
*/ | ||
public function registerSettings() | ||
{ | ||
return [ | ||
'config' => [ | ||
'label' => 'offline.sitesearch::lang.plugin.name', | ||
'description' => 'offline.sitesearch::lang.plugin.manage_settings', | ||
'category' => 'system::lang.system.categories.cms', | ||
'icon' => 'icon-search', | ||
'class' => 'Offline\SiteSearch\Models\Settings', | ||
'order' => 500, | ||
'keywords' => 'search', | ||
'permissions' => ['offline.sitesearch.manage_settings'] | ||
], | ||
]; | ||
} | ||
} |
Oops, something went wrong.