File: //home/retoti4c1e1s/public_html/thecommitment.earth/wp-content/themes/ananke/vc_shortcode.php
<?php
//Custom Heading
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Heading", 'ananke'),
"base" => "heading",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
'type' => 'checkbox',
'heading' => __( 'Shadow text?', 'ananke' ),
'param_name' => 'shadow_text',
'description' => __( 'If checked heading will be set to shadow text.', 'ananke' ),
'value' => array( __( 'Yes', 'ananke' ) => 'yes' ),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title", 'ananke'),
"param_name"=> "title",
"value" => "",
"description" => __("Add title", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Subtitle", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("Add sub-title.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Class Extra", 'ananke'),
"param_name"=> "class",
"value" => "",
"description" => __("Class extra for style", 'ananke')
),
)));
}
//Home Video
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Slider Video", 'ananke'),
"base" => "slidervideo",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Image Banner", 'ananke'),
"param_name" => "poster",
"value" => "",
"description" => __("Upload image banner if not use video.", 'ananke')
),
array(
'type' => 'checkbox',
'heading' => __( 'Sound Video On?', 'ananke' ),
'param_name' => 'sound_video',
'description' => __( 'If checked heading will be set to sound video is on.', 'ananke' ),
'value' => array( __( 'Yes', 'ananke' ) => 'yes' ),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Volume",
"param_name" => "volume",
"value" => "",
"description" => __("Add video volume number, eg: 0.5", 'ananke'),
'dependency' => array(
'element' => 'sound_video',
'not_empty' => true,
),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link video mp4",
"param_name" => "mp4",
"value" => "",
"description" => __("Add link video .mp4", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link video webm",
"param_name" => "webm",
"value" => "",
"description" => __("Add link video .webm", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link video ogg",
"param_name" => "ogg",
"value" => "",
"description" => __("Add link video .ogg", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Text Slider", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("List text slider.", 'ananke')
),
)
));
}
//Home Moving Background
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Moving Background Slider", 'ananke'),
"base" => "movingbg",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Image Moving", 'ananke'),
"param_name" => "poster",
"value" => "",
"description" => __("Upload image moving.", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Text Slider", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("List text slider.", 'ananke')
),
)
));
}
//Home Pattern Background
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Pattern Slider", 'ananke'),
"base" => "patternbg",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Image Pattern", 'ananke'),
"param_name" => "poster",
"value" => "",
"description" => __("Upload image pattern.", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Text Slider", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("List text slider.", 'ananke')
),
)
));
}
// Arrow Down for Revo Slider
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Arrow Down", 'ananke'),
"base" => "arrowdown",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Change Background Button", 'ananke'),
"param_name" => "bg",
"value" => "",
"description" => __("", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Button text", 'ananke'),
"param_name" => "btntext",
"value" => "",
"description" => __("Button text, Example: ABOUT AGENCY", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("URL (Link)", 'ananke'),
"param_name" => "link",
"value" => "",
"description" => __("Button link, Example: #about ", 'ananke')
),
)));
}
//Button Slider
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Buttons Slider", 'ananke'),
"base" => "btnslider",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Text Button 1", 'ananke'),
"param_name" => "text1",
"value" => "",
"description" => __("Example: portfolio", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link Button 1", 'ananke'),
"param_name" => "link1",
"value" => "",
"description" => __("Example: #work", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Text Button 2", 'ananke'),
"param_name" => "text2",
"value" => "",
"description" => __("Example: contact", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link Button 2", 'ananke'),
"param_name" => "link2",
"value" => "",
"description" => __("Example: #contact", 'ananke')
),
)));
}
//Button Social Slider
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Socials Slider", 'ananke'),
"base" => "socslider",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 1", 'ananke'),
"param_name" => "icon1",
"value" => "",
"description" => __("Example: twitter, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link 1", 'ananke'),
"param_name" => "link1",
"value" => "",
"description" => __("Link Social", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 2", 'ananke'),
"param_name" => "icon2",
"value" => "",
"description" => __("Example: facebook, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link 2", 'ananke'),
"param_name" => "link2",
"value" => "",
"description" => __("Link Social", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 3", 'ananke'),
"param_name" => "icon3",
"value" => "",
"description" => __("Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link 3", 'ananke'),
"param_name" => "link3",
"value" => "",
"description" => __("Link Social", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 4", 'ananke'),
"param_name" => "icon4",
"value" => "",
"description" => __("Example: github, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link 4", 'ananke'),
"param_name" => "link4",
"value" => "",
"description" => __("Link Social", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 5", 'ananke'),
"param_name" => "icon5",
"value" => "",
"description" => __("Example: google-plus, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link 5", 'ananke'),
"param_name" => "link5",
"value" => "",
"description" => __("Link Social", 'ananke')
),
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"heading" => __("Link Target", 'ananke'),
"param_name" => "target",
"value" => array(
__('Same window', 'ananke') => '_self',
__('New window', 'ananke') => '_blank',
),
"description" => __("Select target, use for all button link.", 'ananke')
),
)));
}
//About Box
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT About Box", 'ananke'),
"base" => "aboutbox",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Icon Box",
"param_name" => "icon",
"value" => "",
"description" => __("Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title", 'ananke'),
"param_name" => "title",
"value" => "",
"description" => __("Title Box.", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Content", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("Content Box", 'ananke')
),
)
));
}
//About Video Section
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT About Video or Image", 'ananke'),
"base" => "aboutvideo",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Image Left", 'ananke'),
"param_name" => "poster",
"value" => "",
"description" => __("Upload image left if not use video.", 'ananke')
),
array(
'type' => 'checkbox',
'heading' => __( 'Sound Video On?', 'ananke' ),
'param_name' => 'sound_video',
'description' => __( 'If checked heading will be set to sound video is on.', 'ananke' ),
'value' => array( __( 'Yes', 'ananke' ) => 'yes' ),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Volume",
"param_name" => "volume",
"value" => "",
"description" => __("Add video volume number, eg: 0.5", 'ananke'),
'dependency' => array(
'element' => 'sound_video',
'not_empty' => true,
),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link video mp4",
"param_name" => "mp4",
"value" => "",
"description" => __("Add link video .mp4", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link video webm",
"param_name" => "webm",
"value" => "",
"description" => __("Add link video .webm", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link video ogg",
"param_name" => "ogg",
"value" => "",
"description" => __("Add link video .ogg", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Text Over Video", 'ananke'),
"param_name" => "textover",
"value" => "",
"description" => __("", 'ananke')
),
array(
"type" => "textarea",
"holder" => "div",
"class" => "",
"heading" => __("Content 1", 'ananke'),
"param_name" => "content1",
"value" => "",
"description" => __("Content About", 'ananke')
),
array(
"type" => "textarea",
"holder" => "div",
"class" => "",
"heading" => __("Content 2", 'ananke'),
"param_name" => "content2",
"value" => "",
"description" => __("Content About", 'ananke')
),
array(
"type" => "textarea",
"holder" => "div",
"class" => "",
"heading" => __("Content 3", 'ananke'),
"param_name" => "content3",
"value" => "",
"description" => __("Content About", 'ananke')
),
array(
'type' => 'checkbox',
'heading' => __( 'Overlay Pattern Off?', 'ananke' ),
'param_name' => 'overlay_pattern',
'description' => __( 'If checked heading will be set to overlay pattern is off.', 'ananke' ),
'value' => array( __( 'Yes', 'ananke' ) => 'yes' ),
),
)
));
}
//Our Team
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Our Team", 'ananke'),
"base" => "memberItem",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => "Avarta",
"param_name" => "src",
"value" => "",
"description" => __("Avarta of member, Recomended Size: 280 x 280", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Name", 'ananke'),
"param_name" => "name",
"value" => "",
"description" => __("Member's Name", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Job", 'ananke'),
"param_name" => "job",
"value" => "",
"description" => __("Member's job.", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Description", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("Member's Description.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 1", 'ananke'),
"param_name"=> "icon1",
"value" => "",
"description" => __("Example: twitter, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Url 1",
"param_name"=> "url1",
"value" => "",
"description" => __("Url.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 2", 'ananke'),
"param_name"=> "icon2",
"value" => "",
"description" => __("Example: facebook, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Url 2",
"param_name"=> "url2",
"value" => "",
"description" => __("Url.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 3", 'ananke'),
"param_name"=> "icon3",
"value" => "",
"description" => __("Example: github, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Url 3",
"param_name"=> "url3",
"value" => "",
"description" => __("Url.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon 4", 'ananke'),
"param_name"=> "icon4",
"value" => "",
"description" => __("Example: google-plus, Find here: <a target='_blank' href='http://fontawesome.io/icons/'>http://fontawesome.io/icons/</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Url 4",
"param_name"=> "url4",
"value" => "",
"description" => __("Url.", 'ananke')
),
)));
}
//Call To Action
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Call To Action", 'ananke'),
"base" => "callto",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Label Button",
"param_name" => "btntext",
"value" => "",
"description" => __("", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Label Button Hover", 'ananke'),
"param_name" => "btnhover",
"value" => "",
"description" => __("", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link Button", 'ananke'),
"param_name" => "link",
"value" => "",
"description" => __("", 'ananke')
),
array(
"type" => "textarea",
"holder" => "div",
"class" => "",
"heading" => __("Content", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("Content Box", 'ananke')
),
)
));
}
// Our Facts
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Our Facts", 'ananke'),
"base" => "ourfacts",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title Fact", 'ananke'),
"param_name" => "title",
"value" => "",
"description" => __("Title display in Our Facts box.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Number Fact", 'ananke'),
"param_name" => "number",
"value" => "",
"description" => __("Number display in Our Facts box.", 'ananke')
),
)));
}
// Slide Show
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Slide Show", 'ananke'),
"base" => "slideshow",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title", 'ananke'),
"param_name" => "title",
"value" => "",
"description" => __("Title.", 'ananke')
),
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"heading" => __("Slider Autoplay?", 'ananke'),
"param_name" => "autoplay",
"value" => array(
__('No', 'ananke') => 'no',
__('Yes', 'ananke') => 'yes',
),
"description" => __("Selected yes or no?", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Slider Time", 'ananke'),
"param_name" => "slider_time",
"value" => "",
"description" => __("Time between each slide: 10000 (i.e) the next slider will called after 10 seconds", 'ananke'),
"dependency" => array( 'element' => 'autoplay', 'value' => 'yes' ),
),
)));
}
// Services Box
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Services Box", 'ananke'),
"base" => "servicebox",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"heading" => __("Choose library icons", 'ananke'),
"param_name" => "icontype",
"value" => array(
__('SVG icons', 'ananke') => 'svgicons',
__('Font Awesome icons', 'ananke') => 'fontawesome',
__('Image icons', 'ananke') => 'iconimg',
),
"description" => __("Select SVG icons or Font-Awesome icons, Image icons.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Icon Service",
"param_name" => "icon",
"value" => "",
"description" => __("Add new icon by manually, Find here: <a target='_blank' href='http://html.vegatheme.com/svg-icons/'>http://html.vegatheme.com/svg-icons/</a>", 'ananke'),
"dependency" => array( 'element' => 'icontype', 'value' => 'svgicons' ),
),
array(
'type' => 'iconpicker',
"heading" => __("Add icon", 'ananke'),
"param_name" => "iconawesome",
'value' => 'fa fa-info-circle',
'settings' => array(
'emptyIcon' => false, // default true, display an "EMPTY" icon?
'iconsPerPage' => 100, // default 100, how many icons per/page to display
),
'description' => __( 'Select icon from library.', 'ananke' ),
"dependency" => array( 'element' => 'icontype', 'value' => 'fontawesome' ),
),
array(
"type" => "colorpicker",
"holder" => "div",
"class" => "",
"heading" => __("Icon color", 'ananke'),
"param_name"=> "icon_color",
"value" => "",
"description" => __("Choose your icon color.", 'ananke'),
"dependency" => array( 'element' => 'icontype', 'value' => 'fontawesome' ),
),
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Icon Image", 'ananke'),
"param_name" => "iconimage",
"value" => "",
"description" => __("Upload your icon image width format: .png, .jpg, .svg, etc..., Recomended image size: 64x64.", 'ananke'),
"dependency" => array( 'element' => 'icontype', 'value' => 'iconimg' ),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title Service", 'ananke'),
"param_name" => "title",
"value" => "",
"description" => __("Title display in Services box.", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Content Service", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("About your Services.", 'ananke')
),
array(
'type' => 'vc_link',
"heading" => __("Link Services Box", 'ananke'),
"param_name" => "linkbox",
"description" => __("Add link to Services.", 'ananke')
),
array(
'type' => 'css_editor',
'heading' => __( 'CSS box', 'ananke' ),
'param_name' => 'css',
// 'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'ananke' ),
'group' => __( 'Design Options', 'ananke' )
),
)
));
}
// Pricing Table
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Pricing Table", 'ananke'),
"base" => "pricingtable",
"class" => "",
"category" => 'Ananke Elements',
"icon" => "icon-st",
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title Pricing", 'ananke'),
"param_name" => "title",
"value" => "",
"description" => __("Title display in Pricing Table.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Price Pricing", 'ananke'),
"param_name" => "price",
"value" => "",
"description" => __("Price display in Pricing Table.", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Detail Pricing", 'ananke'),
"param_name" => "content",
"value" => "",
"description" => __("Content Pricing Table.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Label Button", 'ananke'),
"param_name" => "buttontext",
"value" => "",
"description" => __("Text display in button.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link Button", 'ananke'),
"param_name" => "link",
"value" => "",
"description" => __("Link in button.", 'ananke')
),
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"heading" => __("Featured Pricing?", 'ananke'),
"param_name" => "featured",
"value" => array(
__('No', 'ananke') => 'no',
__('Yes', 'ananke') => 'yes',
),
"description" => __("Selected yes for highlight pricing table.", 'ananke')
),
)));
}
// Latest Blog
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Blog Post", 'ananke'),
"base" => "blog",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Label button", 'ananke'),
"param_name" => "btntext",
"value" => "",
"description" => __("Text display in button.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("link button", 'ananke'),
"param_name" => "link",
"value" => "",
"description" => __("Link button.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Number excerpt lenght", 'ananke'),
"param_name" => "lenght",
"value" => "",
"description" => __("Number excerpt lenght.", 'ananke')
),
)));
}
// OT Portfolio
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Portfolio", 'ananke'),
"base" => "portfolio",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => __("Text Show All Portfolio", 'ananke'),
"param_name"=> "all",
"value" => "",
"description" => __("Example: Show All, Text Filter Show All Portfolio.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => __("Number Show Portfolio", 'ananke'),
"param_name"=> "show",
"value" => "",
"description" => __("Number Show Portfolio, Default: 8.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => "Order by :",
"param_name" => "orderby",
"value" => "",
"description" => __("Enter Order by. Example: title, date, rand ", 'ananke' )
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => "Order : ",
"param_name" => "order",
"value" => "",
"description" => __("Enter Order. Example: DESC, ASC ", 'ananke' )
),
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"heading" => __("Select Columns.", 'ananke'),
"param_name" => "columns",
"value" => array(
__('Columns 4', 'ananke') => 4,
__('Columns 3', 'ananke') => 3,
__('Columns 2', 'ananke') => 2,
__('Columns 5', 'ananke') => 5,
__('Columns 6', 'ananke') => 6,
),
"description" => __("Select number columns per row.", 'ananke')
),
)));
}
// OT Portfolio Category
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Portfolio Category", 'ananke'),
"base" => "cate_portfolio",
'admin_enqueue_js' => get_template_directory_uri() . '/framework/admin/js/select2.min.js',
'admin_enqueue_css' => get_template_directory_uri() . '/framework/admin/css/select2.css',
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "select_categories",
"holder" => "div",
"class" => "",
"heading" => __("Select Categories", 'ananke'),
"param_name"=> "idcate",
"value" => "",
"description" => __("Enter your category, It's help show portfolio by category.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => __("Number Show Portfolio", 'ananke'),
"param_name"=> "show",
"value" => "",
"description" => __("Number Show Portfolio, Default: 8.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => __("Category Active", 'ananke'),
"param_name"=> "cate_active",
"value" => '',
"description" => __("Add your portfolio category slug, you want to active the first on front page, only one category slug.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => __("Text Show All Portfolio", 'ananke'),
"param_name"=> "all",
"value" => "",
"description" => __("Example: Show All, Text Filter Show All Portfolio.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => "Order by :",
"param_name" => "orderby",
"value" => "",
"description" => __("Enter Order by. Example: title, date, rand ", 'ananke' )
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => "Order : ",
"param_name" => "order",
"value" => "",
"description" => __("Enter Order. Example: DESC, ASC ", 'ananke' )
),
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"edit_field_class" => "vc_col-sm-6",
"heading" => __("Select Columns.", 'ananke'),
"param_name" => "columns",
"value" => array(
__('Columns 4', 'ananke') => 4,
__('Columns 3', 'ananke') => 3,
__('Columns 2', 'ananke') => 2,
__('Columns 5', 'ananke') => 5,
__('Columns 6', 'ananke') => 6,
),
"description" => __("Select number columns for show.", 'ananke')
),
)));
}
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}
if ( is_plugin_active( 'js_composer/js_composer.php' ) ) {
if ( function_exists( 'vc_add_shortcode_param' ) ) {
vc_add_shortcode_param( 'select_categories', 'select_param', get_template_directory_uri() . '/framework/admin/js/select-field.js' );
} elseif ( function_exists( 'add_shortcode_param' ) ) {
add_shortcode_param( 'select_categories', 'select_param', get_template_directory_uri() . '/framework/admin/js/select-field.js' );
}
}
function select_param( $settings, $value ) {
$categories = get_terms( 'categories' );
$cat = array();
foreach( $categories as $category ) {
if( $category ) {
$cat[] = sprintf('<option value="%s">%s</option>',
esc_attr( $category->slug ),
$category->name
);
}
}
return sprintf(
'<input type="hidden" name="%s" value="%s" class="wpb-input-categories wpb_vc_param_value wpb-textinput %s %s_field">
<select class="select-categories-post">
%s
</select>',
esc_attr( $settings['param_name'] ),
esc_attr( $value ),
esc_attr( $settings['param_name'] ),
esc_attr( $settings['type'] ),
implode( '', $cat )
);
}
//Slider Project
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Slider Project", 'ananke'),
"base" => "folioslider",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "attach_images",
"holder" => "div",
"class" => "",
"heading" => "Images Slider",
"param_name" => "gallery",
"value" => "",
"description" => __("", 'ananke')
),
)));
}
//Video Player
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Video Project", 'ananke'),
"base" => "videoplayer",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link Video",
"param_name" => "video",
"value" => "",
"description" => __("Ex: http://player.vimeo.com/video/88883554 or http://www.youtube.com/embed/eP2VWNtU5rw", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Set with video", 'ananke' ),
"param_name" => "withvideo",
"value" => "",
"description" => __("Example with number : 940 ", 'ananke' )
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Set height video", 'ananke' ),
"param_name" => "heightvideo",
"value" => "",
"description" => __("Example height number : 450 ", 'ananke' )
),
)));
}
//Audio Player (use)
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Audio Project", 'ananke'),
"base" => "audiopost",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link Mp3",
"param_name" => "linkmp3",
"value" => "",
"description" => __("", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => "Link Ogg",
"param_name" => "linkoog",
"value" => "",
"description" => __("", 'ananke')
),
)));
}
//Clients Logo
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Clients Logo", 'ananke'),
"base" => "clients",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => "Logo Client",
"param_name" => "src",
"value" => "",
"description" => __("Logo Client, Recomended Size: 156 x 113", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Link Out Client", 'ananke'),
"param_name" => "link",
"value" => "",
"description" => __("Link Out Client.", 'ananke')
),
)));
}
//Contact Info
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Contact Info", 'ananke'),
"base" => "cinfo",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Icon", 'ananke'),
"param_name"=> "icon",
"value" => "",
"description" => __("Icon before title info", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title", 'ananke'),
"param_name"=> "title",
"value" => "",
"description" => __("Title info", 'ananke')
),
array(
"type" => "textarea",
"holder" => "div",
"class" => "",
"heading" => __("Description", 'ananke'),
"param_name"=> "desc",
"value" => "",
"description" => __("Description info", 'ananke')
),
)));
}
//Contact Info 2
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Contact Info 2", 'ananke'),
"base" => "cinfo2",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
'type' => 'iconpicker',
'heading' => __( 'Icon', 'ananke' ),
'param_name' => 'icon_fontawesome',
'value' => '',
'settings' => array(
'emptyIcon' => false, // default true, display an "EMPTY" icon?
'iconsPerPage' => 4000, // default 100, how many icons per/page to display
),
'description' => __( 'Select icon from library.', 'ananke' ),
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Title", 'ananke'),
"param_name"=> "title",
"value" => "",
"description" => __("Title info", 'ananke')
),
array(
"type" => "textarea_html",
"holder" => "div",
"class" => "",
"heading" => __("Description", 'ananke'),
"param_name"=> "content",
"value" => "",
"description" => __("Description info", 'ananke')
),
)));
}
//Google Map
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT Maps", 'ananke'),
"base" => "maps",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Text Button Toggle Map", 'ananke'),
"param_name"=> "btntext",
"value" => '',
"description" => __("Example: Locate Us on Map", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Latitude", 'ananke'),
"param_name"=> "latitude",
"value" => "",
"description" => __("Example: 44.789511", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Longitude", 'ananke'),
"param_name"=> "longitude",
"value" => "",
"description" => __("Example: 20.43633", 'ananke')
),
array(
"type" => "attach_images",
"holder" => "div",
"class" => "",
"heading" => __("Location Image", 'ananke'),
"param_name"=> "imgmap",
"value" => "",
"description" => __("Upload Location Image.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Tootip Location Click", 'ananke'),
"param_name"=> "tooltip",
"value" => '',
"description" => __("Example: Ananke", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Zoom map number", 'ananke'),
"param_name"=> "zoommap",
"value" => '',
"description" => __("Example: 14", 'ananke')
),
array(
"type" => "dropdown",
"heading" => __('Options Show Gmap', 'ananke'),
"param_name" => "showgmap",
"value" => array(
__('Option 1: Click button for show Gmap', 'ananke') => 'optionmap1',
__('Option 2: Always show Gmap', 'ananke') => 'optionmap2',
),
"description" => __("Options Show Gmap, Default: Click button for show Gmap", 'ananke'),
),
)));
}
//Google Map 2 (use)
if(function_exists('vc_map')){
vc_map( array(
"name" => __("OT GMaps Style 2", 'ananke'),
"base" => "maps2",
"class" => "",
"icon" => "icon-st",
"category" => 'Ananke Elements',
"params" => array(
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Enter your address", 'ananke'),
"param_name"=> "address",
"value" => '',
"description" => __("", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Latitude", 'ananke'),
"param_name"=> "latitude",
"value" => 44.8013716,
"description" => __("Find Latitude code: <a href='http://www.latlong.net/' target='_blank'>view more</a>", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Longitude", 'ananke'),
"param_name"=> "longitude",
"value" => 20.4631372,
"description" => __("Find Longitude code: <a href='http://www.latlong.net/' target='_blank'>view more</a>", 'ananke')
),
array(
"type" => "attach_image",
"holder" => "div",
"class" => "",
"heading" => __("Location Image", 'ananke'),
"param_name"=> "iconmap",
"value" => "",
"description" => __("Upload Location Image.", 'ananke')
),
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __("Enter number for Zoom Map", 'ananke'),
"param_name"=> "zoommap",
"value" => 15,
"description" => __("Add number zoom map 10 -> 20", 'ananke')
),
array(
"type" => "dropdown",
"holder" => "div",
"class" => "",
"heading" => __("Select gmap style", 'ananke'),
"param_name" => "style",
"value" => array(
__('Style Default', 'ananke') => 'default',
__('Customize Gmap Style', 'ananke') => 'customize_gmap',
),
"description" => __("Select your style for gmap.", 'ananke')
),
array(
"type" => "textarea_raw_html",
"holder" => "div",
"class" => "",
"heading" => esc_html__('JavaScript Code', 'ananke'),
"param_name" => "gmap_custom_style",
"value" => "",
"description" => __('Enter your JavaScript code, find your custom style gmap here:<a href="https://snazzymaps.com/explore" target="_blank">view more</a>', 'ananke'),
"dependency" => array( 'element' => 'style', 'value' => 'customize_gmap' ),
)
)));
}
?>