Descripción
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
- Streamlined Option Panel.
- Setup in minutes.
- Uses Codemirror for syntax highlighting.
- You choose where to append/include the script and where to exclude it.
- Support JavaScript/XML/HTML.
- With Widgets.
- Now with support for Shortcodes API!
- New! Include options for async and defer attributes
- Free as in speech.
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
- 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.
Capturas
Instalación
This section describes how to install the plugin and get it working:
- Upload the
essential-script
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Access the ‘Tools’ menu in WordPress to configure the plugin.
Or install the plugin through the WordPress plugins screen directly.
FAQ
- Installation Instructions
-
This section describes how to install the plugin and get it working:
- Upload the
essential-script
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Access the ‘Tools’ menu in WordPress to configure the plugin.
Or install the plugin through the WordPress plugins screen directly.
- Upload the
- 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.
Reseñas
No hay reseñas para este plugin.
Colaboradores y desarrolladores
«Essential Script» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
ColaboradoresTraduce «Essential Script» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
0.8.1
- Remove incorrect try-catch implementation
- Updated to re-use CodeMirror as bundled with WordPress core library
- Prevents uncaught error if class name is an invalid string
- Document
Options
, fix some inconsistencies
0.8
- Save properties with array object instead of array
- Untrusted users are allowed to post only a limited set of HTML markup
- Implement the Decorator pattern for enqueuing scripts to the front page
- Frontend: Refactoring the
Strategy
pattern to remove conditional statements - Add FAQ section and tested up to WordPress 4.9.1
- Improve the documentation about the
Template Method
pattern - Add Context class to separate a request from a concrete strategy
- Rename class name from
footer
tofoot
for using variable functions - Update minimum PHP version requirement
- Add
async
anddefer
options to Settings page - Fix improper use of wp_enqueue_scripts with Shortcode
0.7.1
- Upgrade CodeMirror from 5.31.0 to 5.32.0
- Fix problem with
wp_enqueue_scripts
option was enabled with XML mode - Fix Syntax highlighter doesn’t match Essential Script option when run in Widget
0.7
- Widgets: start support for Code Editor API
- Move Codemirror code to a more suitable directory
- Introduce decorator for the new Code Editor API with WordPress 4.9
- Fix if statements causing
Undefined index
error inMain.php
- Add option for syntax higlighter
- Improve the
Queuing
code by implementing the Decorator Pattern
0.6.1
- Update i18n related po files
- Remove files and directories no longer necessary
0.6
- Upgrade CodeMirror from 5.30.0 to 5.31.0
- Move the CodeMirror API in its own namespace
- Improves the
Settings API
code by implementing the Factory Pattern
0.5.1
- Fix incorrect variable name
filter
inessential-script.php
0.5
- Add support for Shortcode API
- Introduce
File
class for file management - Frontend: Restructure the code and implement Strategy pattern
- Add new checkbox to use with Shortcode
0.4.1
- Add Note for proper use of wp_enqueue_scripts option
- Checkbox switches off when WordPress DB is selected
0.4
- Add checkbox to allow the use of wp_enqueue_scripts where is possible
- Use array_key_exists instead of isset
- No longer it does exclude pages but includes
- Rename register_scripts to admin_register_scripts
0.3.1
- Fix Missing argument in
Page.php
on line 52 which prevented the editor from working
0.3
- Upgrade CodeMirror from 5.29.0 to 5.30.0
- Introduce separate javascript file in preparation for 0.3 version
- Initial support for Widgets API
- Fix deprecated non-static method called statically
0.2
- (tag: v0.2) First release of Essential Script