<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="OptionsForExitMenu">
        <definition>
            <content>
                <item id="1">
                    <description>Shutdown Option</description>
                    <visible>Skin.HasSetting(ExitMenu.ShutdownOption.Active)</visible>
                    <label>$LOCALIZE[13005]</label>
                    <icon>special://skin/backgrounds/shutdown.jpg</icon>
                    <onclick>ShutDown</onclick>
                </item>
                <item id="2">
                    <description>Exit Option</description>
                    <visible>System.ShowExitButton + Skin.HasSetting(ExitMenu.ExitOption.Active)</visible>
                    <label>$LOCALIZE[13012]</label>
                    <label2>$LOCALIZE[31002]</label2>
                    <icon>special://skin/backgrounds/exit.jpg</icon>
                    <onclick>Quit</onclick>
                </item>
                <item id="3">
                    <description>Log Off Profile Option</description>
                    <visible>System.IsLoggedOn + [System.HasLoginScreen | IntegerGreaterThan(System.ProfileCount,1)] + Skin.HasSetting(ExitMenu.LogOffOption.Active)</visible>
                    <label>$LOCALIZE[20126]</label>
                    <label2>$INFO[System.ProfileName]</label2>
                    <icon>special://skin/backgrounds/logoff.jpg</icon>
                    <onclick>Dialog.Close(all,true)</onclick>
                    <onclick>System.LogOff()</onclick>
                </item>
                <item id="4">
                    <description>Restart Kodi Option</description>
                    <visible>[System.Platform.Windows | System.Platform.Linux] + Skin.HasSetting(ExitMenu.RestartOption.Active)</visible>
                    <label>$LOCALIZE[13313]</label>
                    <label2>$LOCALIZE[31002]</label2>
                    <icon>special://skin/backgrounds/restart.jpg</icon>
                    <onclick>RestartApp</onclick>
                </item>
                <item id="5">
                    <description>Suspend Option</description>
                    <visible>System.CanSuspend + Skin.HasSetting(ExitMenu.SuspendOption.Active)</visible>
                    <label>$LOCALIZE[13011]</label>
                    <label2>$LOCALIZE[31031]</label2>
                    <icon>special://skin/backgrounds/suspend.jpg</icon>
                    <onclick>Suspend</onclick>
                </item>
                <item id="6">
                    <description>Hibernate Option</description>
                    <visible>System.CanHibernate + Skin.HasSetting(ExitMenu.HibernateOption.Active)</visible>
                    <label>$LOCALIZE[13010]</label>
                    <label2>$LOCALIZE[31031]</label2>
                    <icon>special://skin/backgrounds/hibernate.jpg</icon>
                    <onclick>Hibernate</onclick>
                </item>
                <item id="7">
                    <description>Reboot Option</description>
                    <visible>System.CanReboot + Skin.HasSetting(ExitMenu.RebootOption.Active)</visible>
                    <label>$LOCALIZE[13013]</label>
                    <label2>$LOCALIZE[31031]</label2>
                    <icon>special://skin/backgrounds/reboot.jpg</icon>
                    <onclick>Reboot</onclick>
                </item>
                <item id="8">
                    <description>Powerdown Option</description>
                    <visible>System.CanPowerDown + Skin.HasSetting(ExitMenu.PowerdownOption.Active)</visible>
                    <label>$LOCALIZE[31082]</label>
                    <label2>$LOCALIZE[31031]</label2>
                    <icon>special://skin/backgrounds/powerdown.jpg</icon>
                    <onclick>Powerdown</onclick>
                </item>
                <item id="9">
                    <description>Custom Shutdown Timer Option</description>
                    <visible>!System.HasAlarm(shutdowntimer) + Skin.HasSetting(ExitMenu.CustomTimerOption.Active)</visible>
                    <label>$LOCALIZE[20150]</label>
                    <icon>special://skin/backgrounds/shutdowntimer.jpg</icon>
                    <onclick>AlarmClock(shutdowntimer,ShutDown)</onclick>
                </item>
                <item id="10">
                    <description>Custom Cancel Timer Option</description>
                    <visible>System.HasAlarm(shutdowntimer) + Skin.HasSetting(ExitMenu.CustomTimerOption.Active)</visible>
                    <label>$LOCALIZE[20151]</label>
                    <label2>$LOCALIZE[20145]: [B]$INFO[System.Alarmpos][/B]</label2>
                    <icon>special://skin/backgrounds/shutdowntimer.jpg</icon>
                    <onclick>CancelAlarm(shutdowntimer)</onclick>
                </item>
                <item id="11">
                    <description>Enter Master Mode Option</description>
                    <visible>System.HasLocks + !System.IsMaster + Skin.HasSetting(ExitMenu.MasterModeOption.Active)</visible>
                    <label>$LOCALIZE[20045]</label>
                    <icon>special://skin/backgrounds/mastermode.jpg</icon>
                    <onclick>Mastermode()</onclick>
                </item>
                <item id="12">
                    <description>Leave Master Mode Option</description>
                    <visible>System.HasLocks + System.IsMaster + Skin.HasSetting(ExitMenu.MasterModeOption.Active)</visible>
                    <label>$LOCALIZE[20046]</label>
                    <icon>special://skin/backgrounds/mastermode.jpg</icon>
                    <onclick>Mastermode()</onclick>
                </item>
                <item id="13">
                    <description>Settings Option</description>
                    <visible>!Skin.HasSetting(SettingsOption.Active) | Skin.HasSetting(ExitMenu.SettingsOption.Active)</visible>
                    <label>$LOCALIZE[5]</label>
                    <property name="Label3">$LOCALIZE[31023]</property>
                    <icon>special://skin/backgrounds/settings.jpg</icon>
                    <onclick>ActivateWindow(settings)</onclick>
                </item>
            </content>
        </definition>
    </include>
</includes>
