Exemple #1
0
 /**
  * Sets the default settings for the plugin
  *
  * @return void
  */
 static function set_default_settings()
 {
     // Set default settings
     $yn_options = array('1' => __('Yes', 'twitter-tools'), '0' => __('No', 'twitter-tools'));
     $settings = array('tweet_admin_ui' => array('name' => 'tweet_admin_ui', 'value' => 1, 'label' => __('Show admin screens for tweets', 'twitter-tools'), 'type' => 'radio', 'options' => $yn_options), 'tweet_visibility' => array('name' => 'tweet_visibility', 'value' => 1, 'label' => __('Create URLs for tweets', 'twitter-tools'), 'type' => 'radio', 'options' => array('1' => sprintf(__('Yes <span class="help">(%s)</span>', 'twitter-tools'), home_url('tweet/{tweet-id}')), '0' => __('No', 'twitter-tools'))), 'credit' => array('name' => 'credit', 'value' => 1, 'label' => __('Give Twitter Tools credit', 'twitter-tools'), 'type' => 'radio', 'options' => $yn_options), 'debug' => array('name' => 'debug', 'value' => 0, 'label' => __('Debug logging', 'twitter-tools'), 'type' => 'radio', 'options' => array('0' => __('Disabled', 'twitter-tools'), '1' => __('Enabled <span class="help">(written to the PHP error log)</span>', 'twitter-tools'))));
     self::$settings = apply_filters('aktt_default_settings', $settings);
 }