GithubHelp home page GithubHelp logo

bobbylee-dev / sapphire-popups Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 386 KB

WordPress plugin for creating popups.

License: GNU General Public License v3.0

PHP 53.81% CSS 2.36% JavaScript 11.97% Shell 31.85%

sapphire-popups's Introduction

Sapphire Popups ๐Ÿ”ท

This WordPress plugin provides a simple and easy way to create popups on your WordPress site.


๐Ÿ‘‹ Feel free to download and use the code from this repo or Download Sapphire Popups on WordPress.org.

WordPress version

This repo is the central location for the development of Sapphire Popups.

A simpler way to create and manage popups...

Sapphire Popups allow you to easily add popups and set the behavior of how the popup is displayed all without the use of cookies. It is compatible with the Classic Editor and Gutenberg which makes it easy to use, it's also very approachable for developers to extend.

Major Features in Sapphire Popups include:

  • Easily create and manage popups using the Classic Editor or Gutenberg.
  • 3 popup behavior selections.
  • If a popup is updated it will be displayed again, even if the behavior has not expired.
  • Remove popup title option.
  • Does not use cookies.
  • More features coming soon!!!

Behavior selections:

  • Default: Display popup on every page load.
  • Show Daily: Popup will be displayed once per day.
  • Show Once: Popup will show only once ever - unless behavior is changed or popup had been updated.

Popups that get updated will be displayed again even if the behavior is set to Show Once. If the behavior is set to Show Daily and the popup is updated it will be displayed again and the daily timer will start over. This allows for updates to be made even after the popup has been displayed.

Installation

Upload the Sapphire Popups plugin to your site, activate it, and start creating popups.

Enjoy! ๐Ÿ•บ

Frequently Asked Questions

What is the Default Behavior?

  • The Default Behavior will display the popup on every page load.

sapphire-popups's People

Stargazers

 avatar  avatar  avatar

sapphire-popups's Issues

Popup Title doesn't allow special characters like '

If ' is in the title ex: we're, the popup won't save in the settings, not sure what all characters cause this but know that ' does.

Reproduce: create a new popup and add an ' in the title, then go to the settings and save that popup.

PHP tests

Create php unit tests with phpunit and hook up travis ci for automated testing.

<p> tags not getting added from Classic Editor.

When displaying a popup that was created in the Classic Editor paragraph tags are not getting added from the the_content filter.

Possible fix: add the filter - the_content to the popup content. - apply_filters( the_content, $popupContnet ).

  • the_content contains the wpautop function which adds the paragraph tags.

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.