Skip to content

Commit

Permalink
refactor description and traslate
Browse files Browse the repository at this point in the history
  • Loading branch information
leodudedev committed Nov 5, 2022
1 parent 5e15051 commit 878b71e
Show file tree
Hide file tree
Showing 21 changed files with 361 additions and 66 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ If the "Simple Limited Access" plugin was useful to you, please [support me with

With "Simple Limited Access" you can limit access to specific pages or post_type by forcing the user to enter a username and password that you can define in the configuration screen.

The username and password pairs are managed through a simple textarea in the plugin configuration.

You can also set a message and background color on the login screen

## How to use
Expand Down
14 changes: 7 additions & 7 deletions admin/class-simple-limited-access-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* The admin-specific functionality of the plugin.
*
* @link https://github.com/leodudedev/Simple-Limited-Access
* @since 1.0.0
* @since 1.0.1
*
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/admin
Expand All @@ -26,7 +26,7 @@ class Simple_Limited_Access_Admin
/**
* The ID of this plugin.
*
* @since 1.0.0
* @since 1.0.1
* @access private
* @var string $plugin_name The ID of this plugin.
*/
Expand All @@ -35,14 +35,14 @@ class Simple_Limited_Access_Admin
/**
* The version of this plugin.
*
* @since 1.0.0
* @since 1.0.1
* @access private
* @var string $version The current version of this plugin.
*/
private $version;

/**
* @since 1.0.0
* @since 1.0.1
* @access protected
* @var Simple_Limited_Access_utils $utils
*/
Expand All @@ -53,7 +53,7 @@ class Simple_Limited_Access_Admin
*
* @param string $plugin_name The name of this plugin.
* @param string $version The version of this plugin.
* @since 1.0.0
* @since 1.0.1
*/
public function __construct($plugin_name, $version, $instance)
{
Expand All @@ -69,7 +69,7 @@ public function __construct($plugin_name, $version, $instance)
/**
* Register the stylesheets for the admin area.
*
* @since 1.0.0
* @since 1.0.1
*/
public function enqueue_styles()
{
Expand All @@ -90,7 +90,7 @@ public function enqueue_styles()
/**
* Register the JavaScript for the admin area.
*
* @since 1.0.0
* @since 1.0.1
*/
public function enqueue_scripts()
{
Expand Down
4 changes: 2 additions & 2 deletions admin/partials/config-basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<hr style="margin: 20px 0;">
<div>
<p style="margin: 0 0 5px 0">
<?php echo __('Enable on page', 'simple-limited-access'); ?>
<?php echo __('Restricts access to a specific page or pages', 'simple-limited-access'); ?>
</p>
<?php
$page_val = '';
Expand All @@ -127,7 +127,7 @@
<hr style="margin: 20px 0;">
<div>
<p style="margin: 0 0 5px 0">
<?php echo __('Enable on post_type', 'simple-limited-access'); ?>
<?php echo __('Limit access to one or more types of posts', 'simple-limited-access'); ?>
</p>
<?php
$post_type_val = '';
Expand Down
2 changes: 1 addition & 1 deletion admin/partials/simple-limited-access-admin-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://github.com/leodudedev/Simple-Limited-Access
* @since 1.0.0
* @since 1.0.1
*
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/admin/partials
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "leodudedev/simple-limited-access",
"type": "library",
"description": "Simple Limited Access is a wordpress plugin to restrict access on certain pages/post_type via a basic login form",
"description": "With Simple Limited Access you can limit access to specific pages or post_type by forcing the user to enter a username and password that you can define in the configuration screen.",
"keywords": ["wordpress","login", "limited access"],
"homepage": "https://github.com/leodudedev/Simple-Limited-Access",
"license": "MIT",
Expand Down
10 changes: 4 additions & 6 deletions includes/class-simple-limited-access-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Fired during plugin activation
*
* @link https://github.com/leodudedev/Simple-Limited-Access
* @since 1.0.0
* @since 1.0.1
*
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
Expand All @@ -15,7 +15,7 @@
*
* This class defines all code necessary to run during the plugin's activation.
*
* @since 1.0.0
* @since 1.0.1
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
* @author Leonardo Pinori <[email protected]>
Expand All @@ -24,11 +24,9 @@ class Simple_Limited_Access_Activator
{

/**
* Short Description. (use period)
* With "Simple Limited Access" you can limit access to specific pages or post_type by forcing the user to enter a username and password that you can define in the configuration screen.
*
* Long Description.
*
* @since 1.0.0
* @since 1.0.1
*/
public static function activate()
{
Expand Down
9 changes: 4 additions & 5 deletions includes/class-simple-limited-access-deactivator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Fired during plugin deactivation
*
* @link https://github.com/leodudedev/Simple-Limited-Access
* @since 1.0.0
* @since 1.0.1
*
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
Expand All @@ -15,7 +15,7 @@
*
* This class defines all code necessary to run during the plugin's deactivation.
*
* @since 1.0.0
* @since 1.0.1
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
* @author Leonardo Pinori <[email protected]>
Expand All @@ -24,11 +24,10 @@ class Simple_Limited_Access_Deactivator
{

/**
* Short Description. (use period)
*
* Long Description.
* With "Simple Limited Access" you can limit access to specific pages or post_type by forcing the user to enter a username and password that you can define in the configuration screen.
*
* @since 1.0.0
* @since 1.0.1
*/
public static function deactivate()
{
Expand Down
6 changes: 3 additions & 3 deletions includes/class-simple-limited-access-i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* so that it is ready for translation.
*
* @link https://github.com/leodudedev/Simple-Limited-Access
* @since 1.0.0
* @since 1.0.1
*
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
Expand All @@ -19,7 +19,7 @@
* Loads and defines the internationalization files for this plugin
* so that it is ready for translation.
*
* @since 1.0.0
* @since 1.0.1
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
* @author Leonardo Pinori <[email protected]>
Expand All @@ -31,7 +31,7 @@ class Simple_Limited_Access_i18n
/**
* Load the plugin text domain for translation.
*
* @since 1.0.0
* @since 1.0.1
*/
public function load_plugin_textdomain()
{
Expand Down
16 changes: 8 additions & 8 deletions includes/class-simple-limited-access-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Register all actions and filters for the plugin
*
* @link https://github.com/leodudedev/Simple-Limited-Access
* @since 1.0.0
* @since 1.0.1
*
* @package Simple_Limited_Access
* @subpackage Simple_Limited_Access/includes
Expand All @@ -27,7 +27,7 @@ class Simple_Limited_Access_Loader
/**
* The array of actions registered with WordPress.
*
* @since 1.0.0
* @since 1.0.1
* @access protected
* @var array $actions The actions registered with WordPress to fire when the plugin loads.
*/
Expand All @@ -36,7 +36,7 @@ class Simple_Limited_Access_Loader
/**
* The array of filters registered with WordPress.
*
* @since 1.0.0
* @since 1.0.1
* @access protected
* @var array $filters The filters registered with WordPress to fire when the plugin loads.
*/
Expand All @@ -45,7 +45,7 @@ class Simple_Limited_Access_Loader
/**
* Initialize the collections used to maintain the actions and filters.
*
* @since 1.0.0
* @since 1.0.1
*/
public function __construct()
{
Expand All @@ -57,7 +57,7 @@ public function __construct()
/**
* Add a new action to the collection to be registered with WordPress.
*
* @since 1.0.0
* @since 1.0.1
* @param string $hook The name of the WordPress action that is being registered.
* @param object $component A reference to the instance of the object on which the action is defined.
* @param string $callback The name of the function definition on the $component.
Expand All @@ -72,7 +72,7 @@ public function add_action($hook, $component, $callback, $priority = 10, $accept
/**
* Add a new filter to the collection to be registered with WordPress.
*
* @since 1.0.0
* @since 1.0.1
* @param string $hook The name of the WordPress filter that is being registered.
* @param object $component A reference to the instance of the object on which the filter is defined.
* @param string $callback The name of the function definition on the $component.
Expand All @@ -88,7 +88,7 @@ public function add_filter($hook, $component, $callback, $priority = 10, $accept
* A utility function that is used to register the actions and hooks into a single
* collection.
*
* @since 1.0.0
* @since 1.0.1
* @access private
* @param array $hooks The collection of hooks that is being registered (that is, actions or filters).
* @param string $hook The name of the WordPress filter that is being registered.
Expand All @@ -115,7 +115,7 @@ private function add($hooks, $hook, $component, $callback, $priority, $accepted_
/**
* Register the filters and actions with WordPress.
*
* @since 1.0.0
* @since 1.0.1
*/
public function run()
{
Expand Down
Loading

0 comments on commit 878b71e

Please sign in to comment.