diff --git a/e107_core/shortcodes/batch/contact_shortcodes.php b/e107_core/shortcodes/batch/contact_shortcodes.php index a027fd912..2be64fbbb 100644 --- a/e107_core/shortcodes/batch/contact_shortcodes.php +++ b/e107_core/shortcodes/batch/contact_shortcodes.php @@ -168,6 +168,27 @@ class contact_shortcodes extends e_shortcode return ""; } + function sc_contact_gdpr_check($parm='') + { + $parm['class'] = (!empty($parm['class'])) ? $parm['class'] : ''; + $parm = array_merge(array('required'=>1), $parm); + return e107::getForm()->checkbox('gdpr', 1,false, $parm); + } + + function sc_contact_gdpr_link($parm='') + { + $pp = e107::getPref('contact_privacypolicy', ''); + if (!$pp) + { + return ''; + } + $class = (!empty($parm['class'])) ? $parm['class'] : ''; + $link = e107::getParser()->lanVars('[z]', array($class, $pp, LANCONTACT_22)); + $text = e107::getParser()->lanVars(LANCONTACT_23, $link); + return $text; + } + + } ?> diff --git a/e107_core/templates/contact_template.php b/e107_core/templates/contact_template.php index 2c115e93a..5f983aeea 100644 --- a/e107_core/templates/contact_template.php +++ b/e107_core/templates/contact_template.php @@ -51,6 +51,12 @@ $CONTACT_TEMPLATE['menu'] = ' {CONTACT_BODY=rows=5&cols=30} +