…using getOption function $aa_date_epoch_val = $titan->getOption( 'aa_date' ); // Convert the date's epoch value echo date( 'r', $aa_date_epoch_val ); // output as RFC 2822 date - returns local time - For more read http://goo.gl/g9tZLi ?> In line #3, an instance is acquired via the getInstance() function, which takes a unique…
…using the first-in-first-out (FIFO) principle. Real implementations may use some kind of priority queue. The following diagram sketches the relation between the different components of the reactor pattern. In the case of JavaScript running in the browser, the handle is a JavaScript function, possibly capturing some objects. The event handlers…
…using latest version of the OpenCart, which is 2.0.x. Also, if you've not gone through the earlier parts of this series, I would recommend that you have a quick look at them!Understand the Commission System for AffiliatesRecall the first part of this series, in which I mentioned that the administrator…
…using to customize the rest of the theme. All these techniques like using Chrome Inspector, determining the phtml file responsible for the layout of a particular part of the page, modifying CSS, PHP, HTML and XML in relevant files, creating new pages and static blocks, and registering those static blocks…
…using getOption function $aa_radio_val = $titan->getOption( 'aa_radio' ); /** * * Print option values * */ if ( 'aa_hdr' == $aa_radio_val ) { echo 'You Selected Header'; } elseif ( 'aa_bdy' == $aa_radio_val) { echo 'You selected Body'; } else { echo 'You selected Footer'; } ?>First of all, get…
…using HTTPS for the transport of our document and using HTTPS for our resources are two different things. It is definitely necessary to check if all contained resources really use the https:// scheme. Another important guideline is related to user-defined content. Once we allow users to enter data on a…
…using the createOption() function in line #9. This function defines a list of parameters, i.e. name, id, type, desc, options and default. I've defined a unique ID for my option, i.e. aa_select. Now take a look at line #15 where I've added an array of key-value pairs. Each pair adds…
…using getOption function $aa_radio_val = $titan->getOption( 'aa_radio' ); /** * * Print option values * */ if ( 'aa_hdr' == $aa_radio_val ) { echo 'You Selected Header'; } elseif ( 'aa_bdy' == $aa_radio_val) { echo 'You selected Body'; } else { echo 'You selected Footer'; } ?>First of all, get…
…using HTML, CSS and JavaScript. Not only that, but you'll learn about some of the fundamentals of the internet: URLs, DNS, HTTPS and more!Watch the Introduction Take the CourseTo take this free course, simply go to the course page and follow the steps to create a free account. If you…
…using getOption function $aa_multicheck_opt_val = $titan->getOption( 'aa_multicheck_opt' ); /** * * Printing saved values for an Admin Panel * */ var_dump($aa_multicheck_opt_val); In line #3, I added a unique instance via the getInstance() function. It's recommended to use your theme name as a parameter here. Then in line #6, I used…