Skip to content

Commit

Permalink
Merge pull request #1 from vboctor/modern_site
Browse files Browse the repository at this point in the history
Modern site for mantisbt.org
  • Loading branch information
vboctor committed Feb 8, 2014
2 parents 6d71698 + 98cbbf5 commit 0a6e6a8
Show file tree
Hide file tree
Showing 112 changed files with 10,564 additions and 972 deletions.
84 changes: 72 additions & 12 deletions addons.php
@@ -1,14 +1,74 @@
<?php include( "top.php" ); ?>

<h3>MantisTouch</h3>
<p><a href="http://www.mantistouch.org">MantisTouch</a> MantisTouch was developed by Victor Boctor to provide mobility to MantisBT. As a web app, MantisTouch provides a mobile optimized user interface for iPhone, Android, and Windows Phone. MantisTouch uses web services to access the bugtracking data allowing it to be installed on the same or a different server than MantisBT.</p>
<table border="0" width="100%">
<tr>
<td align="center" valign="top" style="text-align:center;"><a href="http://www.mantistouch.org"><img alt="Login Page" src="images/mt_login_page.png" height="300" width="200" border="1" /></a></td>
<td align="center" valign="top"><a href="http://www.mantistouch.org"><img alt="Dashboard Page" src="images/mt_dashboard_page.png" height="300" width="200" border="1" /></a></td>
<td align="center" valign="top"><a href="http://www.mantistouch.org"><img alt="Issues Page" src="images/mt_issues_page.png" height="300" width="200" border="1" /></a></td>
</tr>
</table>
<?php
$t_sub_title = "MantisBT Add-ons";
include( "top.php" );
?>

<div class="row show-grid clear-both">
<div class="col-sm-12 col-md-12">
<h1>Add Ons</h1>
</div>
</div>
<br>

<div class="row show-grid clear-both">
<div class="col-sm-7 col-md-8">
<h2><b>MantisTouch</b><small>| MantisBT Gone Mobile!</small></h2>
<p>
<span class="lead">
MantisTouch provides a mobile optimized user
interface for iPhone, Android, and Windows Phone.
</span>
</p>
<p>
MantisTouch is developed and maintained by Victor Boctor.
Victor is a member of MantisBT core team since 2000.
As a web app, MantisTouch provides a mobile optimized experience for all users of your MantisBT instance.
</p>
</div>
<div class="col-md-1"></div>
<div class="col-sm-5 col-md-3">
<a class="btn btn-warning" href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'Learn more about MantisTouch');">Learn more about MantisTouch</a>
</div>
</div>

<br>

<div class="row show-grid clear-both">
<div class="col-sm-7 col-md-8">
<a href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'MantisTouch Image1');">
<img class="img-rounded" title="Login Page on Smart Phone" alt="Login Page" src="images/mt_login_page.png" height="300" width="200" border="1" />
</a>
<a href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'MantisTouch Image2');">
<img class="img-rounded" title="Dashboard Page on Smart Phone" alt="Dashboard Page" src="images/mt_dashboard_page.png" height="300" width="200" border="1" />
</a>
<a href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'MantisTouch Image3');">
<img class="img-rounded" title="Issues Page on Smart Phone" alt="Issues Page" src="images/mt_issues_page.png" height="300" width="200" border="1" />
</a>
</div>
</div>

<br>
<hr>

<div class="row show-grid clear-both">
<div class="col-sm-7 col-md-8">
<h2><b>Plugins</b></h2>
<p>
MantisBT plugin system allows extension of MantisBT through both officially maintained and third party plug-ins.
Browse the plugin directory to learn more about each plugin.
</p>
</div>
<div class="col-md-1"></div>
<div class="col-sm-5 col-md-3">
<br>
<a class="btn btn-warning" href="http://www.mantisbt.org/wiki/doku.php/mantisbt:mantis_plugins" onclick="ga('send', 'event', 'Addons', 'Browse Plugins Directory');">
Browse Plugins Directory</a>
<div class="clear-both"></div>
<br>
<a class="btn btn-warning" href="https://github.com/mantisbt-plugins" onclick="ga('send', 'event', 'Addons', 'Browse Plugins on GitHub');">
Browse Plugins on GitHub</a>
</div>
</div>

