이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Essential Script

설명

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.

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.

스크린샷

  • Essential Script admin dashboard
  • Essential Script does use of wp_enqueue_scripts
  • Essential Script widget

설치

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.

FAQ

Installation Instructions

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.

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.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Essential Script”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Essential Script”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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 to foot for using variable functions
  • Update minimum PHP version requirement
  • Add async and defer 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 in Main.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 in essential-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