Git Product home page Git Product logo

wp-plugin-epfl-coming-soon's Introduction

EPFL Coming Soon

A WordPress plugin that allows to display a coming soon / maintenance page.

Get the latest version

Download the latest release at https://github.com/epfl-si/wp-plugin-epfl-coming-soon/releases/latest.

Features

  • Simple ON / OFF mode
  • Edit coming soon page in the wordpress WYSIWYG editor (TinyMCE)
  • Edit the page's title
  • Option to redirect on the theme maintenance.php page if present (has to be self-contained for now)
  • Option to send a HTTP status code 503 along with the page
  • Auto-activated if the .maintenance file is present (see https://developer.wordpress.org/cli/commands/maintenance-mode/), i.e. wp cli maintenance-mode activate : wp cli compatible
  • Shows its status in the rest API, wp-json/epfl-coming-soon/v1/status

Screenshots

Backend

EPFL coming soon screenshot - backend

Frontend

EPFL coming soon screenshot - frontend

Development

The use of wp-dev environment is highly recommended to have an environment similar to what we have in "prod" and avoid any conflicts between plugins.

Please use the Makefile to run WordPress-Core coding standards' linter.

Any commits should be accompanied with a new version following the SemVer system.

New release

  • Be sure to bump the version, both in comment and constant.
  • Run the linter with make phpcbf and make phpcs; fix all the mentionned lines.
  • Check that translations are done (make pot).
  • Use make zip to create the plugin package without unused dependencies.
  • Tag the version (git tag -fa v1.1.1 -m v1.1.1).
  • Push everything and create a new release with comments.

Issues

Feel free to share your thoughts, issues, remarks and comments here: https://github.com/epfl-si/wp-plugin-epfl-coming-soon/issues/new/choose.

wp-plugin-epfl-coming-soon's People

Contributors

greglebarbar avatar jdelasoie avatar obieler avatar ponsfrilus avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-plugin-epfl-coming-soon's Issues

[FR] Bypass cloud flare cache

// https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching
header( 'Pragma: no-cache' );
header( 'Cache-Control: no-store, must-revalidate' );
setcookie( 'epfl_coming_soon', 'on', time()+60, $_SERVER['REQUEST_URI'], $_SERVER['SERVER_NAME'] );

Where epfl_coming_soon is the name of the cookie allowed to bypass cache in cloudflare's rules:
image

[bug] .maintenance

When using the maintenance-mode of wp-cli, it should be displayed in the plugin.

[feature request] redirect on a specific site page

Plugin settings should allow a user to pick on of the site's page (by id) to redirect to when the maintenance / coming soon mode is active ― that would offer a user to manager several page, one for maintenance, one for launching the site etc..,

[feature request] HTTP Status code

See

So the correct status for a maintenance page is 503, but for a coming soon page, 200 would be the best.

This feature request a better explanation of that in the plugin settings, and also, as the plugin's named EPFL Coming Soon, that the default settings fits our needs.

[FR] Change saved option for status code

Currently the option saved in DB for the status code is 'no' for 200 and 'yes' for 503 : it would be better to use the actual status code for more comprehension when reading it from the DB (e.g. wp option get epfl_csp_options).

Note: beware to change the Ansible task accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.