Skip to content

Instantly share code, notes, and snippets.

@neroze
Created February 18, 2017 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neroze/22c71ff63efa7e7bf0348de1c1fc4dfa to your computer and use it in GitHub Desktop.
Save neroze/22c71ff63efa7e7bf0348de1c1fc4dfa to your computer and use it in GitHub Desktop.
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