function show_view() { $post = get_post(); $menuService = new MenuService(); $menu = $menuService->getMenuById(); ?> <div id="divMainSection"> <div class="row"> <div class="col-md-6"> <div><?php echo $post->post_content; ?> </div> <?php if (isset($menu->price)) { ?> <span class="label label-success">$<?php echo $menu->price; ?> </span> <?php } $this->show_topics($menu); ?> </div> <div class="col-md-6"> <?php $this->show_restaurant($menu->restaurantId); ?> </div> </div> <?php $this->show_gallery($menu); $this->show_update_menu($post, $menu->restaurantId); ?> </div> <?php }