<?php
include_once('bot.php');
include_once('bot.php');
96 changes: 86 additions & 10 deletions bot.php
@@ -1,18 +1,94 @@
<br />
</div>

<br><br>

<div class="recent-tweets">
<div class="container">
<div class="row show-grid">
<div class="col-md-12 col-sm-12 twitter-wrapper">
<div id="nav_t"></div>
<div class="tweets-slide"><ul class="slides"></ul></div>
<a href="https://twitter.com/mantisbt" onclick="ga('send', 'event', 'Footer', 'Logo');" class="follow_img"><img src="img/follow.png" alt=""></a>
</div>
</div>
</div>
</div>

<footer id="footer">
<div class="footer-top"></div>
<div class="footer-wrapper">
<div class="container">
<div class="row show-grid">
<div class="col-sm-3 col-md-3 footer-center">
<img alt="Mantis Bug Tracker Logo" class="footer-logo img-responsive" src="images/mantis_footer_logo.png"/>
<div class="addthis_toolbox addthis_default_style addthis_16x16_style" addthis:url="http://mantisbt.org/" addthis:title="MantisBT is a free popular web-based bug & issue tracking system">
<a class="addthis_button_facebook" fb:like:layout="button_count" addthis:url="http://mantisbt.org/"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_linkedin"></a>
<a class="addthis_button_google_plusone_share"></a>
<a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a>
</div>
<br>
</div>
<div class="col-sm-4 col-md-4 footer-center">
<h4 class="center-title">Resources</h4>
<ul class="footer-navigate">
<li> <a href="documentation.php" onclick="ga('send', 'event', 'Footer', 'Documentation');">Documentation</a></li>
<li> <a href="development.php" onclick="ga('send', 'event', 'Footer', 'Development');">Development</a></li>
<li> <a href="<?php echo $g_bugs_url ;?>" onclick="ga('send', 'event', 'Footer', 'BugTracker');">BugTracker</a></li>
<li> <a href="<?php echo $g_forums_url ;?>" onclick="ga('send', 'event', 'Footer', 'Forums');">Forums</a></li>
<li> <a href="<?php echo $g_blog_url ;?>" onclick="ga('send', 'event', 'Footer', 'Blog');">Blog</a></li>
</ul>
</div>
<div class="col-md-1"></div>
<div class="col-sm-4 col-md-4 footer-center">
<h4 class="center-title">About MantisBT</h4>
<p>
MantisBT is a popular open source web-based bug tracking system.
Built on PHP and supports Linux, Windows and Mac OS X on the server side.
Compatible with Chrome, Firefox, Safari, Opera and IE 7+.
Released under the terms of the GNU General Public License (GPL).
</p>
</div>
</div>
</div>
</div>

<div class="footer-bottom">
<div class="container">
<div class="row show-grid">
<div class="col-sm-12 col-md-12">
<p>Copyright © 2000 - 2014 MantisBT Team</p>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- END FOOTER -->


<!-- Placed at the end of the document so the pages load faster -->

<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="js/jquery.flexslider-min.js"></script>

<script type="text/javascript">
var addthis_config = {"data_track_addressbar":true};
addthis_config.data_track_addressbar = false;
</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52c507063b3a2bbd"></script>

<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-330112-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-330112-2', 'mantisbt.org');
ga('send', 'pageview');
</script>
<!-- End of Google Analytics -->

Expand Down
99 changes: 99 additions & 0 deletions browser_check.php
@@ -0,0 +1,99 @@
<?php

