From 06871edc21f72a98849e70d21fcb398a30ddc724 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 1 Mar 2017 12:48:24 +0100 Subject: [PATCH] add possibility to set class for coppa button --- e107_core/shortcodes/batch/signup_shortcodes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php index 172b2e7d2..ece3b30b2 100755 --- a/e107_core/shortcodes/batch/signup_shortcodes.php +++ b/e107_core/shortcodes/batch/signup_shortcodes.php @@ -21,7 +21,7 @@ e107::coreLan('signup'); class signup_shortcodes extends e_shortcode { - function sc_signup_coppa_form() + function sc_signup_coppa_form($parm) { if (strpos(LAN_SIGNUP_77, "stage") !== FALSE) { @@ -29,6 +29,7 @@ class signup_shortcodes extends e_shortcode } else { + $class = (!empty($parm['class'])) ? $parm['class'] : 'btn btn-primary button'; return "
\n

@@ -36,7 +37,7 @@ class signup_shortcodes extends e_shortcode

- +
"; } @@ -590,4 +591,4 @@ class signup_shortcodes extends e_shortcode } -?> \ No newline at end of file +?>