Changeset 2812699
- Timestamp:
- 11/05/2022 04:57:11 PM (3 years ago)
- Location:
- simple-limited-access/trunk
- Files:
-
- 17 edited
-
README.md (modified) (1 diff)
-
admin/class-simple-limited-access-admin.php (modified) (7 diffs)
-
admin/partials/config-basic.php (modified) (2 diffs)
-
admin/partials/simple-limited-access-admin-display.php (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
includes/class-simple-limited-access-activator.php (modified) (3 diffs)
-
includes/class-simple-limited-access-deactivator.php (modified) (3 diffs)
-
includes/class-simple-limited-access-i18n.php (modified) (3 diffs)
-
includes/class-simple-limited-access-loader.php (modified) (8 diffs)
-
includes/class-simple-limited-access.php (modified) (15 diffs)
-
info.webp (modified) (previous)
-
languages/simple-limited-access.pot (modified) (1 diff)
-
public/class-simple-limited-access-public.php (modified) (7 diffs)
-
public/partials/form.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
simple-limited-access.php (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-limited-access/trunk/README.md
r2811312 r2812699 14 14 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. 15 15 16 The username and password pairs are managed through a simple textarea in the plugin configuration. 17 16 18 You can also set a message and background color on the login screen 17 19 -
simple-limited-access/trunk/admin/class-simple-limited-access-admin.php
r2811312 r2812699 5 5 * 6 6 * @link https://github.com/leodudedev/Simple-Limited-Access 7 * @since 1.0. 07 * @since 1.0.1 8 8 * 9 9 * @package Simple_Limited_Access … … 27 27 * The ID of this plugin. 28 28 * 29 * @since 1.0. 029 * @since 1.0.1 30 30 * @access private 31 31 * @var string $plugin_name The ID of this plugin. … … 36 36 * The version of this plugin. 37 37 * 38 * @since 1.0. 038 * @since 1.0.1 39 39 * @access private 40 40 * @var string $version The current version of this plugin. … … 43 43 44 44 /** 45 * @since 1.0. 045 * @since 1.0.1 46 46 * @access protected 47 47 * @var Simple_Limited_Access_utils $utils … … 54 54 * @param string $plugin_name The name of this plugin. 55 55 * @param string $version The version of this plugin. 56 * @since 1.0. 056 * @since 1.0.1 57 57 */ 58 58 public function __construct($plugin_name, $version, $instance) … … 70 70 * Register the stylesheets for the admin area. 71 71 * 72 * @since 1.0. 072 * @since 1.0.1 73 73 */ 74 74 public function enqueue_styles() … … 91 91 * Register the JavaScript for the admin area. 92 92 * 93 * @since 1.0. 093 * @since 1.0.1 94 94 */ 95 95 public function enqueue_scripts() -
simple-limited-access/trunk/admin/partials/config-basic.php
r2811312 r2812699 103 103 <div> 104 104 <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'); ?> 106 106 </p> 107 107 <?php … … 128 128 <div> 129 129 <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'); ?> 131 131 </p> 132 132 <?php -
simple-limited-access/trunk/admin/partials/simple-limited-access-admin-display.php
r2811312 r2812699 7 7 * 8 8 * @link https://github.com/leodudedev/Simple-Limited-Access 9 * @since 1.0. 09 * @since 1.0.1 10 10 * 11 11 * @package Simple_Limited_Access -
simple-limited-access/trunk/composer.json
r2811312 r2812699 2 2 "name": "leodudedev/simple-limited-access", 3 3 "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.", 5 5 "keywords": ["wordpress","login", "limited access"], 6 6 "homepage": "https://github.com/leodudedev/Simple-Limited-Access", -
simple-limited-access/trunk/includes/class-simple-limited-access-activator.php
r2811312 r2812699 5 5 * 6 6 * @link https://github.com/leodudedev/Simple-Limited-Access 7 * @since 1.0. 07 * @since 1.0.1 8 8 * 9 9 * @package Simple_Limited_Access … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.0. 018 * @since 1.0.1 19 19 * @package Simple_Limited_Access 20 20 * @subpackage Simple_Limited_Access/includes … … 25 25 26 26 /** 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. 28 28 * 29 * Long Description. 30 * 31 * @since 1.0.0 29 * @since 1.0.1 32 30 */ 33 31 public static function activate() -
simple-limited-access/trunk/includes/class-simple-limited-access-deactivator.php
r2811312 r2812699 5 5 * 6 6 * @link https://github.com/leodudedev/Simple-Limited-Access 7 * @since 1.0. 07 * @since 1.0.1 8 8 * 9 9 * @package Simple_Limited_Access … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.0. 018 * @since 1.0.1 19 19 * @package Simple_Limited_Access 20 20 * @subpackage Simple_Limited_Access/includes … … 25 25 26 26 /** 27 * Short Description. (use period)28 27 * 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. 30 29 * 31 * @since 1.0. 030 * @since 1.0.1 32 31 */ 33 32 public static function deactivate() -
simple-limited-access/trunk/includes/class-simple-limited-access-i18n.php
r2811312 r2812699 8 8 * 9 9 * @link https://github.com/leodudedev/Simple-Limited-Access 10 * @since 1.0. 010 * @since 1.0.1 11 11 * 12 12 * @package Simple_Limited_Access … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.0. 022 * @since 1.0.1 23 23 * @package Simple_Limited_Access 24 24 * @subpackage Simple_Limited_Access/includes … … 32 32 * Load the plugin text domain for translation. 33 33 * 34 * @since 1.0. 034 * @since 1.0.1 35 35 */ 36 36 public function load_plugin_textdomain() -
simple-limited-access/trunk/includes/class-simple-limited-access-loader.php
r2811312 r2812699 5 5 * 6 6 * @link https://github.com/leodudedev/Simple-Limited-Access 7 * @since 1.0. 07 * @since 1.0.1 8 8 * 9 9 * @package Simple_Limited_Access … … 28 28 * The array of actions registered with WordPress. 29 29 * 30 * @since 1.0. 030 * @since 1.0.1 31 31 * @access protected 32 32 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 37 37 * The array of filters registered with WordPress. 38 38 * 39 * @since 1.0. 039 * @since 1.0.1 40 40 * @access protected 41 41 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 46 46 * Initialize the collections used to maintain the actions and filters. 47 47 * 48 * @since 1.0. 048 * @since 1.0.1 49 49 */ 50 50 public function __construct() … … 58 58 * Add a new action to the collection to be registered with WordPress. 59 59 * 60 * @since 1.0. 060 * @since 1.0.1 61 61 * @param string $hook The name of the WordPress action that is being registered. 62 62 * @param object $component A reference to the instance of the object on which the action is defined. … … 73 73 * Add a new filter to the collection to be registered with WordPress. 74 74 * 75 * @since 1.0. 075 * @since 1.0.1 76 76 * @param string $hook The name of the WordPress filter that is being registered. 77 77 * @param object $component A reference to the instance of the object on which the filter is defined. … … 89 89 * collection. 90 90 * 91 * @since 1.0. 091 * @since 1.0.1 92 92 * @access private 93 93 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 116 116 * Register the filters and actions with WordPress. 117 117 * 118 * @since 1.0. 0118 * @since 1.0.1 119 119 */ 120 120 public function run() -
simple-limited-access/trunk/includes/class-simple-limited-access.php
r2811312 r2812699 8 8 * 9 9 * @link https://github.com/leodudedev/Simple-Limited-Access 10 * @since 1.0. 010 * @since 1.0.1 11 11 * 12 12 * @package Simple_Limited_Access … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.0. 025 * @since 1.0.1 26 26 * @package Simple_Limited_Access 27 27 * @subpackage Simple_Limited_Access/includes … … 35 35 * the plugin. 36 36 * 37 * @since 1.0. 037 * @since 1.0.1 38 38 * @access protected 39 39 * @var Simple_Limited_Access_Loader $loader Maintains and registers all hooks for the plugin. … … 44 44 * The unique identifier of this plugin. 45 45 * 46 * @since 1.0. 046 * @since 1.0.1 47 47 * @access protected 48 48 * @var string $plugin_name The string used to uniquely identify this plugin. … … 53 53 * The current version of the plugin. 54 54 * 55 * @since 1.0. 055 * @since 1.0.1 56 56 * @access protected 57 57 * @var string $version The current version of the plugin. … … 66 66 * the public-facing side of the site. 67 67 * 68 * @since 1.0. 068 * @since 1.0.1 69 69 */ 70 70 public function __construct() … … 73 73 $this->version = SIMPLE_LIMITED_ACCESS_VERSION; 74 74 } else { 75 $this->version = '1.0. 0';75 $this->version = '1.0.1'; 76 76 } 77 77 $this->plugin_name = 'simple-limited-access'; … … 96 96 * with WordPress. 97 97 * 98 * @since 1.0. 098 * @since 1.0.1 99 99 * @access private 100 100 */ … … 134 134 * with WordPress. 135 135 * 136 * @since 1.0. 0136 * @since 1.0.1 137 137 * @access private 138 138 */ … … 149 149 * of the plugin. 150 150 * 151 * @since 1.0. 0151 * @since 1.0.1 152 152 * @access private 153 153 */ … … 165 165 * of the plugin. 166 166 * 167 * @since 1.0. 0167 * @since 1.0.1 168 168 * @access private 169 169 */ … … 180 180 * Run the loader to execute all of the hooks with WordPress. 181 181 * 182 * @since 1.0. 0182 * @since 1.0.1 183 183 */ 184 184 public function run() … … 191 191 * WordPress and to define internationalization functionality. 192 192 * 193 * @since 1.0. 0193 * @since 1.0.1 194 194 * @return string The name of the plugin. 195 195 */ … … 202 202 * The reference to the class that orchestrates the hooks with the plugin. 203 203 * 204 * @since 1.0. 0204 * @since 1.0.1 205 205 * @return Simple_Limited_Access_Loader Orchestrates the hooks of the plugin. 206 206 */ … … 213 213 * Retrieve the version number of the plugin. 214 214 * 215 * @since 1.0. 0215 * @since 1.0.1 216 216 * @return string The version number of the plugin. 217 217 */ -
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 4 msgid "" 5 msgstr "" 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 19 msgid "Simple Limited Access" 20 msgstr "" 21 22 #. Plugin URI of the plugin 23 msgid "https://github.com/leodudedev/Simple-Limited-Access" 24 msgstr "" 25 26 #. Description of the plugin 27 msgid "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." 28 msgstr "" 29 30 #. Author of the plugin 31 msgid "Leonardo Pinori" 32 msgstr "" 33 34 #: admin/class-simple-limited-access-admin.php:134 35 msgid "Simple Limited Access settings" 36 msgstr "" 37 38 #: admin/partials/config-basic.php:87 39 msgid "Login page background" 40 msgstr "" 41 42 #: admin/partials/config-basic.php:98 43 msgid "Info text on the login page" 44 msgstr "" 45 46 #: admin/partials/config-basic.php:105 47 msgid "Restricts access to a specific page or pages" 48 msgstr "" 49 50 #: admin/partials/config-basic.php:130 51 msgid "Limit access to one or more types of posts" 52 msgstr "" 53 54 #: admin/partials/config-basic.php:153 55 msgid "Insert new line in the textarea to add a user" 56 msgstr "" 57 58 #: admin/partials/config-basic.php:154 59 msgid "Username and password must be separated by colons" 60 msgstr "" 61 62 #: admin/partials/config-basic.php:161 63 msgid "Cookie timeout in hours" 64 msgstr "" 65 66 #: admin/partials/config-basic.php:162 67 msgid "Default value 2 hours" 68 msgstr "" 69 70 #: admin/partials/config-basic.php:168 71 msgid "Save settings" 72 msgstr "" 73 74 #: admin/partials/config-basic.php:178 75 msgid "Log accesses" 76 msgstr "" 77 78 #: public/partials/form.php:127 79 msgid "Username" 80 msgstr "" 81 82 #: public/partials/form.php:131 83 msgid "Password" 84 msgstr "" 85 86 #: public/partials/form.php:134 87 msgid "Send" 88 msgstr "" 89 90 #: public/partials/form.php:139 91 msgid "Wrong username or password" 92 msgstr "" -
simple-limited-access/trunk/public/class-simple-limited-access-public.php
r2811312 r2812699 5 5 * 6 6 * @link https://github.com/leodudedev/Simple-Limited-Access 7 * @since 1.0. 07 * @since 1.0.1 8 8 * 9 9 * @package Simple_Limited_Access … … 27 27 * The ID of this plugin. 28 28 * 29 * @since 1.0. 029 * @since 1.0.1 30 30 * @access private 31 31 * @var string $plugin_name The ID of this plugin. … … 36 36 * The version of this plugin. 37 37 * 38 * @since 1.0. 038 * @since 1.0.1 39 39 * @access private 40 40 * @var string $version The current version of this plugin. … … 43 43 44 44 /** 45 * @since 1.0. 045 * @since 1.0.1 46 46 * @access protected 47 47 * @var Simple_Limited_Access_utils $utils … … 54 54 * @param string $plugin_name The name of the plugin. 55 55 * @param string $version The version of this plugin. 56 * @since 1.0. 056 * @since 1.0.1 57 57 */ 58 58 public function __construct($plugin_name, $version) … … 71 71 * Register the stylesheets for the public-facing side of the site. 72 72 * 73 * @since 1.0. 073 * @since 1.0.1 74 74 */ 75 75 public function enqueue_styles() … … 94 94 * Register the JavaScript for the public-facing side of the site. 95 95 * 96 * @since 1.0. 096 * @since 1.0.1 97 97 */ 98 98 public function enqueue_scripts() -
simple-limited-access/trunk/public/partials/form.php
r2811312 r2812699 69 69 font-size: 20px; 70 70 outline: none; 71 width: 100%;71 width: calc(100% - 20px); 72 72 color: black; 73 73 background-color: white; … … 107 107 .sla-tgt-form .sla-tgt-form-error { 108 108 margin: 20px 0 10px; 109 color: red; 109 color: tomato; 110 text-shadow: 0px 0px 5px rgb(255 255 255 / 60%); 110 111 } 111 112 </style> -
simple-limited-access/trunk/readme.txt
r2811312 r2812699 5 5 Tested up to: 6.0.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Simple Limited Access is a wordpress plugin to restrict access on certain pages/post_type via a basic login form 11 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. 12 The username and password pairs are managed through a simple textarea in the plugin configuration. 13 You can also set a message and background color on the login screen. 14 15 == Screenshots == 16 17 1. Settings video. 18 2. Settings page. 19 3. Login page. 20 -
simple-limited-access/trunk/simple-limited-access.php
r2811312 r2812699 10 10 * 11 11 * @link https://github.com/leodudedev/Simple-Limited-Access 12 * @since 1.0. 012 * @since 1.0.1 13 13 * @package Simple_Limited_Access 14 14 * … … 16 16 * Plugin Name: Simple Limited Access 17 17 * 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. 018 * 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 20 20 * Author: Leonardo Pinori 21 21 * License: GPL-2.0+ … … 32 32 /** 33 33 * Currently plugin version. 34 * Start at version 1.0. 0and use SemVer - https://semver.org34 * Start at version 1.0.1 and use SemVer - https://semver.org 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define('SIMPLE_LIMITED_ACCESS_VERSION', '1.0. 0');37 define('SIMPLE_LIMITED_ACCESS_VERSION', '1.0.1'); 38 38 39 39 /** … … 73 73 * not affect the page life cycle. 74 74 * 75 * @since 1.0. 075 * @since 1.0.1 76 76 */ 77 77 function run_simple_limited_access() -
simple-limited-access/trunk/uninstall.php
r2811312 r2812699 21 21 * 22 22 * @link https://github.com/leodudedev/Simple-Limited-Access 23 * @since 1.0. 023 * @since 1.0.1 24 24 * 25 25 * @package Simple_Limited_Access
Note: See TracChangeset
for help on using the changeset viewer.