Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.0] - 2024-12-15

### Added

- Customize tab with live preview for password form styling
- Preset themes: Default Purple, Business Blue, Dark Mode
- Background customization: color, gradient, and background image
- Card styling options: background color, border radius, shadow
- Logo upload with adjustable width
- Typography settings: heading text, heading color, text color, font family
- Button customization: text, background color, text color, border radius
- Form options: show/hide "Remember Me" checkbox, input border radius
- Footer customization: text and link URL
- Updated Norwegian Bokmål translations for all new strings

## [1.0.4] - 2024-12-15

### Added
Expand Down
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ A WordPress plugin for password protecting your site's content. Protect all page
- **Front Page Bypass**: The front page is always accessible without a password
- **Logged-in User Bypass**: Authenticated users skip the password prompt
- **Protection Modes**: Protect all content (with exclusions) or only selected pages/posts
- **Customizable Password Form**: Personalize colors, typography, logo, and more with live preview
- **Preset Themes**: Choose from built-in themes (Default Purple, Business Blue, Dark Mode)
- **Remember Me**: Visitors stay authenticated for a configurable duration
- **Secure Cookie Handling**: Uses SHA256 hashing with WordPress salts for cookie security
- **Native WordPress Methods**: Built using WordPress Settings API and password functions



## Installation

1. Upload the `passwp-posts` folder to `/wp-content/plugins/`
Expand All @@ -20,7 +24,7 @@ A WordPress plugin for password protecting your site's content. Protect all page

## Configuration

### Settings
### General Settings

| Setting | Description |
|---------|-------------|
Expand All @@ -31,6 +35,19 @@ A WordPress plugin for password protecting your site's content. Protect all page
| **Excluded Pages/Posts** | When protecting all: select pages/posts to exclude |
| **Protected Pages/Posts** | When protecting selected: choose which pages/posts to protect |

### Customize Settings

| Setting | Description |
|---------|-------------|
| **Preset Themes** | Quick-apply themes: Default Purple, Business Blue, Dark Mode |
| **Background** | Background color, gradient, and optional background image |
| **Card Styling** | Card background color, border radius, and shadow |
| **Logo** | Upload a custom logo with adjustable width |
| **Typography** | Heading text, colors, and font family |
| **Button** | Button text, colors, and border radius |
| **Form Options** | Show/hide "Remember Me" checkbox, input border radius |
| **Footer** | Custom footer text and link URL |

## How It Works

1. When a visitor tries to access a protected page or post, they are shown a password form
Expand Down Expand Up @@ -89,9 +106,11 @@ passwp-posts/
├── assets/
│ ├── css/
│ │ ├── admin.css
│ │ ├── customize-admin.css
│ │ └── password-form.css
│ ├── js/
│ │ └── admin.js
│ │ ├── admin.js
│ │ └── customize.js
│ └── vendor/
│ └── select2/
├── includes/
Expand Down
Loading