-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclass.signuppage.php
executable file
·51 lines (46 loc) · 1.81 KB
/
class.signuppage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/* Base class for all pages in signup */
class SignupPage
{
public function getSlug(){return null;}
public function init(){}
public function canShow(){return false;}
public function render(){}
public function render_with_fusion_row(){
echo '<div class="fusion-builder-row fusion-row ">';
$this->render();
echo '</div>';
}
public function renderHeader()
{
?>
<script>
jQuery(document).ready(function()
{
<?php
if (get_language()=="en")
{
$en_url = $_SERVER["REQUEST_URI"];
$da_url = str_replace("?lang=en","",$en_url);
?>
jQuery('#lang_sel_footer a:not(.lang_sel_sel)').attr('href','<?php echo $da_url;?>');
jQuery('#lang_sel_footer a.lang_sel_sel').attr('href','<?php echo $en_url;?>');
<?php
}
else
{
$da_url = $_SERVER["REQUEST_URI"];
$en_url = $da_url."?lang=en";
?>
jQuery('#lang_sel_footer a:not(.lang_sel_sel)').attr('href','<?php echo $en_url;?>');
jQuery('#lang_sel_footer a.lang_sel_sel').attr('href','<?php echo $da_url;?>');
<?php
}
?>
})
</script>
<?php
}
public function renderFooter(){}
public function validate(){return true;}
}