<?php
/* Include Files *********************/
require_once('require.php');
require_once('../../inc/lib-layout-class.php');
/*************************************/

$user	= new userManagement();

if(  !$user->_logged_in  )
	die(__('Access denied.','recipeshelf'));

if( ! check_ajax_referer('layout', false) )
	die(__('Security Alert: Direct access not permitted!','recipeshelf'));

$n = "\n";
$r = new recipeLayout( (int)$_POST['recipe-id'] );
?>
<div class="rsl-layout">
    <div class="rsl-cookingtime">
		<span class="time-type"><?php _e('Active','recipeshelf')?>:</span>  <span class="time"><?php echo $r->addCookingTime('active')  ?></span><br />
		<span class="time-type"><?php _e('Passive','recipeshelf')?>:</span> <span class="time"><?php echo $r->addCookingTime('passive') ?></span><br />
		<span class="time-type"><?php _e('Overall','recipeshelf')?>:</span> <span class="time"><?php echo $r->addCookingTime('overall') ?></span><br />
		<span class="time-type"><?php _e('Yield','recipeshelf') ?>:</span> <span class="time"><?php echo $r->addYield() ?></span><br />
		<span class="time-type"><?php _e('Kcal','recipeshelf') ?>:</span> <span class="time"><?php echo $r->addKcal() ?></span>
    </div>
	<div class="rsl-ingredients"><?php echo $r->addIngredients(true) ?></div>
	<div class="rsl-steps"><strong class="hl"><?php _e('Steps','recipeshelf')?></strong><?php echo $r->addSteps() ?></div>
	<div class="rsl-clear"></div>
	<div class="rsl-notes"><strong class="hl"><?php _e('Notes','recipeshelf') ?></strong><?php echo $r->addNotes() ?></div>
	<div class="rsl-cookedfor"><strong class="hl"><?php _e('Cooked for','recipeshelf')?></strong><?php echo $r->addCookedFor() ?></div>
	<div class="rsl-urls"><strong class="hl"><?php _e('References','recipeshelf')?></strong><?php echo $r->addURLs() ?></div>
</div>
<div class="email">
  	<a href="#email-form" class="fade"></a>
</div>
<div class="rsl-clear"></div>