-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.xml
108 lines (91 loc) · 5.12 KB
/
install.xml
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
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="utf-8"?>
<module type="plugin" name="news">
<title>News</title>
<summary>Allows to create news section on the website</summary>
<author>Intelliants LLC</author>
<contributor>Intelliants LLC</contributor>
<version>4.2.0</version>
<date>2018-03-09</date>
<compatibility>4.2</compatibility>
<items>
<item payable="0">news</item>
</items>
<actions>
<action name="news" url="news/" icon="list" pages="news:add,news:edit"><![CDATA[]]></action>
<action name="add_news" url="news/add/" icon="plus" pages="news:read,news:edit"><![CDATA[]]></action>
</actions>
<adminpages>
<page group="content" name="news" url="news/" menus="menu">News</page>
</adminpages>
<pages>
<page menus="main,bottom" name="news" url="news/">News</page>
</pages>
<fields_groups>
<group item="news" name="general" title="General"><![CDATA[]]></group>
</fields_groups>
<fields>
<field name="title" item="news" type="text" group="general" length="70" required="1" multilingual="1" adminonly="1">Title</field>
<field name="summary" item="news" type="textarea" group="general" editor="0" required="0" multilingual="1" adminonly="1">Summary</field>
<field name="body" item="news" type="textarea" group="general" editor="1" required="1" multilingual="1" adminonly="1">Body</field>
<field name="pictures" item="news" type="pictures" group="general" length="5" thumb_width="400" thumb_height="300" width="1200" height="900" prefix="news_" editable="0">Image</field>
</fields>
<phrases>
<phrase category="admin" key="dashboard_news_add">Add News</phrase>
<phrase category="admin" key="add_news">Add News</phrase>
<phrase category="admin" key="body_is_empty">Body text is empty.</phrase>
<phrase category="admin" key="edit_news">Edit News</phrase>
<phrase category="admin" key="news_added">Entry added.</phrase>
<phrase category="common" key="news">News</phrase>
<phrase category="common" key="view_news">View News</phrase>
<phrase category="frontend" key="no_news">Administrator has not posted any news.</phrase>
<phrase category="frontend" key="posted">Posted</phrase>
<phrase category="frontend" key="view_all_news">View all news</phrase>
<phrase category="frontend" key="continue_reading">continue reading</phrase>
</phrases>
<configgroup name="news">News</configgroup>
<config group="news" name="news_plugin" type="divider" value="General">General</config>
<config group="news" name="news_number_block" type="text" description="Number of displayed news in Latest News block">3</config>
<config group="news" name="news_max_block" type="text" description="Number of chars in short description in Latest News block">100</config>
<config group="news" name="news_number" type="text" description="Number of displayed news per page">10</config>
<config group="news" name="news_max" type="text" description="Number of chars in short description">200</config>
<config group="news" name="news_order" type="select" values="alphabetic,date" description="News on News Page order by">date</config>
<config group="news" name="news_newsline_block" type="divider" value="Newsline block">Newsline block</config>
<config group="news" name="newsline_row_count" type="select" values="2,3,4" description="Number of displayed news in a row (columns)">3</config>
<config group="news" name="newsline_rows" type="select" values="1,2,3,4,5" description="Number of rows">1</config>
<config group="news" name="newsline_body_max" type="text" description="Number of chars in short description">300</config>
<config group="news" name="newsline_display_img" type="radio" values="1,0" description="Display images">0</config>
<blocks>
<block title="Latest News" name="latest_news" collapsible="1" position="left" type="smarty" classname="" filename="block.latest_news.tpl"><![CDATA[]]></block>
<block title="Newsline" name="newsline" position="verybottom" type="smarty" classname="" filename="block.newsline.tpl"><![CDATA[]]></block>
</blocks>
<hooks>
<hook name="phpCoreBeforePageDisplay" page_type="front" filename="hook.blocks-load.php"><![CDATA[]]></hook>
<hook name="adminDashboardStatistics" page_type="admin"><![CDATA[$items['news'] = 'news';]]></hook>
</hooks>
<install>
<sql>
<![CDATA[
CREATE TABLE `{prefix}news` (
`id` mediumint(7) unsigned NOT NULL auto_increment,
`member_id` int(11) unsigned NOT NULL,
`slug` varchar(50) NOT NULL,
`date_added` datetime,
`date_modified` datetime,
`status` enum('inactive', 'active') NOT NULL default 'active',
`views_num` mediumint(8) unsigned NOT NULL default 0,
`featured` tinyint(1) unsigned NOT NULL default 0,
`featured_start` datetime NULL,
`featured_end` datetime NULL,
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
</install>
<uninstall>
<sql>
<![CDATA[
DROP TABLE IF EXISTS `{prefix}news`;
]]>
</sql>
</uninstall>
</module>