@{ var styleAttribute = '', sizeAttribute = ''; var isBootstrapButton = btn.button.constructorName === 'BootstrapButton'; if (isBootstrapButton) { if (btn.button.size === 'btn-lg') sizeAttribute = 'large'; else if (btn.button.size === 'btn-sm') sizeAttribute = 'small'; else if (btn.button.size === 'btn-xs') sizeAttribute = 'xsmall'; if ('btn-default' !== btn.button.style) styleAttribute = btn.button.style.replace('btn-', ''); } else { if (btn.button.mixinName) styleAttribute = btn.button.mixinName; } var isBootstrapImage = img.imageStyle.constructorName === 'BootstrapImage'; } [separator @shortcode_attributes( { content_type: [contentType], text: [text], text_tag: [textTag], align: [align], content_align: [contentAlign], href: [href], target: [target], screen_tip: [screenTip], alt: [img.alt], rel: [rel], button_style: [btn.button.mixinName], button_type: ['bootstrap', isBootstrapButton], button_size: [btn.sizeAttribute], button_icon: [btn.icon.passive.icon], button_icon_hovered: [btn.icon.hovered.icon], button_picture: [ btn.icon.passive.picture.fileName, btn.icon.passive.picture.toString('url') ], button_picture_hovered: [ btn.icon.hovered.picture.fileName, btn.icon.hovered.picture.toString('url') ], image_style: [isBootstrapImage ? img.imageStyle.shape.replace('img-', '') : img.imageStyle.mixinName], image_type: ["bootstrap", isBootstrapImage], image_responsive: [img.imageStyle.responsive, isBootstrapImage && img.imageStyle.responsive], image: [img.image.fileName, img.image.toString('url')] }, shortcode_css(), shortcode_css('image_', img), shortcode_css('button_', btn), shortcode_css('button_icon_', btn.icon.passive), shortcode_css('button_icon_hovered_', btn.icon.hovered), shortcode_css('content_', content), shortcode_css('line_', line) )][/separator]