2011-07-17 18:36:15 +04:00
< ? php if ( is_null ( $_ [ " kbe " ])) : ?>
2011-08-18 21:22:39 +04:00
< div class = " personalblock " >
< p >< ? php echo $l -> t ( 'Problems connecting to help database.' ); ?>
< a href = " http://apps.owncloud.com/kb " >< ? php echo $l -> t ( 'Go there manually.' ); ?> </a>
</ div >
2011-07-17 18:36:15 +04:00
< ? php else : ?>
2011-08-18 21:22:39 +04:00
< ? php foreach ( $_ [ " kbe " ] as $kb ) : ?>
< div class = " personalblock " >
< ? php if ( $kb [ " preview1 " ] <> " " ) { echo ( '<img class="preview" src="' . $kb [ " preview1 " ] . '" />' ); } ?>
< p >< strong >< ? php if ( $kb [ 'detailpage' ] <> '' ) echo ( '<p><a target="_blank" href="' . $kb [ 'detailpage' ] . '"><strong>' . $kb [ " name " ] . '</strong></a></p>' ); ?> </strong></p>
< p >< ? php echo $kb [ 'description' ]; ?> </p>
< ? php if ( $kb [ 'answer' ] <> '' ) echo ( '<p><strong>' . $l -> t ( 'Answer' ) . ':</strong><p>' . $kb [ 'answer' ] . '</p>' ); ?>
</ div >
< ? php endforeach ; ?>
< a class = " button newquestion " href = " http://apps.owncloud.com/knowledgebase/editquestion.php?action=new " target = " _blank " >< ? php echo $l -> t ( 'Ask a question' ); ?> </a>
2011-07-17 18:36:15 +04:00
< ? php
2011-08-13 06:04:48 +04:00
$url = OC_Helper :: linkTo ( " settings " , " help.php " ) . '?page=' ;
2011-07-29 23:36:03 +04:00
$pageNavi = OC_Util :: getPageNavi ( $_ [ 'pagecount' ], $_ [ 'page' ], $url );
2011-07-17 18:36:15 +04:00
$pageNavi -> printPage ();
2011-08-18 21:22:39 +04:00
endif ?>