Location: PHPKode > projects > Habari > habari-0.7.1/system/admin/block_areas.php
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<label><?php _e("Scope:"); ?> <select id="scope_id" onchange="change_scope();">
	<option value="0"><?php _e('Default'); ?></option>
<?php foreach($scopes as $scope): ?>
	<option value="<?php echo $scope->id; ?>"
	<?php if (isset($scopeid) && $scopeid == $scope->id): ?>selected="selected"<?php endif; ?>><?php echo $scope->name; ?></option>
<?php endforeach; ?>
</select></label>

<div class="area_container">
<?php foreach ( $active_theme['info']->areas->area as $area ): ?>
	<?php $area = (string)$area['name']; ?>

	<div class="area_drop_outer">
		<h2><?php echo $area; ?></h2>
			<div class="area_drop" id="area_<?php echo $area; ?>">
			<?php if (isset($blocks_areas[$scopeid]) && is_array($blocks_areas[$scopeid]) && isset($blocks_areas[$scopeid][$area]) && is_array($blocks_areas[$scopeid][$area])): ?>
				<?php foreach($blocks_areas[$scopeid][$area] as $block): ?>
					<div class="block_drag block_instance_<?php echo $block->id; ?>">
						<h3><?php echo $block->title; ?></h3>
						<div class="close">&nbsp;</div>
						<div class="handle">&nbsp;</div>
					</div>
				<?php endforeach; ?>
			<?php endif; ?>
			<div class="no_blocks">
				<h3>No assigned blocks</h3>
			</div>
		</div>
	</div>
<?php endforeach; ?>
</div>
Return current item: Habari