Multicheck Option and “Select all” Parameter – Now a Reality (at last)!

What do you do with checkboxes, amounting to more than 15, and you have to check each and every one of them? Usually, you need something we call “Check all” or “Select all”, right? Even WordPress itself implements it on forms with multiple checkboxes. Now, Titan Framework has this for all multicheck options too, and it can be enabled. Let me tell you a secret: I pushed for this to be implemented. Right now, it’s available in different tutorials: Multicheck Multicheck Categories Multicheck Pages, Multicheck Post-Types (which we introduced previously) and Multicheck Posts. Multicheck Pages Multicheck Post-Types (which we introduced  previously) Multicheck Posts. $panel->createOption( Continue reading →

Titan Framework and PHP7 – What to expect ahead

As we have started going through insurmountable amounts of pull requests, (and we do admit we have been lax in the past, sorry!) one topic and issue caught our eyes: PHP7 Compatibility. According to that issue in Awesome Support, Titan Framework isn’t working as expected in PHP7, which was later raised in our Git issues for TF. There were several symptoms found (1, 2, and 3) and the fix we had to make for it. Of course, this was the overall result: our upcoming version of Titan Framework should now work well with PHP7. Good news right? “But wait, that means we Continue reading →

Coming soon: Taxonomy-based options

In line with upcoming Titan Framework updates, I thought I’d let you know what can be expected in future updates, at least as far as options is concerned. We have used checkbox-based values for listing taxonomies in certain plugins that we created, and we feel it’s high time Titan Framework gets this. We had implemented new multicheck and select post types in Titan Framework earlier, and logically, something for taxonomies should be done next. Right now we can’t commit to a definite deadline on when this version will appear, but we’re pretty sure we’re not the only ones who’ve dealt with Continue reading →

Boolean, String, and Array: Parsing Titan Framework values

How do you process values in Titan Framework? How are they stored? First, let’s count the types of values in existence, then how they are processed: 1. The Boolean It gives the True or False value, and all undefined values are False by default. Checkboxes for example are boolean in nature. To process Boolean: Simply evaluating the value, $titan->getOption(‘my_option’) or ! $titan->getOption(‘my_option’) will do. Similarly, true and false equality comparisons also work. Note that they’re bitwise boolean and not string value ‘true’ and ‘false’. if ($titan->getOption(‘my_option’)) { $this->do(); } if ($titan->getOption(‘my_option’) === true) { $this->also(); } if ($titan->getOption(‘my_option’) === true) Continue reading →

New to TF: Multicheck and select post types

In Titan Framework’s latest update, new options have been released related to post type selections. I must admit I am behind one of the implementations of those new features, and it certainly won’t be the last! Without further ado, let’s introduce them: Multicheck-post-types and Select-post-types Rationale Let me tell you why I pushed for the implementation of these options. Back then, I used to couple option selections with functions that enumerate post types in a WordPress system. It was messy! Eventually, we had several plugins that needed post type enumeration, and we ended up creating a repository of reusable functions. Continue reading →

TF’s Multicheck vs. Select option: Similarities and Differences

Titan Framework enables you to employ the usual HTML forms specific for WordPress option building. Let’s focus on Select and Multicheck where by purpose, they feel similar, yet they’re not exactly the same in functionality. SELECT MULTICHECK Similarities Select multiple values Served as array values when getOption is used. Default values can be defined by array (in Multicheck) or string (in Select). Both has variants that enumerate IDs of Posts and Pages and even Taxonomies or categories Difference of Select Can be grouped. You can’t select multiple values by default as it is designed for a single choice. Usable in Continue reading →

Making money with Titan Framework and Easy Digital Downloads

Another feature in Titan Framework is its builtin ability to use Easy Digital Downloads (EDD) to validate a license. This is a great thing for users who wish to sell their plugins and themes and has Easy Digital Downloads as the cart backend. This feature requires a few things: The server must be running Easy Digital Downloads The server has a Software Licensing extension. EDD itself is free, but the Software Licensing extension requires purchase. What’s in it for me? This can be used to bring autoupdates, notify of updates, or to an extent, enable or restrict features depending on Continue reading →

Showcase Plugin

When we encounter problems when coding, it’s frustrating. Be it in creating options for our projects, plugins, or themes. But as developers, we need to prevent delays and long processes in development. To secure all of these (especially time management), the Showcase plugin was created. What is Showcase plugin? Basically it’s a plugin that will make sure all of options that Titan Framework provide will run correctly with no bugs at all. It can help us developers to check our codes and functions that may be used in addition to more options in Titan Framework. Showcase plugin displays all the saved values of your Titan Continue reading →

To Include or Embed Titan Framework? That is the question.

Titan Framework offers you two methods for including it in your themes or plugins. You can either embed it or include it. Including it means you can simply include a checker that makes sure Titan Framework exists in your site, but for your theme or plugin to work, Titan Framework must be downloaded and activated first. Embedding it, on the other hand, copies the entire framework to your plugin or theme directory, meaning you can run your theme or plugin without downloading Titan Framework. But we here at Titan Framework recommends that you simply include the Titan Framework and not Continue reading →

Adding your first option and what to do with it

Option give the users the capability to change, enhance and improve all aspects of the theme/site. It allows users to customize and modify the looks of the theme/site to satisfy their want designs and styles. By understanding how it works, it will be easier to add your first option in your project. One of the most common option is the  color option. Color option allows you to display a color picker field. This option will make it simple for you to change the color of the text or the background color of specific part of the site. Coding the Color Continue reading →