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