%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/www2]/old/wp-content/themes/inspiry-medicalpress/include/shortcodes/
Upload File :
Create Path :
Current File : /home/vacivi36/www2]/old/wp-content/themes/inspiry-medicalpress/include/shortcodes/vc-map.php

<?php
add_action( 'vc_before_init', 'inspiry_shortcodes_integration' );
function inspiry_shortcodes_integration() {

    /**
     * Force Visual Composer to initialize as "built into the theme".
     * This will hide certain tabs under the Settings->Visual Composer page
     */
    vc_set_as_theme();

    /* Home News shortcode Visual Composer Element */
    vc_map( array(
        "name" => __( "Home News", "framework" ),
        "description" => __( "List of News", "framework" ),
        "base" => "home_news",
        "category" => __( "Theme", "framework" ),
        "params" => array(
            array(
                "type" => "dropdown",
                "heading" => __( "Number of News", "framework" ),
                "param_name" => "number_of_posts",
                "value" => array(
                    __('All','framework') => -1,
                    '1' => 1,
                    '2' => 2,
                    '3' => 3,
                    '4' => 4,
                    '5' => 5,
                    '6' => 6,
                    '7' => 7,
                    '8' => 8,
                    '9' => 9,
                    '10' => 10,
                    '11' => 11,
                    '12' => 12,
                ),
                'admin_label' => true,
            )
        )
    ) );

    /* Home Doctors shortcode Visual Composer Element */
    vc_map( array(
        "name" => __( "Home Doctors", "framework" ),
        "description" => __( "List of Doctors", "framework" ),
        "base" => "home_doctors",
        "category" => __( "Theme", "framework" ),
        "params" => array(
            array(
                "type" => "dropdown",
                "heading" => __( "Number of Columns to Display", "framework" ),
                "param_name" => "number_of_columns",
                "value" => array(
                    '1' => 1,
                    '2' => 2,
                    '3' => 3,
                    '4' => 4
                ),
                'admin_label' => true
            ),
            array(
                "type" => "dropdown",
                "heading" => __( "Number of Doctors To Display", "framework" ),
                "param_name" => "number_of_doctors",
                "value" => array(
                    __('All','framework') => -1,
                    '1' => 1,
                    '2' => 2,
                    '3' => 3,
                    '4' => 4,
                    '5' => 5,
                    '6' => 6,
                    '7' => 7,
                    '8' => 8,
                    '9' => 9,
                    '10' => 10,
                    '11' => 11,
                    '12' => 12
                ),
                'admin_label' => true
            )
        )
    ) );

    /* Appointment Form Shortcode element for Visual Composer */
    vc_map( array(
        "name" => __( "Appointment Form", "framework" ),
        "description" => __( "Appointment Form Shortcode", "framework" ),
        "base" => "appointment_form",
        "category" => __( "Theme", "framework" )
    ) );
}
?>

Zerion Mini Shell 1.0