Пример #1
0
 public static function bm_sc_mshot($attributes, $content = '', $code = '')
 {
     extract(shortcode_atts(array('url' => '', 'width' => 250, 'target' => null), $attributes));
     $imageUrl = cwp::bm_mshot($url, $width);
     if ($imageUrl == '') {
         return '';
     } else {
         $image = '<img src="' . $imageUrl . '" alt="' . $url . '" width="' . $width . '"/>';
         return '<div class="browsershot mshot"><a href="' . $url . '" target="' . $target . '">' . $image . '</a></div>';
     }
 }