2012-09-04 14:03:51 +04:00
< ? php
/**
2012-05-26 21:14:24 +04:00
* 2012 Frank Karlitschek frank @ owncloud . org
2011-08-23 03:40:13 +04:00
* This file is licensed under the Affero General Public License version 3 or later .
* See the COPYING - README file .
*/ ?>
2011-08-21 13:14:57 +04:00
< div id = " controls " >
2012-04-21 02:18:47 +04:00
< a class = " button newquestion " href = " http://owncloud.org/support " target = " _blank " >< ? php echo $l -> t ( 'Documentation' ); ?> </a>
2012-04-26 18:53:18 +04:00
< a class = " button newquestion " href = " http://owncloud.org/support/big-files " target = " _blank " >< ? php echo $l -> t ( 'Managing Big Files' ); ?> </a>
2011-08-21 13:14:57 +04:00
< a class = " button newquestion " href = " http://apps.owncloud.com/knowledgebase/editquestion.php?action=new " target = " _blank " >< ? php echo $l -> t ( 'Ask a question' ); ?> </a>
< ? php
$url = OC_Helper :: linkTo ( " settings " , " help.php " ) . '?page=' ;
2012-09-04 14:03:51 +04:00
$pageNavi = OC_Util :: getPageNavi ( $_ [ 'pagecount' ], $_ [ 'page' ], $url );
2012-11-04 21:36:16 +04:00
if ( $pageNavi ) {
2011-11-06 19:48:26 +04:00
$pageNavi -> printPage ();
}
2011-08-21 13:14:57 +04:00
?>
</ diV >
2011-07-17 18:36:15 +04:00
< ? php if ( is_null ( $_ [ " kbe " ])) : ?>
2011-08-21 13:14:57 +04:00
< div class = " helpblock " >
2011-08-20 07:07:58 +04:00
< p >< ? php echo $l -> t ( 'Problems connecting to help database.' ); ?> </p>
< p >< a href = " http://apps.owncloud.com/kb " >< ? php echo $l -> t ( 'Go there manually.' ); ?> </a></p>
2011-08-18 21:22:39 +04:00
</ div >
2011-07-17 18:36:15 +04:00
< ? php else : ?>
2011-08-18 21:22:39 +04:00
< ? php foreach ( $_ [ " kbe " ] as $kb ) : ?>
2011-08-21 13:14:57 +04:00
< div class = " helpblock " >
2012-09-04 14:03:51 +04:00
< ? php if ( $kb [ " preview1 " ] <> " " ) echo ( '<img class="preview" src="' . $kb [ " preview1 " ] . '" />' ); ?>
2012-06-11 21:07:51 +04:00
< ? php if ( $kb [ 'detailpage' ] <> '' ) echo ( '<p><a target="_blank" href="' . $kb [ 'detailpage' ] . '"><strong>' . $kb [ " name " ] . '</strong></a></p>' ); ?>
< p >< ? php echo $kb [ 'description' ]; ?> </p>
< ? php if ( $kb [ 'answer' ] <> '' ) echo ( '<p><strong>' . $l -> t ( 'Answer' ) . ':</strong><p>' . $kb [ 'answer' ] . '</p>' ); ?>
2011-08-18 21:22:39 +04:00
</ div >
2011-08-21 13:14:57 +04:00
< ? php endforeach ;
2011-08-18 21:22:39 +04:00
endif ?>