Changeset 577217
- Timestamp:
- 07/25/2012 03:32:01 PM (14 years ago)
- File:
-
- 1 edited
-
tickee-widget/trunk/tickee-widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tickee-widget/trunk/tickee-widget.php
r544565 r577217 24 24 * @return string Tickee Widget iframe tag 25 25 */ 26 function tickee( ) {26 function tickee( $atts = null ) { 27 27 global $post; 28 28 29 # Check if the tickee account is set in dashboard settings 30 if( !$account = get_option('tickee_account')) 29 # Check if the tickee account is set in dashboard settings or shortcode 30 if( $atts['slug']) 31 $account = array('slug'=> $atts['slug']); 32 33 else if( !$account = get_option('tickee_account')) 31 34 return no_tickee( 'stop' ); 32 35 … … 45 48 46 49 } 50 51 52 /** 53 * Add Shortcode 54 * 55 */ 56 57 add_shortcode('tickee', 'tickee'); 47 58 48 59
Note: See TracChangeset
for help on using the changeset viewer.