Global Javascript

توسط

Allows the user to create custom javascript for their WordPress powered site on a global level.

The Javascript made by the user of the plugin will be loaded after any other Javascript that is used by other plugins and/or themes.

PLUGIN FEATURES:

Some of the features that are included in this plugin are:

  • syntax highlighting

  • code minification

  • revisions

  • grouping blocks of code

  • including dependencies (libraries such as jQuery and backbone.js)

  • elegant editor interface courtesy of ACE

FUTURE ADDITIONS:

Here are some of the things that I will be adding sometime in the future as the plugin grows 🙂 :

  • ability to choose your minifier of choice from the minify library

  • ability to load different javascript files for each page/post as decided by the plugin user

  • ability to save additional javascript files and create tabs to organize the files

  • a separate button to completely delete the javascript files from the server

Acknowledgements

This plugin uses the minify library package by Steve Clay (steve@mrclay.org) and Ryan Grove (ryan@wonko.com).
More info at http://code.google.com/p/minify/

  1. Upload ‘global-javascript’ folder to the ‘/wp_content/plugins’ directory. Or alternatively install through the WordPress admin dashboard.
  2. Activate the plugin through the ‘Plugins’ menu in the WordPress admin dashboard.
  3. Navigate to the ‘Appearance’ tab in the WordPress admin dashboard sidebar.
  4. Click on the link titled ‘Global Javascript’

سوالات متداول

What does the plugin do?

The plugin is just a simple Javascript writing/editing tool that allows the user to create some custom Javascript to their WordPress powered website.

How much experience do I need to use this plugin?

Javascript is not too difficult to pick up. There are many freely available resources online that you can find to help you get started. The site that I used to get started on Javascript is http://w3schools.com/js/default.asp

Does it do anything to the database?

Yes. This plugin allows the use of revisions and will add entries to the database in the posts table. The database is accessed using WordPress and PHP core functions and there are no direct SQL queries.

Does the plugin access the filesystem?

Yes. This plugin will save and delete files to the filesystem. The files will be located in the uploads folder under the sub-folder “global-js” on a default WordPress installation.

Does the plugin work in a multisite configuration?

Yes. The plugin works in a multisite environment as it creates files and folders in the site’s own portion of the uploads directory.

How do I get rid of the javascript files from the server?

At the moment, the only way to do this is to save a blank javascript file. This will delete all the relevant files from your uploads folder. There is currently no way to delete it from your database posts table through the plugin. You will have to access the database and delete it manually. You can find the posts in the data base by searching for post_title = ‘Global JavaScript Editor’ in the posts table.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
★★★★★
★★★★★
3.5 /5 (2 نظر)

قیمت:

رایگان

نگارش

آخرین انتشار

19 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

100+

نگارش وردپرس

-

تست شده از نسخه

وردپرس 3.5.2

نگارش PHP

-

نسخه ها

0 نسخه