예제 #1
1
파일: detail.php 프로젝트: uzura8/flockbird
}
?>

<!-- share button -->
<?php 
if (conf('site.common.shareButton.isEnabled', 'page') && check_public_flag($album_image->public_flag)) {
    echo render('_parts/services/share', array('text' => $album_image->name ?: $album_image->album->name));
}
?>

</div><!-- .comment_info -->

<div id="comment_list">
<?php 
echo render('_parts/comment/list', array('parent' => $album_image, 'list' => $comments, 'next_id' => $comment_next_id, 'delete_uri' => 'album/image/comment/api/delete.json', 'counter_selector' => '#comment_count_' . $album_image->id, 'list_more_box_attrs' => array('data-uri' => 'album/image/comment/api/list/' . $album_image->id . '.json', 'data-template' => '#comment-template'), 'like_api_uri_prefix' => 'album/image/comment', 'liked_ids' => $liked_ids));
?>
</div>

<?php 
if (Auth::check()) {
    echo render('_parts/comment/post', array('id' => $album_image->id, 'size' => 'M', 'textarea_attrs' => array('id' => 'textarea_comment_' . $album_image->id), 'button_attrs' => array('data-post_uri' => 'album/image/comment/api/create/' . $album_image->id . '.json', 'data-get_uri' => 'album/image/comment/api/list/' . $album_image->id . '.json', 'data-list' => '#comment_list', 'data-template' => '#comment-template', 'data-counter' => '#comment_count_' . $album_image->id)));
}
?>

<?php 
if (is_enabled_map('image/detail', 'album')) {
    echo render('_parts/map/detail', array('auther_member_id' => $album_image->album->member_id, 'locations' => $locations, 'save_uri' => \Album\Site_Util::get_save_location_api_uri($album_image->id), 'markers' => $locations ? Site_Util::get_map_markers($locations) : array(), 'marker_template' => '#map-marker-image-template', 'marker_images' => array('uri' => img_uri($album_image->get_image(), 'M'), 'alt' => $album_image->name)));
}
?>

예제 #2
0
파일: map.php 프로젝트: uzura8/flockbird
    ?>
 has-error<?php 
}
?>
" id="form_location_block">
	<?php 
echo Form::label($label, 'location', array('class' => $label_class));
?>
	<div class="col-sm-<?php 
echo $input_col_sm_size;
?>
">
		<div class="row">
			<div class="col-sm-12">
				<?php 
echo render('_parts/map/detail', array('locations' => $locations, 'markers' => $locations[0] && $locations[1] ? Site_Util::get_map_markers($locations) : array(), 'is_form_view' => true));
?>
			</div>
		</div>
<?php 
if ($val->error($names[0]) || $val->error($names[1])) {
    ?>
		<div class="row">
			<div class="col-sm-12">
				<span class="help-block error_msg"><?php 
    echo $val->error($names[0])->get_message();
    ?>
</span>
				<span class="help-block error_msg"><?php 
    echo $val->error($names[1])->get_message();
    ?>