コード例 #1
0
 function addAttrs($attrs = array(), $att = 0)
 {
     $other_sizes = sri_get_the_image_sizes($att->ID);
     if (!empty($other_sizes) && is_array($other_sizes)) {
         $attrs = array_merge($attrs, $other_sizes);
     }
     return $attrs;
 }
コード例 #2
0
 function imageSendToEditor($html, $id, $caption, $title, $align, $url, $size, $alt)
 {
     return $this->getImageTag($id, $alt, $title, $align, $size, sri_get_the_image_sizes($id));
 }