本文整理汇总了PHP中nggGallery::current_user_can_form方法的典型用法代码示例。如果您正苦于以下问题:PHP nggGallery::current_user_can_form方法的具体用法?PHP nggGallery::current_user_can_form怎么用?PHP nggGallery::current_user_can_form使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nggGallery
的用法示例。
在下文中一共展示了nggGallery::current_user_can_form方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: nggallery_picturelist
//.........这里部分代码省略.........
?>
" accept-charset="utf-8">
<?php
wp_nonce_field('ngg_updategallery');
?>
<input type="hidden" name="page" value="manage-images" />
<?php
if (nggGallery::current_user_can('NextGEN Edit gallery options')) {
?>
<div id="poststuff">
<?php
wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
?>
<div id="gallerydiv" class="postbox <?php
echo postbox_classes('gallerydiv', 'ngg-manage-gallery');
?>
" >
<h3><?php
_e('Gallery settings', 'nggallery');
?>
<small> (<?php
_e('Click here for more settings', 'nggallery');
?>
)</small></h3>
<div class="inside">
<table class="form-table" >
<tr>
<th align="left"><?php
_e('Title');
?>
:</th>
<th align="left"><input <?php
nggGallery::current_user_can_form('NextGEN Edit gallery title');
?>
type="text" size="50" name="title" value="<?php
echo esc_attr(stripslashes($gallery->title));
?>
" /></th>
<th align="right"><?php
_e('Page Link to', 'nggallery');
?>
:</th>
<th align="left">
<select <?php
nggGallery::current_user_can_form('NextGEN Edit gallery page id');
?>
name="pageid" style="width:95%">
<option value="0" ><?php
_e('Not linked', 'nggallery');
?>
</option>
<?php
foreach (get_pages() as $page) {
?>
<option <?php
selected($gallery->pageid, $page->ID);
?>
value="<?php
echo esc_attr($page->ID);
?>
"><?php
echo esc_html($page->post_title);
?>
</option>
<?php