diff -r 6b96085291d7 -r fb7cd02b9848 web/wp-content/plugins/gigs-calendar/settings.ajax.php --- a/web/wp-content/plugins/gigs-calendar/settings.ajax.php Tue Jan 05 09:48:24 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,488 +0,0 @@ - 'm/d/y', - 'archive' => 'm/d/y', - 'long' => 'l, F j, Y', -); - - -switch ( $_POST['action'] ) : - case 'load': - $listFields = array( - 'city' => __('City', $gcd), - 'country' => __('Country', $gcd), - 'venue' => __('Venue', $gcd), - 'eventName' => __('Event Name', $gcd), - 'date' => __('Date', $gcd), - 'time' => __('Time', $gcd), - 'shortNotes' => __('Short Notes', $gcd), - 'tickets' => __('Ticket Link', $gcd), - 'map' => __('Map Link', $gcd), - ); - - $titleFields = array( - 'city' => __('City', $gcd), - 'venue' => __('Venue', $gcd), - 'country' => __('Country', $gcd), - 'eventName' => __('Event Name', $gcd), - 'date' => __('Date', $gcd), - ); - - $defaults = array( - 'archive' => -1, - 'category' => get_option('default_category'), - 'no-upcoming' => __('Sorry, there aren’t any upcoming gigs right now. Check back soon!', $gcd), - 'no-past' => __('There aren’t any gigs here right now. Check back soon!', $gcd), - 'silk-link' => 1, - 'b4b-link' => 1, - 'rss-link' => 1, - 'gigs-table-show' => array_keys($listFields), - 'gig-title-show' => array('city', 'date'), - 'eventName-label' => __("Who", $gcd), - 'ages-list' => array(__('All Ages', $gcd), __('21+', $gcd), __('16+', $gcd)), - 'list-venue-link' => 0, - 'list-headers' => 0, - 'template' => 'basic', - 'time-12h' => 1, - 'calendar-position' => "bottom", - 'tbd-text' => __("TBD"), - 'tours-display' => 0, - 'tours-empty' => 0, - 'tours-sort' => 'date', - 'user_level' => 'level_5', - 'post-filtering' => 1, - 'admin-only-settings' => 0, - ); - - unset($defaults['gigs-table-show'][array_search('eventName', $defaults['gigs-table-show'])]); - unset($defaults['gigs-table-show'][array_search('country', $defaults['gigs-table-show'])]); - - if ( is_array($options) ) { - $options = array_merge($defaults, $options); - } else { - $options = $defaults; - } - if ( is_array($options['date']) ) { - $options['date'] = array_merge($date_defaults, $options['date']); - } else { - $options['date'] = $date_defaults; - } - - if ( (int) get_option('gig_db_version') == -1 ) { - die (__('Oops! It looks like you’re missing some or all of the tables required for this plugin. They should have been created automatically, but you can create them with the tables.sql file in the same folder as this plugin. If you have any questions, you can use the feedback form in the next tab.')); - } - ?> - -