Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
vc_map( array(
"name" => __("Team Mate", "rhthm"),
"base" => "team_mate",
'category' =>__('Team', 'rhthm'),
"content_element" => true,
"as_child" => array('only' => 'team_wrapper'), // Use only|except attributes to limit parent (separate multiple values with comma)
"params" => array(
// add params same as with any other content element
array(
"type" => "textfield",
"heading" => __("Name", "rhthm"),
"param_name" => "name",
"description" => __("Name", "rhthm"),
'holder' => 'div',
'class' => 'text-class',
),
array(
"type" => "textfield",
"heading" => __("Status", "rhthm"),
"param_name" => "status",
"description" => __("Status", "rhthm"),
'holder' => 'div',
'class' => 'text-class',
)
,array(
"type" => "attach_image",
"heading" => __("Profile Image", "rhthm"),
"param_name" => "profile_image",
"description" => __("Profile Image", "rhthm")
)
,array(
"type" => "textarea",
"heading" => __("Description", "rhthm"),
"param_name" => "description",
"description" => __("Description", "rhthm")
)
)
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment