// Transition & style
 $el->attr('style', 'top:' . layerslider_check_unit($layer['props']['top']) . ';');
 $el->attr('style', $el->attr('style') . 'left:' . layerslider_check_unit($layer['props']['left']) . ';');
 if (isset($layer['attrs']) && isset($layer['props']['transition'])) {
     $el->attr('data-ls', ls_array_to_attr($layer['attrs']));
 } elseif (isset($layer['attrs'])) {
     $el->attr('style', $el->attr('style') . ls_array_to_attr($layer['attrs']));
 }
 if (!empty($layer['props']['style'])) {
     if (substr($layer['props']['style'], -1) != ';') {
         $layer['props']['style'] .= ';';
     }
     $inner->attr('style', $inner->attr('style') . preg_replace('/\\s\\s+/', ' ', $layer['props']['style']));
 }
 if (!empty($layer['props']['styles'])) {
     $inner->attr('style', $inner->attr('style') . ls_array_to_attr(json_decode($layer['props']['styles'], true), 'css'));
 }
 if (empty($layer['props']['wordwrap'])) {
     $inner->attr('style', $inner->attr('style') . 'white-space: nowrap;');
 }
 // Link to slides
 if (!empty($layer['props']['url']) && preg_match('/^\\#[0-9]/', $layer['props']['url'])) {
     $el->addClass('ls-linkto-' . substr($layer['props']['url'], 1));
 }
 // Image layer
 if ($layer['props']['type'] == 'img') {
     $inner->attr('src', LS_ROOT_URL . '/static/img/blank.gif');
     $inner->attr('src', LS_ROOT_URL . '/static/img/blank.gif');
     if ($layer['props']['image'] == '[image-url]') {
         $src = $postContent->getWithFormat($layer['props']['image']);
     } else {
     $el->attr('data-ls', ls_array_to_attr($layer['attrs']));
 } elseif (isset($layer['attrs'])) {
     $el->attr('style', $el->attr('style') . ls_array_to_attr($layer['attrs']));
 }
 if (!empty($layer['props']['style'])) {
     if (substr($layer['props']['style'], -1) != ';') {
         $layer['props']['style'] .= ';';
     }
     $inner->attr('style', $inner->attr('style') . preg_replace('/\\s\\s+/', ' ', $layer['props']['style']));
 }
 if (!empty($layer['props']['styles'])) {
     $layerStyles = json_decode($layer['props']['styles'], true);
     if ($layerStyles === null) {
         $layerStyles = json_decode(stripslashes($layer['props']['styles']), true);
     }
     $inner->attr('style', $inner->attr('style') . ls_array_to_attr($layerStyles, 'css'));
 }
 if (empty($layer['props']['wordwrap'])) {
     $inner->attr('style', $inner->attr('style') . 'white-space: nowrap;');
 }
 // Link to slides
 if (!empty($layer['props']['url']) && preg_match('/^\\#[0-9]/', $layer['props']['url'])) {
     $el->addClass('ls-linkto-' . substr($layer['props']['url'], 1));
 }
 // Image layer
 if ($layer['props']['type'] == 'img') {
     $inner->attr('src', LS_ROOT_URL . '/static/img/blank.gif');
     $inner->attr('src', LS_ROOT_URL . '/static/img/blank.gif');
     if ($layer['props']['image'] == '[image-url]') {
         $src = $postContent->getWithFormat($layer['props']['image']);
     } else {