]> git.mxchange.org Git - friendica.git/blobdiff - default.php
little js change for network colorbox images
[friendica.git] / default.php
index 0362be916cddf9fd973e918e265de5875c25af6f..0faa7d97bb6e7867ec673195a62af807c612ee7a 100644 (file)
@@ -14,13 +14,16 @@ require_once('view/theme/frio/php/frio_boot.php');
 // This is a workaround, where we can't change the page the
 // page mode in the template with javascript
 $page_type = get_page_type($a->argv[0]);
-if($page_type === "modal") {
-       $_GET["mode"] = "modal";
-}
 
-if((isset($_GET["mode"]) AND ($_GET["mode"] == "modal"))) {
+// This is uncommented because we don't need it anymore.
+// 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"] == "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 {