…html/system_config_source_yesno</source_model> <sort_order>1</sort_order> <show_in_default>1</show_in_default> <show_in_website>0</show_in_website> <show_in_store>0</show_in_store> </active> <title translate="label"> <label>Shipping Method Name</label> <frontend_type>text</frontend_type> <sort_order>20</sort_order> <show_in_default>1</show_in_default> <show_in_website>0</show_in_website> <show_in_store>0</show_in_store> </title> <sallowspecific translate="label"> <label>For selected countries only</label> <frontend_type>select</frontend_type> <frontend_class>shipping-applicable-country</frontend_class> <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model> <sort_order>30</sort_order> <show_in_default>1</show_in_default> <show_in_website>0</show_in_website> <show_in_store>0</show_in_store> </sallowspecific> <specificcountry translate="label"> <label>Ship to Specific Countries</label> <frontend_type>multiselect</frontend_type> <sort_order>31</sort_order> <source_model>adminhtml/system_config_source_country</source_model> <show_in_default>1</show_in_default> <show_in_website>0</show_in_website> <show_in_store>0</show_in_store> <can_be_empty>1</can_be_empty> </specificcountry> </fields> </envato_customshippingmethod> </groups> </carriers> </sections>…
…What You'll Be CreatingThis is the first tutorial of a series about Google DoubleClick for Publishers. DFP is a service that can seem incredibly complicated to the uninitiated—it almost seems that some type of hazing or initiation might be necessary to learn to use it. I'm going to try to…
…HTML output of the "Left Column" of the OpenCart page. The $this->load part works similar to the $this->db example which I explained earlier! Thus, it returns the $loader object stored in the $registry, and finally it'll call the "controller" method of the "Loader" class!In the same way, the following snippets…
…htmlIn this directory, create a PHP file, for example error.php, and write some faulty code to make the script break when you try to load it in your browser:<?php // Just some code that will fail syntax_error. echo "Hello, world";Now, open the URL in your web browser, and refresh it…
…html5' if the theme supports HTML5 markup, else 'xhtml') 'short_ping' (boolean): Whether to output short pings.(Default: FALSE) 'echo' (boolean): Whether to echo the output (TRUE) or return it (FALSE).(Default: TRUE) $comments (optional—array):Array of comment objects.(Default: All comments for the current post) Usage <?php $args = array( // Use an ordered…
…HTML forms created in this series (we'll get back to this later in the tutorial).Then, with the directories created, place a PHP file called personalize-login.php in the plugin directory. This file will contain all the code for this plugin, starting with the plugin initialization:<?php /** * Plugin Name: Personalize Login…
…What You'll Be CreatingIntroduction to the Gmail APIIn June 2014, Google introduced its first API for Gmail. For the first time, users of free Gmail accounts could programmatically manage their Gmail accounts without IMAP.Using the API, you can perform many of the same operations available through the Gmail user interface, e.g. reading, composing, and…
…HTML Template This part is very similar to the AddBlogView template. The only real difference is that because we are editing a blog, we need to pass in the existing title and content.<script type="text/template" id="edit-tpl"> <h2>Edit Blog</h2> <form class="form-edit" role="form"> <div class="form-group"> <label for="title">Title</label> <input name="title" type="text" class="form-control" id="title" value="{{title}}"></input>…
…HTML code to display before the output.(Default: Empty) $after (optional—string):The text or HTML code to display after the output.(Default: Empty) Usage <?php // Get the post shortlink with default options. wp_get_shortlink(); // Display the post shortlink with customized parameters. the_shortlink( __( 'Shortlink', 'translation-domain' ), '', '<i class="icon-link"></i>' ); ?> Getting…
…HTML, JavaScript and CSS files, our web site instances will have few chances to autoscale. But this raises two problems to solve: As the content will be hosted on another domain name, we will fall into the cross-domain security problem. To avoid that, you need to enable CORS on the…