0.7.12.5 (Icons)
This commit is contained in:
31
web/rtc.php
31
web/rtc.php
@@ -15,7 +15,7 @@ ref::config('validHtml', TRUE);
|
||||
$db_dir = "data/skim";
|
||||
$icon_size = 96;
|
||||
$pad = 40;
|
||||
$overlay_exts = array("txt","php","inc","sh","md","json","cmd");
|
||||
$border_tools = array("sips","sox","ffmpeg","ql-thumbnail");
|
||||
|
||||
?>
|
||||
|
||||
@@ -91,14 +91,18 @@ img.tiny { vertical-align: middle; width: 18px; height: 18px; margin: 0px 4px 0p
|
||||
|
||||
div.size { color: grey; margin-top: 3px; }
|
||||
|
||||
img#thumb { padding: 6px; border: 1px solid gainsboro; }
|
||||
img#thumb { padding: 6px;
|
||||
outline: 1px solid gainsboro;
|
||||
outline-offset: -7px;
|
||||
border: 1px solid gainsboro;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
img#item { float: left; margin-right: 10px; width: 32px; height: 32px; }
|
||||
img { margin-bottom: 8px; }
|
||||
img#thumb.overlay { border: 0px !important;
|
||||
padding: 6px !important;
|
||||
-webkit-mask-image: url('/icons/mask.png');
|
||||
-webkit-mask-size: 100%;
|
||||
outline: 1px solid black; }
|
||||
|
||||
div.title { padding: 0px 10px 0px 10px; }
|
||||
|
||||
div.fileinfo { font-size: 12px; }
|
||||
div.fileinfo span.title { display: table-cell; font-weight: bold; width: 200px; }
|
||||
div.fileinfo span.value { display: table-cell; }
|
||||
@@ -503,7 +507,7 @@ if ($db_file) {
|
||||
$height = $row_a['thumb_height'];
|
||||
$realfile = dirname($db_file).$row_a['thumb_filename'];
|
||||
if (array_key_exists("thumb_tool",$row_a)) {
|
||||
if ($row_a['thumb_tool'] != "qltool" && $row_a['thumb_tool'] != "qlmanage") {
|
||||
if (in_array($row_a['thumb_tool'], $border_tools)) {
|
||||
// put a border around images that are not icons
|
||||
$border = "id='thumb'";
|
||||
} else {
|
||||
@@ -659,14 +663,7 @@ if ($db_file) {
|
||||
} else {
|
||||
$visibility = "unhidden";
|
||||
}
|
||||
|
||||
//if (in_array($item['Extension'],$overlay_exts) && $item['thumb_filename']) {
|
||||
//
|
||||
//$realfile = dirname($db_file).$item['thumb_filename'];
|
||||
//$icon = "<img id='thumb' class='overlay' src='".$realfile."' width='".($icon_size*.8)."' height='".$icon_size."' data-width='".($icon_size*.8)."' data-height='".$icon_size."'>";
|
||||
|
||||
//} elseif ($item['thumb_filename']) {
|
||||
|
||||
|
||||
if ($item['thumb_filename']) {
|
||||
$aspect = $item['thumb_width']/$item['thumb_height'];
|
||||
if ($aspect > 1) {
|
||||
@@ -682,7 +679,7 @@ if ($db_file) {
|
||||
}
|
||||
$realfile = dirname($db_file).$item['thumb_filename'];
|
||||
if (array_key_exists("thumb_tool",$item)) {
|
||||
if ($row_a['thumb_tool'] != "qltool" && $row_a['thumb_tool'] != "qlmanage" && $item['Type'] != "dir") {
|
||||
if (in_array($item['thumb_tool'], $border_tools) && $item['Type'] != "dir") {
|
||||
// put a border around images that are not icons
|
||||
$border = "id='thumb'";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user