| 1 |
<?php |
| 2 |
/** |
| 3 |
* Author: Alin Marcu |
| 4 |
* Author URI: https://deconf.com |
| 5 |
* Copyright 2013 Alin Marcu |
| 6 |
* License: GPLv2 or later |
| 7 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 8 |
*/ |
| 9 |
|
| 10 |
// Exit if accessed directly |
| 11 |
if ( ! defined( 'ABSPATH' ) ) |
| 12 |
exit(); |
| 13 |
|
| 14 |
class CAWP_Install { |
| 15 |
|
| 16 |
public static function install() { |
| 17 |
$options = array(); |
| 18 |
|
| 19 |
$options['dashboard_widget'] = 1; |
| 20 |
$options['tracking'] = 1; |
| 21 |
$options['track_username'] = 0; |
| 22 |
$options['theme_color'] = '#2c5fb2'; |
| 23 |
$options['track_email'] = 1; |
| 24 |
$options['track_youtube'] = 0; |
| 25 |
$options['track_html5'] = 0; |
| 26 |
$options['sitekey'] = ''; |
| 27 |
$options['siteid'] = ''; |
| 28 |
$options['maps_api_key'] = ''; |
| 29 |
$options['track_outbound'] = '/go/,/out/'; |
| 30 |
$options['access_back'][] = 'Administrator'; |
| 31 |
$options['access_front'][] = 'Administrator'; |
| 32 |
$options['backend_item_reports'] = 0; |
| 33 |
$options['frontend_item_reports'] = 0; |
| 34 |
|
| 35 |
add_option( 'cawp_options', json_encode( $options ) ); |
| 36 |
} |
| 37 |
} |
| 38 |
|