Skip to content

Commit

Permalink
Readying for v1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bfintal committed Jan 17, 2015
1 parent a74960d commit c461d4c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 97 deletions.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ php composer.phar create-project gambitph/titan-framework titan-framework

## Recent Changelog

#### Version 1.7.4
* Faster SCSS parsing
* Faster loading time
* Unit parameter for number options now supported in the Theme Customizer
* Better font color option handling in Theme Customizer
* Now prevents SCSS errors from showing up
* Fixed name label issues with the enable option
* Better plugin checking method
* Plugin checker now integrates with TGM Plugin Activation
* Updated Ace

#### Version 1.7.3
* Fixed bug introduced in 1.7.2 where admin options sometimes were not being saved

Expand All @@ -48,14 +59,6 @@ php composer.phar create-project gambitph/titan-framework titan-framework
* Enhanced date option parameters
* New parameters for Theme Customizer for creating panels

#### Version 1.7
* New Easy Digital Download License option (thank you julien731)
* New date option (thank you ardalann)
* Added new action tf_save_options_{namespace} which is called after saving options
* Fixed display issue with the font option in the theme customizer
* Fixed bug where empty multicheck returned an array
* Fix: customizer show_font_size & show_color

## Creating a WordPress Theme?

[Generate your own Underscores + Titan Framework based WordPress theme](http://www.titanframework.net)
Expand Down
105 changes: 18 additions & 87 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: framework, options, admin, admin panel, meta box, theme customizer, option framework, library, sdk, edd, settings, api, theme creator, theme framework
Requires at least: 3.8
Tested up to: 4.1
Stable tag: 1.7.3
Stable tag: 1.7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -14,6 +14,8 @@ The most easy to use WordPress option framework.

Titan Framework allows theme and plugin developers to create a admin pages, options, meta boxes, and theme customizer options with just a few simple lines of code.

This means faster theme & plugin creation for everyone.

= The Goal =

Titan Framework aims to be easily used by everyone. The goal is to make it plug and play - just activate the plugin and start creating your options. Read our guide on how to [Get Started with Titan Framework](http://www.titanframework.net/get-started/)
Expand All @@ -22,9 +24,11 @@ Titan Framework aims to be easily used by everyone. The goal is to make it plug
* [Titan Framework GitHub Repository](https://github.com/gambitph/Titan-Framework)
* [Issue Tracker](https://github.com/gambitph/Titan-Framework/issues)

= Try it Out First =
= Start Creating Your Theme =

[You can generate your own Underscores based theme with Titan Framework through our site](http://www.titanframework.net/)

Want to see what Titan Framework can do? [Check out our live demo, no need to install anything!](http://demo.titanframework.net/wp-admin/)
The generated theme comes with sample pre-created options in the admin and theme customizer along with code documentation.

= Features =

Expand All @@ -45,7 +49,6 @@ Want to see what Titan Framework can do? [Check out our live demo, no need to in
* Admin options and tabs
* Meta boxes and options
* Theme customizer sections and options
* Shortcodes with TinyMCE and Visual Composer auto-integration ([Shortcode Extension](http://codecanyon.net/item/titan-framework-shortcode-extension/7009811?ref=bfintal))

= Options available in admin pages, meta boxes and theme customizer: =

Expand Down Expand Up @@ -122,89 +125,6 @@ and to everyone else in the GitHub repo!
* [Titan Framework GitHub Repository](https://github.com/gambitph/Titan-Framework)
* [Issue Tracker](https://github.com/gambitph/Titan-Framework/issues)

== Sample Code ==

= Creating an admin menu and submenu =

`$titan = TitanFramework::getInstance( 'my-plugin' );

// Create menu
$panel = $titan->createAdminPanel( array(
'name' => 'Menu Name',
) );

$panel2 = $panel->createAdminPanel( array(
'name' => 'Submenu Name',
) );`

= Creating an option in an admin page =

`$titan = TitanFramework::getInstance( 'my-plugin' );

// Create menu
$panel = $titan->createAdminPanel( array(
'name' => 'Menu Name',
) );

// Create a select option
$panel->createOption( array(
'name' => 'Select One',
'id' => 'my_selected_id
'type' => 'select',
'options' => array(
'1' => 'Option one',
'2' => 'Option two',
'3' => 'Option three',
),
'default' => '3',
'desc' => 'Some description',
) );`

= Create a meta box with an option =

`$titan = TitanFramework::getInstance( 'my-plugin' );

// Create menu
$box = $titan->createMetaBox( array(
'name' => 'Menu Name',
) );

$box->createOption( array(
'name' => 'My Text',
'type' => 'text',
'id' => 'my_text_id',
'desc' => 'Some description',
) );`

= Create a theme customizer with an option with live preview =

`$titan = TitanFramework::getInstance( 'my-plugin' );

$section = $titan->createThemeCustomizerSection( array(
'name' => 'My Section',
'desc' => 'Section description',
) );

$section->createOption( array(
'id' => 'my_color',
'name' => 'My Color',
'type' => 'color',
'default' => '#555555',
'livepreview' => "$('#main').css('backgroundColor', value);",
) );`

= Getting values =

`$titan = TitanFramework::getInstance( 'my-plugin' );

// Get an option or an admin option
$myValue = $titan->getOption( 'option_name' );

// Get a theme customizer option
$myValue = $titan->getOption( 'option_name', $post_id );`

**For developers: for documentation and examples, please visit our website at [titanframework.net](http://titanframework.net)**

== Upgrade Notice ==

== Screenshots ==
Expand All @@ -216,6 +136,17 @@ $myValue = $titan->getOption( 'option_name', $post_id );`

== Changelog ==

= 1.7.4 =
* Faster SCSS parsing
* Faster loading time
* Unit parameter for number options now supported in the Theme Customizer
* Better font color option handling in Theme Customizer
* Now prevents SCSS errors from showing up
* Fixed name label issues with the enable option
* Better plugin checking method
* Plugin checker now integrates with TGM Plugin Activation
* Updated Ace

= 1.7.3 =
* Fixed bug introduced in 1.7.2 where admin options sometimes were not being saved

Expand Down
4 changes: 2 additions & 2 deletions titan-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
Plugin URI: http://www.titanframework.net/
Description: Titan Framework allows theme and plugin developers to create a admin pages, options, meta boxes, and theme customizer options with just a few simple lines of code.
Author: Benjamin Intal, Gambit
Version: 1.7.3
Version: 1.7.4
Author URI: http://gambit.ph
*/

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

// Used for tracking the version used
defined( 'TF_VERSION' ) or define( 'TF_VERSION', '1.7.3' );
defined( 'TF_VERSION' ) or define( 'TF_VERSION', '1.7.4' );
// Used for text domains
defined( 'TF_I18NDOMAIN' ) or define( 'TF_I18NDOMAIN', 'titan-framework' );
// Used for general naming, e.g. nonces
Expand Down

0 comments on commit c461d4c

Please sign in to comment.