OwlCyberSecurity - MANAGER
Edit File: pricing-tables.php
<?php /** * Pricing Table */ add_shortcode( 'pearl_pricing_table', 'pearl_pricing_table' ); function pearl_pricing_table( $atts ) { extract( shortcode_atts( array( 'style' => 'default', 'heading' => 'Standard', 'currency' => '£', 'price' => '100', 'interval' => 'Per Month', 'button_text' => '', 'button_url' => '', 'table_fields' => '', ), $atts ) ); $table_fields = explode( '*', $table_fields ); ob_start(); ?> <div class="pricing-table text-center <?php echo $style; ?>"> <h3 class="pricing-table-heading"><?php echo $heading; ?></h3> <p class="table-price"><span class="currency"><?php echo $currency; ?></span><?php echo $price; ?> <span><?php echo $interval; ?></span></p> <ul class="list list-unstyled"> <?php if ( ! empty( $table_fields ) ) { foreach ( $table_fields as $field ) { if ( ! empty( $field ) ) { echo '<li>' . $field . '</li>'; } } } ?> </ul> <?php if ( ! empty( $button_text ) && ! empty( $button_url ) ) { ?> <br> <div class="pricing-table-footer"> <a href="<?php echo $button_url; ?>"><?php echo $button_text; ?></a> </div> <?php } ?> </div> <?php return ob_get_clean(); } /** * Pricing Table */ vc_map( array( "name" => esc_html__( "Pearl Pricing Table", 'pearl-medical-framework' ), "base" => "pearl_pricing_table", "class" => "", "category" => esc_html__( "MedicalGuide Theme", 'pearl-medical-framework' ), 'admin_enqueue_css' => array( get_template_directory_uri() . '/css/vc_extend.css' ), "params" => array( array( "type" => "dropdown", "class" => "", "heading" => esc_html__( "Table Type", 'pearl-medical-framework' ), "param_name" => "style", "value" => array( 'Default' => 'default', 'Highlight' => 'highlight' ), "admin_label" => true, "group" => 'Basic' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Heading", 'pearl-medical-framework' ), "param_name" => "heading", "value" => "", "description" => esc_html__( "Provide pricing table heading.", 'pearl-medical-framework' ), "admin_label" => true, "group" => 'Basic' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Currency", 'pearl-medical-framework' ), "param_name" => "currency", "value" => "", "description" => esc_html__( "Provide pricing table currency e.g £ or $.", 'pearl-medical-framework' ), "group" => 'Basic' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Price", 'pearl-medical-framework' ), "param_name" => "price", "value" => "", "description" => esc_html__( "Provide pricing table pricing.", 'pearl-medical-framework' ), "group" => 'Basic' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Interval", 'pearl-medical-framework' ), "param_name" => "interval", "value" => "", "description" => esc_html__( "Provide pricing table package interval e.g Per Month.", 'pearl-medical-framework' ), "group" => 'Basic' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Button Text", 'pearl-medical-framework' ), "param_name" => "button_text", "value" => "", "description" => esc_html__( "Provide pricing table button text e.g Sign Up.", 'pearl-medical-framework' ), "group" => 'Basic' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Button URL", 'pearl-medical-framework' ), "param_name" => "button_url", "value" => "", "description" => esc_html__( "Provide pricing table button URL.", 'pearl-medical-framework' ), "group" => 'Basic' ), array( "type" => "pearl_clone_one", "heading" => esc_html__( "Pricing Table Fields", 'pearl-medical-framework' ), "param_name" => "table_fields", "group" => 'Fields' ), ) ) );