wp-plugins/hijri-calendar — pull request #1 by saleemshafi (2014-06-25 18:53:51+00:00)
Title: fixing shortcode functions to return data rather than echo

By returning the data from the shortcode function instead of echo directly, the contents can be processed inline properly.

Currently, if i specify the following in a post:
```

[en_hijri_date]

```
the resulting output is
```27 Shaaban 1435

```
since processing the shortcode echos the content rather than returning it so that it can be substituted in the original text.

With the changes here, the output becomes
```

27 Shaaban 1435

```
as expected.

Fix is also applied to the calendar shortcode using output buffering to trap the echos and return the markup.