本文整理匯總了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