'', 'id' => '', 'picture_size' => 'fixed', ), $args ); extract( $defaults ); self::$parent_args = $defaults; $html = sprintf( '
    %s
', FusionCore_Plugin::attributes( 'clients-shortcode' ), FusionCore_Plugin::attributes( 'es-carousel-wrapper fusion-carousel-small clients-carousel' ), FusionCore_Plugin::attributes( 'es-carousel' ), do_shortcode($content), FusionCore_Plugin::attributes( 'es-nav' ), FusionCore_Plugin::attributes( 'es-nav-prev' ), FusionCore_Plugin::attributes( 'es-nav-next' ) ); return $html; } function attr() { $attr = array(); $attr['class'] = 'fusion-clients-slider clientslider-container'; if( self::$parent_args['class'] ) { $attr['class'] .= ' ' . self::$parent_args['class']; } if( self::$parent_args['picture_size'] == 'auto' ) { $attr['class'] .= ' picture-size-auto'; } if( self::$parent_args['id'] ) { $attr['id'] = self::$parent_args['id']; } return $attr; } /** * Render the child shortcode * @param array $args Shortcode paramters * @param string $content Content between shortcode * @return string HTML output */ function render_child( $args, $content = '') { $defaults = FusionCore_Plugin::set_shortcode_defaults( array( 'alt' => '', 'image' => '', 'link' => '', 'linktarget' => '_self', ), $args ); extract( $defaults ); self::$child_args = $defaults; $output = sprintf( '%s', $image, $alt ); if( $link ) { $output = sprintf( '%s', $link, $linktarget, $output ); } $html = sprintf( '
  • %s
  • ', FusionCore_Plugin::attributes( 'image' ), $output ); return $html; } } new FusionSC_Clients();