]> source.dussan.org Git - nextcloud-server.git/commitdiff
owncloud now with even more buzzwords. we outsourced the doccumentation and use an...
authorFrank Karlitschek <karlitschek@kde.org>
Sat, 16 Apr 2011 23:11:44 +0000 (01:11 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Sat, 16 Apr 2011 23:11:44 +0000 (01:11 +0200)
help/css/help.css [new file with mode: 0644]
help/index.php
help/templates/index.php
lib/ocsclient.php

diff --git a/help/css/help.css b/help/css/help.css
new file mode 100644 (file)
index 0000000..02bcade
--- /dev/null
@@ -0,0 +1,64 @@
+/* APPS TABLE */
+
+table td.date
+{
+    width: 5em;
+    padding: 0.5em 1em;
+    text-align: right;
+}
+
+.preview 
+{
+    padding: 3px;
+    text-align: left;
+}
+
+table td.date
+{
+    width: 11em;
+    color: #555555;
+}
+
+table td.selection, table th.selection, table td.fileaction
+{
+    width: 2em;
+    text-align: center;
+}
+
+table td.name a
+{
+    padding: 6px;
+    text-decoration: none;
+    color: #555555;
+}
+
+.type 
+{
+    padding: 6px;
+    text-decoration: none;
+    color: #888888;
+    font-size: 0.8em;
+}
+
+.description 
+{
+    padding: 6px;
+    text-decoration: none;
+    color: #666666;
+    font-size: 0.9em;
+}
+
+
+.install a { 
+    padding:0.2em 0.5em; 
+    border:1px solid #ddd; 
+    -moz-border-radius:15px; 
+    -webkit-border-radius:15px; 
+    border-radius:15px; 
+    text-decoration: none;
+    font-size:1.5em; color:#666666; 
+    background-color:#F0F0F0;
+}
+.install a:hover { 
+    background-color:#DDDDDD;
+}
index fe20c1c4ab5aa6d244f1592e5732c66a6d307cbb..bed0ac7b6bbced6126ec155326e831d7a2862857 100644 (file)
@@ -7,6 +7,9 @@ if( !OC_USER::isLoggedIn()){
     exit();
 }
 
+// Load the files we need
+OC_UTIL::addStyle( "help", "help" );
+
 OC_APP::setActiveNavigationEntry( "help" );
 
 $kbe=OC_OCSCLIENT::getKnownledgebaseEntries();
index 89674e018741f1e4b07bcb1c1ce9cd55541205a2..5ff414eb4a707c73230dab8db0bccce8aab7262f 100644 (file)
@@ -9,7 +9,7 @@
        <tbody>
                <?php foreach($_["kbe"] as $kb): ?>
                        <tr>
-                               <td width="1"><?php if($kb["preview"] <> "") { echo('<a href="'.OC_HELPER::linkTo( "help", "index.php" ).'?id='.$kb['id'].'"><img class="preview" border="0" src="'.$kb["preview"].'" /></a>'); } ?> </a></td>
+                               <td width="1"><?php if($kb["preview1"] <> "") { echo('<a href="'.OC_HELPER::linkTo( "help", "index.php" ).'?id='.$kb['id'].'"><img class="preview" border="0" src="'.$kb["preview1"].'" /></a>'); } ?> </a></td>
                                <td class="name"><a href="<?php echo(OC_HELPER::linkTo( "help", "index.php" ).'?id='.$kb['id']); ?>" title=""><?php echo $kb["name"]; ?></a><br /><?php  echo('<span class="type">'.$kb['description'].'</span>'); ?></td>
                        </tr>
                <?php endforeach; ?>
index 9f6a79e74794d570010052150d9bf7c70aa712f8..71a0b1279abea4b97321dbf4085b2adb10ee1231 100644 (file)
@@ -133,9 +133,10 @@ class OC_OCSCLIENT{
                         $kb['id']=$tmp[$i]->id;
                         $kb['name']=$tmp[$i]->name;
                         $kb['description']=$tmp[$i]->description;
+                        $kb['preview1']=$tmp[$i]->smallpreviewpic1;
                         $kbe[]=$kb;
                 }
-                return $kb;
+                return $kbe;
         }