<?php
/* ---------
---- CLOUD LIBRARY.
--------- */
add_action( 'tdc_init', function() {
add_action( 'tdc_loaded', function() {
td_api_block::add('td_zodiac_sign',
array(
'map_in_td_composer' => true,
"name" => 'Zodiac',
"base" => "td_zodiac_sign",
'tdc_category' => 'External',
'file' => TD_OI_PATH . '/shortcodes/td_zodiac_sign.php',
'tdc_style_params' => array(
'el_class'
),
"params" => array_merge(
array(
array(
"param_name" => "sign",
"type" => "dropdown",
"value" => array(
'Ariete' => 'Ariete',
'Toro' => 'Toro',
'Gemelli' => 'Gemelli',
'Cancro' => 'Cancro',
'Leone' => 'Leone',
'Vergine' => 'Vergine',
'Bilancia' => 'Bilancia',
'Scorpione' => 'Scorpione',
'Sagittario' => 'Sagittario',
'Capricorno' => 'Capricorno',
'Acquario' => 'Acquario',
'Pesci' => 'Pesci',
),
"heading" => 'Segno da visualizzare',
"description" => "",
"holder" => "div",
"class" => "tdc-dropdown-big",
),
array(
"param_name" => "separator",
"type" => "horizontal_separator",
"value" => "",
"class" => ""
),
array(
'param_name' => 'username',
'type' => 'textfield',
'value' => '',
'heading' => 'Feed username',
'description' => '',
'class' => 'tdc-textfield-extrabig',
),
array(
'param_name' => 'password',
'type' => 'textfield',
'value' => '',
'heading' => 'Feed password',
'description' => '',
'class' => 'tdc-textfield-extrabig',
),
array(
"param_name" => "separator",
"type" => "horizontal_separator",
"value" => "",
"class" => ""
),
array(
'param_name' => 'el_class',
'type' => 'textfield',
'value' => '',
'heading' => 'Extra class',
'description' => 'Style particular content element differently - add a class name and refer to it in custom CSS',
'class' => 'tdc-textfield-extrabig',
),
array (
'param_name' => 'tdc_css',
'value' => '',
'type' => 'tdc_css_editor',
'heading' => '',
'group' => 'Design options',
)
),
)
)
);
td_api_block::add('td_zodiac_list',
array(
'map_in_td_composer' => true,
"name" => 'Zodiac list',
"base" => "td_zodiac_list",
'tdc_category' => 'External',
'file' => TD_OI_PATH . '/shortcodes/td_zodiac_list.php',
'tdc_style_params' => array(
'el_class'
),
"params" => array_merge(
array(
array(
'param_name' => 'url',
'type' => 'textfield',
'value' => '',
'heading' => 'Pagina',
'description' => 'Lascia vuota per usare solo l\'anchor',
'class' => 'tdc-textfield-extrabig',
),
array(
"param_name" => "rows",
"type" => "dropdown-responsive",
"value" => array(
'12 segni per riga' => '12',
'6 segni per riga' => '6',
'4 segni per riga' => '4',
'3 segni per riga' => '3',
'2 segni per riga' => '2',
'1 segno per riga' => '1',
),
"heading" => 'Elementi per riga',
"description" => "",
"holder" => "div",
"class" => "tdc-dropdown-big",
),
array(
"param_name" => "carousel",
"type" => "dropdown",
"value" => array(
'Sì' => 'true',
'No' => 'false',
),
"heading" => 'Carousel',
"description" => "",
"holder" => "div",
"class" => "tdc-dropdown-big",
),
array(
"param_name" => "show_icon",
"type" => "dropdown",
"value" => array(
'Sì' => 'true',
'No' => 'false',
),
"heading" => 'Mostra icona',
"description" => "",
"holder" => "div",
"class" => "tdc-dropdown-big",
),
array(
"param_name" => "show_text",
"type" => "dropdown",
"value" => array(
'Sì' => 'true',
'No' => 'false',
),
"heading" => 'Mostra testo',
"description" => "",
"holder" => "div",
"class" => "tdc-dropdown-big",
),
array(
"param_name" => "separator",
"type" => "horizontal_separator",
"value" => "",
"class" => ""
),
array(
'param_name' => 'el_class',
'type' => 'textfield',
'value' => '',
'heading' => 'Extra class',
'description' => 'Style particular content element differently - add a class name and refer to it in custom CSS',
'class' => 'tdc-textfield-extrabig',
),
array(
"param_name" => "bg_color",
"type" => "colorpicker",
"holder" => "div",
"class" => "",
"heading" => 'Background color',
"value" => '',
"description" => '',
"group" => "Style",
),
array(
"param_name" => "text_color",
"type" => "colorpicker",
"holder" => "div",
"class" => "",
"heading" => 'Text color',
"value" => '',
"description" => '',
"group" => "Style",
),
array(
"param_name" => "text_hover_color",
"type" => "colorpicker",
"holder" => "div",
"class" => "",
"heading" => 'Text hover color',
"value" => '',
"description" => '',
"group" => "Style",
),
array(
"param_name" => "font_size",
"type" => "range",
"holder" => "div",
"heading" => 'Font segni',
"value" => '12',
"description" => '',
'class' => 'tdc-textfield-small',
'range_min' => '8',
'range_max' => '20',
'range_step' => '1',
"group" => "Style",
),
array(
"param_name" => "padding",
'type' => 'range-responsive',
'value' => '0',
'heading' => 'Padding',
'description' => '',
'class' => 'tdc-textfield-small',
'range_min' => '0',
'range_max' => '10',
'range_step' => '1',
"group" => "Style",
),
array(
"param_name" => "spacing",
'type' => 'range-responsive',
'value' => '0',
'heading' => 'Spaziatura',
'description' => '',
'class' => 'tdc-textfield-small',
'range_min' => '0',
'range_max' => '10',
'range_step' => '1',
"group" => "Style",
),
array(
"param_name" => "radius",
'type' => 'range-responsive',
'value' => '0',
'heading' => 'Border Radius',
'description' => '',
'class' => 'tdc-textfield-small',
'range_min' => '0',
'range_max' => '25',
'range_step' => '1',
"group" => "Style",
),
array (
'param_name' => 'tdc_css',
'value' => '',
'type' => 'tdc_css_editor',
'heading' => '',
'group' => 'Design options',
)
),
)
)
);
});
});