Deutschland United States United Kingdom
ContentLion - Open Source CMS

Compare Revisions

Ignore whitespace Rev 2 → Rev 3

/trunk/js/navi.js
1,3 → 1,9
$("#navi_button").click( function (e) {
$("#navi_hidden").toggle();
if ($("#navi_hidden").is(":hidden")) {
$("#navi_button").html(lang_navi_open);
} else {
$("#navi_button").html(lang_navi_close);
}
});
/trunk/index.php
4,10 → 4,20
<style type="text/css" media="screen">
@import "<?php echo Settings::getInstance()->get("host"); ?>system/skins/mymobile/js/jqtouch/themes/css/jqtouch.css";
</style>
<!-- https://github.com/senchalabs/jQTouch/wiki/Getting-Started -->
<!-- <script src="<?php echo Settings::getInstance()->get("host"); ?>system/skins/mymobile/js/jqtouch/src/lib/zepto.min.js" type="text/javascript" charset="utf-8"></script> -->
<!-- <script src="<?php echo Settings::getInstance()->get("host"); ?>system/skins/mymobile/js/jqtouch/src/jqtouch.min.js" type="text/javascript" charset="utf-8"></script> -->
<script type="text/javascript">
/*Language-Variablen für externe Javascript-Scripte*/
var lang_navi_open = "<?PHP if(strtolower(Settings::getValue("language")) == "de") {
echo "Navigation ausklappen";
} else {
echo "Open Navigation";
} ?>";
var lang_navi_close = "<?PHP if(strtolower(Settings::getValue("language")) == "de") {
echo "Navigation einklappen";
} else {
echo "Close Navigation";
} ?>";
</script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" />
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.js"></script>
23,9 → 33,9
<div data-role="page">
<div data-role="header" data-position="fixed">
<a href="<?php echo Settings::getInstance()->get("host"); ?>index.php" data-icon="arrow-l">Home</a>
<a href="<?php echo Settings::getInstance()->get("host"); ?>" data-icon="arrow-l">Home</a>
<h1><?PHP echo sys::getTitle(); ?></h1>
<a href="index.php?include=login" data-icon="arrow-r">Login</a>
<a href="<?php echo UrlRewriting::GetUrlByAlias("login"); ?>" data-icon="arrow-r">Login</a>
</div>
<div id="navi">
<div id="navi_hidden">
34,23 → 44,14
"globalmenu");
?>
</div>
<center><br /><a href="#" id="navi_button" style="display:none; ">Navigation ausklappen</a></center><br /><br />
<p align="center"><br /><a href="#" id="navi_button" style="display:none; "><?PHP if(strtolower(Settings::getValue("language")) == "de") {
echo "Navigation ausklappen";
} else {
echo "Open Navigation";
} ?></a></p><br /><br />
<!-- Nur, wenn Javascript unterstützt wird, wird der Button angezeigt. -->
<hr /><br />
</div>
<?PHP
/*if(!$_GET['include']){
sys::displayGlobalMenu("<ol>","</ol>","<li>"," </li>",
"globalmenu");
}
else{
echo "<ol><li><a href=\"/\">Startseite</a></li>";
}*/
?>
<?PHP
/*sys::displayLocalMenu("","</ol>","<li>","</li>",
"localmenu");*/
?>
<div class="content" id="content">
<div id="text">
<?PHP
60,7 → 61,7
</div>
<div data-role="footer">
<center>Created with <a href="http://contentlion.de">ContentLion</a></center>
<p align="center">Created with <a href="http://contentlion.de">ContentLion</a></p>
</div>
</div>
<script type="text/javascript" src="<?php echo Settings::getInstance()->get("host") ?>system/skins/mymobile/js/navi.js"></script>