'', 'class' =>'', 'style' =>'normal', 'percent' => '50', 'text' =>'', 'height' => 30, 'color' =>'', 'direction' => 'left', 'textposition' => 'on', 'number' => 'yes', 'rounded' =>'on', 'striped' =>'none', ), $args ); extract( $defaults ); self::$args = $defaults; $unqid = uniqid("circle-"); $percent = str_replace('%','',$percent); $percent = esc_attr($percent).'%'; $css_style = 'width: '.esc_attr($percent).';'; $html = ''; if($style == 'circle'): $html .= ''; endif; if(is_numeric($height)) $height = $height.'px'; $line_height = ''; $bar_height = ''; if( $height ){ $bar_height = 'height:'.esc_attr($height).';'; $line_height = 'line-height:'.esc_attr($height).''; } if( $direction == 'left' ){ $a = 'left'; $b = 'right'; } else{ $a = 'right'; $b = 'left'; } $progress = ''; $progress_bar = ''; if( $textposition == 'above' ){ $progress .= ' progress-sm'; } if($number == 'no') $percent = ''; if($rounded == 'on') $progress .= ' rounded'; if($striped == 'none') $progress_bar .= ' none-striped'; if($striped == 'striped') $progress_bar .= ' progress-bar-striped'; if($striped == 'striped animated') $progress_bar .= ' progress-bar-striped animated hinge infinite'; if( $color ) $css_style .= 'background-color:'.esc_attr($color).';'; $html .= '
'; if( $textposition == '2' ){ $html .= '
'.esc_textarea($text).'
'.esc_attr($percent).'
'; } $html .= '
'; if( $textposition == '1' ){ $html .= '
'.esc_textarea($text).'
'.esc_attr($percent).'
'; } $html .= '
'; $html .= '
'; return $html; } } new Magee_Progress(); endif;