$page_type = get_page_type($a->argv[0]);
// This is uncommented because we don't need it anymore.
-// We try to to use links which resulting in $_GET["mode"] = "modal"
-//if($page_type === "modal") {
-// $_GET["mode"] = "modal";
+// We try to to use links which resulting in $_GET["mode"] = "none"
+//if($page_type === "none") {
+// $_GET["mode"] = "none";
//}
-if((isset($_GET["mode"]) AND ($_GET["mode"] == "modal"))) {
+if((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
- require "view/theme/frio/php/modes/modal.php";
+ require "view/theme/frio/php/modes/none.php";
} elseif($page_type === "standard_page") {
require "view/theme/frio/php/modes/standard.php";
} else {
\r
$(".folders a, .path a").on("click", function(e){\r
e.preventDefault();\r
- var url = baseurl + "/fbrowser/" + FileBrowser.type + "/" + this.dataset.folder + "?mode=modal";\r
+ var url = baseurl + "/fbrowser/" + FileBrowser.type + "/" + this.dataset.folder + "?mode=none";\r
\r
// load new content to fbrowser window\r
$(".fbrowser").load(url,function(){\r
$('#profile-rotator').hide();\r
return;\r
}\r
-// location = baseurl + "/fbrowser/image/?mode=modal"+location['hash'];\r
+// location = baseurl + "/fbrowser/image/?mode=none"+location['hash'];\r
// location.reload(true);\r
\r
- var url = baseurl + "/fbrowser/" + FileBrowser.type + "?mode=modal"\r
+ var url = baseurl + "/fbrowser/" + FileBrowser.type + "?mode=none"\r
// load new content to fbrowser window\r
$(".fbrowser").load(url,function(){\r
$(function() {FileBrowser.init(nickname, type, hash);});\r
$('#profile-rotator').hide();\r
return;\r
}\r
-// location = baseurl + "/fbrowser/file/?mode=modal"+location['hash'];\r
+// location = baseurl + "/fbrowser/file/?mode=none"+location['hash'];\r
// location.reload(true);\r
\r
- var url = baseurl + "/fbrowser/" + FileBrowser.type + "?mode=modal"\r
+ var url = baseurl + "/fbrowser/" + FileBrowser.type + "?mode=none"\r
// load new content to fbrowser window\r
$(".fbrowser").load(url,function(){\r
$(function() {FileBrowser.init(nickname, type, hash);});\r
// Ajax request to get json contact data
function getContactData(purl, url, actionOnSuccess) {
var postdata = {
- mode : 'modal',
+ mode : 'none',
profileurl : purl,
datatype : 'json',
};
// Ajax request to get the raw template content
function getHoverCardTemplate (url, callback) {
var postdata = {
- mode: 'modal',
+ mode: 'none',
datatype: 'tpl'
};
Dialog._get_url = function(type, name, id) {
var hash = name;
if (id !== undefined) hash = hash + "-" + id;
- return "fbrowser/"+type+"/?mode=modal#"+hash;
+ return "fbrowser/"+type+"/?mode=none#"+hash;
};
// does load the filebrowser into the jot modal
var type = $("#fb-type").attr("value");
// try to fetch the hash form the url
- var match = url.match(/fbrowser\/[a-z]+\/\?mode=modal(.*)/);
+ var match = url.match(/fbrowser\/[a-z]+\/\?mode=none(.*)/);
var hash = match[1];
// initialize the filebrowser
function addToModal(url) {
var char = qOrAmp(url);
- var url = url + char + 'mode=modal';
+ var url = url + char + 'mode=none';
var modal = $('#modal').modal();
modal
function load_page(&$a) {
if(isset($_GET["mode"]) AND ($_GET["mode"] == "minimal")) {
require "view/theme/frio/minimal.php";
- } elseif((isset($_GET["mode"]) AND ($_GET["mode"] == "modal"))) {
- require "view/theme/frio/modal.php";
+ } elseif((isset($_GET["mode"]) AND ($_GET["mode"] == "none"))) {
+ require "view/theme/frio/none.php";
} else {
$template = 'view/theme/' . current_theme() . '/'
. ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.php';
+++ /dev/null
-<?php\r
-/**\r
- * @file view/theme/frio/php/modes/modal.php\r
- * @brief The site template for Modals\r
- * \r
- * This themplate is used for bs modals. So outputs\r
- * only the pure content\r
- */\r
-\r
-if(x($page,'content')) echo $page['content'];\r
-\r
--- /dev/null
+<?php\r
+/**\r
+ * @file view/theme/frio/php/modes/none.php\r
+ * @brief The site template for pure content (e.g. (modals)\r
+ * \r
+ * This themplate is used e.g for bs modals. So outputs\r
+ * only the pure content\r
+ */\r
+\r
+if(x($page,'content')) echo $page['content'];\r
+\r
<div class="hidden-sm hidden-xs">
<ul class="nav navbar-nav navbar-right">
<li><a href="register" data-toggle="tooltip" title="{{$register.title}}"><i class="fa fa-street-view fa-fw"></i> {{$register.desc}}</a></li>
- <li><a href="login?mode=modal" data-toggle="tooltip" title="{{$login}}"><i class="fa fa-sign-in fa-fw"></i> {{$login}}</a></li>
+ <li><a href="login?mode=none" data-toggle="tooltip" title="{{$login}}"><i class="fa fa-sign-in fa-fw"></i> {{$login}}</a></li>
</ul>
</div>
</div>
{{if $item.edpost}} {{* edit the posting *}}
<li role="menuitem">
- <a href="#" onclick="editpost('{{$item.edpost.0}}?mode=modal'); return false;" title="{{$item.edpost.1}}" class="navicon pencil"><i class="fa fa-pencil"></i> {{$item.edpost.1}}</a>
+ <a href="#" onclick="editpost('{{$item.edpost.0}}?mode=none'); return false;" title="{{$item.edpost.1}}" class="navicon pencil"><i class="fa fa-pencil"></i> {{$item.edpost.1}}</a>
</li>
{{/if}}