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 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 of 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 →

Admin Panels

Display an admin settings page with a corresponding entry in the admin menu. Admin pages can have tabs for better organization. How to Create Can be created from TitanFramework Instance: $titan = TitanFramework::getInstance( ‘my-theme’ ); $adminPanel = $titan->createAdminPanel( array( ‘name’ => ‘My Admin Panel’, ) ); // Create options in My Admin Panel $adminPanel->createOption( … ); [zilla_alert]This will create an admin menu item named ‘My Admin Panel’ on the bottom of the admin menu.[/zilla_alert] Can be created from an Admin Panel Object: $titan = TitanFramework::getInstance( ‘my-theme’ ); $adminPanel = $titan->createAdminPanel( array( ‘name’ => ‘My Admin Panel’, ) ); $layoutPanel = Continue reading →