echo $user->username; ?> </td> <td><?php echo \Admin\Site_AdminUser::get_gruop_name($user->group, true); ?> </td> <td> <?php if (Auth::member(100)) { ?> <?php echo $user->email; } else { ?> <?php echo sprintf('<span class="text-muted">%s</span>', term('site.set_already')); } ?> </td> <td><?php echo site_get_time($user->created_at, 'relative', 'Y/m/d H:i'); ?> </td> </tr> <?php } ?> </table> <?php }
?> <h5><?php echo Html::anchor('album/image/' . $album_image->id, strim(\Album\Site_Util::get_album_image_display_name($album_image), Config::get('album.articles.trim_width.name'))); ?> </h5> <?php } ?> <?php if (empty($is_simple_view)) { if (!empty($is_member_page)) { ?> <div class="date_box"> <small><?php echo site_get_time($album_image->created_at); ?> </small> <?php $is_mycontents = Auth::check() && $u->id == $album_image->album->member_id; echo render('_parts/public_flag_selecter', array('model' => 'album_image', 'id' => $album_image->id, 'public_flag' => $album_image->public_flag, 'is_mycontents' => $is_mycontents, 'view_icon_only' => true, 'disabled_to_update' => \Album\Site_Util::check_album_disabled_to_update($album_image->album->foreign_table))); ?> </div> <?php } else { echo render('_parts/member_contents_box', array('member' => $album_image->album->member, 'id' => $album_image->id, 'public_flag' => $album_image->public_flag, 'public_flag_view_icon_only' => true, 'public_flag_disabled_to_update' => \Album\Site_Util::check_album_disabled_to_update($album_image->album->foreign_table), 'model' => 'album_image', 'date' => array('datetime' => $album_image->created_at))); } } ?> <?php
private static function get_prview_header_info($is_published, $published_at) { $header_info = array(); switch ($status = Site_Util::get_status($is_published, $published_at)) { case 'closed': $header_info = array('body' => sprintf('この%sはまだ%sされていません。', term('news.view'), term('form.publish')), 'type' => 'danger'); break; case 'reserved': $header_info = array('body' => sprintf('この%sは %s に%sされます。', term('news.view'), site_get_time($published_at, 'normal', 'Y/m/d H:i'), term('form.publish'))); break; } return $header_info; }
echo render('_parts/thumbnails', array('images' => $images)); } ?> </div> <?php if ($date || isset($public_flag, $model, $id)) { ?> <div class="sub_info"> <?php if ($date) { ?> <small class="mr10"><?php if (!empty($date['label'])) { echo $date['label'] . ': '; } echo site_get_time($date['datetime']); ?> </small> <?php } // reply link if (!empty($reply_link)) { echo render('notice::_parts/link_reply', $reply_link); } // like count and link if (!empty($like_link)) { echo render('_parts/like/count_and_link_execute', $like_link); } // public_flag if (isset($public_flag, $model, $id)) { $is_mycontents = Auth::check() && isset($member) && $u->id == $member->id;
?> warning<?php } elseif ($status == 'closed') { ?> muted<?php } else { ?> normal<?php } ?> "> <?php if (isset_datatime($news->published_at)) { echo site_get_time($news->published_at, 'both', 'Y/m/d H:i'); } else { echo symbol('noValue'); } ?> </td> <td class="fs12"><?php echo site_get_time($news->updated_at, 'relative', 'Y/m/d H:i'); ?> </td> </tr> <?php } ?> </table> <?php echo Pagination::instance('mypagination')->render(); }
<th><?php echo term('form.invite', 'site.datetime'); ?> </th> </tr> <?php foreach ($member_pres as $id => $member_pre) { ?> <tr id="invite_<?php echo $id; ?> "> <td><?php echo btn('form.delete', '#', 'js-ajax-delete', false, 'xs', null, array('data-uri' => 'member/invite/api/cancel/' . $id, 'data-msg' => term('form.invite') . 'を取り消しますか?', 'data-parent' => '#invite_' . $id)); ?> </td> <td><?php echo $member_pre->email; ?> </td> <td><?php echo site_get_time($member_pre->created_at); ?> </td> </tr> <?php } ?> </table> <?php }
<div class="thumbnails"> <?php echo render('_parts/thumbnails', array('images' => $images, 'is_modal_link' => \Timeline\Site_Util::check_image_to_display_slide_modal($timeline->type))); ?> </div> <?php } ?> <?php /* time & public_flag */ ?> <div class="sub_info"> <small class="mr10"><?php echo site_get_time($timeline->created_at); ?> </small> <?php $public_flag_info = \Timeline\Site_Util::get_public_flag_info($timeline); $data = array('model' => $public_flag_info['model'], 'id' => $public_flag_info['public_flag_target_id'], 'public_flag' => $timeline->public_flag, 'view_icon_only' => false, 'have_children_public_flag' => $public_flag_info['have_children_public_flag'], 'disabled_to_update' => $public_flag_info['disabled_to_update'], 'use_in_cache' => true, 'member_id' => $timeline->member_id); if (!empty($child_model)) { $data['child_model'] = $child_model; } if (!empty($public_flag_info['option_type'])) { $data['option_type'] = $public_flag_info['option_type']; } echo render('_parts/public_flag_selecter', $data); ?> </div><!-- sub_info -->
"> <div class="content"><?php echo img(\Album\Model_AlbumImage::get_album_cover_filename($album->cover_album_image_id, $album->id, $access_from), 'M', 'album/' . $album->id); ?> </div> <h5><?php echo Html::anchor('album/' . $album->id, strim($album->name, \Config::get('album.articles.trim_width.name'))); ?> </h5> <?php $disable_to_update = \Album\Site_Util::check_album_disabled_to_update($album->foreign_table); if (!empty($is_member_page)) { ?> <div class="date_box"> <small><?php echo site_get_time($album->created_at); ?> </small> <?php $is_mycontents = Auth::check() && $u->id == $album->member_id; echo render('_parts/public_flag_selecter', array('model' => 'album', 'id' => $album->id, 'public_flag' => $album->public_flag, 'is_mycontents' => $is_mycontents, 'view_icon_only' => true, 'disabled_to_update' => $disable_to_update, 'have_children_public_flag' => true, 'child_model' => 'album_image')); ?> </div><!-- date_box --> <?php } else { echo render('_parts/member_contents_box', array('member' => $album->member, 'id' => $album->id, 'public_flag' => $album->public_flag, 'public_flag_view_icon_only' => true, 'public_flag_disabled_to_update' => $disable_to_update, 'have_children_public_flag' => true, 'model' => 'album', 'date' => array('datetime' => $album->created_at), 'child_model' => 'album_image')); } $album_image_count = \Album\Model_AlbumImage::get_list_count(array('where' => \Site_Model::get_where_public_flag4access_from($access_from, array(array('album_id', $album->id))))); ?> <div class="article"> <div class="body"><?php
?> </small></li> <?php } ?> <li><small> <label><?php echo empty($is_simple_view) ? term('form.publish', 'site.datetime') : term('form.publish'); ?> :</label> <?php echo site_get_time($news->published_at); ?> </small></li> <?php if (empty($is_simple_view)) { ?> <li><small><label><?php echo term('site.last', 'form.updated', 'site.datetime'); ?> :</label> <?php echo site_get_time($news->updated_at); ?> </small></li> <?php } ?> </ul>
?> <td class="small"><?php echo btn('form.edit', $uri . '/' . $content_page->id, '', false, 'xs'); ?> </td> <?php } else { ?> <td class="small"><?php echo symbol('noValue'); ?> </td> <?php } ?> <td><?php echo site_get_time($content_page->created_at, 'relative', 'Y/m/d H:i'); ?> </td> <td><?php echo site_get_time($content_page->updated_at, 'relative', 'Y/m/d H:i'); ?> </td> </tr> <?php } ?> </table> <?php echo Pagination::instance('mypagination')->render(); }
echo symbol('noValue'); ?> </td> <?php } ?> <td><?php echo Html::anchor('admin/member/' . $member->id, $member->name); ?> </td> <td><?php echo isset($member->sex) && strlen($member->sex) ? \Site_Form::get_form_options4config('term.member.sex.options', $member->sex) : symbol('noValue'); ?> </td> <td class="fs12"><?php echo site_get_time($member->created_at, 'relative', 'Y/m/d H:i'); ?> </td> <td class="fs12"><?php echo site_get_time($member->last_login, 'relative', 'Y/m/d H:i'); ?> </td> </tr> <?php } ?> </table> <?php echo Pagination::instance('mypagination')->render(); }
<ul class="list-inline mt10"> <li><small><label><?php echo term('site.last', 'form.updated', 'site.datetime'); ?> :</label> <?php echo site_get_time($content_page->updated_at); ?> </small></li> <li><?php echo label_is_secure($content_page->is_secure); ?> </li> </ul> <?php $menus = array(array('icon_term' => 'form.do_edit', 'href' => 'admin/content/page/edit/' . $content_page->id), array('icon_term' => 'form.do_delete', 'attr' => array('class' => 'js-simplePost', 'data-uri' => 'admin/content/page/delete/' . $content_page->id, 'data-msg' => '削除します。よろしいですか?'))); echo btn_dropdown('form.edit', $menus, true, null, null, true, array('class' => 'edit'));
<ul class="list-inline mt10"> <li><small><label><?php echo term('site.registration'); ?> :</label> <?php echo site_get_time($member->created_at); ?> </small></li> <?php if ($member->last_login) { ?> <li><small><label>最終<?php echo term('site.login'); ?> :</label> <?php echo site_get_time($member->last_login); ?> </small></li><?php } ?> </ul> <?php } ?> </div> </div> <?php if (!$is_list) { ?> </div><?php }