Changeset 1786942
- Timestamp:
- 12/14/2017 12:16:36 PM (8 years ago)
- Location:
- permissions-editor-for-ninja-forms
- Files:
-
- 3 edited
- 7 copied
-
tags/1.1.2 (copied) (copied from permissions-editor-for-ninja-forms/trunk)
-
tags/1.1.2/LICENSE (copied) (copied from permissions-editor-for-ninja-forms/trunk/LICENSE)
-
tags/1.1.2/README.md (copied) (copied from permissions-editor-for-ninja-forms/trunk/README.md)
-
tags/1.1.2/languages (copied) (copied from permissions-editor-for-ninja-forms/trunk/languages)
-
tags/1.1.2/penf_role_matrix.php (copied) (copied from permissions-editor-for-ninja-forms/trunk/penf_role_matrix.php) (4 diffs)
-
tags/1.1.2/permissions-editor-for-ninja_forms.php (copied) (copied from permissions-editor-for-ninja-forms/trunk/permissions-editor-for-ninja_forms.php) (2 diffs)
-
tags/1.1.2/readme.txt (copied) (copied from permissions-editor-for-ninja-forms/trunk/readme.txt) (1 diff)
-
trunk/penf_role_matrix.php (modified) (4 diffs)
-
trunk/permissions-editor-for-ninja_forms.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
permissions-editor-for-ninja-forms/tags/1.1.2/penf_role_matrix.php
r1772316 r1786942 1 <? 1 <?php 2 2 global $wp_roles; 3 3 ?> 4 <h1><? =__('Permissions Editor for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></h1>5 <p><? =__('Simply use the matrix below to select the Ninja Forms capabilities that you wish to enable the different user roles to have access to.', 'permissions-editor-for-ninja-forms') ?></p>6 <p><? =__('Please note that \'View Menu\' is required for any other capabilities and will be completed automatically upon selection of other capabilities.', 'permissions-editor-for-ninja-forms') ?></p>7 <h2><? =__('Overview of each capability:', 'permissions-editor-for-ninja-forms') ?></h2>4 <h1><?php echo __('Permissions Editor for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></h1> 5 <p><?php echo __('Simply use the matrix below to select the Ninja Forms capabilities that you wish to enable the different user roles to have access to.', 'permissions-editor-for-ninja-forms') ?></p> 6 <p><?php echo __('Please note that \'View Menu\' is required for any other capabilities and will be completed automatically upon selection of other capabilities.', 'permissions-editor-for-ninja-forms') ?></p> 7 <h2><?php echo __('Overview of each capability:', 'permissions-editor-for-ninja-forms') ?></h2> 8 8 <ul> 9 <li><strong><? = __('Manage', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('enables the user to add new forms, edit/manage existing forms and access the Ninja Forms \'Add-ons\'', 'permissions-editor-for-ninja-forms') ?></li>10 <li><strong><? = __('Submissions', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('enables the user to view the submissions from form users', 'permissions-editor-for-ninja-forms') ?></li>11 <li><strong><? = __('Import / Export', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('provides the user with access to the Import / Export options for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></li>12 <li><strong><? = __('Settings', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('provides user with access to the Ninja Forms settings', 'permissions-editor-for-ninja-forms') ?></li>9 <li><strong><?php echo __('Manage', 'permissions-editor-for-ninja-forms') ?></strong> - <?php echo __('enables the user to add new forms, edit/manage existing forms and access the Ninja Forms \'Add-ons\'', 'permissions-editor-for-ninja-forms') ?></li> 10 <li><strong><?php echo __('Submissions', 'permissions-editor-for-ninja-forms') ?></strong> - <php? echo __('enables the user to view the submissions from form users', 'permissions-editor-for-ninja-forms') ?></li> 11 <li><strong><?php echo __('Import / Export', 'permissions-editor-for-ninja-forms') ?></strong> - <?php echo __('provides the user with access to the Import / Export options for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></li> 12 <li><strong><?php echo __('Settings', 'permissions-editor-for-ninja-forms') ?></strong> - <?php echo __('provides user with access to the Ninja Forms settings', 'permissions-editor-for-ninja-forms') ?></li> 13 13 </ul> 14 14 <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>"> … … 17 17 <tr> 18 18 <th> </th> 19 <? 19 <?php 20 20 foreach(penf_get_caps() as $penfCapabilityKey => $penfCapability) 21 21 { if($penfCapabilityKey == "penf_view_menu"){continue;} … … 25 25 </tr> 26 26 27 <? 27 <?php 28 28 foreach($wp_roles->roles as $roleKey => $role) 29 29 { ?> 30 30 <tr> 31 <? 31 <?php 32 32 echo "<th>".$role['name']."</th>"; 33 33 foreach(penf_get_caps() as $penfCapabilityKey => $penfCapability) … … 35 35 if($penfCapabilityKey == "penf_view_menu"){continue;} 36 36 ?> 37 <td><input type="checkbox" name="<? = $roleKey ?>[]" value="<?= $penfCapabilityKey ?>" <?=(isset($role['capabilities'][$penfCapabilityKey]) && $role['capabilities'][$penfCapabilityKey] == true) ? 'checked' : '' ?>/>38 <? 37 <td><input type="checkbox" name="<?php echo $roleKey ?>[]" value="<?php echo $penfCapabilityKey ?>" <?php echo (isset($role['capabilities'][$penfCapabilityKey]) && $role['capabilities'][$penfCapabilityKey] == true) ? 'checked' : '' ?>/> 38 <?php 39 39 } ?> 40 40 </tr> 41 <? } ?>41 <?php } ?> 42 42 43 43 </table> -
permissions-editor-for-ninja-forms/tags/1.1.2/permissions-editor-for-ninja_forms.php
r1772324 r1786942 3 3 Plugin Name: Permissions Editor for Ninja Forms 4 4 Description: This plugin enables you to select the Ninja Forms capabilities that you wish to enable different WordPress user roles to have access to. 5 Version: 1.1. 15 Version: 1.1.2 6 6 Author: Rapid Web Ltd 7 7 Author URI: http://rapidweb.biz … … 66 66 ?> 67 67 <div class="notice notice-info is-dismissible"> 68 <? =__('<p>The <strong>Permissions Editor for Ninja Forms</strong> plugin has been deactivated, because the Ninja Forms plugin is no longer active.</p>', 'permissions-editor-for-ninja-forms') ?>68 <?php echo __('<p>The <strong>Permissions Editor for Ninja Forms</strong> plugin has been deactivated, because the Ninja Forms plugin is no longer active.</p>', 'permissions-editor-for-ninja-forms') ?> 69 69 </div> 70 70 <?php -
permissions-editor-for-ninja-forms/tags/1.1.2/readme.txt
r1772324 r1786942 4 4 Requires at least: 4.1 5 5 Tested up to: 4.8.1 6 Stable tag: 1.1. 16 Stable tag: 1.1.2 7 7 License: LGPL-3.0 8 8 License URI: https://opensource.org/licenses/LGPL-3.0 -
permissions-editor-for-ninja-forms/trunk/penf_role_matrix.php
r1772316 r1786942 1 <? 1 <?php 2 2 global $wp_roles; 3 3 ?> 4 <h1><? =__('Permissions Editor for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></h1>5 <p><? =__('Simply use the matrix below to select the Ninja Forms capabilities that you wish to enable the different user roles to have access to.', 'permissions-editor-for-ninja-forms') ?></p>6 <p><? =__('Please note that \'View Menu\' is required for any other capabilities and will be completed automatically upon selection of other capabilities.', 'permissions-editor-for-ninja-forms') ?></p>7 <h2><? =__('Overview of each capability:', 'permissions-editor-for-ninja-forms') ?></h2>4 <h1><?php echo __('Permissions Editor for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></h1> 5 <p><?php echo __('Simply use the matrix below to select the Ninja Forms capabilities that you wish to enable the different user roles to have access to.', 'permissions-editor-for-ninja-forms') ?></p> 6 <p><?php echo __('Please note that \'View Menu\' is required for any other capabilities and will be completed automatically upon selection of other capabilities.', 'permissions-editor-for-ninja-forms') ?></p> 7 <h2><?php echo __('Overview of each capability:', 'permissions-editor-for-ninja-forms') ?></h2> 8 8 <ul> 9 <li><strong><? = __('Manage', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('enables the user to add new forms, edit/manage existing forms and access the Ninja Forms \'Add-ons\'', 'permissions-editor-for-ninja-forms') ?></li>10 <li><strong><? = __('Submissions', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('enables the user to view the submissions from form users', 'permissions-editor-for-ninja-forms') ?></li>11 <li><strong><? = __('Import / Export', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('provides the user with access to the Import / Export options for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></li>12 <li><strong><? = __('Settings', 'permissions-editor-for-ninja-forms') ?></strong> - <?=__('provides user with access to the Ninja Forms settings', 'permissions-editor-for-ninja-forms') ?></li>9 <li><strong><?php echo __('Manage', 'permissions-editor-for-ninja-forms') ?></strong> - <?php echo __('enables the user to add new forms, edit/manage existing forms and access the Ninja Forms \'Add-ons\'', 'permissions-editor-for-ninja-forms') ?></li> 10 <li><strong><?php echo __('Submissions', 'permissions-editor-for-ninja-forms') ?></strong> - <php? echo __('enables the user to view the submissions from form users', 'permissions-editor-for-ninja-forms') ?></li> 11 <li><strong><?php echo __('Import / Export', 'permissions-editor-for-ninja-forms') ?></strong> - <?php echo __('provides the user with access to the Import / Export options for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></li> 12 <li><strong><?php echo __('Settings', 'permissions-editor-for-ninja-forms') ?></strong> - <?php echo __('provides user with access to the Ninja Forms settings', 'permissions-editor-for-ninja-forms') ?></li> 13 13 </ul> 14 14 <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>"> … … 17 17 <tr> 18 18 <th> </th> 19 <? 19 <?php 20 20 foreach(penf_get_caps() as $penfCapabilityKey => $penfCapability) 21 21 { if($penfCapabilityKey == "penf_view_menu"){continue;} … … 25 25 </tr> 26 26 27 <? 27 <?php 28 28 foreach($wp_roles->roles as $roleKey => $role) 29 29 { ?> 30 30 <tr> 31 <? 31 <?php 32 32 echo "<th>".$role['name']."</th>"; 33 33 foreach(penf_get_caps() as $penfCapabilityKey => $penfCapability) … … 35 35 if($penfCapabilityKey == "penf_view_menu"){continue;} 36 36 ?> 37 <td><input type="checkbox" name="<? = $roleKey ?>[]" value="<?= $penfCapabilityKey ?>" <?=(isset($role['capabilities'][$penfCapabilityKey]) && $role['capabilities'][$penfCapabilityKey] == true) ? 'checked' : '' ?>/>38 <? 37 <td><input type="checkbox" name="<?php echo $roleKey ?>[]" value="<?php echo $penfCapabilityKey ?>" <?php echo (isset($role['capabilities'][$penfCapabilityKey]) && $role['capabilities'][$penfCapabilityKey] == true) ? 'checked' : '' ?>/> 38 <?php 39 39 } ?> 40 40 </tr> 41 <? } ?>41 <?php } ?> 42 42 43 43 </table> -
permissions-editor-for-ninja-forms/trunk/permissions-editor-for-ninja_forms.php
r1772324 r1786942 3 3 Plugin Name: Permissions Editor for Ninja Forms 4 4 Description: This plugin enables you to select the Ninja Forms capabilities that you wish to enable different WordPress user roles to have access to. 5 Version: 1.1. 15 Version: 1.1.2 6 6 Author: Rapid Web Ltd 7 7 Author URI: http://rapidweb.biz … … 66 66 ?> 67 67 <div class="notice notice-info is-dismissible"> 68 <? =__('<p>The <strong>Permissions Editor for Ninja Forms</strong> plugin has been deactivated, because the Ninja Forms plugin is no longer active.</p>', 'permissions-editor-for-ninja-forms') ?>68 <?php echo __('<p>The <strong>Permissions Editor for Ninja Forms</strong> plugin has been deactivated, because the Ninja Forms plugin is no longer active.</p>', 'permissions-editor-for-ninja-forms') ?> 69 69 </div> 70 70 <?php -
permissions-editor-for-ninja-forms/trunk/readme.txt
r1772324 r1786942 4 4 Requires at least: 4.1 5 5 Tested up to: 4.8.1 6 Stable tag: 1.1. 16 Stable tag: 1.1.2 7 7 License: LGPL-3.0 8 8 License URI: https://opensource.org/licenses/LGPL-3.0
Note: See TracChangeset
for help on using the changeset viewer.