Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Essential Script plugin for Wordpress offers you the ability to enqueue and manage your client-side script, which is an essential part of your website, through a versatile text editor made with CodeMirror

License

Notifications You must be signed in to change notification settings

tetrahedronix/essential-script

Repository files navigation

Essential Script

Essential Script adds client-side script to individual areas of your Web site.

Essential Script plugin offers you the ability to plug and manage your client-side script, which is an essential part of your website, through a versatile text editor.

For example, through Essential Script interface you can add your banner in one location and configure what code is allowed to display on the Web page.

Features

  1. Streamlined Option Panel.
  2. Setup in minutes.
  3. Uses Codemirror for syntax highlighting.
  4. You choose where to append/include the script and where to exclude it.
  5. Support JavaScript/XML/HTML
  6. With Widgets.
  7. Now with support for Shortcodes API!
  8. New! Include options for async and defer attributes
  9. Free as in speech.

Contributors

  • tetravalente

Installation

This section describes how to install the plugin and get it working:

  1. Upload the essential-script folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' screen in Wordpress.
  3. Access the 'Tools' menu in Wordpress to configure the plugin.

Or install the plugin through the WordPress plugins screen directly.

Frequently Asked Questions

Will I lose all of my custom scripts if I uninstall the plugin?

No, you won't. If you use the option File to store the script then you can find it saved in the upload directory of Wordpress.

Why does this plugin work for untrusted users?

Wordpress includes the ability to create a network of sites. If you install a multisite network, then you can allow end users to use Essential Scripts. In this case they are able to post a limited set of HTML markup and even JavaScript code. See PageEssentialscript.php for more info and settings.

Development

Sources of this plugin are available both in SVN and Git:

Known issue

  • This plugin has known conflict with JetPack Embedded Shortcode. You need to disable Embedded Shortcode if you want to use Essential Script and JetPack together ( See also: Jetpack Shortcode Embeds ).

TODO

  • Support for Widgets API.
  • Support for Shortcode.
  • Move the CodeMirror API in its own namespace.
  • Find a reliable solution for uploading and managing script files
  • Use CodeMirror addons.
  • Improve the user interface.
  • Support for reusable components.
  • Complete script engine with support for user-genereted content.

Screenshots

  1. Essential Script admin dashboard. Main panel
  2. Essential Script does use of wp_enqueue_scripts Widget
  3. Essential Script widget. Widget

About

Essential Script plugin for Wordpress offers you the ability to enqueue and manage your client-side script, which is an essential part of your website, through a versatile text editor made with CodeMirror

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published