Skip to content

Commit

Permalink
Making Websites With October CMS - Part 28 - Search
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Dorić authored and Ivan Dorić committed Jan 16, 2017
1 parent 24f1d8b commit 0ea223c
Show file tree
Hide file tree
Showing 144 changed files with 7,914 additions and 3 deletions.
Empty file added document.md
Empty file.
92 changes: 89 additions & 3 deletions octobermovies.sublime-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,24 @@
},
"buffers":
[
{
"file": "plugins/watchlearn/movies/updates/version.yaml",
"settings":
{
"buffer_size": 1162,
"encoding": "UTF-8",
"line_ending": "Unix"
}
},
{
"file": "plugins/watchlearn/movies/updates/seed.php",
"settings":
{
"buffer_size": 652,
"encoding": "UTF-8",
"line_ending": "Unix"
}
}
],
"build_system": "",
"build_system_choices":
Expand Down Expand Up @@ -553,10 +571,15 @@
},
"expanded_folders":
[
"/Users/idoric/Development/public/octobermovies"
"/Users/idoric/Development/public/octobermovies",
"/Users/idoric/Development/public/octobermovies/plugins",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies",
"/Users/idoric/Development/public/octobermovies/plugins/watchlearn/movies/updates"
],
"file_history":
[
"/Users/idoric/Development/public/octobermovies/CONTRIBUTING.md",
"/Users/idoric/Development/public/starterkit/scss/components/_header.scss",
"/Users/idoric/Development/public/starterkit/package.json",
"/Users/idoric/Development/public/activenation/wp-content/themes/olympos/js/subpage-timetable.js",
Expand Down Expand Up @@ -683,8 +706,7 @@
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/sass/modules/_typeahead.scss",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/parts/lockeroom/issue-list.php",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/parts/lockeroom/featured-article.php",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/js/olympos.min.js",
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/vendor/autoload.php"
"/Users/ivan/Development/public/activenation/wp-content/themes/olympos/js/olympos.min.js"
],
"find":
{
Expand Down Expand Up @@ -895,8 +917,72 @@
"groups":
[
{
"selected": 1,
"sheets":
[
{
"buffer": 0,
"file": "plugins/watchlearn/movies/updates/version.yaml",
"semi_transient": false,
"settings":
{
"buffer_size": 1162,
"regions":
{
},
"selection":
[
[
1126,
1126
]
],
"settings":
{
"incomplete_sync": null,
"remote_loading": false,
"synced": false,
"syntax": "Packages/YAML/YAML.sublime-syntax"
},
"translation.x": 0.0,
"translation.y": 825.0,
"zoom_level": 1.0
},
"stack_index": 1,
"type": "text"
},
{
"buffer": 1,
"file": "plugins/watchlearn/movies/updates/seed.php",
"semi_transient": false,
"settings":
{
"buffer_size": 652,
"regions":
{
},
"selection":
[
[
383,
383
]
],
"settings":
{
"_anf_new": "",
"incomplete_sync": null,
"remote_loading": false,
"synced": false,
"syntax": "Packages/PHP/PHP.sublime-syntax"
},
"translation.x": 0.0,
"translation.y": 205.0,
"zoom_level": 1.0
},
"stack_index": 0,
"type": "text"
}
]
}
],
Expand Down
7 changes: 7 additions & 0 deletions plugins/offline/sitesearch/CONTRIBUTING.md
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
19 changes: 19 additions & 0 deletions plugins/offline/sitesearch/LICENCE.md
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.
75 changes: 75 additions & 0 deletions plugins/offline/sitesearch/Plugin.php
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']
],
];
}
}
Loading

0 comments on commit 0ea223c

Please sign in to comment.