Plugin Directory

Changeset 789356


Ignore:
Timestamp:
10/17/2013 03:46:18 PM (12 years ago)
Author:
rjune
Message:

Started fix problem whith shortcode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gcal-sidebar/trunk/gcal-sidebar.php

    r361754 r789356  
    44Plugin URI: http://www.oriontechnologysolutions.com/gcal-sidebar/
    55Description: Pulls a Google Calendar feed and displays it in your sidebar.
    6 Version: 2.9
     6Version: 2.10
    77Author: Orion Technology Solutions
    88Author URI: http://www.oriontechnologysolutions.com
     
    4545
    4646    function shortcode($atts) {
     47    $rval = "";
    4748        if(!isset($atts['feed_id']))
    4849            return "feed_id must be set";
     
    5455        $title = $this->get_title($calGroup, $atts['title_url_option']);
    5556
    56         echo "<div class='gcal_sidebar'>";
    57         echo "<h2>" . $title . "</h2>";
    58         $this->display_feed($calGroup, $atts);
    59         echo "</div>";
     57        $rval .= "<div class='gcal_sidebar'>";
     58        $rval .= "<h2>" . $title . "</h2>";
     59        $rval .= $this->display_feed($calGroup, $atts, false);
     60        $rval .= "</div>";
    6061    }
    6162    /** @see WP_Widget::widget */
Note: See TracChangeset for help on using the changeset viewer.