File manager - Edit - /home/carfac/public_html/rephotonet/wordpress/wp-content/plugins/royal-addons/shortcodes/quote.php
Back
<?php // Quote ([quote]) class Royal_Shortcode_Quote { public static function quote( $atts, $content = null ) { extract( shortcode_atts( array( 'information' => '', ), $atts ) ); return '<blockquote><p>' . do_shortcode( $content ) . '</p>' . ( ! empty( $information ) ? '<footer>' . esc_html( $information ) . '</footer>' : '' ) . '</blockquote>'; } public static function vc_quote() { vc_map( array( "name" => esc_html__( "Quote", "royal-addons" ), "base" => "quote", "icon" => 'ti-quote-right', "description" => esc_html__( "Custom blockquote", "royal-addons" ), "category" => esc_html__( "Royal", "royal-addons" ), "params" => array( array( "type" => "textarea_html", "heading" => esc_html__( "Text", "royal-addons" ), "param_name" => "content", "value" => "", "description" => "", "admin_label" => true, ), array( "type" => "textfield", "heading" => esc_html__( "Author", "royal-addons" ), "param_name" => "information", "value" => "", "description" => "", "admin_label" => true, ), ) )); } } add_shortcode( 'quote', array( 'Royal_Shortcode_Quote', 'quote' ) ); add_action( 'vc_before_init', array( 'Royal_Shortcode_Quote', 'vc_quote' ) );
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings