File manager - Edit - /home/carfac/public_html/rephotonet/wordpress/wp-content/plugins/royal-addons/shortcodes/progress.php
Back
<?php // Progress bar ([progress]) class Royal_Shortcode_Progress { public static function progress( $atts, $content = null ) { extract( shortcode_atts( array( 'title' => '', 'value' => 75 ), $atts ) ); return '<div class="bar"><div class="progress-heading"><h5 class="progress-title">' . esc_html( $title ) . '</h5><div class="progress-value"></div></div><div class="progress"><div class="progress-bar" role="progressbar" aria-valuenow="' . intval( $value ) . '" aria-valuemin="0" aria-valuemax="100"></div></div></div>'; } public static function vc_progress() { vc_map( array( "name" => esc_html__( "Progress Bar", "royal-addons" ), "base" => "progress", "icon" => 'ti-align-left', "description" => esc_html__( "Feature text", "royal-addons" ), "category" => esc_html__( "Royal", "royal-addons" ), "params" => array( array( "type" => "textfield", "heading" => esc_html__( "Title", "royal-addons" ), "param_name" => "title", "value" => "", "description" => "", "admin_label" => true, ), array( "type" => "textfield", "heading" => esc_html__( "Value", "royal-addons" ), "param_name" => "value", "value" => "75", "description" => esc_html__( "Number between 0 and 100", "royal-addons" ), "admin_label" => true, ), ) )); } } add_shortcode( 'progress', array( 'Royal_Shortcode_Progress', 'progress' ) ); add_action( 'vc_before_init', array( 'Royal_Shortcode_Progress', 'vc_progress' ) );
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings