?> </h2> <p><?php printf(_r('The URL to update the items is <code>%s</code>'), get_option('baseurl') . '?method=update'); ?> </p> <p><?php printf(_r('For information on using cron with this URL, see the <a href="%s">documentation</a>.'), 'http://codex.getlilina.org/wiki/Updating_Feeds'); ?> </p> </fieldset> <?php do_action('options-form'); ?> <?php AdminOptions::instance()->do_sections(); ?> <input type="hidden" name="action" value="settings" /> <input type="hidden" name="_nonce" value="<?php echo generate_nonce('settings'); ?> " /> <p class="buttons"><button type="submit" class="positive"><?php _e('Save'); ?> </button></p> </form> <form action="settings.php" method="post"> <fieldset id="plugins"> <legend><?php _e('Plugin Management');
public static function &instance() { if (empty(AdminOptions::$instance)) { AdminOptions::$instance = new AdminOptions(); } return AdminOptions::$instance; }
public static function fromArray($data) { $settings = new Admin(); foreach ($data as $key => $value) { if (property_exists(get_class($settings), $key)) { if (is_array($value)) { if ($key == "adminOptions") { $settings->{$key} = AdminOptions::fromArray($value); } } else { $settings->{$key} = $value; } } } return $settings; }