forked from novius-os/noviusos_blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.config.php
98 lines (96 loc) · 3.34 KB
/
metadata.config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* NOVIUS OS - Web OS for digital communication
*
* @copyright 2011 Novius
* @license GNU Affero General Public License v3 or (at your option) any later version
* http://www.gnu.org/licenses/agpl-3.0.html
* @link http://www.novius-os.org
*/
return array(
'name' => 'Blog',
'version' => 'chiba.2.1',
'provider' => array(
'name' => 'Novius OS',
),
'namespace' => 'Nos\BlogNews\Blog',
'permission' => array(
),
'requires' => array('noviusos_blognews', 'noviusos_comments'),
'i18n_file' => 'noviusos_blog::metadata',
'launchers' => array(
'noviusos_blog' => array(
'name' => 'Blog',
'action' => array(
'action' => 'nosTabs',
'tab' => array(
'url' => 'admin/noviusos_blog/appdesk',
),
),
),
'noviusos_blog_newpost' => array(
'name' => 'Blog Newpost',
'action' => array(
'action' => 'nosTabs',
'tab' => array(
'url' => 'admin/noviusos_blog/post/insert_update',
),
),
),
),
'enhancers' => array(
'noviusos_blog_home' => array(
'title' => 'Links to blog posts (e.g. for side column)',
'desc' => '',
'enhancer' => 'noviusos_blog/front/home',
'iconUrl' => 'static/apps/noviusos_blog/img/blog-16.png',
'dialog' => array(
'contentUrl' => 'admin/noviusos_blog/enhancer/popup',
'width' => 370,
'height' => 410,
'ajax' => true,
),
),
'noviusos_blog' => array(
'title' => 'Blog',
'desc' => '',
'urlEnhancer' => 'noviusos_blog/front/main',
'iconUrl' => 'static/apps/noviusos_blog/img/blog-16.png',
'dialog' => array(
'contentUrl' => 'admin/noviusos_blog/enhancer/popup',
'width' => 370,
'height' => 410,
'ajax' => true,
),
),
),
'data_catchers' => array(
'noviusos_blog' => array(
'title' => 'Blog',
'description' => '',
'iconUrl' => 'static/apps/noviusos_blog/img/blog-16.png',
'action' => array(
'action' => 'nosTabs',
'tab' => array(
'url' => 'admin/noviusos_blog/post/insert_update/?context={{context}}&title={{urlencode:'.\Nos\DataCatcher::TYPE_TITLE.'}}&summary={{urlencode:'.\Nos\DataCatcher::TYPE_TEXT.'}}&thumbnail={{urlencode:'.\Nos\DataCatcher::TYPE_IMAGE.'}}',
'label' => __('Add a post'),
'iconUrl' => 'static/apps/noviusos_blog/img/blog-16.png',
),
),
'onDemand' => true,
'specified_models' => false,
'required_data' => array(
\Nos\DataCatcher::TYPE_TITLE,
),
'optional_data' => array(
\Nos\DataCatcher::TYPE_TEXT,
\Nos\DataCatcher::TYPE_IMAGE,
),
),
),
'icons' => array(
16 => 'static/apps/noviusos_blog/img/blog-16.png',
32 => 'static/apps/noviusos_blog/img/blog-32.png',
64 => 'static/apps/noviusos_blog/img/blog-64.png',
),
);