/
entry.php
71 lines (61 loc) · 2.28 KB
/
entry.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* CLAROLINE Applet
*
* @author Quentin Devos <q.devos@student.uclouvain.be>
*
* @package MOBILE
*
*/
$tlabelReq = 'MOBILE';
if ( count( get_included_files() ) == 1 ) die( '---' );
if ( get_conf('activeWebService',true) )
{
$iOSimg = 'alt="Claroline Mobile on Apple iOS App Store" '
. 'id="ios_bagde" width="150" height="50" />';
$Andimg = 'alt="Claroline Mobile on Android Google Play Store" '
. 'id="and_bagde" width="150" height="52" />';
$WPimg = 'alt="Claroline Mobile on Microsoft WindowsPhone MarketPlace" '
. 'id="wp_bagde" width="150" height="49" />';
if ( get_conf('iOSAppReady', true) )
{
$iOSlink = '<a href="' . get_conf('iOSAppLink','') . '" alt="Claroline Mobile on Apple iOS App Store" target="_blank">'
. '<img src="'.get_module_url('MOBILE').'/img/ios_badge.png" ' . $iOSimg . '</a>';
}
else
{
$iOSlink = '<img src="'.get_module_url('MOBILE').'/img/ios_badge_soon.png" ' . $iOSimg;
}
if ( get_conf('AndAppReady', true) )
{
$Andlink = '<a href="' . get_conf('AndAppLink','') . '" alt="Claroline Mobile on Android Google Play Store" target="_blank">'
. '<img src="'.get_module_url('MOBILE').'/img/and_badge.png" ' . $Andimg . '</a>';
}
else
{
$Andlink = '<img src="'.get_module_url('MOBILE').'/img/and_badge_soon.png" ' . $Andimg;
}
if ( get_conf('WPAppReady', true) )
{
$WPlink = '<a href="' . get_conf('WPAppLink','') . '" alt="Claroline Mobile on Microsoft WindowsPhone MarketPlace" target="_blank">'
. '<img src="'.get_module_url('MOBILE').'/img/wp_badge.png" ' . $WPimg . '</a>';
}
else
{
$WPlink = '<img src="'.get_module_url('MOBILE').'/img/wp_badge_soon.png" ' . $WPimg;
}
$html = "\n\n"
. '<div class="header">'
. 'Claroline Mobile'
. '</div>'
. "\n</br>" . get_lang('Get the Claroline application for your smartphone !') . "\n"
. '<div style="text-align:center"></br>'
. $iOSlink . "\n"
. $Andlink . "\n"
. $WPlink . "\n"
. "</div>\n"
. '<button onclick="javascript:window.open(\'' . get_module_url('MOBILE') . '/popup.php\', \'' . addslashes(get_lang('Need help for the configuration ?'))
. '\',\'scrollbars=no,toolbar=no,menubar=no,status=no,width=800,height=530\');" >' . get_lang('Need help for the configuration ?') . '</button>'
. "\n\n";
$claro_buffer->append($html);
}