OwlCyberSecurity - MANAGER
Edit File: single-quote.php
<?php /** * Quote */ add_shortcode( 'pearl_single_quote', 'pearl_single_quote' ); function pearl_single_quote( $atts ) { extract( shortcode_atts( array( 'author' => '', 'quote' => '', 'background' => '' ), $atts ) ); ob_start(); ?> <div class="dr-quote"> <div class="container"> <div class="row"> <div class="col-md-12"> <?php if ( ! empty( $quote ) ) { echo '<span class="quote">"' . $quote . '"</span>'; } if ( ! empty( $author ) ) { echo '<span class="name">- "' . $author . '"</span>'; } ?> </div> </div> </div> </div> <?php return ob_get_clean(); } /** * Quote */ vc_map( array( "name" => esc_html__( "Pearl Quote", 'pearl-medical-framework' ), "base" => "pearl_single_quote", "class" => "", "category" => esc_html__( "MedicalGuide Theme", 'pearl-medical-framework' ), "params" => array( array( "type" => "textarea", "class" => "", "heading" => esc_html__( "Quote", 'pearl-medical-framework' ), "param_name" => "quote", "value" => '', "description" => esc_html__( "Please provide quote text here.", 'pearl-medical-framework' ), "admin_label" => true ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Author", 'pearl-medical-framework' ), "param_name" => "author", "value" => '', "description" => esc_html__( "Please provide quote author name here.", 'pearl-medical-framework' ), "admin_label" => true ) ) ) );