Ejemplo n.º 1
0
    
  }// end of ure_Actions()


  function ure_onSubmit() {
    if (!confirm('<?php 
echo sprintf(__('User "%s" update: please confirm to continue', 'ure'), $ure_userToEdit->display_name);
?>
')) {
      return false;
    }
  }

</script>
<?php 
ure_displayBoxStart(__('Change capabilities for user', 'ure') . ' &lt;' . $ure_userToEdit->display_name . '&gt;');
?>
  <div style="float: left;"><?php 
echo __('Role:', 'ure') . ' ' . $roleSelectHTML;
?>
</div>
  <?php 
if ($ure_caps_readable) {
    $checked = 'checked="checked"';
} else {
    $checked = '';
}
?>
  <div style="display:inline;float: right;"><input type="checkbox" name="ure_caps_readable" id="ure_caps_readable" value="1" <?php 
echo $checked;
?>
Ejemplo n.º 2
0
echo URE_PLUGIN_URL . '/images/faq-icon.png';
?>
)" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/#faq"><?php 
_e('FAQ', 'ure');
?>
</a>
                      <a class="ure_rsb_link" style="background-image:url(<?php 
echo URE_PLUGIN_URL . '/images/donate-icon.png';
?>
)" target="_blank" href="http://www.shinephp.com/donate"><?php 
_e('Donate', 'ure');
?>
</a>
									<?php 
ure_displayBoxEnd();
ure_displayBoxStart(__('Greetings:', 'ure'));
?>
											<a class="ure_rsb_link" style="background-image:url(<?php 
echo $shinephpFavIcon;
?>
);" target="_blank" title="<?php 
_e("It's me, the author", 'ure');
?>
" href="http://www.shinephp.com/">Vladimir</a>
                      <a class="ure_rsb_link" style="background-image:url(<?php 
echo URE_PLUGIN_URL . '/images/marsis.png';
?>
)" target="_blank" title="<?php 
_e("For the help with Belorussian translation", 'ure');
?>
" href="http://pc.de">Marsis G.</a>
Ejemplo n.º 3
0
  foreach ($ure_rolesCanDelete as $key=>$value) {
    $roleDeleteHTML .= '<option value="'.$key.'">'.__($value, 'ure').'</option>';
  }
  $roleDeleteHTML .= '</select>';
} else {
  $roleDeleteHTML = '';
}

$capabilityRemoveHTML = ure_getCapsToRemoveHTML();

?>

						<div class="has-sidebar-content">

<?php
						ure_displayBoxStart(__('Select Role and change its capabilities list', 'ure'), 'min-width:700px;');
?>
              <div style="float: left;"><?php echo __('Select Role:', 'ure').' '.$roleSelectHTML; ?></div>
<?php
  if ($ure_caps_readable) {
    $checked = 'checked="checked"';
  } else {
    $checked = '';
  }
?>
              <div style="display:inline;float:right;">
                <input type="checkbox" name="ure_caps_readable" id="ure_caps_readable" value="1" <?php echo $checked; ?> onclick="ure_turn_caps_readable(0);"/>
                <label for="ure_caps_readable"><?php _e('Show capabilities in human readable form', 'ure'); ?></label><br />
