-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.xml
72 lines (65 loc) · 3.59 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
<?xml version="1.0" encoding="utf-8" ?>
<module type="plugin" name="availability_calendar">
<title>Availability calendar</title>
<summary>Availability calendar for all items</summary>
<author>Intelliants LLC</author>
<contributor>Intelliants LLC</contributor>
<version>4.1.0</version>
<date>2017-04-19</date>
<compatibility>4.1</compatibility>
<adminpages>
<page url="availability/" name="availability" filename="index">Availability Calendar</page>
</adminpages>
<pages>
<page url="availability/" name="availability" filename="index" service="1">Availability Calendar</page>
</pages>
<config group="miscellaneous" name="av_divider" type="divider" description="Availability Calendar Configuration">Availability Calendar Configuration</config>
<config group="miscellaneous" name="availability_calendar_items_enabled" type="itemscheckbox" description="List of items calendar is enabled for" private="0">autos,articles,estates,listings,venues,coupons</config>
<config group="miscellaneous" name="availability_calendar_items_implemented" type="hidden">members,autos,articles,estates,listings,venues,coupons</config>
<phrases>
<phrase category="common" key="availability_calendar">Availability Calendar</phrase>
<phrase category="common" key="add_acalendar">Set Availability settings</phrase>
<phrase category="common" key="av_unknown_item">Unknown item.</phrase>
<phrase category="common" key="av_not_your_item">You may not set availablility terms for this item. You can only configure own items.</phrase>
<phrase category="common" key="av_your_start_date_must_be_greater">Your start date cannot be greater than end date.</phrase>
<phrase category="common" key="av_saved">Availability settings saved.</phrase>
<phrase category="common" key="av_error_saving">Error saving availability settings. Please contact site administrator.</phrase>
<phrase category="common" key="av_add">Set Availability</phrase>
<phrase category="common" key="av_delete">Remove Availability</phrase>
<phrase category="common" key="av_edit">Edit Availability</phrase>
<phrase category="common" key="av_description">Description</phrase>
<phrase category="common" key="av_deleted">Successfully deleted</phrase>
<phrase category="common" key="av_empty">Description empty</phrase>
<phrase category="common" key="accounts">Accounts</phrase>
<phrase category="common" key="booked">Booked</phrase>
<phrase category="common" key="today">Today</phrase>
</phrases>
<hooks>
<hook name="smartyAdminSubmitItemBeforeFooter" type="smarty" page_type="admin" filename="calendar"><![CDATA[]]></hook>
<hook name="smartyListingSubmitBeforeFooter" type="smarty" page_type="front" filename="calendar"><![CDATA[]]></hook>
<hook name="smartyViewListingBeforeFooter" type="smarty" page_type="front" filename="block.calendar"><![CDATA[]]></hook>
</hooks>
<install>
<sql>
<![CDATA[
CREATE TABLE `{prefix}availability_calendar` (
`id` mediumint(7) unsigned NOT NULL auto_increment,
`item` varchar(32) NOT NULL,
`member_id` int(11) unsigned NOT NULL,
`item_id` mediumint(8) unsigned NOT NULL,
`date` date NOT NULL,
`status` enum('free','busy') NOT NULL default 'busy',
`description` tinytext NOT NULL,
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
</install>
<uninstall>
<sql>
<![CDATA[
DROP TABLE IF EXISTS `{prefix}availability_calendar`;
]]>
</sql>
</uninstall>
</module>