Plugin Directory

Changeset 2812699


Ignore:
Timestamp:
11/05/2022 04:57:11 PM (3 years ago)
Author:
leodudedev
Message:

release version 1.0.1

Location:
simple-limited-access/trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • simple-limited-access/trunk/README.md

    r2811312 r2812699  
    1414With "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.
    1515
     16The username and password pairs are managed through a simple textarea in the plugin configuration.
     17
    1618You can also set a message and background color on the login screen
    1719
  • simple-limited-access/trunk/admin/class-simple-limited-access-admin.php

    r2811312 r2812699  
    55 *
    66 * @link       https://github.com/leodudedev/Simple-Limited-Access
    7  * @since      1.0.0
     7 * @since      1.0.1
    88 *
    99 * @package    Simple_Limited_Access
     
    2727   * The ID of this plugin.
    2828   *
    29    * @since    1.0.0
     29   * @since    1.0.1
    3030   * @access   private
    3131   * @var      string $plugin_name The ID of this plugin.
     
    3636   * The version of this plugin.
    3737   *
    38    * @since    1.0.0
     38   * @since    1.0.1
    3939   * @access   private
    4040   * @var      string $version The current version of this plugin.
     
    4343
    4444  /**
    45    * @since    1.0.0
     45   * @since    1.0.1
    4646   * @access   protected
    4747   * @var      Simple_Limited_Access_utils $utils
     
    5454   * @param string $plugin_name The name of this plugin.
    5555   * @param string $version The version of this plugin.
    56    * @since    1.0.0
     56   * @since    1.0.1
    5757   */
    5858  public function __construct($plugin_name, $version, $instance)
     
    7070   * Register the stylesheets for the admin area.
    7171   *
    72    * @since    1.0.0
     72   * @since    1.0.1
    7373   */
    7474  public function enqueue_styles()
     
    9191   * Register the JavaScript for the admin area.
    9292   *
    93    * @since    1.0.0
     93   * @since    1.0.1
    9494   */
    9595  public function enqueue_scripts()
  • simple-limited-access/trunk/admin/partials/config-basic.php

    r2811312 r2812699  
    103103  <div>
    104104    <p style="margin: 0 0 5px 0">
    105       <?php echo __('Enable on page', 'simple-limited-access'); ?>
     105      <?php echo __('Restricts access to a specific page or pages', 'simple-limited-access'); ?>
    106106    </p>
    107107    <?php
     
    128128  <div>
    129129    <p style="margin: 0 0 5px 0">
    130       <?php echo __('Enable on post_type', 'simple-limited-access'); ?>
     130      <?php echo __('Limit access to one or more types of posts', 'simple-limited-access'); ?>
    131131    </p>
    132132    <?php
  • simple-limited-access/trunk/admin/partials/simple-limited-access-admin-display.php

    r2811312 r2812699  
    77 *
    88 * @link       https://github.com/leodudedev/Simple-Limited-Access
    9  * @since      1.0.0
     9 * @since      1.0.1
    1010 *
    1111 * @package    Simple_Limited_Access
  • simple-limited-access/trunk/composer.json

    r2811312 r2812699  
    22  "name": "leodudedev/simple-limited-access",
    33    "type": "library",
    4     "description": "Simple Limited Access is a wordpress plugin to restrict access on certain pages/post_type via a basic login form",
     4    "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.",
    55    "keywords": ["wordpress","login", "limited access"],
    66    "homepage": "https://github.com/leodudedev/Simple-Limited-Access",
  • simple-limited-access/trunk/includes/class-simple-limited-access-activator.php

    r2811312 r2812699  
    55 *
    66 * @link       https://github.com/leodudedev/Simple-Limited-Access
    7  * @since      1.0.0
     7 * @since      1.0.1
    88 *
    99 * @package    Simple_Limited_Access
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      1.0.0
     18 * @since      1.0.1
    1919 * @package    Simple_Limited_Access
    2020 * @subpackage Simple_Limited_Access/includes
     
    2525
    2626  /**
    27    * Short Description. (use period)
     27   * 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.
    2828   *
    29    * Long Description.
    30    *
    31    * @since    1.0.0
     29   * @since    1.0.1
    3230   */
    3331  public static function activate()
  • simple-limited-access/trunk/includes/class-simple-limited-access-deactivator.php

    r2811312 r2812699  
    55 *
    66 * @link       https://github.com/leodudedev/Simple-Limited-Access
    7  * @since      1.0.0
     7 * @since      1.0.1
    88 *
    99 * @package    Simple_Limited_Access
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      1.0.0
     18 * @since      1.0.1
    1919 * @package    Simple_Limited_Access
    2020 * @subpackage Simple_Limited_Access/includes
     
    2525
    2626  /**
    27    * Short Description. (use period)
    2827   *
    29    * Long Description.
     28   * 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.
    3029   *
    31    * @since    1.0.0
     30   * @since    1.0.1
    3231   */
    3332  public static function deactivate()
  • simple-limited-access/trunk/includes/class-simple-limited-access-i18n.php

    r2811312 r2812699  
    88 *
    99 * @link       https://github.com/leodudedev/Simple-Limited-Access
    10  * @since      1.0.0
     10 * @since      1.0.1
    1111 *
    1212 * @package    Simple_Limited_Access
     
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      1.0.0
     22 * @since      1.0.1
    2323 * @package    Simple_Limited_Access
    2424 * @subpackage Simple_Limited_Access/includes
     
    3232   * Load the plugin text domain for translation.
    3333   *
    34    * @since    1.0.0
     34   * @since    1.0.1
    3535   */
    3636  public function load_plugin_textdomain()
  • simple-limited-access/trunk/includes/class-simple-limited-access-loader.php

    r2811312 r2812699  
    55 *
    66 * @link       https://github.com/leodudedev/Simple-Limited-Access
    7  * @since      1.0.0
     7 * @since      1.0.1
    88 *
    99 * @package    Simple_Limited_Access
     
    2828   * The array of actions registered with WordPress.
    2929   *
    30    * @since    1.0.0
     30   * @since    1.0.1
    3131   * @access   protected
    3232   * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3737   * The array of filters registered with WordPress.
    3838   *
    39    * @since    1.0.0
     39   * @since    1.0.1
    4040   * @access   protected
    4141   * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4646   * Initialize the collections used to maintain the actions and filters.
    4747   *
    48    * @since    1.0.0
     48   * @since    1.0.1
    4949   */
    5050  public function __construct()
     
    5858   * Add a new action to the collection to be registered with WordPress.
    5959   *
    60    * @since    1.0.0
     60   * @since    1.0.1
    6161   * @param    string               $hook             The name of the WordPress action that is being registered.
    6262   * @param    object               $component        A reference to the instance of the object on which the action is defined.
     
    7373   * Add a new filter to the collection to be registered with WordPress.
    7474   *
    75    * @since    1.0.0
     75   * @since    1.0.1
    7676   * @param    string               $hook             The name of the WordPress filter that is being registered.
    7777   * @param    object               $component        A reference to the instance of the object on which the filter is defined.
     
    8989   * collection.
    9090   *
    91    * @since    1.0.0
     91   * @since    1.0.1
    9292   * @access   private
    9393   * @param    array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    116116   * Register the filters and actions with WordPress.
    117117   *
    118    * @since    1.0.0
     118   * @since    1.0.1
    119119   */
    120120  public function run()
  • simple-limited-access/trunk/includes/class-simple-limited-access.php

    r2811312 r2812699  
    88 *
    99 * @link       https://github.com/leodudedev/Simple-Limited-Access
    10  * @since      1.0.0
     10 * @since      1.0.1
    1111 *
    1212 * @package    Simple_Limited_Access
     
    2323 * version of the plugin.
    2424 *
    25  * @since      1.0.0
     25 * @since      1.0.1
    2626 * @package    Simple_Limited_Access
    2727 * @subpackage Simple_Limited_Access/includes
     
    3535   * the plugin.
    3636   *
    37    * @since    1.0.0
     37   * @since    1.0.1
    3838   * @access   protected
    3939   * @var      Simple_Limited_Access_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4444   * The unique identifier of this plugin.
    4545   *
    46    * @since    1.0.0
     46   * @since    1.0.1
    4747   * @access   protected
    4848   * @var      string    $plugin_name    The string used to uniquely identify this plugin.
     
    5353   * The current version of the plugin.
    5454   *
    55    * @since    1.0.0
     55   * @since    1.0.1
    5656   * @access   protected
    5757   * @var      string    $version    The current version of the plugin.
     
    6666   * the public-facing side of the site.
    6767   *
    68    * @since    1.0.0
     68   * @since    1.0.1
    6969   */
    7070  public function __construct()
     
    7373      $this->version = SIMPLE_LIMITED_ACCESS_VERSION;
    7474    } else {
    75       $this->version = '1.0.0';
     75      $this->version = '1.0.1';
    7676    }
    7777    $this->plugin_name = 'simple-limited-access';
     
    9696   * with WordPress.
    9797   *
    98    * @since    1.0.0
     98   * @since    1.0.1
    9999   * @access   private
    100100   */
     
    134134   * with WordPress.
    135135   *
    136    * @since    1.0.0
     136   * @since    1.0.1
    137137   * @access   private
    138138   */
     
    149149   * of the plugin.
    150150   *
    151    * @since    1.0.0
     151   * @since    1.0.1
    152152   * @access   private
    153153   */
     
    165165   * of the plugin.
    166166   *
    167    * @since    1.0.0
     167   * @since    1.0.1
    168168   * @access   private
    169169   */
     
    180180   * Run the loader to execute all of the hooks with WordPress.
    181181   *
    182    * @since    1.0.0
     182   * @since    1.0.1
    183183   */
    184184  public function run()
     
    191191   * WordPress and to define internationalization functionality.
    192192   *
    193    * @since     1.0.0
     193   * @since     1.0.1
    194194   * @return    string    The name of the plugin.
    195195   */
     
    202202   * The reference to the class that orchestrates the hooks with the plugin.
    203203   *
    204    * @since     1.0.0
     204   * @since     1.0.1
    205205   * @return    Simple_Limited_Access_Loader    Orchestrates the hooks of the plugin.
    206206   */
     
    213213   * Retrieve the version number of the plugin.
    214214   *
    215    * @since     1.0.0
     215   * @since     1.0.1
    216216   * @return    string    The version number of the plugin.
    217217   */
  • simple-limited-access/trunk/languages/simple-limited-access.pot

    r2811312 r2812699  
     1# Copyright (C) 2022 Leonardo Pinori
     2# This file is distributed under the GPL-2.0+.
     3#, fuzzy
     4msgid ""
     5msgstr ""
     6"Project-Id-Version: Simple Limited Access 1.0.1\n"
     7"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-limited-access\n"
     8"POT-Creation-Date: 2022-11-05 17:30+0100\n"
     9"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     10"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     11"Language-Team: LANGUAGE <LL@li.org>\n"
     12"MIME-Version: 1.0\n"
     13"Content-Type: text/plain; charset=UTF-8\n"
     14"Content-Transfer-Encoding: 8bit\n"
     15"X-Generator: Poedit 3.0.1\n"
     16"X-Domain: simple-limited-access\n"
     17
     18#. Plugin Name of the plugin
     19msgid "Simple Limited Access"
     20msgstr ""
     21
     22#. Plugin URI of the plugin
     23msgid "https://github.com/leodudedev/Simple-Limited-Access"
     24msgstr ""
     25
     26#. Description of the plugin
     27msgid "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."
     28msgstr ""
     29
     30#. Author of the plugin
     31msgid "Leonardo Pinori"
     32msgstr ""
     33
     34#: admin/class-simple-limited-access-admin.php:134
     35msgid "Simple Limited Access settings"
     36msgstr ""
     37
     38#: admin/partials/config-basic.php:87
     39msgid "Login page background"
     40msgstr ""
     41
     42#: admin/partials/config-basic.php:98
     43msgid "Info text on the login page"
     44msgstr ""
     45
     46#: admin/partials/config-basic.php:105
     47msgid "Restricts access to a specific page or pages"
     48msgstr ""
     49
     50#: admin/partials/config-basic.php:130
     51msgid "Limit access to one or more types of posts"
     52msgstr ""
     53
     54#: admin/partials/config-basic.php:153
     55msgid "Insert new line in the textarea to add a user"
     56msgstr ""
     57
     58#: admin/partials/config-basic.php:154
     59msgid "Username and password must be separated by colons"
     60msgstr ""
     61
     62#: admin/partials/config-basic.php:161
     63msgid "Cookie timeout in hours"
     64msgstr ""
     65
     66#: admin/partials/config-basic.php:162
     67msgid "Default value 2 hours"
     68msgstr ""
     69
     70#: admin/partials/config-basic.php:168
     71msgid "Save settings"
     72msgstr ""
     73
     74#: admin/partials/config-basic.php:178
     75msgid "Log accesses"
     76msgstr ""
     77
     78#: public/partials/form.php:127
     79msgid "Username"
     80msgstr ""
     81
     82#: public/partials/form.php:131
     83msgid "Password"
     84msgstr ""
     85
     86#: public/partials/form.php:134
     87msgid "Send"
     88msgstr ""
     89
     90#: public/partials/form.php:139
     91msgid "Wrong username or password"
     92msgstr ""
  • simple-limited-access/trunk/public/class-simple-limited-access-public.php

    r2811312 r2812699  
    55 *
    66 * @link       https://github.com/leodudedev/Simple-Limited-Access
    7  * @since      1.0.0
     7 * @since      1.0.1
    88 *
    99 * @package    Simple_Limited_Access
     
    2727   * The ID of this plugin.
    2828   *
    29    * @since    1.0.0
     29   * @since    1.0.1
    3030   * @access   private
    3131   * @var      string $plugin_name The ID of this plugin.
     
    3636   * The version of this plugin.
    3737   *
    38    * @since    1.0.0
     38   * @since    1.0.1
    3939   * @access   private
    4040   * @var      string $version The current version of this plugin.
     
    4343
    4444  /**
    45    * @since    1.0.0
     45   * @since    1.0.1
    4646   * @access   protected
    4747   * @var      Simple_Limited_Access_utils $utils
     
    5454   * @param string $plugin_name The name of the plugin.
    5555   * @param string $version The version of this plugin.
    56    * @since    1.0.0
     56   * @since    1.0.1
    5757   */
    5858  public function __construct($plugin_name, $version)
     
    7171   * Register the stylesheets for the public-facing side of the site.
    7272   *
    73    * @since    1.0.0
     73   * @since    1.0.1
    7474   */
    7575  public function enqueue_styles()
     
    9494   * Register the JavaScript for the public-facing side of the site.
    9595   *
    96    * @since    1.0.0
     96   * @since    1.0.1
    9797   */
    9898  public function enqueue_scripts()
  • simple-limited-access/trunk/public/partials/form.php

    r2811312 r2812699  
    6969      font-size: 20px;
    7070      outline: none;
    71       width: 100%;
     71      width: calc(100% - 20px);
    7272      color: black;
    7373      background-color: white;
     
    107107    .sla-tgt-form .sla-tgt-form-error {
    108108      margin: 20px 0 10px;
    109       color: red;
     109      color: tomato;
     110      text-shadow: 0px 0px 5px rgb(255 255 255 / 60%);
    110111    }
    111112  </style>
  • simple-limited-access/trunk/readme.txt

    r2811312 r2812699  
    55Tested up to: 6.0.3
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Simple Limited Access is a wordpress plugin to restrict access on certain pages/post_type via a basic login form
     11With "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.
     12The username and password pairs are managed through a simple textarea in the plugin configuration.
     13You can also set a message and background color on the login screen.
     14
     15== Screenshots ==
     16
     171. Settings video.
     182. Settings page.
     193. Login page.
     20
  • simple-limited-access/trunk/simple-limited-access.php

    r2811312 r2812699  
    1010 *
    1111 * @link              https://github.com/leodudedev/Simple-Limited-Access
    12  * @since             1.0.0
     12 * @since             1.0.1
    1313 * @package           Simple_Limited_Access
    1414 *
     
    1616 * Plugin Name:       Simple Limited Access
    1717 * Plugin URI:        https://github.com/leodudedev/Simple-Limited-Access
    18  * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    19  * Version:           1.0.0
     18 * 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.
     19 * Version:           1.0.1
    2020 * Author:            Leonardo Pinori
    2121 * License:           GPL-2.0+
     
    3232/**
    3333 * Currently plugin version.
    34  * Start at version 1.0.0 and use SemVer - https://semver.org
     34 * Start at version 1.0.1 and use SemVer - https://semver.org
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define('SIMPLE_LIMITED_ACCESS_VERSION', '1.0.0');
     37define('SIMPLE_LIMITED_ACCESS_VERSION', '1.0.1');
    3838
    3939/**
     
    7373 * not affect the page life cycle.
    7474 *
    75  * @since    1.0.0
     75 * @since    1.0.1
    7676 */
    7777function run_simple_limited_access()
  • simple-limited-access/trunk/uninstall.php

    r2811312 r2812699  
    2121 *
    2222 * @link       https://github.com/leodudedev/Simple-Limited-Access
    23  * @since      1.0.0
     23 * @since      1.0.1
    2424 *
    2525 * @package    Simple_Limited_Access
Note: See TracChangeset for help on using the changeset viewer.