#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

@ -401,4 +401,26 @@ button.dropdown-submit {
.indent-15 { .indent-15 {
margin-left: 15px; 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;
} }

@ -371,28 +371,50 @@ button.dropdown-submit {
} }
.attachment-table > tbody > tr > td > i { .attachment-table > tbody > tr > td > i {
color: #ddd; color: #ddd;
text-shadow: 2px 2px #ccc; text-shadow: 2px 2px #ccc;
} }
.attachment-table > tbody > tr > td { .attachment-table > tbody > tr > td {
vertical-align: middle; vertical-align: middle;
} }
.attachment-table > tbody > tr > td > span > img { .attachment-table > tbody > tr > td > span > img {
max-height: 80px; max-height: 80px;
max-width: 80px; max-width: 80px;
cursor: pointer; cursor: pointer;
} }
.plaintext-editor { .plaintext-editor {
font-family: monospace; font-family: monospace;
} }
.table-fixed { .table-fixed {
table-layout: fixed; table-layout: fixed;
} }
.indent-15 { .indent-15 {
margin-right: 15px; 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> <button class="btn btn-default" type="submit" value="<?php echo $hesklang['search']; ?>" title="<?php echo $hesklang['search']; ?>"><?php echo $hesklang['search']; ?></button>
</span> </span>
</div> </div>
<!--<span class="largebold"><?php echo $hesklang['ask']; ?></span> </form>
<input type="text" name="search" class="searchfield" />
<input type="submit" value="<?php echo $hesklang['search']; ?>" title="<?php echo $hesklang['search']; ?>" class="searchbutton" /><br />
--></form>
</div> </div>
<br /> <br />
@ -325,10 +322,14 @@ function hesk_kbSearchSmall()
<td class="text-right" valign="top" width="300"> <td class="text-right" valign="top" width="300">
<div style="display:inline;margin-left:auto;margin-right:auto"> <div style="display:inline;margin-left:auto;margin-right:auto">
<form action="knowledgebase.php" method="get" class="form-inline" style="display: inline; margin: 0;"> <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">
<button class="btn btn-default" type="submit" value="<?php echo $hesklang['search_the_knowledgebase']; ?>" title="<?php echo $hesklang['search_the_knowledgebase']; ?>"> <input type="text" name="search" class="form-control">
<?php echo $hesklang['search_the_knowledgebase']; ?> <span class="input-group-btn">
</button> <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> </form>
<br><br> <br><br>
</div> </div>

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

@ -40,7 +40,10 @@ $hesklang['x_merged'] = '(+%s merged)'; // %s number of tickets merged
$hesklang['merged_tickets'] = 'Merged tickets: '; $hesklang['merged_tickets'] = 'Merged tickets: ';
$hesklang['show_number_merged'] = 'Show number of tickets merged'; $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_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 // 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 (:) $hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)

Loading…
Cancel
Save