Giter Club home page Giter Club logo

gt-theme-customizer-preview's Introduction

GT-Theme-Customizer-Preview

** Working on Wordpress 4.3.1 as of 12/4/2015 **

The idea is for Guests to be able to "Try Out" customizing your wordpress theme's options without registering an account.

Try it for yourself, live demo on http://GreenThe.me

** This should be ready for production use, on a demo site. **

Usage:

Use the following Shortcode to create the Guest Login Link.

[GTCustomizer]Click here to Preview this theme's Customizer[/GTCustomizer]

Visit that page, and try out the link! (While not logged in, like a real guest or visitor would)

How it works: A test user is automatically created the first time you visit the customizer (username="Guest") Clicking on the link, log them in as the "Guest" user with access to a "pseduo" wordpress live customizer. The Dashboard, and WP_Nav bar (wp-admin) are blocked to Guest Users. A Menu Item is added to the admin bar so they can also use the customizer previewer.

Future Features?

  1. Add a theme selector to the customizer.
  2. Make some options for changing the default test account's username, and a list of available themes to choose from.

Multi-site Note: On east subsite you want the Guest user to be able to work, be sure "Guest" user has the Preview Themes role added.

Feature Requests and saying thanks:

Please donate any amount. As long as I see something, it will encourage me to spend my focus in that area.

http://greenthe.me/donate/

** Changelog **

1.5 Updated the customizer to work with Wordpress 4.3.1 Checked that uploads,saving changes, and uploading anything is blocked. (No permission by Wordpress)

1.4.1 Updated the customizer to work with Wordpress 4.1 Fixed the Customizer Preview Toolbar Link

1.04

Updated includes/gt-customizer.php with new Wordpress 3.6 core javascript libraries Now requires WP 3.6

1.03

Removed injected styles to remove wpadmin bar fully via functions only Moved up admin redirect to a faster hook and is_admin check Added checking if a "Guest" account already exists on another site and adds the existing user to the current demo site automatically and assigns the roles as needed Made the "wp-blog-header.php" require crawl up a few directories looking for it first. Hopefully this will make it work across more different wordpress configurations.

** TODO ** /includes/gt-customizer.php still has a "hard" path set to the wp-admin. This is the same way the offical wordpress customizer works, but since we are in the plugin folder instead of in wp-admin already, we have to search for the admin.php In otherwords, if your plugin's are in a strange location relative to wordpress, you'll need to edit that line at the top to suite your needs.

gt-theme-customizer-preview's People

Contributors

larceniii avatar aristath avatar

Watchers

Cloud Stone avatar

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.