/**
  * Output HTML.
  *
  * @since 3.0.0
  *
  * @param \WP_Post $post
  */
 public static function html($post)
 {
     simcal_print_shortcode_tip($post->ID);
 }
 /**
  * Fill out the Calendar feed post type columns.
  *
  * @since  3.0.0
  *
  * @param  string $column_name Column identifier.
  * @param  int    $post_id     The calendar feed post id.
  *
  * @return void
  */
 public function calendar_feed_column_content($column_name, $post_id)
 {
     switch ($column_name) {
         case 'feed':
             $feed = simcal_get_feed($post_id);
             echo isset($feed->name) ? $feed->name : '—';
             break;
         case 'calendar':
             $info = '—';
             if ($terms = wp_get_object_terms($post_id, 'calendar_type')) {
                 $calendar_type = sanitize_title(current($terms)->name);
                 $calendar = simcal_get_calendar($calendar_type);
                 if ($calendar instanceof Calendar) {
                     $info = $calendar->name;
                     $views = get_post_meta($post_id, '_calendar_view', true);
                     $view = isset($views[$calendar->type]) ? $views[$calendar->type] : '';
                     if (isset($calendar->views[$view])) {
                         $info .= ' → ' . $calendar->views[$view];
                     }
                 }
             }
             echo $info;
             break;
         case 'shortcode':
             simcal_print_shortcode_tip($post_id);
             break;
     }
 }