Files
2010-03-18 18:35:05 -04:00

67 lines
3.3 KiB
PHP
Executable File

<?php require_once(WPOTPL . '/helper/form.helper.php' ) ?>
<?php $this->adminHeader() ?>
<div id="wpo-section-options" class="wrap">
<h2>Options</h2>
<?php if(isset($updated)): ?>
<div id="added-warning" class="updated"><p><?php _e('Options saved.', 'wpomatic') ?></p></div>
<?php endif ?>
<?php if(isset($not_writable)): ?>
<div class="error"><p><?php _e('Image cache path ' . WPODIR . get_option('wpo_cachepath') . ' is not writable!' ) ?></p></div>
<?php endif ?>
<form action="" method="post" accept-charset="utf-8">
<input type="hidden" name="update" value="1" />
<ul id="options">
<li id="options_cron">
<?php echo label_for('option_unixcron', __('Unix cron', 'wpomatic')) ?>
<?php echo checkbox_tag('option_unixcron', 1, get_option('wpo_unixcron')) ?>
<h3>Cron command:</h3>
<div id="cron_command" class="command"><?php echo $this->cron_command ?></div>
<h3>WebCron-ready URL:</h3>
<div id="cron_command" class="command"><?php echo $this->cron_url ?></div>
<p class="note"><?php _e('Cron is set up to handle fetching.', 'wpomatic') ?> <a href="<?php echo $this->helpurl ?>cron" class="help_link"><?php _e('More', 'wpomatic') ?></a></p>
</li>
<li>
<?php echo label_for('option_logging', __('Enable logging', 'wpomatic')) ?>
<?php echo checkbox_tag('option_logging', 1, get_option('wpo_log')) ?>
<p class="note"><?php _e('Enable database-driven logging of events.', 'wpomatic') ?> <a href="<?php echo $this->helpurl ?>logging" class="help_link"><?php _e('More', 'wpomatic') ?></a></p>
</li>
<li>
<?php echo label_for('option_logging_stdout', __('Enable logging stdout', 'wpomatic')) ?>
<?php echo checkbox_tag('option_logging_stdout', 1, get_option('wpo_log_stdout')) ?>
<p class="note"><?php _e('With this option enabled, WP-o-Matic will attempt to show you logs creation in real time when manual fetching is used.', 'wpomatic') ?> <a href="<?php echo $this->helpurl ?>logging" class="help_link"><?php _e('More', 'wpomatic') ?></a></p>
</li>
<li>
<?php echo label_for('option_caching', __('Cache images', 'wpomatic')) ?>
<?php echo checkbox_tag('option_caching', 1, get_option('wpo_cacheimages')) ?>
<p class="note"><?php _e('This option overrides all campaign-specific settings', 'wpomatic') ?> <a href="<?php echo $this->helpurl ?>image_caching" class="help_link"><?php _e('More', 'wpomatic') ?></a></p>
</li>
<li>
<?php echo label_for('option_cachepath', __('Image cache path')) ?>
<?php echo input_tag('option_cachepath', get_option('wpo_cachepath')) ?>
<p class="note"><?php printf(__('The path %s must exist, be writable by the server and accessible through browser.', 'wpomatic'), '<span id="cachepath">'. WPODIR . '<span id="cachepath_input">' . get_option('wpo_cachepath') . '</span></span>') ?></p>
</li>
</ul>
<p class="submit">
<?php echo submit_tag(__('Save', 'wpomatic')) ?>
</p>
</form>
</div>
<?php $this->adminFooter() ?>