<?php

$instructions = !empty($variables['data']['instructions']) ? theme('olctex_container', array('data' => _olctex_theme_multiple('olctex_instruction', $variables['data']['instructions']))) : '';
$node = $variables['data']['node'];
$morpheme = !empty($node->field_morpheme) ? _olctex_html2tex($node->field_morpheme['und'][0]['value']) : '';
$example_word = !empty($node->field_word) ? _olctex_html2tex($node->field_word['und'][0]['value']) : '';
$example_word_translation = !empty($node->field_translation) ? _olctex_html2tex($node->field_translation['und'][0]['value']) : '';
$description_in_language_studied = !empty($node->field_morpheme_desc_lang_studied) ? _olctex_html2tex($node->field_morpheme_desc_lang_studied['und'][0]['value']) : '';
$description = !empty($node->field_morpheme_description) ? _olctex_html2tex($node->field_morpheme_description['und'][0]['value']) : '';
?>
{\setlength{\parskip}{0pt}
<?php 
if (!empty($morpheme)) {
    echo $morpheme;
    ?>
 \\*

<?php 
}
$picture_file = isset($node->field_picture['und'][0]) ? $node->field_picture['und'][0] : array();
if (!empty($picture_file)) {
    echo theme('olctex_picture', array('data' => array('file' => $picture_file, 'style_name' => 'thumbnail')));
    ?>
 \\*
<?php 
}
if (!empty($example_word)) {
    echo implode(' : ', array($example_word, $example_word_translation));
    ?>
 \\*
    echo PHP_EOL . PHP_EOL;
} else {
}
if ($node->field_last_name['und'][0]['value']) {
    echo '\\textbf{', $node->field_last_name['und'][0]['value'], '}';
    echo PHP_EOL . PHP_EOL;
} else {
}
if ($node->field_last_name_translation['und'][0]['value']) {
    echo '\\textit{', $node->field_last_name_translation['und'][0]['value'], '}';
} else {
}
echo '}';
echo PHP_EOL . PHP_EOL;
$picture_file = isset($node->field_picture['und'][0]) ? $node->field_picture['und'][0] : array();
if (!empty($picture_file)) {
    echo theme('olctex_picture', array('data' => array('file' => $picture_file, 'style_name' => 'thumbnail')));
} else {
}
if ($node->body['und'][0]['value']) {
    echo _olctex_html2tex($node->body['und'][0]['value']);
} else {
}
echo PHP_EOL . PHP_EOL;
if ($node->field_body_translation['und'][0]['value']) {
    echo _olctex_html2tex($node->field_body_translation['und'][0]['value']);
} else {
}
echo PHP_EOL . PHP_EOL;
$instructions = !empty($variables['data']['instructions']) ? theme('olctex_container', array('data' => _olctex_theme_multiple('olctex_instruction', $variables['data']['instructions']))) : '';
echo $instructions;
<?php

$node = $variables['data']['node'];
?>

<?php 
$picture_file = isset($node->field_picture['und'][0]) ? $node->field_picture['und'][0] : array();
if (!empty($picture_file)) {
    echo theme('olctex_picture', array('data' => array('file' => $picture_file, 'style_name' => 'thumbnail')));
}
?>



<?php 
$lesson = _olctex_html2tex($node->body['und'][0]['safe_value']);
echo $lesson;
<?php

$node = $variables['data'];
?>

<?php 
$instruction = _olctex_html2tex($node->field_instruction['und'][0]['safe_value']);
echo $instruction;
<?php

$instructions = !empty($variables['data']['instructions']) ? theme('olctex_container', array('data' => _olctex_theme_multiple('olctex_instruction', $variables['data']['instructions']))) : '';
$node = $variables['data']['node'];
$body = _olctex_html2tex($node->body['und'][0]['safe_value']);
$title = _olctex_html2tex($node->title);
?>

\subsection {<?php 
echo $title;
?>
}

<?php 
echo $instructions;
?>

<?php 
echo $body;
//     ? $node->field_picture['und'][0]
//     : array();
//   if (!empty($picture_file)) {
//     echo theme('olctex_picture', array('data' => array(
//         'file' => $picture_file,
//         'style_name' => 'thumbnail',
//     )));
//   }
//   else {
//   }
//
?>

<?php 
$instructions = !empty($variables['data']['instructions']) ? theme('olctex_container', array('data' => _olctex_theme_multiple('olctex_instruction', $variables['data']['instructions']))) : '';
echo $instructions;
?>


<?php 
$body = _olctex_html2tex($node->body['und'][0]['safe_value']);
echo $body;
?>


<?php 
$body_translation = _olctex_html2tex($node->field_body_translation['und'][0]['safe_value']);
echo $body_translation;
?>
\bigskip