{"action":"created","issue":{"url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core/issues/25","repository_url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core","labels_url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core/issues/25/comments","events_url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core/issues/25/events","html_url":"https://github.com/getgrav/grav-plugin-shortcode-core/issues/25","id":195071094,"number":25,"title":"Returns wrong shortcode content","user":{"login":"dimayakovlev","id":8279974,"avatar_url":"https://avatars.githubusercontent.com/u/8279974?v=3","gravatar_id":"","url":"https://api.github.com/users/dimayakovlev","html_url":"https://github.com/dimayakovlev","followers_url":"https://api.github.com/users/dimayakovlev/followers","following_url":"https://api.github.com/users/dimayakovlev/following{/other_user}","gists_url":"https://api.github.com/users/dimayakovlev/gists{/gist_id}","starred_url":"https://api.github.com/users/dimayakovlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimayakovlev/subscriptions","organizations_url":"https://api.github.com/users/dimayakovlev/orgs","repos_url":"https://api.github.com/users/dimayakovlev/repos","events_url":"https://api.github.com/users/dimayakovlev/events{/privacy}","received_events_url":"https://api.github.com/users/dimayakovlev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-12T20:01:41Z","updated_at":"2016-12-16T02:43:48Z","closed_at":null,"body":"If shortcode content is `0` (zero), then `$sc->getContent();` return `NULL`.\r\n"},"comment":{"url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core/issues/comments/267503913","html_url":"https://github.com/getgrav/grav-plugin-shortcode-core/issues/25#issuecomment-267503913","issue_url":"https://api.github.com/repos/getgrav/grav-plugin-shortcode-core/issues/25","id":267503913,"user":{"login":"rhukster","id":1084697,"avatar_url":"https://avatars.githubusercontent.com/u/1084697?v=3","gravatar_id":"","url":"https://api.github.com/users/rhukster","html_url":"https://github.com/rhukster","followers_url":"https://api.github.com/users/rhukster/followers","following_url":"https://api.github.com/users/rhukster/following{/other_user}","gists_url":"https://api.github.com/users/rhukster/gists{/gist_id}","starred_url":"https://api.github.com/users/rhukster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhukster/subscriptions","organizations_url":"https://api.github.com/users/rhukster/orgs","repos_url":"https://api.github.com/users/rhukster/repos","events_url":"https://api.github.com/users/rhukster/events{/privacy}","received_events_url":"https://api.github.com/users/rhukster/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T02:43:48Z","updated_at":"2016-12-16T02:43:48Z","body":"Thanks @thunderer, I tested with your PR and it works fine with the syntax I have above.\r\n\r\nNow regarding the test cases.. It's a little tricky because everything i'm doing is based on a couple of plugins that we have for Grav which extend your core Shortcode library.  \r\n\r\nThe simplest way is to setup a Grav instance (just Apache + PHP) - MAMP will do.\r\n\r\nhttps://github.com/getgrav/grav/releases/download/1.1.9/grav-v1.1.9.zip\r\n\r\nThen turn off caching (to get a better idea of how the processing is working) in `user/config/system.yaml`\r\n\r\nThen install `shortcode-ui` plugin, as it depends on the `shortcode-core` plugin (where your vendor folder is located) that will be installed also:\r\n\r\n```\r\n$ bin/gpm install shortcode-ui\r\n```\r\n\r\nOnce you have that, you can replace the core `user/pages/01.home` folder with the following.\r\n\r\n[01.home.zip](https://github.com/getgrav/grav-plugin-shortcode-core/files/656289/01.home.zip)\r\n\r\nThis contains my sample page with some images.  This page uses most of the shortcodes defined in core and ui plugins.\r\n\r\nit's really easier than it sounds! :)\r\n"}}
{"actor":{"display_login":"rhukster"}}