function getBrowser()
{
$u_agent = $_SERVER['HTTP_USER_AGENT'];
$bname = 'Unknown';
$platform = 'Unknown';
$version= "";

//First get the platform?
if (preg_match('/linux/i', $u_agent)) {
$platform = 'linux';
}
elseif (preg_match('/macintosh|mac os x/i', $u_agent)) {
$platform = 'mac';
}
elseif (preg_match('/windows|win32/i', $u_agent)) {
$platform = 'windows';
}

// Next get the name of the useragent yes seperately and for good reason
if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent))
{
$bname = 'Internet Explorer';
$ub = "MSIE";
}
elseif(preg_match('/Firefox/i',$u_agent))
{
$bname = 'Mozilla Firefox';
$ub = "Firefox";
}
elseif(preg_match('/Chrome/i',$u_agent))
{
$bname = 'Google Chrome';
$ub = "Chrome";
}
elseif(preg_match('/Safari/i',$u_agent))
{
$bname = 'Apple Safari';
$ub = "Safari";
}
elseif(preg_match('/Opera/i',$u_agent))
{
$bname = 'Opera';
$ub = "Opera";
}
elseif(preg_match('/Netscape/i',$u_agent))
{
$bname = 'Netscape';
$ub = "Netscape";
}

// finally get the correct version number
$known = array('Version', $ub, 'other');
$pattern = '#(?<browser>' . join('|', $known) .
')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';
if (!preg_match_all($pattern, $u_agent, $matches)) {
// we have no matching number just continue
}

// see how many we have
$i = count($matches['browser']);
if ($i != 1) {
//we will have two since we are not using 'other' argument yet
//see if version is before or after the name
if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
$version= $matches['version'][0];
}
else {
$version= $matches['version'][1];
}
}
else {
$version= $matches['version'][0];
}

// check if we have a number
if ($version==null || $version=="") {$version="?";}

return array(
'userAgent' => $u_agent,
'name' => $bname,
'version' => $version,
'platform' => $platform,
'pattern' => $pattern
);
}

function is_unsupported_browser()
{
$ua = getBrowser();
if ( 'Internet Explorer' == $ua['name'] &&
( '8.0' == $ua['version'] || '7.0' == $ua['version'] || '6.0' == $ua['version'] ) ) {

return true;
}

return false;
}
10 changes: 8 additions & 2 deletions builds.php
Expand Up @@ -135,7 +135,7 @@ function print_travis_status( $p_branch ) {
function print_builds_list( $p_builds ) {
# printf formats
$t_fmt_sha_link = '
<a href="http://www.mantisbt.org/bugs/plugin.php?page=Source%%2Fsearch&revision=%1$s">%1$s</a>';
<a href="<?php echo $g_bugs_url; ?>plugin.php?page=Source%%2Fsearch&revision=%1$s">%1$s</a>';
$t_fmt_branch = '
<td rowspan="%d" class="table-cell">
%s
Expand Down Expand Up @@ -230,7 +230,13 @@ function print_builds_list( $p_builds ) {
if( get_builds_list( $t_path, $t_builds, $t_logfile ) ) {
?>

<h4>Nightly Builds Downloads</h4>
<div class="row show-grid clear-both">
<div class="col-sm-7 col-md-8">
<h1>Nightly Builds Downloads</h1>
</div>
</div>

<br>

<?php
print_builds_list( $t_builds );
Expand Down
24 changes: 20 additions & 4 deletions config_defaults_inc.php
Expand Up @@ -4,11 +4,27 @@
$g_db_password = '';
$g_database_name = 'mantisbt';

# The latest version from the stable branch.
$g_latest_version_stable = '1.2.15';
# Website URLs
$g_wiki_url = 'http://www.mantisbt.org/wiki/';
$g_docs_url = 'http://www.mantisbt.org/docs/';
$g_bugs_url = 'http://www.mantisbt.org/bugs/';
$g_blog_url = 'http://www.mantisbt.org/blog/';
$g_forums_url = 'http://www.mantisbt.org/forums/';

# The latest version from the development branch.
$g_latest_version_dev = '';
# Information about latest stable release.
$g_latest_version_stable = '1.2.16';

# Information about latest development release.
$g_latest_version_dev = '1.3.0b1';
$g_latest_version_dev_roadmap = '1.3.x';

# Twitter Information
$g_twitter_username = 'mantisbt';
$g_twitter_consumer_key = '';
$g_twitter_consumer_secret = '';
$g_twitter_access_token = '';
$g_twitter_access_token_secret = '';
$g_twitter_tweets_count = 5;

########################################
# Include user's config, if available
Expand Down

0 comments on commit 0a6e6a8

Please sign in to comment.