Skip to content

Commit

Permalink
first upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mavitm committed Feb 4, 2017
1 parent 1fec877 commit ac89f0a
Show file tree
Hide file tree
Showing 97 changed files with 16,253 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Michal Cichra

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.
92 changes: 92 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php namespace Mavitm\Estate;

use Backend;
use System\Classes\PluginBase;

class Plugin extends PluginBase
{

public function pluginDetails()
{
return [
'name' => 'mavitm.estate::lang.plugin.name',
'description' => 'mavitm.estate::lang.plugin.description',
'author' => 'Mavitm',
'icon' => 'icon-building',
'homepage' => ''
];
}

public function registerComponents()
{
return [
'Mavitm\Estate\Components\SearchForm' => 'search_form',
'Mavitm\Estate\Components\Realtylist' => 'realty_list',
'Mavitm\Estate\Components\Realtydetail' => 'realty_detail',
'Mavitm\Estate\Components\Category' => 'realty_category',
];
}

public function registerPermissions()
{
return [
'mavitm.estate.access.realty' => [
'tab' => 'mavitm.estate::lang.plugin.name',
'label' => 'mavitm.estate::lang.plugin.name'
]
];
}

public function registerNavigation()
{
return [
'estate' => [
'label' => 'mavitm.estate::lang.plugin.name',
'url' => Backend::url('mavitm/estate/realties'),
'icon' => 'icon-building',
'permissions' => ['mavitm.estate.access.realty'],

'sideMenu' => [
'realty' => [
'label' => 'mavitm.estate::lang.plugin.name',
'url' => Backend::url('mavitm/estate/realties'),
'icon' => 'icon-building-o',
'permissions' => ['mavitm.estate.access.realty']
],
'category' => [
'label' => 'mavitm.estate::lang.plugin.category',
'url' => Backend::url('mavitm/estate/categories'),
'icon' => 'icon-folder',
'permissions' =>['mavitm.estate.access.realty']
],
'tags' => [
'label' => 'mavitm.estate::lang.tags.title',
'url' => Backend::url('mavitm/estate/tags'),
'icon' => 'icon-tags',
'permissions' => ['mavitm.estate.access.realty']
],
'setting' => [
'label' => 'mavitm.estate::lang.settings.menuLabel',
'url' => Backend::url('system/settings/update/mavitm/estate/settings'),
'icon' => 'icon-cog',
'permissions' => ['mavitm.estate.access.realty']
]
]
]
];
}

public function registerSettings()
{
return [
'settings' => [
'label' => 'mavitm.estate::lang.settings.menuLabel',
'description' => 'mavitm.estate::lang.settings.menuDescription',
'category' => 'mavitm.estate::lang.plugin.name',
'icon' => 'icon-cog',
'class' => 'Mavitm\Estate\Models\Settings',
'order' => 100
],
];
}
}
Loading

0 comments on commit ac89f0a

Please sign in to comment.