/** * VC Convert a value to camel case. * * @since 4.3 * * @param string $value * * @return string */ function vc_camel_case($value) { return lcfirst(vc_studly($value)); }
public function getTemplateVariable($string) { if (isset($this->template_vars[$string])) { return $this->template_vars[$string]; } elseif (method_exists($this, 'getParam' . vc_studly($string))) { $this->template_vars[$string] = $this->{'getParam' . vc_studly($string)}($this->atts, $this->content); return $this->template_vars[$string]; } return ""; }