function show_gallery($restaurant) { ?> <h3 class="entry-title">Imagenes de <?php echo $restaurant->name; ?> </h3> <?php if (count($restaurant->images) > 0) { $commonView = new CommonView(); $commonView->show_gallery($restaurant->images); } }
function show_gallery($restaurant) { ?> <h2>Imagenes de <?php echo $restaurant->name; ?> </h2> <?php if (count($restaurant->images) > 0) { $commonView = new CommonView(); $commonView->show_gallery($restaurant->images); } else { ?> <div class="alert alert-danger" role="alert"> <strong>Oops!</strong> No tenemos fotos de <?php echo $restaurant->name; ?> . Ayudanos si tienes. <a href="<?php echo get_permalink(MECATO_PLUGIN_PAGE_EDIT_REST) . "?id=" . $restaurant->id . '#images'; ?> " class="btn btn-xs btn-danger">Subir fotos</a> </div> <?php } }