#205 Tweaked index page layout and now show top/latest articles based on value in settings

merge-requests/2/head
Mike Koch 9 years ago
parent 57345d2f41
commit 52d80491df

@ -402,3 +402,25 @@ button.dropdown-submit {
.indent-15 {
margin-left: 15px;
}
.button-link {
color: #4a5571;
}
.button-link:hover {
text-decoration: none;
color: #000;
}
.button-link .col-xs-1 {
margin: 0 auto;
padding: 0;
}
.button-link .panel-body:hover {
background-color: #EEE;
}
.default-row-margins {
margin: 0 -15px;
}

@ -396,3 +396,25 @@ table-layout: fixed;
.indent-15 {
margin-right: 15px;
}
.button-link {
color: #4a5571;
}
.button-link:hover {
text-decoration: none;
color: #000;
}
.button-link .col-xs-1 {
margin: 0 auto;
padding: 0;
}
.button-link .panel-body:hover {
background-color: #EEE;
}
.default-row-margins {
margin: 0 -15px;
}

@ -287,10 +287,7 @@ function hesk_kbSearchLarge($admin = '')
<button class="btn btn-default" type="submit" value="<?php echo $hesklang['search']; ?>" title="<?php echo $hesklang['search']; ?>"><?php echo $hesklang['search']; ?></button>
</span>
</div>
<!--<span class="largebold"><?php echo $hesklang['ask']; ?></span>
<input type="text" name="search" class="searchfield" />
<input type="submit" value="<?php echo $hesklang['search']; ?>" title="<?php echo $hesklang['search']; ?>" class="searchbutton" /><br />
--></form>
</form>
</div>
<br />
@ -325,10 +322,14 @@ function hesk_kbSearchSmall()
<td class="text-right" valign="top" width="300">
<div style="display:inline;margin-left:auto;margin-right:auto">
<form action="knowledgebase.php" method="get" class="form-inline" style="display: inline; margin: 0;">
<input type="text" name="search" class="form-control" />
<div class="input-group" style="margin: 0 15px">
<input type="text" name="search" class="form-control">
<span class="input-group-btn">
<button class="btn btn-default" type="submit" value="<?php echo $hesklang['search_the_knowledgebase']; ?>" title="<?php echo $hesklang['search_the_knowledgebase']; ?>">
<?php echo $hesklang['search_the_knowledgebase']; ?>
</button>
</span>
</div>
</form>
<br><br>
</div>

@ -1126,47 +1126,70 @@ function print_start()
echo '&nbsp;';
}
?>
<div class="blockRow">
<a href="index.php?a=add">
<div class="block">
<div class="upper">
<img src="img/newTicket.png" alt="<?php echo $hesklang['sub_ticket']; ?>" />
<div class="row default-row-margins">
<div class="col-sm-6 col-xs-12">
<a href="index.php?a=add" class="button-link">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-xs-1">
<img src="img/newTicket.png" alt="<?php echo $hesklang['sub_support']; ?>">
</div>
<div class="col-xs-11">
<b><?php echo $hesklang['sub_support']; ?></b><br>
<?php echo $hesklang['open_ticket']; ?>
</div>
</div>
<div class="lower">
<p><?php echo $hesklang['sub_ticket']; ?></p>
</div>
</div>
</a>
<a href="ticket.php">
<div class="block">
<div class="upper">
<img src="img/viewTicket.png" alt="<?php echo $hesklang['view_existing']; ?>" />
</div>
<div class="lower">
<p><?php echo $hesklang['view_existing']; ?></p>
<div class="col-sm-6 col-xs-12">
<a href="ticket.php" class="button-link">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-xs-1">
<img src="img/viewTicket.png" alt="<?php echo $hesklang['view_existing']; ?>">
</div>
<div class="col-xs-11">
<b><?php echo $hesklang['view_existing']; ?></b><br>
<?php echo $hesklang['vet']; ?>
</div>
</div>
</div>
</div>
</a>
</div>
</div>
<?php
if ($hesk_settings['kb_enable'])
{
?>
<a href="knowledgebase.php">
<div class="block">
<div class="upper">
<img src="img/knowledgebase.png" alt="<?php echo $hesklang['kb_text']; ?>" />
<div class="row default-row-margins">
<div class="col-sm-6 col-xs-12">
<a href="knowledgebase.php" class="button-link">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-xs-1">
<img src="img/knowledgebase.png" alt="<?php echo $hesklang['kb_text']; ?>">
</div>
<div class="col-xs-11">
<b><?php echo $hesklang['kb_text']; ?></b><br>
<?php echo $hesklang['viewkb']; ?>
</div>
</div>
<div class="lower">
<p><?php echo $hesklang['kb_text']; ?></p>
</div>
</div>
</a>
<?php
}
include('custom/custom-blocks.php');
?>
</div>
</div>
<?php
hesk_kbTopArticles($hesk_settings['kb_index_popart']);
hesk_kbLatestArticles($hesk_settings['kb_index_latest']);
}?>
</div>
</div>
<div class="blankSpace"></div>
<div class="footerWithBorder"></div>

@ -40,7 +40,10 @@ $hesklang['x_merged'] = '(+%s merged)'; // %s number of tickets merged
$hesklang['merged_tickets'] = 'Merged tickets: ';
$hesklang['show_number_merged'] = 'Show number of tickets merged';
$hesklang['show_number_merged_descr'] = 'Show number of tickets merged next to Tracking ID';
$hesklang['show_number_merged_help'] = 'If enabled, the user will be able to see which tickets were merged into the other on the ticket serarch screen.';
$hesklang['show_number_merged_help'] = 'If enabled, the user will be able to see which tickets were merged into the other on the ticket search screen.';
$hesklang['latest_top_on_home'] = 'Latest/Top articles on home page';
$hesklang['latest_top_on_home_help'] = 'Select YES to display the top and latest knowledgebase articles on the home page.
Otherwise, a link to the knowledgebase will appear on the home page.';
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)

Loading…
Cancel
Save