function show_settings()
    {
        $pages = get_pages();
        $integrate_with_my_events = $this->_options['integrate_with_my_events'] ? 'checked="checked"' : '';
        $tips = new WpmuDev_HelpTooltips();
        $tips->set_icon_url(plugins_url('events-and-bookings/img/information.png'));
        ?>
<div id="eab-settings-fpe" class="eab-metabox postbox">
	<h3 class="eab-hndle"><?php 
        _e('Front-page editing', Eab_EventsHub::TEXT_DOMAIN);
        ?>
</h3>
	<div class="eab-inside">
		<div class="eab-settings-settings_item">
			<label for="eab-events-fpe-use_slug">
				<?php 
        _e('I want to use this page as my Front Editor page', Eab_EventsHub::TEXT_DOMAIN);
        ?>
:
			</label>
			<select id="eab-events-fpe-use_slug" name="eab-events-fpe[id]">
				<option value=""><?php 
        _e('Use default value', Eab_EventsHub::TEXT_DOMAIN);
        ?>
&nbsp;</option>
			<?php 
        foreach ($pages as $page) {
            $selected = $this->_options['id'] == $page->ID ? 'selected="selected"' : '';
            echo "<option value='{$page->ID}' {$selected}>{$page->post_title}</option>";
        }
        ?>
			</select>
			<?php 
        echo $tips->add_tip(__("Don't forget to add this shortcode to your selected page: <code>[eab_event_editor]</code>", Eab_EventsHub::TEXT_DOMAIN));
        ?>
			<div><?php 
        _e('By default, Front-page editor will work with preconfigured stub URL. However, you can create your own page, add the Front-page editing shortcode (<code>[eab_event_editor]</code>) to the content and configure your Add/Edit links here to use this page instead.', Eab_EventsHub::TEXT_DOMAIN);
        ?>
</div>
		</div>
<?php 
        if (Eab_AddonHandler::is_plugin_active('eab-buddypres-my_events')) {
            ?>
		<div class="eab-settings-settings_item">
			<label for="eab-events-fpe-integrate_with_my_events">
				<input type="hidden" name="eab-events-fpe[integrate_with_my_events]" value="" />
				<input type="checkbox" id="eab-events-fpe-integrate_with_my_events" name="eab-events-fpe[integrate_with_my_events]" value="1" <?php 
            echo $integrate_with_my_events;
            ?>
 />
				<?php 
            _e('Integrate with <em>My Events</em> add-on', Eab_EventsHub::TEXT_DOMAIN);
            ?>
			</label>
			<?php 
            echo $tips->add_tip(__("Enabling this option will add a new &quot;Add Event&quot; tab to &quot;My Events&quot;", Eab_EventsHub::TEXT_DOMAIN));
            ?>
		</div>
<?php 
        }
        ?>
	</div>
</div>
<?php 
    }
 public static function serve()
 {
     $me = new Eab_AddonHandler();
     $me->_add_hooks();
 }
require_once EAB_PLUGIN_DIR . 'lib/class_eab_codec.php';
require_once EAB_PLUGIN_DIR . 'lib/class_eab_event_model.php';
require_once EAB_PLUGIN_DIR . 'lib/class_eab_template.php';
require_once EAB_PLUGIN_DIR . 'lib/class_eab_api.php';
require_once EAB_PLUGIN_DIR . 'lib/class-eab-taxonomies.php';
// Lets get things started
$__booking = events_and_bookings();
// @TODO: Refactor
require_once EAB_PLUGIN_DIR . 'lib/class_eab_network.php';
Eab_Network::serve();
require_once EAB_PLUGIN_DIR . 'lib/class_eab_shortcodes.php';
Eab_Shortcodes::serve();
require_once EAB_PLUGIN_DIR . 'lib/class_eab_scheduler.php';
Eab_Scheduler::serve();
require_once EAB_PLUGIN_DIR . 'lib/class_eab_addon_handler.php';
Eab_AddonHandler::serve();
require_once EAB_PLUGIN_DIR . 'lib/default_filters.php';
if (is_admin()) {
    require_once EAB_PLUGIN_DIR . 'lib/class_eab_admin_tutorial.php';
    Eab_AdminTutorial::serve();
    require_once dirname(__FILE__) . '/lib/contextual_help/class_eab_admin_help.php';
    Eab_AdminHelp::serve();
    // Dashboard notification
    global $wpmudev_notices;
    if (!is_array($wpmudev_notices)) {
        $wpmudev_notices = array();
    }
    $wpmudev_notices[] = array('id' => 249, 'name' => 'Events +', 'screens' => array('incsub_event_page_eab_welcome', 'incsub_event_page_eab_settings', 'incsub_event_page_eab_shortcodes'));
    require_once EAB_PLUGIN_DIR . '/lib/wpmudev-dash-notification.php';
}
function eab_activate()