<?php
    if ($ure_show_deprecated_caps) {
      $checked = 'checked="checked"';
Ejemplo n.º 4
0
<div class="ure-bottom-box-input">
  <input type="text" name="new_user_capability" id="new_user_capability" size="25"/>
</div>
<div class="submit" style="margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; width: 100%; text-align: center;">
  <input type="button" name="addnewcapability" value="<?php 
_e('Add', 'ure');
?>
" title="<?php 
_e('Add New Capability', 'ure');
?>
" onclick="ure_Actions('addnewcapability');" />
</div>
<?php 
ure_displayBoxEnd();
if ($capabilityRemoveHTML) {
    ure_displayBoxStart(__('Remove Capability', 'ure'), $boxStyle);
    ?>
<div class="ure-bottom-box-input">
  <?php 
    echo $capabilityRemoveHTML;
    ?>
</div>
<div class="submit" style="margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; width: 100%; text-align: center;">
  <input type="button" name="removecapability" value="<?php 
    _e('Remove', 'ure');
    ?>
" title="<?php 
    _e('Remove User Capability', 'ure');
    ?>
" onclick="ure_Actions('removeusercapability');" />
</div>
Ejemplo n.º 5
0
    if (!confirm('<?php 
echo sprintf(__('User "%s" update: please confirm to continue', 'ure'), $ure_userToEdit->display_name);
?>
')) {
      return false;
    }
  }

</script>
<?php 
$userInfo = ' <span style="font-weight: bold;">' . $ure_userToEdit->user_login;
if ($ure_userToEdit->display_name !== $ure_userToEdit->user_login) {
    $userInfo .= ' (' . $ure_userToEdit->display_name . ')';
}
$userInfo .= '</span>';
ure_displayBoxStart(__('Change capabilities for user', 'ure') . $userInfo);
?>
  <div style="float: left;"><?php 
echo __('Role:', 'ure') . ' ' . $roleSelectHTML;
?>
</div>
  <?php 
if ($ure_caps_readable) {
    $checked = 'checked="checked"';
} else {
    $checked = '';
}
?>
  <div style="display:inline;float: right;"><input type="checkbox" name="ure_caps_readable" id="ure_caps_readable" value="1" <?php 
echo $checked;
?>
Ejemplo n.º 6
0
 */

if (!defined('URE_PLUGIN_URL')) {
  die;  // Silence is golden, direct call is prohibited
}

?>

<div class="has-sidebar-content">
<?php
  $userInfo = ' <span style="font-weight: bold;"><a href="' . wp_nonce_url("user-edit.php?user_id={$ure_userToEdit->ID}", "ure_user_{$ure_userToEdit->ID}") .'" >' . $ure_userToEdit->user_login; 
  if ($ure_userToEdit->display_name!==$ure_userToEdit->user_login) {
    $userInfo .= ' ('.$ure_userToEdit->display_name.')';
  }
  $userInfo .= '</a></span>';
	ure_displayBoxStart(__('Change capabilities for user', 'ure').$userInfo, 'min-width:810px;');
 
?>
<table cellpadding="0" cellspacing="0">
	<tr>
		<td>&nbsp;</td>		
		<td style="padding-left: 10px; padding-bottom: 5px;">
  <?php
  if ($ure_caps_readable) {
    $checked = 'checked="checked"';
  } else {
    $checked = '';
  }
?>
  
		<input type="checkbox" name="ure_caps_readable" id="ure_caps_readable" value="1" <?php echo $checked; ?> onclick="ure_turn_caps_readable(<?php echo $ure_userToEdit->ID; ?>);"  />
Ejemplo n.º 7
0
				<img width="250" height="250" alt="ManageWP" src="<?php 
echo URE_PLUGIN_URL;
?>
/images/mwp250_2.png">
			</a>                        
		</div>  

		<div style="text-align: center;">
			<a href="http://chooseplugin.com"><img src="<?php 
echo URE_PLUGIN_URL . '/images/chooseplugin.png';
?>
" alt="Choose WordPress plugins with ChoosePlugin.com" title="Advanced search WordPress plugins service from User Role Editor developer" /></a>
		</div>  

		<?php 
ure_displayBoxStart(__('About this Plugin:', 'ure'));
?>
		<a class="ure_rsb_link" style="background-image:url(<?php 
echo $shinephpFavIcon;
?>
);" target="_blank" href="http://www.shinephp.com/"><?php 
_e("Author's website", 'ure');
?>
</a>
		<a class="ure_rsb_link" style="background-image:url(<?php 
echo URE_PLUGIN_URL . '/images/user-role-editor-icon.png';
?>
);" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/"><?php 
_e('Plugin webpage', 'ure');
?>
</a>