%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/klubovnaostrava/test/wp-content/plugins/pretix-widget/templates/backend/
Upload File :
Create Path :
Current File : /www/klubovnaostrava/test/wp-content/plugins/pretix-widget/templates/backend/settings.php

<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<div id="pretix_widget_options" class="pretix-widget-admin-page-wrapper">
    <div id="header">
	    <img width=128" src="<?php echo esc_url($this->get_url('assets/images/pretix-logo.svg')); ?>" />
	    <h1>Widget Settings</h1>
	    <p class="submit"><input onclick="pretix_widget_submit_form('pretix-widget-default-settings')" type="button" name="submit" id="submit" class="button button-primary" value="<?php esc_html_e('Änderungen speichern', 'pretix-widget');?>"></p>
    </div>
	<nav id="navigation"></nav>
	<div id="content">
		<div class="flex full">
			<div class="left">
				<form id="pretix-widget-default-settings" method="post" action="options.php">
		            <?php \settings_fields( $this->get_settings_group_slug() ); ?>
		            <?php \do_settings_sections( $this->get_settings_group_slug() ); ?>
					<fieldset>
						<label for="pretix_widget_shop_url"><?php esc_html_e('Shop URL', 'pretix-widget'); ?></label>
						<input type="text" name="pretix_widget_shop_url" id="pretix_widget_shop_url" value="<?php echo esc_attr( get_option( 'pretix_widget_shop_url' ) ); ?>" class="regular-text">
					</fieldset>
					<fieldset>
						<label for="pretix_widget_list_type"><?php esc_html_e('List Type', 'pretix-widget'); ?></label>
						<select name="pretix_widget_list_type" id="pretix_widget_list_type">
		                    <?php $selected = esc_html(get_option('pretix_widget_list_type', 'list')); ?>
							<option value="auto" <?php echo ($selected === 'auto') ? 'selected' : ''; ?>><?php esc_html_e('Auto', 'pretix-widget'); ?></option>
							<option value="list" <?php echo ($selected === 'list') ? 'selected' : ''; ?>><?php esc_html_e('List', 'pretix-widget'); ?></option>
							<option value="week" <?php echo ($selected === 'week') ? 'selected' : ''; ?>><?php esc_html_e('Calendar Week', 'pretix-widget'); ?></option>
							<option value="calendar" <?php echo ($selected === 'calendar') ? 'selected' : ''; ?>><?php esc_html_e('Calendar Month', 'pretix-widget'); ?></option>
						</select>
					</fieldset>
					<fieldset>
						<label for="pretix_widget_disable_voucher"><?php esc_html_e('Disable voucher input', 'pretix-widget'); ?></label>
						<input type="checkbox" name="pretix_widget_disable_voucher" id="pretix_widget_disable_voucher" <?php checked( 'on', get_option( 'pretix_widget_disable_voucher' ) ); ?>>
					</fieldset>
					<fieldset>
						<label for="pretix_widget_disable_filter"><?php esc_html_e('Disable UI filters', 'pretix-widget'); ?></label>
						<input type="checkbox" name="pretix_widget_disable_filter" id="pretix_widget_disable_filter" <?php checked( 'on', get_option( 'pretix_widget_disable_filter' ) ); ?>>
					</fieldset>
					<fieldset>
						<label for="pretix_widget_language"><?php esc_html_e('Default language', 'pretix-widget'); ?></label>
						<select name="pretix_widget_language" id="pretix_widget_language">
		                    <?php $selected = get_option('pretix_widget_language', 'de'); ?>
							<?php
		                    foreach($languages as $lang){
								$name = isset($lang_names[$lang['code']]) ? $lang_names[$lang['code']] : $lang['name'];
			                    echo '<option value="' . esc_html($lang['code']) . '"' . ($selected === $lang['code'] ? ' selected' : '') . '>'. esc_html($name) .'</option>';
							}?>
						</select>
					</fieldset>
					<fieldset>
						<label for="pretix_widget_button_text"><?php esc_html_e('Button text', 'pretix-widget'); ?></label>
						<input type="text" name="pretix_widget_button_text" id="pretix_widget_button_text" value="<?php echo esc_attr( get_option( 'pretix_widget_button_text' ) ); ?>" class="regular-text">
					</fieldset>
					<fieldset style="align-items: flex-start;">
						<label for="pretix_widget_custom_css"><?php esc_html_e('Custom CSS', 'pretix-widget'); ?></label>
						<textarea name="pretix_widget_custom_css" id="pretix_widget_custom_css" rows="10" cols="50" class="large-text"><?php echo esc_html( get_option( 'pretix_widget_custom_css' ) ); ?></textarea>
					</fieldset>
		            <?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?>
						<h2>Debug Settings</h2>
						<fieldset>
							<label for="pretix_widget_debug_skip_ssl_check"><?php esc_html_e('Debug skip SSL check', 'pretix-widget'); ?></label>
							<input type="checkbox" name="pretix_widget_debug_skip_ssl_check" id="pretix_widget_debug_skip_ssl_check" <?php checked( 'on', get_option( 'pretix_widget_debug_skip_ssl_check' ) ); ?>>
						</fieldset>
		            <?php endif; ?>
				</form>
			</div>
			<div class="right">
				<div class="container">
					<h2><?php esc_html_e('Default Values for Block and Shortcode', 'pretix-widget'); ?></h2>
					<p>
                        <?php esc_html_e('On this page, you can set the default values for the block and shortcode used in the pretix widget. These default values will be applied when you use the pretix widget without specifying any custom parameters.', 'pretix-widget'); ?>
					</p>
					<h3><?php esc_html_e('Overriding Defaults with Parameters:', 'pretix-widget'); ?></h3>
					<p>
                        <?php esc_html_e('While these default values make it easy to maintain consistency across your website, you have the flexibility to override them whenever you need to. When inserting the pretix widget block or using the shortcode, you can pass specific parameters to customize the widget for that particular instance. For more information on how to use parameters, please refer to the documentation page.', 'pretix-widget'); ?>
					</p>
					<p>
                        <?php esc_html_e('Please note that changes made here will apply to all instances of the pretix widget on your website unless you explicitly override them using parameters in the shortcode or block.', 'pretix-widget'); ?>
					</p>
				</div>
			</div>
		</div>
	</div>
</div>

Zerion Mini Shell 1.0