} } // Update the meta fields in the database. update_post_meta($post_id, self::$contacts_key, $contacts); update_post_meta($post_id, self::$startdate_key, sanitize_text_field($_POST[self::$startdate_key])); update_post_meta($post_id, self::$enddate_key, sanitize_text_field($_POST[self::$enddate_key])); } public static function render_months() { $offset = 0; for ($i = 0; $i < 12; $i++) { $date = strtotime($i . ' month', self::$left_clamp); $label = date('M', $date); if ($label == 'Jan' || $i == 0) { $label .= " '" . date('y', $date); } ?> <div style="left: <?php echo $offset; ?> %;"><?php echo $label; ?> </div> <?php $offset += 8.333; } } } Karma_Events::init();