'', 'width' => '100%', 'component_width' => '100%', 'columns' => '', 'position' => 'center', 'innerposition' => '', 'img' => '', 'imgrepeat' => 'no-repeat', 'imgposition' => 'center center', 'imgsize' => 'cover', 'floatermedia' => '', 'floaterdirection' => 'down', 'floaterposition' => 'left', 'color' => '#FFFFFF', 'background' => '#222222', 'disable_bgshading' => 'off', 'revealfx' => '', 'overlay_revealfx' => '' ); $atts = apply_filters( 'aesop_cbox_defaults', shortcode_atts( $defaults, $atts ) ); // set component to content width $contentwidth = 'content' == $atts['width'] ? 'aesop-content' : false; // height $height = $atts['height'] ? sprintf( 'min-height:%s;', esc_attr( $atts['height'] ) ) : false; // inner positioning $getinnerposition = $atts['innerposition'] ? preg_split( '/[\s,]+/', $atts['innerposition'] ) : false; $positionArray = array( 'top' => $getinnerposition[0], 'right' => $getinnerposition[1], 'bottom' => $getinnerposition[2], 'left' => $getinnerposition[3] ); //$innerposition = is_array( $positionArray ) && $atts['innerposition'] ? sprintf( 'position:absolute;top:%s;right:%s;bottom:%s;left:%s;', $positionArray['top'], $positionArray['right'], $positionArray['bottom'], $positionArray['left'] ) : false; $innerposition = is_array( $positionArray ) && $atts['innerposition'] ? sprintf( 'top:%s;right:%s;bottom:%s;left:%s;', $positionArray['top'], $positionArray['right'], $positionArray['bottom'], $positionArray['left'] ) : false; // are we doing columns or image and do a clas based on it $columns = $atts['columns'] ? sprintf( 'aesop-content-comp-columns-%s', $atts['columns'] ) : false; $image = $atts['img'] ? 'aesop-content-img' : false; $typeclass = $columns.' '.$image; // image and width inline styles $bgcolor = $atts['background'] ? sprintf( 'background-color:%s;', esc_url( $atts['background'] ) ) : false; $imgstyle = $atts['img'] ? sprintf( '%sbackground-image:url(\'%s\');background-size:%s;background-position:%s;background-repeat:%s;', $bgcolor, esc_url( $atts['img'] ), esc_attr( $atts['imgsize'] ), esc_attr( $atts['imgposition'] ), esc_attr( $atts['imgrepeat'] ) ) : false; $position = ( 'left' == $atts['position'] || 'right' == $atts['position'] ) ? sprintf( 'float:%s;', esc_attr( $atts['position'] ) ) : 'margin-left:auto;margin-right:auto;'; $widthContentStyle = 'content' == $atts['width'] ? false : sprintf( 'width:%s;max-width:100%%;', esc_attr( $atts['width'] ) ); $widthComponentStyle = sprintf( 'width:%s;max-width:100%%;', esc_attr( $atts['component_width'] ) ); $overlay_animated_style = (!empty($atts['overlay_revealfx']) && $atts['overlay_revealfx']!='off') ? 'visibility:hidden;':false; $shade_style = (empty($atts['disable_bgshading']) || $atts['disable_bgshading']=='off') ? false : 'background-color:transparent;'; $innerstyle = sprintf( 'style="%s%s%s%s%s"', $widthContentStyle, $position, $innerposition, $overlay_animated_style, $shade_style ) ; $txtcolor = $atts['color'] ? sprintf( 'color:%s;', $atts['color'] ) : false; $itemstyle = $imgstyle !== false || $txtcolor !== false || $height !== false ? sprintf( 'style="%s%s%s%s"', $imgstyle, $txtcolor, $bgcolor, $height ) : false; // custom classes $classes = function_exists( 'aesop_component_classes' ) ? aesop_component_classes( 'content', '' ) : false; // has image class $has_img = $atts['img'] ? 'aesop-content-has-img' : false; // has floater $has_floater = $atts['floatermedia'] ? 'aesop-content-has-floater' : false; // floater positoin $floaterposition = $atts['floaterposition'] ? sprintf( 'floater-%s', $atts['floaterposition'] ) : false; ob_start(); do_action( 'aesop_cbox_before', $atts, $unique ); // action ?>
class="aesop-component aesop-content-component " style=";" >
>
>