| 1 |
<?php |
| 2 |
|
| 3 |
use AgeGate\Presentation\Template; |
| 4 |
|
| 5 |
if (!function_exists('age_gate_template_logo')) { |
| 6 |
function age_gate_template_logo() |
| 7 |
{ |
| 8 |
Template::logo(); |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
if (!function_exists('age_gate_template_headline')) { |
| 13 |
function age_gate_template_headline() |
| 14 |
{ |
| 15 |
Template::headline(); |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
if (!function_exists('age_gate_template_subheadline')) { |
| 20 |
function age_gate_template_subheadline() |
| 21 |
{ |
| 22 |
Template::subheadline(); |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
if (!function_exists('age_gate_template_fields')) { |
| 27 |
function age_gate_template_fields($fields) |
| 28 |
{ |
| 29 |
Template::fields($fields); |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
if (!function_exists('age_gate_template_submit')) { |
| 34 |
function age_gate_template_submit() |
| 35 |
{ |
| 36 |
Template::submit(); |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
if (!function_exists('age_gate_template_additional')) { |
| 41 |
function age_gate_template_additional() |
| 42 |
{ |
| 43 |
Template::additional(); |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
if (!function_exists('age_gate_template_remember')) { |
| 48 |
function age_gate_template_remember() |
| 49 |
{ |
| 50 |
Template::remember(); |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
if (!function_exists('age_gate_template_age_field')) { |
| 55 |
function age_gate_template_age_field() |
| 56 |
{ |
| 57 |
Template::age(); |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
if (!function_exists('age_gate_template_errors')) { |
| 62 |
function age_gate_template_errors() |
| 63 |
{ |
| 64 |
Template::errors(); |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
if (!function_exists('age_gate_add_attribute')) { |
| 69 |
function age_gate_add_attribute($element, $attribute, $value) |
| 70 |
{ |
| 71 |
\AgeGate\Presentation\Attribute::addAttribute($element, $attribute, $value); |
| 72 |
} |
| 73 |
} |
| 74 |
|