<?php

$viewType_options = \Timeline\Form_MemberConfig::get_viewType_options(null, true);
$menus = array();
foreach ($viewType_options as $value => $label) {
    $menu = array('label' => $label);
    if ($value == $timeline_viewType) {
        $menu['tag'] = 'span';
        $menu['attr'] = array('class' => 'disabled');
    } else {
        $menu['tag'] = 'a';
        $menu['attr'] = array('class' => 'timeline_viewType', 'data-value' => $value, 'data-member_id' => $id);
    }
    $menus[] = $menu;
}
echo btn_dropdown(\Timeline\Form_MemberConfig::get_viewType_options($timeline_viewType, true), $menus, true, 'sm', null, true);
Beispiel #2
0
if (!$u->check_registered_oauth(true)) {
    ?>
	<?php 
    echo form_text(!empty($u->member_auth->password) ? sprintf('<span class="text-muted">%s</span>', term('site.set_already')) : sprintf('<span class="text-danger">%s</span>', term('site.unset')), term('site.password'), $label_col_size, true, array('uri' => 'member/setting/password', 'text' => icon('cog') . ' ' . term('form.edit'), 'is_safe_text' => true));
}
?>

<?php 
if (is_enabled('notice')) {
    ?>
	<?php 
    echo form_text(sprintf('<span class="text-muted">%sを%sを%sします</span>', term('notice'), term('form.recieve', 'site.item'), term('site.setting')), term('notice', 'site.setting'), $label_col_size, true, array('uri' => 'member/setting/notice', 'text' => icon('cog') . ' ' . term('form.edit'), 'is_safe_text' => true));
}
?>

<?php 
if (is_enabled('timeline')) {
    ?>
	<?php 
    echo form_text(\Timeline\Form_MemberConfig::get_viewType_options($member_config->timeline_viewType), term('timeline', 'site.display', 'site.setting'), $label_col_size, true, array('uri' => 'member/setting/timeline/viewtype', 'text' => icon('cog') . ' ' . term('form.edit'), 'is_safe_text' => true));
}
?>

</div>

<div class="list-group">
	<?php 
echo Html::anchor($this->u->check_registered_oauth() ? 'member/leave/confirm' : 'member/leave', term('site.leave'), array('class' => 'list-group-item list-group-item-danger'));
?>
</div>