File Upload

Display a file upload field that displays a preview of the file uploaded. Option Details & Parameters Type: file Returns: string Version: 1.10 Can be placed in: Admin Panels , Admin Tabs , Meta Boxes , Theme Customizer Parameter Type Description name string The name of the option, for display purposes only. id string A unique ID for this option. This ID will be used to get the value for this option. desc string The description to display together with this option. default string (Optional) The default value for this option. label string (Optional) The label of the file upload preview. livepreview string (Optional) jQuery code Continue reading →

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 →

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 →

Multicheck Post-Types

Display a set of check boxes for all existing post-types. Multiple boxes can be checked. Custom post types are also supported. Option Details & Parameters Type: muticheck-post-types Returns: array Can be placed in: Admin Panels , Admin Tabs , Meta Boxes , Theme Customizer Parameter Type Description name string The name of the option, for display purposes only. id string A unique ID for this option. This ID will be used to get the value for this option. desc string The description to display together with this option. default string (Optional) The default post ID for this option. Defaults to 0, nothing Continue reading →

Select Post-Types

Display a single select drop down box containing existing post-types. Custom post types are also supported. Option Details & Parameters Type: select-post-types Returns: array Can be placed in: Admin Panels , Admin Tabs , Meta Boxes , Theme Customizer Parameter Type Description name string The name of the option, for display purposes only. id string A unique ID for this option. This ID will be used to get the value for this option. desc string The description to display together with this option. default string (Optional) The default post ID for this option. Defaults to 0, nothing selected. livepreview string (Optional) jQuery code that 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 →

Theme Customizer Section

Display a section inside the theme customizer for performing live styling changes for a theme. [zilla_alert]Some options inside theme customizer sections have the ability to change elements in the theme for live previewing of changes. Refer to Livepreview for more details on that feature for options.[/zilla_alert] How to Create Can be created from TitanFramework Instance: $titan = TitanFramework::getInstance( ‘my-theme’ ); $section = $titan->createThemeCustomizerSection( array( ‘name’ => ‘My Section’, ) ); // Create options in My Section $section->createOption( … ); [zilla_alert]This will create a theme customizer section (accordion tab) named ‘My Section’ in the middle of the section list.[/zilla_alert] Settings / Continue reading →

Meta Box

Display a meta box container located below posts and/or pages. How to Create Can be created from TitanFramework Instance: $titan = TitanFramework::getInstance( ‘my-theme’ ); $metaBox = $titan->createMetaBox( array( ‘name’ => ‘My Meta Box’, ) ); // Create options in My Meta Box $metaBox->createOption( … ); [zilla_alert]This will create a meta box named ‘My Meta Box’ on the bottom of screen when editing pages.[/zilla_alert] Settings / Parameters Parameter Type Description Version name string The name of the meta box. This is displayed on the top of the meta box. desc string (Optional) The description to be displayed just below the title Continue reading →

Admin Tabs

Organize your admin panel / page settings with tabs. How to Create Can be created from an Admin Panel Object: $titan = TitanFramework::getInstance( ‘my-theme’ ); $adminPanel = $titan->createAdminPanel( array( ‘name’ => ‘My Admin Panel’, ) ); $generalTab = $adminPanel->createTab( array( ‘name’ => ‘My General Tab’, ) ); // Create options in My General Tab $generalTab->createOption( … ); [zilla_alert]This will create a tab inside ‘My Admin Panel’ named ‘My General Tab’.[/zilla_alert] Settings / Parameters Parameter Type Description name string The name of the admin tab. This is the name shown the tab itself. desc string (Optional) A description displayed just below Continue reading →