<?php // comment_count_and_link echo render('_parts/comment/count_and_link_display', array('id' => $album_image->id, 'count' => $all_comment_count, 'link_hide_absolute' => true)); ?> <?php // like_count_and_link if (conf('like.isEnabled') && Auth::check()) { $data_like_link = array('id' => $album_image->id, 'post_uri' => \Album\Site_Util::get_like_api_uri($album_image->id), 'get_member_uri' => \Site_Util::get_api_uri_get_liked_members('album/image', $album_image->id), 'count_attr' => array('class' => 'unset_like_count'), 'count' => $album_image->like_count, 'is_liked' => $is_liked_self); echo render('_parts/like/count_and_link_execute', $data_like_link); } ?> <!-- 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 foreach ($member_profiles as $member_profile) { if (!empty($display_type) && $member_profile->profile->display_type < conf('member.profile.display_type.' . $display_type)) { continue; } if (!check_public_flag($member_profile->public_flag, $access_from)) { continue; } if (!($value = profile_value($member_profile))) { continue; } ?> <div class="row"> <?php $is_checkbox = $member_profile->profile->form_type == 'checkbox'; $is_view_label = true; if ($is_checkbox) { $is_view_label = false; if (empty($is_checkbox_before)) { $is_view_label = true; } } $is_checkbox_before = $is_checkbox; ?> <div class="col-xs-4 u-alr"><?php if ($is_view_label) { ?> <label><?php echo $member_profile->profile->caption; ?>
function check_public_flags($public_flags, $access_from, $strict_cond = true) { foreach ($public_flags as $public_flag) { if (!$strict_cond && check_public_flag($public_flag, $access_from)) { return true; } if ($strict_cond && !check_public_flag($public_flag, $access_from)) { return false; } } return $strict_cond ? true : false; }
<?php // comment_count_and_link echo render('_parts/comment/count_and_link_display', array('id' => $thread->id, 'count' => $all_comment_count, 'link_hide_absolute' => true)); ?> <?php // like_count_and_link if (conf('like.isEnabled') && Auth::check()) { $data_like_link = array('id' => $thread->id, 'post_uri' => \Site_Util::get_api_uri_update_like('thread', $thread->id), 'get_member_uri' => \Site_Util::get_api_uri_get_liked_members('thread', $thread->id), 'count_attr' => array('class' => 'unset_like_count'), 'count' => $thread->like_count, 'is_liked' => $is_liked_self); echo render('_parts/like/count_and_link_execute', $data_like_link); } ?> <!-- share button --> <?php if (conf('site.common.shareButton.isEnabled', 'page') && check_public_flag($thread->public_flag)) { echo render('_parts/services/share', array('text' => $thread->title)); } ?> </div><!-- .comment_info --> <div id="comment_list"> <?php echo render('_parts/comment/list', array('is_detail' => true, 'parent' => $thread, 'list' => $comments, 'next_id' => $comment_next_id, 'delete_uri' => 'thread/comment/api/delete.json', 'counter_selector' => '#comment_count_' . $thread->id, 'list_more_box_attrs' => array('data-uri' => 'thread/comment/api/list/' . $thread->id . '.json', 'data-template' => '#comment-template'), 'like_api_uri_prefix' => 'thread/comment', 'liked_ids' => $liked_ids)); ?> </div> <?php if (Auth::check()) { $button_attrs = array('data-post_uri' => 'thread/comment/api/create/' . $thread->id . '.json', 'data-get_uri' => 'thread/comment/api/list/' . $thread->id . '.json', 'data-list' => '#comment_list', 'data-template' => '#comment-template', 'data-counter' => '#comment_count_' . $thread->id, 'data-latest' => 1); echo render('_parts/comment/post', array('id' => $thread->id, 'size' => 'M', 'button_attrs' => $button_attrs, 'textarea_attrs' => array('id' => 'textarea_comment_' . $thread->id)));
<?php if (conf('profile.birthday.birthyear.viewType')) { echo Util_Date::calc_age($member->birthyear, check_public_flag($member->birthday_public_flag, $access_from) ? $member->birthday : null); ?> 歳<?php } else { echo $member->birthyear; ?> 年<?php } ?> </div> </div> <?php } if (!$is_simple_list && !empty($member_profiles) && $member->birthday && check_display_type(conf('profile.birthday.birthday.displayType'), $display_type) && check_public_flag($member->birthday_public_flag, $access_from)) { ?> <div class="row"> <div class="col-xs-4 u-alr"><label><?php echo term('member.birthday'); ?> </label></div> <div class="col-xs-8"><?php echo Util_Date::conv_date_format($member->birthday, '%d月%d日'); ?> </div> </div> <?php } if (!empty($member_profiles)) { ?>