Skip to content

Commit

Permalink
Updating some outstanding php short tags and upping the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
kirstyg committed Dec 14, 2017
1 parent b2b77fc commit 6adefdf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions penf_role_matrix.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php
global $wp_roles;
?>
<h1><? echo __('Permissions Editor for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></h1>
<p><? 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>
<p><? 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>
<h2><? echo __('Overview of each capability:', 'permissions-editor-for-ninja-forms') ?></h2>
<h1><?php echo __('Permissions Editor for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></h1>
<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>
<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>
<h2><?php echo __('Overview of each capability:', 'permissions-editor-for-ninja-forms') ?></h2>
<ul>
<li><strong><? echo __('Manage', 'permissions-editor-for-ninja-forms') ?></strong> - <? 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>
<li><strong><? echo __('Submissions', 'permissions-editor-for-ninja-forms') ?></strong> - <? echo __('enables the user to view the submissions from form users', 'permissions-editor-for-ninja-forms') ?></li>
<li><strong><? echo __('Import / Export', 'permissions-editor-for-ninja-forms') ?></strong> - <? echo __('provides the user with access to the Import / Export options for Ninja Forms', 'permissions-editor-for-ninja-forms') ?></li>
<li><strong><? echo __('Settings', 'permissions-editor-for-ninja-forms') ?></strong> - <? echo __('provides user with access to the Ninja Forms settings', 'permissions-editor-for-ninja-forms') ?></li>
<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>
<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>
<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>
<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>
</ul>
<form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
<input type="hidden" name="action" value="penf_update_capabilities"/>
Expand All @@ -34,7 +34,7 @@
{
if($penfCapabilityKey == "penf_view_menu"){continue;}
?>
<td><input type="checkbox" name="<? echo $roleKey ?>[]" value="<? echo $penfCapabilityKey ?>" <? echo (isset($role['capabilities'][$penfCapabilityKey]) && $role['capabilities'][$penfCapabilityKey] == true) ? 'checked' : '' ?>/>
<td><input type="checkbox" name="<?php echo $roleKey ?>[]" value="<?php echo $penfCapabilityKey ?>" <?php echo (isset($role['capabilities'][$penfCapabilityKey]) && $role['capabilities'][$penfCapabilityKey] == true) ? 'checked' : '' ?>/>
<?php
} ?>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions permissions-editor-for-ninja_forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Permissions Editor for Ninja Forms
Description: This plugin enables you to select the Ninja Forms capabilities that you wish to enable different WordPress user roles to have access to.
Version: 1.1.1
Version: 1.1.2
Author: Rapid Web Ltd
Author URI: http://rapidweb.biz
Text Domain: permissions-editor-for-ninja-forms
Expand Down Expand Up @@ -65,7 +65,7 @@ function penf_activation() {
function penf_deactivated_admin_notice() {
?>
<div class="notice notice-info is-dismissible">
<?= __('<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') ?>
<?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') ?>
</div>
<?php
}
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: RapidWeb
Tags: ninja forms, permissions, form permissions, user permissions
Requires at least: 4.1
Tested up to: 4.8.1
Stable tag: 1.1.1
Stable tag: 1.1.2
License: LGPL-3.0
License URI: https://opensource.org/licenses/LGPL-3.0

Expand Down

0 comments on commit 6adefdf

Please sign in to comment.