/**
  * Gets instance of class.
  *
  * @return WP_Recipe_After Instance of the class.
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Gets recipe shortcode template.
  *
  * @param array $attributes Shortcode attributes.
  * @return string Shortcode template.
  */
 private function get_template($attributes)
 {
     extract(shortcode_atts(array('id' => ''), $attributes));
     if (empty($id)) {
         return '';
     }
     $post_meta = get_post_meta($id);
     if (empty($post_meta)) {
         return '';
     }
     echo '<div class="recipe">';
     WP_Recipe_Title::get_instance()->render($id);
     WP_Recipe_Controls::get_instance()->render();
     WP_Recipe_Yield::get_instance()->render($post_meta);
     WP_Recipe_Description::get_instance()->render($post_meta);
     WP_Recipe_Ingredients::get_instance()->render($post_meta);
     WP_Recipe_Directions::get_instance()->render($post_meta);
     WP_Recipe_Tips::get_instance()->render($post_meta);
     WP_Recipe_After::get_instance()->render();
     echo '</div>';
 }