| @@ 212-217 (lines=6) @@ | ||
| 209 | } |
|
| 210 | ||
| 211 | public static function handle_shortcode($arguments, $content, $parser, $shortcode, $extra = array()) { |
|
| 212 | if(isset($arguments['type'])) { |
|
| 213 | $type = $arguments['type']; |
|
| 214 | unset($arguments['type']); |
|
| 215 | } else { |
|
| 216 | $type = false; |
|
| 217 | } |
|
| 218 | $oembed = self::get_oembed_from_url($content, $type, $arguments); |
|
| 219 | if($oembed && $oembed->exists()) { |
|
| 220 | return $oembed->forTemplate(); |
|
| @@ 628-629 (lines=2) @@ | ||
| 625 | $property = $arguments[0]; //the name of the public function being called |
|
| 626 | ||
| 627 | //the public function parameters in an array |
|
| 628 | if (isset($arguments[1]) && $arguments[1] != null) $params = $arguments[1]; |
|
| 629 | else $params = array(); |
|
| 630 | ||
| 631 | $val = $this->getInjectedValue($property, $params); |
|
| 632 | if ($val) { |
|