File manager - Edit - /home/carfac/public_html/rephotonet/wordpress/wp-content/plugins/royal-addons/shortcodes/highlight.php
Back
<?php // Highlight ([highlight]) class Royal_Shortcode_Highlight { public static function highlight( $atts, $content = null ) { extract( shortcode_atts( array( 'style' => '', ), $atts ) ); return '<span class="highlight' . ( $style == 'dark' ? '-dark' : '' ) . '">' . do_shortcode( $content ) . '</span>'; } public static function vc_highlight() { vc_map( array( "name" => esc_html__( "Highlight", "royal-addons" ), "base" => "highlight", "icon" => 'ti-pencil', "description" => esc_html__( "Text highlight", "royal-addons" ), "category" => esc_html__( "Royal", "royal-addons" ), "params" => array( array( "type" => "textfield", "heading" => esc_html__( "Text", "royal-addons" ), "param_name" => "content", "value" => "", "description" => "", "admin_label" => true, ), array( "type" => "dropdown", "holder" => "div", "class" => "", "heading" => esc_html__( "Style", "royal-addons" ), "param_name" => "style", "value" => array( esc_html__('Normal', 'royal') => 'normal', esc_html__('Dark', 'royal') => 'dark' ), "description" => "", "admin_label" => true, ), ) )); } } add_shortcode( 'highlight', array( 'Royal_Shortcode_Highlight', 'highlight' ) ); add_action( 'vc_before_init', array( 'Royal_Shortcode_Highlight', 'vc_highlight' ) );
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.38 |
proxy
|
phpinfo
|
Settings