title: Create shortcode with parameter in PHP Joomla
body: <p>I've created a simple shortcode plugin on Joomla.
  Actually I am trying to integrate Cleeng Video with Joomla. And will connect it's users in the future ( I hope ).
  I've stack on creating shortcode's parameter. I don't know how to parse it's parameter and value.
  My Shortcode is here (no parameter)</p>
  
  <pre><code>{cleengvideo}&lt;iframe class="wistia_embed" src="http://fast.wistia.net/embed/iframe/5r8r9ib6di" name="wistia_embed" width="640" height="360" frameborder="0" scrolling="no" allowfullscreen=""&gt;&lt;/iframe&gt;{/cleengvideo}
  </code></pre>
  
  <p>My code is here</p>
  
  <pre><code>public function onContentPrepare($content, $article, $params, $limit) {
       preg_match_all('/{cleengvideo}(.*?){\/cleengvideo}/is', $article-&gt;text, $matches);
        $i = 0;
        foreach ($matches[0] as $match) {
        $videoCode = $matches[1][$i];
        $article-&gt;text = str_replace($match, $videoCode, $article-&gt;text);
        }
  </code></pre>
  
  <p>I want to set height, width and 5r8r9ib6di this code from shortcode at least.
  Please can anyone help me with adding and parsing it's parameter </p>