<?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);
示例#2
0
<?php

if (check_acl($uri = 'admin/member/delete')) {
    $menus = array(array('icon_term' => 'form.do_delete', 'attr' => array('class' => 'js-simplePost', 'data-uri' => $uri . '/' . $member->id, 'data-msg' => term('common.force', 'site.left') . 'します。よろしいですか?')));
    echo btn_dropdown('form.edit', $menus, true, null, null, true, array('class' => 'edit'));
}
示例#3
0
<?php

echo render('_parts/member_contents_box', array('member' => $note->member, 'id' => $note->id, 'public_flag' => $note->public_flag, 'model' => 'note', 'size' => 'M', 'date' => array('datetime' => $note->published_at ? $note->published_at : $note->updated_at, 'label' => $note->published_at ? term('site.datetime') : term('form.updated', 'site.datetime'))));
?>

<?php 
if (Auth::check()) {
    $dropdown_btn_group_attr = array('id' => 'btn_dropdown_' . $note->id, 'class' => array('dropdown', 'boxBtn', 'edit'));
    $dropdown_btn_attr = array('class' => 'js-dropdown_content_menu', 'data-uri' => sprintf('note/api/menu/%d.html?is_detail=1', $note->id), 'data-member_id' => $note->member_id, 'data-menu' => '#menu_' . $note->id, 'data-loaded' => 0);
    echo btn_dropdown('noterm.dropdown', array(), false, 'xs', null, true, $dropdown_btn_group_attr, $dropdown_btn_attr, false);
}
示例#4
0
文件: list.php 项目: uzura8/flockbird
</h5>
<?php 
        }
        ?>

<?php 
        if (empty($is_simple_view)) {
            ?>
			<div class="article">
			</div><!-- article -->
<?php 
        }
        $menus = array();
        $menus[] = array('icon_term' => 'site.show_detail', 'href' => 'admin/content/image/' . $image->id);
        $menus[] = array('icon_term' => 'form.do_delete', 'attr' => array('class' => 'js-ajax-delete', 'data-parent' => '#image_item_' . $image->id, 'data-uri' => 'admin/content/image/api/delete/' . $image->id . '.json'));
        echo btn_dropdown('form.edit', $menus, false, 'xs', null, true, array('class' => 'btn_album_image_edit', 'id' => 'btn_album_image_edit_' . $image->id));
        ?>
		</div><!-- imgBox -->

	</div><!-- image_item -->
<?php 
    }
    ?>
</div><!-- image_list -->
</div><!-- row -->
<?php 
}
?>

<?php 
if (empty($is_simple_view) && !empty($next_page)) {