?> <?php echo "columns = " . $columns; ?> --> <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
$recipes = ModAkrecipesrecipesHelper::getList($params); ?> <?php if (!empty($recipes)) { ?> <div class="container-fluid mod_akrecipes_recipe horizontal_4"> <?php $recipe_count = count($recipes); ?> <?php foreach ($recipes as $key => $recipe) { ?> <?php $image_size = $params->get('image_size', 'Small'); $image = AkrecipesFrontendHelper::resizeImageToCache($recipe->image, $image_size); // $image = $recipe->image ; // if (strpos($image, '/') === 0 ) { // $image = substr($image, 1); // } $recipe_url = JRoute::_(AkrecipesHelperRoute::getRecipeRoute($recipe->id, $recipe->catid)); $author_url = JRoute::_(AkrecipesHelperRoute::getAuthorRoute($recipe->created_by)); $num_cols = 4; ?> <?php echo $key % $num_cols == 0 ? '<div class="row">' : ''; ?> <div class="col-md-3 col-xs-3"> <div class="thumbnail">
$products = ModAkrecipesproductHelper::getList($params); ?> <?php if (!empty($products)) { ?> <div class="mod_akrecipes_product vertical"> <ul class="media-list"> <?php foreach ($products as $product) { ?> <?php $image_size = $params->get('image_size', 'Small'); $showimages = $params->get('showimages', false); if ($showimages) { $image = AkrecipesFrontendHelper::resizeImageToCache($product->product_image, $image_size); } $product_url = $product->product_link; ?> <li class="media"> <?php if ($showimages) { ?> <div class="pull-left"> <a href="<?php echo $product_url; ?> "> <img class="media-object module-image-100" src="<?php echo $image;
"><!-- begin row --> <?php } ?> <?php $images = json_decode($item->core_images); if ($images == false) { $images = new stdclass(); $images->image_intro = $item->core_images; $image = AkrecipesFrontendHelper::resizeImageToCache($item->core_images, 'Medium'); $images->image_intro_alt = $item->core_title; if (strpos($images->image_intro, '/') === 0) { $images->image_intro = substr($images->image_intro, 1); } } else { $image = AkrecipesFrontendHelper::resizeImageToCache($images->image_intro, 'Medium'); } $item_url = JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); $author_id = $item->core_created_user_id; $author = JFactory::getUser($author_id); // Unset the passwords. unset($author->password); unset($author->password_clear); // Get the dispatcher and load the users plugins. $dispatcher = JEventDispatcher::getInstance(); JPluginHelper::importPlugin('user'); // Trigger the data preparation event. $results = $dispatcher->trigger('onContentPrepareData', array('com_users.profile', $author)); $author_url = JRoute::_('index.php?option=com_akrecipes&view=recipesbyuser&task=recipesbyuser.display&id=' . (int) $item->core_created_user_id); //$canEdit = AkrecipesFrontendHelper::canEdit($item); $unpublished = $item->core_state == 0;
*/ // No direct access defined('_JEXEC') or die; require_once JPATH_COMPONENT_SITE . '/helpers/akrecipes.php'; require_once JPATH_COMPONENT_SITE . '/helpers/route.php'; $item = $this->recipe; ?> <!-- get recipe image --> <?php $imagesize = array(); $imagesize['width'] = 140; $imagesize['height'] = 112; // 112 = 140/1.25 $image = AkrecipesFrontendHelper::resizeImageToCache($item->image, $imagesize); $item_url = AkrecipesHelperRoute::getRecipeRoute($item->id, $item->catid); // JRoute::_('index.php?option=com_akrecipes&view=recipe&id='.(int) $item->id); $published = $item->state; $unpublished = AkrecipesFrontendHelper::getRecipeUnpublishedText($item); $canEdit = AkrecipesFrontendHelper::canEdit($item); ?> <div class="media brandRecipe mobile"> <div class="pull-left"> <a href="<?php echo $item_url; ?> "> <img class="img-thumbnail" src="<?php
defined('_JEXEC') or die; require_once JPATH_SITE . '/components/com_akrecipes/helpers/route.php'; require_once JPATH_SITE . '/components/com_akrecipes/helpers/akrecipes.php'; ?> <?php if (!empty($users)) { ?> <div class="container-fluid mod_akrecipes_featured_users single"> <?php $user = $users[0]; $image_size = $params->get('image_size', 'MediumRectangle'); $showimages = $params->get('showimages', true); $image = $user->userprofile->akprofile['image']; if ($image) { $image = AkrecipesFrontendHelper::resizeImageToCache($image, "MediumRectangle"); } else { $image = 'media/com_akrecipes/images/user.png'; } $user_url = AkrecipesHelperRoute::getAuthorRoute($user->id); ?> <div class="row"> <div class="col-md-12 col-xs-12"> <div class="thumbnail"> <a href="<?php echo $user_url; ?> "> <img src="<?php echo $image; ?>
<?php if (!empty($users)) { ?> <div class="container-fluid mod_akrecipes_featured_users"> <?php $user_count = count($users); ?> <?php foreach ($users as $key => $user) { ?> <?php $image_size = $params->get('image_size', 'Small'); $showimages = $params->get('showimages', true); $image = $user->userprofile->akprofile['image']; if ($image) { $image = AkrecipesFrontendHelper::resizeImageToCache($image, "Small"); } else { $image = 'media/com_akrecipes/images/user.png'; } $user_url = AkrecipesHelperRoute::getAuthorRoute($user->id); $num_cols = $params->get('num_cols', 4); $colspan = 12 / $num_cols; ?> <?php echo $key % $num_cols == 0 ? '<div class="row">' : ''; ?> <div class="col-md-<?php echo $colspan; ?>
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); require_once JPATH_BASE . '/components/com_content/helpers/route.php'; require_once JPATH_COMPONENT . '/helpers/akrecipes.php'; // Get the user object. $user = JFactory::getUser(); $item = $this->params->get('my_item', null); $author_url = JRoute::_('index.php?option=com_akrecipes&view=recipesbyuser&task=recipesbyuser.display&id=' . (int) $item->created_by); $article_url = ContentHelperRoute::getArticleRoute($item->id, $item->catid); $unpublished = $item->state == 0; $images = json_decode($item->image); //error_log("Images --> " . print_r($images,true)); if (isset($images) && isset($images->image_intro)) { $image = AkrecipesFrontendHelper::resizeImageToCache($images->image_intro, 'XLarge'); } ?> <div class="ak_frontpage_article featured <?php echo $unpublished ? ' system-unpublished ' : ''; ?> " > <div class="row"> <div class="col-md-12"> <div class="thumbnail"> <a href="<?php echo $article_url; ?> " title="<?php echo $item->title;
require_once JPATH_SITE . '/components/com_akrecipes/helpers/akrecipes.php'; ?> <?php if (!empty($users)) { ?> <div class="container-fluid mod_akrecipes_featured_users horizontal_2"> <?php foreach ($users as $key => $user) { ?> <?php $image_size = $params->get('image_size', 'Large'); $showimages = $params->get('showimages', true); $image = $user->userprofile->akprofile['image']; if ($image) { $image = AkrecipesFrontendHelper::resizeImageToCache($image, "Large"); } else { $image = 'media/com_akrecipes/images/user.png'; } $user_url = AkrecipesHelperRoute::getAuthorRoute($user->id); $num_cols = 2; ?> <?php echo $key % $num_cols == 0 ? '<div class="row">' : ''; ?> <div class="col-md-6 col-xs-6"> <div class="thumbnail"> <a href="<?php echo $user_url;
defined('_JEXEC') or die; JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php'); require_once JPATH_ROOT . '/components/com_akrecipes/helpers/akrecipes.php'; //$item = $this->item; //error_log("Item is --> " . print_r($item,true)); $images = json_decode($item->core_images); if ($images == false) { $images = new stdclass(); $images->image_intro = $item->core_images; $images->image_intro_alt = $item->core_title; // if (strpos($images->image_intro, '/') === 0 ) { // $images->image_intro = substr($images->image_intro, 1); // } } //error_log("Image Intro --> " . $images->image_intro ); $image = AkrecipesFrontendHelper::resizeImageToCache($images->image_intro, "XSmall"); //error_log("ResizedImage --> " . $image ); $item_url = JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?> <a href="<?php echo $item_url; ?> " title="<?php echo htmlspecialchars($item->core_title); ?> "> <div class="media tagssimilarRecipe mobile"> <div class="pull-left"> <img src="<?php echo $image;
* @package Joomla.Site * @subpackage com_akrecipes * * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers'); require_once JPATH_COMPONENT . '/helpers/route.php'; require_once JPATH_COMPONENT . '/helpers/akrecipes.php'; // Get the user object. $user = JFactory::getUser(); $item = $this->params->get('my_item', null); $author_url = JRoute::_('index.php?option=com_akrecipes&view=recipesbyuser&task=recipesbyuser.display&id=' . (int) $item->created_by); $recipe_url = AkrecipesHelperRoute::getRecipeRoute($item->id, $item->catid); $image = AkrecipesFrontendHelper::resizeImageToCache($item->image, 'XLarge'); $unpublished = $item->state == 0; ?> <!-- style="background: url(<?php echo $image; ?> ) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;" --> <div class="ak_frontpage_recipe featured <?php echo $unpublished ? ' system-unpublished ' : ''; ?> " > <div class="row">