aboutsummaryrefslogtreecommitdiffstats
path: root/en/calendar/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'en/calendar/index.php')
-rw-r--r--en/calendar/index.php103
1 files changed, 103 insertions, 0 deletions
diff --git a/en/calendar/index.php b/en/calendar/index.php
new file mode 100644
index 000000000..397823fa8
--- /dev/null
+++ b/en/calendar/index.php
@@ -0,0 +1,103 @@
+<?php
+define('HLANG', true);
+require '../../langs.php';
+
+$dictionary = read_translation_file($locale, "calendar");
+
+/**
+ *
+*/
+$calendars = array(
+ array(
+ 'id' => 'ojiv9mbtj8nt248dcjsfn6n664@group.calendar.google.com',
+ 'title' => _r('events'),
+ 'color' => '#125A12'
+ ),
+ array(
+ 'id' => 'gpm9kdohufidedmlpnuuq4pvmo@group.calendar.google.com',
+ 'title' => _r('meetings &amp; organization'),
+ 'color' => '#8C500B'
+ ),
+ array(
+ 'id' => 'hm0j50l2vmv0dlstaigbm7nt30@group.calendar.google.com',
+ 'title' => _r('development &amp; release plan'),
+ 'color' => '#691426'
+ ),
+ array(
+ 'id' => 'uo3onvtl8q6qk5m3emq83rekag@group.calendar.google.com',
+ 'title' => _r('mentoring'),
+ 'color' => '#42104A'
+ )
+);
+
+$params = array(
+ 'height' => 600,
+ 'wkst' => 2,
+ 'hl' => 'en_GB',
+ 'bgcolor' => '#FFFFFF',
+ 'ctz' => 'UTC'
+);
+$params = http_build_query($params, '', '&amp;');
+foreach ($calendars as $c) {
+ $params .= sprintf('&amp;src=%s&amp;color=%s',
+ urlencode($c['id']), urlencode($c['color']));
+}
+$url = 'https://www.google.com/calendar/b/0/embed?' . $params;
+
+$ical_tmpl = '//www.google.com/calendar/ical/%s/public/basic.ics';
+$html_calendars = '';
+foreach ($calendars as $c) {
+ $html_calendars .= sprintf('<li><a href="%s">%s</a></li>',
+ sprintf($ical_tmpl, urlencode($c['id'])),
+ $c['title']);
+}
+
+
+?><!DOCTYPE html>
+<html dir="ltr" lang="<?php echo $locale; ?>">
+<head>
+ <meta charset="utf-8">
+ <title><?php _g('Mageia calendar') ?></title>
+ <meta name="description" content="<?php _g('Mageia calendar for organization, events, development schedule and more.') ?>">
+ <meta name="keywords" content="<?php _g('mageia, linux, calendar, events') ?>">
+ <meta name="author" content="Mageia">
+ <link rel="stylesheet" type="text/css" href="/g/style/all.css">
+ <?php include '../../analytics.php'; ?>
+</head>
+<body class="community">
+ <?php echo $hsnav?>
+ <div id="doc" class="yui-t7">
+ <div id="hd" role="banner"><h1><a id="logo" href="/"><span>Mageia</span></a>
+ <span class="lsep">|</span> <span class="subh"><?php _g('Calendar')?></span></h1></div>
+ <div id="bd" role="main">
+ <div class="yui-g">
+ <br />
+ <iframe src="<?php echo $url; ?>"
+ style="border-width:0"
+ width="749"
+ height="600"
+ frameborder="0"
+ scrolling="no"></iframe>
+
+ <div class="para">
+ <p><?php _g('This calendar shows all Mageia events, <a href="https://wiki.mageia.org/en/Meetings">team meetings</a>, development planning milestones and possibly more.') ?></p>
+ <p><?php _g('It is public and available to all. Only Mageia Board and Council members and team leaders have a write access to it.') ?></p>
+ <p><?php _g('For any comment, addition, change to this calendar, feel free to contact us through:') ?></p>
+ <ul>
+ <li><?php _g('your <a href="https://wiki.mageia.org/en/">team</a> leader or representative,') ?></li>
+ <li><?php _g('<a href="irc://irc.freenode.net/#mageia-dev">#mageia-dev</a> on Freenode,') ?></li>
+ <li><?php _g('<a href="mailto:mageia-contact@mageia.org">mageia-contact@mageia.org</a> in last resort.') ?></li>
+ </ul>
+ </div>
+ <div class="para">
+ <h3><?php _g('ICS files') ?></h3>
+ <p><?php _g('You may get read-only access directly to these .ics files:')?></p>
+ <ul>
+ <?php echo $html_calendars; ?>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>