Commit 4aefcad2 authored by Rolf Forst's avatar Rolf Forst
Browse files

Merge branch 'dev' into 'master'

cache expiration is no longer displayed in multisite for admins

See merge request !15
parents 370a3b6a 916a52ef
...@@ -194,21 +194,19 @@ class Settings ...@@ -194,21 +194,19 @@ class Settings
<?php settings_fields('rrze-cache') ?> <?php settings_fields('rrze-cache') ?>
<table class="form-table"> <table class="form-table">
<?php if (!is_multisite()) : ?>
<tr valign="top"> <tr valign="top">
<th scope="row"> <th scope="row">
<?php esc_html_e('Lifetime', 'rrze-cache') ?> <?php esc_html_e('Lifetime', 'rrze-cache') ?>
</th> </th>
<td> <td>
<label for="rrze-cache-expires"> <label for="rrze-cache-expires">
<?php if (!is_multisite()) : ?>
<input type="number" min="1" step="1" name="rrze_cache[cache_expires]" id="rrze-cache-expires" value="<?php echo esc_attr($this->options->cache_expires) ?>" class="small-text"> <input type="number" min="1" step="1" name="rrze_cache[cache_expires]" id="rrze-cache-expires" value="<?php echo esc_attr($this->options->cache_expires) ?>" class="small-text">
<?php echo esc_html(_nx('Minute', 'Minutes', $this->options->cache_expires, 'rrze-cache-expires', 'rrze-cache')) ?> <?php echo esc_html(_nx('Minute', 'Minutes', $this->options->cache_expires, 'rrze-cache-expires', 'rrze-cache')) ?>
<?php else: ?>
<?php echo esc_html(sprintf(_nx('%s minute.', '%s minutes.', $this->siteOptions->cache_expires, 'rrze-cache-expires', 'rrze-cache'), number_format_i18n($this->siteOptions->cache_expires))) ?>
<?php endif ?>
</label> </label>
</td> </td>
</tr> </tr>
<?php endif ?>
<tr valign="top"> <tr valign="top">
<th scope="row"> <th scope="row">
<?php esc_html_e('Rules', 'rrze-cache') ?> <?php esc_html_e('Rules', 'rrze-cache') ?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment