OwlCyberSecurity - MANAGER
Edit File: guide-blocks.php
<?php /** * Guide Blocks */ add_shortcode( 'pearl_guide_blocks', 'pearl_guide_blocks' ); function pearl_guide_blocks( $atts ) { extract( shortcode_atts( array( 'first_title' => '', 'first_desc' => '', 'first_link_text' => 'Learn More', 'first_link' => '', 'second_title' => '', 'second_desc' => '', 'second_link_text' => 'Learn More', 'second_link' => '', 'third_title' => '', 'third_desc' => '', 'third_link_text' => 'Learn More', 'third_link' => '', ), $atts ) ); ob_start(); ?> <div class="services-three"> <?php if ( ! empty( $first_title ) || ! empty( $first_desc ) ) { ?> <div class="serv-sec"> <?php if ( ! empty( $first_title ) ) { echo '<h3>' . $first_title . '</h3>'; } if ( ! empty( $first_desc ) ) { echo '<p>' . $first_desc . '</p>'; } if ( ! empty( $first_link_text ) || ! empty( $first_link ) ) { echo '<a href="' . $first_link . '">' . $first_link_text . '</a>'; } ?> </div> <?php } if ( ! empty( $second_title ) || ! empty( $second_desc ) ) { ?> <div class="serv-sec serv-sec2"> <?php if ( ! empty( $second_title ) ) { echo '<h3>' . $second_title . '</h3>'; } if ( ! empty( $second_desc ) ) { echo '<p>' . $second_desc . '</p>'; } if ( ! empty( $second_link_text ) || ! empty( $second_link ) ) { echo '<a href="' . $second_link . '">' . $second_link_text . '</a>'; } ?> </div> <?php } if ( ! empty( $third_title ) || ! empty( $third_desc ) ) { ?> <div class="serv-sec serv-sec3"> <?php if ( ! empty( $third_title ) ) { echo '<h3>' . $third_title . '</h3>'; } if ( ! empty( $third_desc ) ) { echo '<p>' . $third_desc . '</p>'; } if ( ! empty( $third_link_text ) || ! empty( $third_link ) ) { echo '<a href="' . $third_link . '">' . $third_link_text . '</a>'; } ?> </div> <?php } ?> </div> <div class="clear"></div> <?php return ob_get_clean(); } /** * Guide Block */ vc_map( array( "name" => esc_html__( "Pearl Guide Blocks", 'pearl-medical-framework' ), "base" => "pearl_guide_blocks", "class" => "", "category" => esc_html__( "MedicalGuide Theme", 'pearl-medical-framework' ), "params" => array( array( "type" => "textfield", "class" => "", "heading" => esc_html__( "First Block Title", 'pearl-medical-framework' ), "param_name" => "first_title", "value" => '', "admin_label" => true, "group" => 'First' ), array( "type" => "textarea", "class" => "", "heading" => esc_html__( "First Block Description", 'pearl-medical-framework' ), "param_name" => "first_desc", "value" => '', "group" => 'First' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "First Block Button Text", 'pearl-medical-framework' ), "param_name" => "first_link_text", "value" => '', "group" => 'First' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "First Block Button link", 'pearl-medical-framework' ), "param_name" => "first_link", "value" => '', "group" => 'First' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Second Block Title", 'pearl-medical-framework' ), "param_name" => "second_title", "value" => '', "admin_label" => true, "group" => 'Second' ), array( "type" => "textarea", "class" => "", "heading" => esc_html__( "Second Block Description", 'pearl-medical-framework' ), "param_name" => "second_desc", "value" => '', "group" => 'Second' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Second Block Button Text", 'pearl-medical-framework' ), "param_name" => "second_link_text", "value" => '', "group" => 'Second' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Second Block Button link", 'pearl-medical-framework' ), "param_name" => "second_link", "value" => '', "group" => 'Second' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Third Block Title", 'pearl-medical-framework' ), "param_name" => "third_title", "value" => '', "admin_label" => true, "group" => 'Third' ), array( "type" => "textarea", "class" => "", "heading" => esc_html__( "Third Block Description", 'pearl-medical-framework' ), "param_name" => "third_desc", "value" => '', "group" => 'Third' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Third Block Button Text", 'pearl-medical-framework' ), "param_name" => "third_link_text", "value" => '', "group" => 'Third' ), array( "type" => "textfield", "class" => "", "heading" => esc_html__( "Third Block Button link", 'pearl-medical-framework' ), "param_name" => "third_link", "value" => '', "group" => 'Third' ) ) ) );