Initial commit. State 04.2021.

This commit is contained in:
2021-04-22 17:57:16 +02:00
commit 82781cca41
2974 changed files with 975656 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<form action="edit.php?action=clef_multisite" method="POST">
<div class="settings-section">
<div class="inputs-container">
<h2><?php _e('Enable Clef across the whole network', 'clef'); ?></h2>
<p><?php _e('If you would like to enable Clef across all sites on the network using the options you set here, click the button below.', 'clef'); ?></p>
<?php wp_nonce_field("clef_multisite"); ?>
<input type="hidden" name="enable" value="1">
<input type="submit" value="<?php _e('Use network settings everywhere', 'clef'); ?>" class="button-primary ajax-ignore">
</div>
</div>
</form>

View File

@@ -0,0 +1,29 @@
<div class="settings-section">
<form action="edit.php?action=clef_multisite" method="POST">
<div class="inputs-container">
<h2><?php _e('Disable network-wide settings', 'clef'); ?></h2>
<p><?php _e('Currently, you control Clef settings for all the sites in your network. If you disable network-wide settings, individual sites in the network will need to manage their own Clef settings.', 'clef'); ?></p>
<?php wp_nonce_field("clef_multisite"); ?>
<input type="hidden" name="disable" value="1">
<input type="submit" value="<?php _e('Disable network-wide settings', 'clef'); ?>" class="button-primary ajax-ignore">
</div>
<div class="inputs-container">
</div>
</form>
</div>
<form id="multisite-settings">
<div class="settings-section">
<h3><?php _e('Individual site network settings', 'clef'); ?></h3>
<div class="inputs-container">
<p><?php _e('You can let individual sites manage their own Clef configuration if you would like to customize how Clef works on each site.', 'clef') ?></p>
<?php wp_nonce_field(ClefNetworkAdmin::MULTISITE_SETTINGS_ACTION) ?>
<div class="input-container">
<input type="hidden" name="allow_override_form">
<label for="allow_override"><?php _e('Allow individual sites to manage settings', 'clef'); ?></label>
<input type="checkbox" name="allow_override" value="<?php echo $options['isSingleSiteSettingsAllowed'] ?>" <?php if ($options['isSingleSiteSettingsAllowed']) { ?> checked="checked" <?php } ?>>
</div>
</div>
</div>
</form>

View File

@@ -0,0 +1,11 @@
<form action="admin.php?page=clef&action=clef_multisite" method="POST">
<div class="settings-section">
<div class="inputs-container">
<h2><?php _e("You're overriding multi-site settings.", 'clef'); ?></h2>
<p><?php _e("You've decided to manage your own settings for Clef. To re-enabled the settings configured by your site's network administrator, please click the button below.", 'clef'); ?></p>
<?php wp_nonce_field("clef_multisite") ?>
<input type="submit" value="<?php _e('Use network settings', 'clef'); ?>" class="button-primary">
</div>
</div>
</form>

View File

@@ -0,0 +1,10 @@
<form action="admin.php?page=clef&action=clef_multisite" method="POST">
<div class="settings-section">
<div class="inputs-container">
<h2><?php _e('Clef is being managed by multi-site.', 'clef'); ?></h2>
<p><?php _e('Your Clef installation is currently managed by your network administrator. To use your own Clef settings, you can override the network-wide settings below.', 'clef'); ?></p>
<?php wp_nonce_field("clef_multisite") ?>
<input type="submit" value="<?php _e('Override network settings', 'clef'); ?>" class="button-primary">
</div>
</div>
</form>