Skip to content

Commit

Permalink
updates to the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Feb 16, 2025
1 parent c109ad1 commit b3b44f7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,19 @@ public static function getSettings(GenericEvent $event)
$settings->add_dropdown_setting(self::$module, _('Out of Stock'), 'outofstock_webhosting_demo', _('Out Of Stock Demo/Trial Webhosting'), _('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_WEBHOSTING_DEMO'), ['0', '1'], ['No', 'Yes']);
$settings->add_dropdown_setting(self::$module, _('Out of Stock'), 'outofstock_webhosting_ispconfig', _('Out Of Stock ISPconfig Webhosting'), _('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_WEBHOSTING_ISPCONFIG'), ['0', '1'], ['No', 'Yes']);
$settings->add_dropdown_setting(self::$module, _('Out of Stock'), 'outofstock_webhosting_ispmanager', _('Out Of Stock ISPmanager Webhosting'), _('Enable/Disable Sales Of This Type'), $settings->get_setting('OUTOFSTOCK_WEBHOSTING_ISPMANAGER'), ['0', '1'], ['No', 'Yes']);
$settings->add_master_checkbox_setting(self::$module, _('Server Settings'), self::$module, 'available', 'website_available', _('Auto-Setup'), '<p>Choose which servers are used for auto-server Setups.</p>');
$settings->add_master_label(self::$module, 'Server Settings', self::$module, 'active_services', 'Active Websites', '<p>The current number of active Websites.</p>', 'count(websites.website_id) as active_services');
$settings->add_master_label(self::$module, 'Server Settings', self::$module, 'hdfree', 'HD GB Free', '<p>The total free GB.</p>', 'website_hdfree as hdfree');
$settings->add_master_text_setting(self::$module, 'Server Settings', self::$module, 'max_sites', 'website_max_sites', 'Max Websites', '<p>The Maximum number of Websites that can be running on each server.</p>');
//$settings->add_master_text_setting(self::$module, _('Server Settings'), self::$module, 'key', 'website_key', _('API Key'), '<p>'._('The Key needed to connect.').'</p>');
//$settings->add_select_master_autosetup(self::$module, 'Auto-Setup Servers', self::$module, 'webhosting_setup_servers', _('Auto-Setup Servers'), '<p>Choose which servers are used for auto-server Setups.</p>');
$settings->setTarget('global');
$settings->add_dropdown_setting(self::$module, _('Costs & Limits'), 'website_limited_package_enable', _('Enable a Daily Limited Package'), _('Enable/Disable Limiting of a website package'), (defined('WEBSITE_LIMITED_PACKAGE_ENABLE') ? WEBSITE_LIMITED_PACKAGE_ENABLE : '0'), ['0', '1'], ['No', 'Yes']);
$settings->add_text_setting(self::$module, _('Costs & Limits'), 'website_limited_package', _('Daily Limited Package to Limit'), _('The Package ID to Limit per Day.'), (defined('WEBSITE_LIMITED_PACKAGE') ? WEBSITE_LIMITED_PACKAGE : 1003));
$settings->add_text_setting(self::$module, _('Costs & Limits'), 'website_limited_package_limit', _('Daily Limited Package Limit'), _('How many packages can be sold per day.'), (defined('WEBSITE_LIMITED_PACKAGE_LIMIT') ? WEBSITE_LIMITED_PACKAGE_LIMIT : 100));
$settings->add_text_setting(self::$module, _('Costs & Limits'), 'website_limited_package_multiplier', _('Daily Limited Sale Multiplier'), _('Each sale counts as this many towards this limit.'), (defined('WEBSITE_LIMITED_PACKAGE_MULTIPLIER') ? WEBSITE_LIMITED_PACKAGE_MULTIPLIER : 1));
$settings->add_text_setting(self::$module, _('Webhosting Demo'), 'website_demo_expire_days', _('Days before Demo Expires'), _('How many days a webhosting demo will be active before expiring.'), (defined('WEBSITE_DEMO_EXPIRE_DAYS') ? WEBSITE_DEMO_EXPIRE_DAYS : 14));
$settings->add_text_setting(self::$module, _('Webhosting Demo'), 'website_demo_warning_days', _('Days before Demo Sends Expiring Soon Mail'), _('How many days a webhosting demo will be active before sending out an expiring soon warning email.'), (defined('WEBSITE_DEMO_WARNING_DAYS') ? WEBSITE_DEMO_WARNING_DAYS : 10));
$settings->add_text_setting(self::$module, _('Webhosting Demo'), 'website_demo_extend_days', _('Days the demo is extended when extending the demo'), _('How many days a webhosting demo will be active before sending out an expiring soon warning email.'), (defined('WEBSITE_DEMO_EXTEND_DAYS') ? WEBSITE_DEMO_EXTEND_DAYS : 10));
$settings->add_master_checkbox_setting(self::$module, _('Server Settings'), self::$module, 'available', 'website_available', _('Auto-Setup'), '<p>Choose which servers are used for auto-server Setups.</p>');
$settings->add_master_label(self::$module, 'Server Settings', self::$module, 'active_services', 'Active Websites', '<p>The current number of active Websites.</p>', 'count(websites.website_id) as active_services');
$settings->add_master_label(self::$module, 'Server Settings', self::$module, 'hdfree', 'HD GB Free', '<p>The total free GB.</p>', 'website_hdfree as hdfree');
$settings->add_master_text_setting(self::$module, 'Server Settings', self::$module, 'max_sites', 'website_max_sites', 'Max Websites', '<p>The Maximum number of Websites that can be running on each server.</p>');
//$settings->add_master_text_setting(self::$module, _('Server Settings'), self::$module, 'key', 'website_key', _('API Key'), '<p>'._('The Key needed to connect.').'</p>');
//$settings->add_select_master_autosetup(self::$module, 'Auto-Setup Servers', self::$module, 'webhosting_setup_servers', _('Auto-Setup Servers'), '<p>Choose which servers are used for auto-server Setups.</p>');
$settings->setTarget('global');
}
}

0 comments on commit b3b44f7

Please sign in to comment.