예제 #1
0
파일: list.php 프로젝트: rutvikd/ak-recipes
 * @author      Rutvik Doshi <*****@*****.**>
 * @copyright   Copyright (C) 2015. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
$elements = ModAkrecipesHelper::getList($params);
?>

<?php 
if (!empty($elements)) {
    ?>
	<table class="table">
		<?php 
    foreach ($elements as $element) {
        ?>
			<tr>
				<th><?php 
        echo ModAkrecipesHelper::renderTranslatableHeader($params, $params->get('field'));
        ?>
</th>
				<td><?php 
        echo ModAkrecipesHelper::renderElement($params->get('table'), $params->get('field'), $element->{$params->get('field')});
        ?>
</td>
			</tr>
		<?php 
    }
    ?>
	</table>
<?php 
}
예제 #2
0
파일: item.php 프로젝트: rutvikd/ak-recipes
		<?php 
    $fields = get_object_vars($element);
    ?>
		<?php 
    foreach ($fields as $field_name => $field_value) {
        ?>
			<?php 
        if (ModAkrecipesHelper::shouldAppear($field_name)) {
            ?>
				<div class="row">
					<div class="span4">
						<strong><?php 
            echo ModAkrecipesHelper::renderTranslatableHeader($params, $field_name);
            ?>
</strong>
					</div>
					<div
						class="span8"><?php 
            echo ModAkrecipesHelper::renderElement($params->get('item_table'), $field_name, $field_value);
            ?>
</div>
				</div>
			<?php 
        }
        ?>
		<?php 
    }
    ?>
	</div>
<?php 
}