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 →

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 →

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 →

When should you use the Sortable Option & Example

There are some unique options in Titan Framework, one of them is Sortable Option. If you haven’t used it before, it looks like this: The sortable option is commonly used when you have a set of choices and you want to allow your users change the particular order and enable/disable each choice. It’s basically like having multiple checkboxes that you can rearrange. You can use the sortable option in scenarios such as: Galleries – if you want to allow your users can add/remove and rearrange the caption elements (title, excerpt, read more link). Page headings – users can add/remove and Continue reading →

Build a Simple Theme with Customizer Options

Themes have a certain look to them. Most of the time, theme users would want to tweak certain aspects of the theme’s default design to better suit their needs. For example if your theme has a dark gray navigation bar, most likely there would be a number of users which would want to change this color into another one. If would be easier to just tell your users to just use the dark gray color and suck it up. But I don’t think they’ll be too happy about that. The better way would be to allow them to change it from Continue reading →

Building a Simple Plugin with Options

Titan Framework is built to make flexible and dynamic plugins easier to make. Instead of having to deal with the heavy lifting of writing options, functions and updating values, it takes and encapsulates them in a simple class call, array-based setting, and a class-based option value fetching. Titan Framework also handles menu page building for you! But like all things, you have to start somewhere. On one glance, it looks like an insurmountable mountain of complex sophistication, but peel back the surface and you’ll find out it’s not that hard to understand. Then again, where do you start? For this, Continue reading →