Plugin Directory

Changeset 577217


Ignore:
Timestamp:
07/25/2012 03:32:01 PM (14 years ago)
Author:
tickee
Message:

shortcode added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tickee-widget/trunk/tickee-widget.php

    r544565 r577217  
    2424 * @return  string  Tickee Widget iframe tag   
    2525 */
    26     function tickee() {
     26    function tickee( $atts = null ) {
    2727        global $post;
    2828   
    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'))
    3134            return no_tickee( 'stop' );
    3235   
     
    4548
    4649    }
     50   
     51   
     52/**
     53 * Add Shortcode
     54 *
     55 */
     56 
     57 add_shortcode('tickee', 'tickee');
    4758
    4859
Note: See TracChangeset for help on using the changeset viewer.