?> --> <div class="row"><!-- begin row --> <?php } ?> <?php // $image = $item->image ; // if (strpos($image, '/') === 0 ) { // $image = substr($image, 1); // } $image = AkrecipesFrontendHelper::resizeImageToCache($item->image, 'Medium'); $recipe_url = JRoute::_(AkrecipesHelperRoute::getRecipeRoute((int) $item->id, $item->catid)); $author_url = JRoute::_(AkrecipesHelperRoute::getAuthorRoute((int) $item->created_by)); $canEdit = AkrecipesFrontendHelper::canEdit($item); $unpublished = AkrecipesFrontendHelper::getRecipeUnpublishedText($item); ?> <div class="blogRecipe col-md-<?php echo $colspan; ?> "> <div class="thumbnail <?php echo $unpublished ? ' system-unpublished ' : ''; ?> "> <a href="<?php echo $recipe_url; ?> ">
require_once JPATH_COMPONENT_SITE . '/helpers/akrecipes.php'; require_once JPATH_COMPONENT_SITE . '/helpers/route.php'; $recipe = $this->recipe; ?> <!-- get recipe image --> <?php $image = $recipe->image; if (strpos($image, '/') === 0) { $image = substr($image, 1); } $recipe_url = AkrecipesHelperRoute::getRecipeRoute($recipe->id, $recipe->catid); $published = $recipe->state; $unpublished = AkrecipesFrontendHelper::getRecipeUnpublishedText($recipe); $canEdit = AkrecipesFrontendHelper::canEdit($recipe); ?> <div class="userRecipe col-md-<?php echo $this->colspan; ?> col-xs-12"> <div class="thumbnail <?php echo $unpublished ? ' system-unpublished ' : ''; ?> "> <a href="<?php echo $recipe_url; ?> "> <img src="<?php