WORDPRESS plugin development and learning (1) hello world, wordpresshello
The first article in the WORDPRESS plugin development and learning series adds a fixed character "Hello World" to the end of each article"
1. Open the wordpress directory-> wp-content-> plugins
2. Create a directory 1100w-hello-world under plugin
have Gradle 2.1.1 installed, this time, when the command is executed, it will download Gradle, which may wait longer. can also be manually installed, specific methods, you can check the information or view my blog using Android Studio compiled fresco inside there are simple mentioned.Run the project command line run
Turn on the Android emulator or connect to the real device
Running the Run command
Cordova Run AndroidRun with EclipseImport->android->existing Android Code into W
First, the opening analysisHi, hello, everyone! Big Bear June again and everyone met, remember the first two articles. This paper mainly describes how to develop plug-ins in the way of "jquery", and the combination of process design and object-oriented thought design.How to design a plug-in, the two ways each have advantages and disadvantages, this series of articles are learning-oriented, specific scenarios we decide how to use. So today, starting with this article, let's start with an exampleT
not appear on the interface, only the open this perspective will appear. -Layout.addactionset ("Myplugin.actionset");//The ID of the parameter is actionset in Plugin.xml - } +}Summarize:(1) in the plug-in Iworkbenchpage object is more important, here gives a general method to obtain this object, but he is the Iworkbenchpage object to obtain the current activity.Activator.getdefault (). Getworkbench (). Getactiveworkbenchwindow (). GetActivePage ();(2) The parameter in Iworkbenchpage.findvi
Introduction
In the previous article, the operating environment of Eclipse was configured, as well as a brief introduction to J2ME development. Through the above introduction, readers should understand: the development of mobile applications is actually the development of J2ME projects. Although the environment was configured in the previous article to support J
A: front-facing environment1. jdk1.6+2. MAVEN is installed3. Jenkins has been built4. Eclipse is installed (and the MAVEN plugin is installed)The above environment can be Baidu search and installMy environment is WIN7 64-bit systemTwo: Configure the environment1. Modify the MAVEN configuration file Conf/settings.xmlReplace the original content withXML version= "1.0" encoding= "UTF-8"?>Settings> plugingroups> Plugingroup>Org.jenkins-ci.toolsPluging
1(function ($) {2 $.fn.extend ({3"HighLight":function(options) {4 //checks whether the user passed in the parameter is legitimate5 if(!isValid (options))6 return This;7 varopts = $.extend ({}, defaluts, options);//overriding plug-in default parameters with Jquery.extend8 return This. each (function() {//This is the jquery object. Return here to support chained calls9 //iterate through all the DOM to be highlighted
When installing the Genymotion plugin using Eclipse, the official website will provide a jar package, but the copy to D:\Green\eclipse\dropins and D:\Green\eclipse\features discovery is invalid. Restarting eclipse does not take effect, and some tutorials say several reboots can appear, it's ridiculous!Not much nonsense to say,: (Dropins directory structure)650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/08/66/wKiom1ngqyGSsGS_AAFGSY9pW0k923
Jeplus App Customization Plugin First, the effect showsIi. Steps of implementation1. Create a custom plugin2. Custom page EditingI'll be able to edit the page in here-here we also provide an external tool to write-hbuilder when we are finished writing in it we can paste it directly.This is the hbuilder after the editing is done directly pasted over.View the original and read moreJeplus App Customization plugin
So let's start with a simple look at the most orthodox JQuery plugin definition:?
1 2 3 4 5 6 7 8 9 10 11 12
(function ($) { $.fn.插件名 = function (settings) { //默认参数 var defaultSettings = {} /* 合并默认参数和用户自定义参数 */settings = $.extend(defaultSettings, settings);return this.each(function () { //代码 }); //插件在元素内多次出现} })(jQuery);
First look at the first line of code in the template (of course we want to look at the second half
Today, I found out that JQ had a way of storing this temporary data:
$ ("Dom"). Data ("MyData", "This Is data"); There is the plug-in development when we often want to add methods to plug-ins, in fact, using JS internal method to add methods can
This.myfn=function () {}
The following is the source code for the previous plugin that displays part of the text:
(similar to CSS text-overflow, but this
Have to write an article of their own, has been the future memory!
First post the plugin code, inside the comment
Copy Code code as follows:
(function ($) {
Extended
$.fn.extend ({
Plug-in name
Height:function (options) {
Default parameters
var defaults = {
Color: ' Red '
};
overriding default parameters
var opts = $.extend (defaults, options);
Main function
Return This.each (function () {
Activate event
var
variables based on elements. Even so, it is better to use a single object to save all variables and read the object through a separate namespace than to record a large number of separated Data with different names.
(function( $ ){ var methods = { init : function( options ) { return this.each(function(){ var $this = $(this), data = $this.data('tooltip'), tooltip = $('
Encapsulating data in an object through a namespace makes it easier to read
There are 2 important APIs in jquery that are related to plugin authoring.Jquery.extend (object) is $.extend (object)This function is used to extend the jQuery itself, that is, to extend the "$".JQuery.fn.extend (object) is $.fn.extend (object)This function is used to provide new methods for JQuery objects.The so-called jquery objects, the most common ones we usually get through the jquery selector, such as: $ ("#id"), $ (". Class"), etc.Http://www.cn
In fact, the information on the Internet a lot, but in fact, still have to write their own code, tidy up, will be used. Using jquery's Wdatepicker plugin is quite handy, and the general situation is enough for us to use.First, download Wdatepicker pluginSecond, in the project to importThird, use in JSP that need to use plug-in1. Introduction in the head section2. Using in HTMLFour, the effectFive, about the use of wdatepicker.js, parameter settings, y
handler is only activated when the stack information is selected.The documentation for core expression in: Http://wiki.eclipse.org/Command_Core_Expressions also has a lot of information to refer to in the declaration document of the org.eclipse.ui.handlers extension.In this example, we determine if there is a stack of information selected by counting the selection variable. For more information, please refer to the contents of the Plugin.xml file later in this article.At this point, the process
gives Perl language programmers an idyllic experience. The most important thing is to get all of this, you are taking the free way, because all the components are open source, this is a highly recommended software tool.Resources
For more information about EPIC, please refer to the EPIC Homepage .
Visit DeveloperWorks Open Source Zone Get rich how-to information, tools and project updates, and Most popular articles and tutorials to help you develop with open source technologies and
Install the Chrome browser wallet Plugin: Https://github.com/ChengOrangeJu/WebExtensionWalletFirst step: Clone project or download Zip package to localStep Two: Install
Open the Chrome browser and enter: chrome://extensions/in the Address bar to open the Extensions administration page
Click "Developer Mode"-> "Load unpacked extensions"-> Select the folder you unzipped before downloading to install
After successful installation:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.