function rhc_calendar_metabox($post_type = 'rhcevents')
 {
     if (!class_exists('post_meta_boxes')) {
         require_once 'class.post_meta_boxes.php';
     }
     $this->post_type = $post_type;
     $this->metabox_meta_fields = array("fc_allday", "fc_start", "fc_start_time", "fc_end", "fc_end_time", "fc_interval", "fc_end_interval", "fc_dow_except", "fc_color", "fc_text_color", "fc_click_link", "fc_click_target");
     $this->fc_intervals = plugin_righthere_calendar::get_intervals();
     $this->post_meta_boxes = new post_meta_boxes(array('post_type' => $post_type, 'options' => $this->metaboxes(), 'styles' => array('post-meta-boxes', 'rhc-admin', 'rhc-jquery-ui', 'calendarize-metabox', 'farbtastic'), 'scripts' => array('rhc-admin', 'fechahora', 'calendarize-metabox', 'farbtastic'), 'metabox_meta_fields' => 'calendar_metabox_meta_fields', 'pluginpath' => RHC_PATH));
     $this->post_meta_boxes->save_fields = $this->metabox_meta_fields;
     add_action('wp_ajax_calendarize_' . $post_type, array(&$this, 'ajax_calendarize'));
     //----
     add_action('save_post', array(&$this, 'save_post'));
 }
if (!function_exists('property_exists')) {
    function property_exists($o, $p)
    {
        return is_object($o) && 'NULL' !== gettype($o->{$p});
    }
}
if (!class_exists('plugin_righthere_calendar')) {
    require_once RHC_PATH . 'includes/class.plugin_righthere_calendar.php';
}
$settings = array('options_capability' => 'rhc_options', 'license_capability' => 'rhc_license');
//$settings['debug_menu']=true;//provides a debug menu with debugging information
$settings['debugging_js_css'] = false;
//loads non minified css
//$settings['post_info_shortcode']='rhc_post_info';//change the post_info shortcode.
global $rhc_plugin;
$rhc_plugin = new plugin_righthere_calendar($settings);
if ((isset($_REQUEST['rhc_action']) || isset($_REQUEST['rhc_json_feed']) || isset($_REQUEST['meetup_json_feed']) || isset($_REQUEST['gcal_feed']) || isset($_REQUEST['fb_json_feed'])) && '1' == $rhc_plugin->get_option('ajax_catch_warnings', '', true)) {
    ob_start();
}
//--------------------------------------------------------
if (!defined('SHORTINIT') || true !== SHORTINIT) {
    register_activation_hook(__FILE__, 'rhc_install');
    function rhc_install()
    {
        include RHC_PATH . 'includes/install.php';
        if (function_exists('handle_rhc_install')) {
            handle_rhc_install();
        }
    }
    //---
    register_deactivation_hook(__FILE__, 'rhc_uninstall');
 function calendarize_form()
 {
     $this->fc_intervals = plugin_righthere_calendar::get_intervals();
     global $rhc_plugin;
     include $rhc_plugin->get_template_path('calendarize_form.php');
 }