Skip to content

Commit cbe88de

Browse files
committed
initial commit
0 parents  commit cbe88de

20 files changed

Lines changed: 346 additions & 0 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.tar
2+
*.tar.gz

aclOption.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/vortex/aclOption.xsd">
3+
<import>
4+
<options>
5+
<option name="canStartRaffle">
6+
<categoryname>user.post</categoryname>
7+
<objecttype>com.woltlab.wbb.board</objecttype>
8+
</option>
9+
<option name="canParticipantRaffle">
10+
<categoryname>user.post</categoryname>
11+
<objecttype>com.woltlab.wbb.board</objecttype>
12+
</option>
13+
</options>
14+
</import>
15+
</data>

acpMenu.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<data xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/acpMenu.xsd">
3+
<import>
4+
<acpmenuitem name="wcf.acp.menu.link.content.raffle">
5+
<parent>wcf.acp.menu.link.content</parent>
6+
</acpmenuitem>
7+
<acpmenuitem name="wcf.acp.menu.link.content.raffle.raffleList">
8+
<controller>wcf\acp\page\RaffleListPage</controller>
9+
<parent>wcf.acp.menu.link.content.raffle</parent>
10+
<permissions>admin.raffle.canManageRaffle</permissions>
11+
</acpmenuitem>
12+
<acpmenuitem name="wcf.acp.menu.link.content.raffle.raffleList.add">
13+
<controller>wcf\acp\form\RaffleAddPage</controller>
14+
<parent>wcf.acp.menu.link.content.raffle.raffleList</parent>
15+
<permissions>admin.raffle.canManageRaffle</permissions>
16+
<icon>fa-plus</icon>
17+
</acpmenuitem>
18+
</import>
19+
</data>

acptemplates/empty

Whitespace-only changes.

box.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<data xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/box.xsd">
3+
<import>
4+
<box identifier="dev.hanashi.wsc.RaffleBox">
5+
<name language="de">Gewinnspiele</name>
6+
<name language="en">Raffles</name>
7+
<boxType>system</boxType>
8+
<objectType>dev.hanashi.wsc.raffleBox</objectType>
9+
<position>sidebarRight</position>
10+
<showHeader>1</showHeader>
11+
<visibleEverywhere>0</visibleEverywhere>
12+
<visibilityExceptions>
13+
<page>com.woltlab.wcf.Dashboard</page>
14+
<page>com.woltlab.wbb.BoardList</page>
15+
</visibilityExceptions>
16+
17+
<content language="de">
18+
<title>Gewinnspiele</title>
19+
</content>
20+
<content language="en">
21+
<title>Raffles</title>
22+
</content>
23+
</box>
24+
</import>
25+
</data>

cronjob.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<data xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/cronjob.xsd">
3+
<import>
4+
<cronjob name="dev.hanashi.wsc.raffle.thread-raffle-cronjob">
5+
<classname>wcf\system\cronjob\ThreadRaffleCronjob</classname>
6+
<description><![CDATA[Evaluates the winners of the sweepstakes in the threads.]]></description>
7+
<description language="de"><![CDATA[Wertet die Gewinner der Gewinnspiele in den Threads aus.]]></description>
8+
<startminute>*</startminute>
9+
<starthour>*</starthour>
10+
<startdom>*</startdom>
11+
<startmonth>*</startmonth>
12+
<startdow>*</startdow>
13+
<active>1</active>
14+
<canbeedited>1</canbeedited>
15+
<canbedisabled>1</canbedisabled>
16+
</cronjob>
17+
</import>
18+
</data>

eventListener.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/eventListener.xsd">
3+
<import>
4+
<eventlistener name="raffleThreadAddListener">
5+
<eventclassname>wbb\form\ThreadAddForm</eventclassname>
6+
<eventname>readFormParameters,validate,saved,assignVariables</eventname>
7+
<inherit>1</inherit>
8+
<environment>user</environment>
9+
<listenerclassname>wcf\system\event\listener\RaffleThreadAddListener</listenerclassname>
10+
</eventlistener>
11+
<eventlistener name="raffleThreadListener">
12+
<eventclassname>wbb\page\ThreadPage</eventclassname>
13+
<eventname>assignVariables</eventname>
14+
<inherit>1</inherit>
15+
<environment>user</environment>
16+
<listenerclassname>wcf\system\event\listener\RaffleThreadListener</listenerclassname>
17+
</eventlistener>
18+
</import>
19+
</data>

files/lib/empty

Whitespace-only changes.

install.sql

Whitespace-only changes.

language/de.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<language xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/language.xsd" languagecode="de">
3+
<category name="wcf.acl.option">
4+
<item name="wcf.acl.option.com.woltlab.wbb.board.canStartRaffle"><![CDATA[Kann Gewinnspiel starten]]></item>
5+
<item name="wcf.acl.option.com.woltlab.wbb.board.canParticipantRaffle"><![CDATA[Kann an Gewinnspiel teilnehmen]]></item>
6+
</category>
7+
</language>

0 commit comments

Comments
 (0)