Skip to content

Commit

Permalink
V4.37.6
Browse files Browse the repository at this point in the history
* Improved handling of manuals in tasks
* How do I template search button fix
* Style update for profile mini org-chart
  • Loading branch information
lukeoatham committed Nov 15, 2017
1 parent f3f1ce3 commit cc5a491
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ Refer to [Setup instructions](https://help.govintra.net/) for help and installat

## Changelog ##

### 4.37.6 - 12 Nov 2017 ###
* Improved handling of manuals in tasks
* How do I template search button fix
* Style update for profile mini org-chart

### 4.37.5.1 - 7 Nov 2017 ###
* User profile page title fix

### 4.37.5 - 4 Nov 2017 ###
* PHP warning fixes
* Fix for newsboard blog tab featured image
Expand Down
20 changes: 20 additions & 0 deletions govintranet/js/ht-scripts-manuals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
jQuery(document).ready(function () {
if(location.hash != null && location.hash != ""){
jQuery('.collapse').removeClass('in');
jQuery(location.hash + '.collapse').collapse('show');
var target = location.hash;
var $target = jQuery(target);
jQuery('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 900, 'swing', function () {
window.location.hash = target;
});
}
jQuery('#manualaccordion .panel h4 a').click(function (e) {
var scrollmem = jQuery(e).scrollTop();
window.location.hash = this.hash;
jQuery('html,body').scrollTop(scrollmem);
});
});


7 changes: 4 additions & 3 deletions govintranet/part-task.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
/* Used in single-task.php template and page with full-width template */

wp_register_script( 'ht-manual', get_template_directory_uri() . '/js/ht-scripts-manuals.js', array('jquery'), '', true );
global $post;
if ( get_post_meta($post->ID, 'treat_as_a_manual', true) ) wp_enqueue_script( 'ht-manual' );
$taskicon = get_option("options_module_tasks_icon_tasks", "glyphicon glyphicon-file");
$guideicon = get_option("options_module_tasks_icon_guides", "glyphicon glyphicon-duplicate");
$alreadydone = array();
Expand Down Expand Up @@ -51,7 +52,7 @@
}

if ($pagetypeorig=="guide"): ?>
<div>
<div class='clearfix'>
<h1><?php echo $guidetitle; ?> <small class="task-context"><span class="<?php echo $icon; ?>"></span> <?php echo ucwords($pagetype); ?></small></h1>
<?php
$podchap = get_post($parent_guide_id);
Expand Down Expand Up @@ -128,7 +129,7 @@
endif;

if ($pagetypeorig=="guide"){
echo "<div>";
echo "<div class='clearfix'>";

echo "<div class='content-wrapper-notop'>";
if ($current_chapter>1){
Expand Down
6 changes: 2 additions & 4 deletions govintranet/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name: GovIntranet
Theme URI: https://help.govintra.net
Description: Intranet theme inspired by GOV.UK. Custom post types: news, updates, blog, events, tasks & guides, projects, vacancies, A to Z, jargon-buster, staff directory, teams. Theme widgets: About this page, A to Z, Events listing, Feature blogposts, Feature news, Feedback, How do I?, Most active, Hot topics, Most recent, Search autocomplete, Vacancy listing, Tube status, Profile nudge, Intraverts. Requires Advanced Custom Fields Pro (Premium plugin).
Version: 4.37.5.1
Version: 4.37.6
Author: Luke Oatham
Author URI: http://intranetdiary.co.uk
Tags: bootstrap, intranet, gov.uk, responsive
Expand Down Expand Up @@ -188,9 +188,6 @@ input:disabled {
form#searchform button.btn {
padding: 5px 12px 6px 12px;
}
form#task-search button.btn {
padding: none;
}
form#task-alt-search button.btn {
padding: 5px 12px 6px 12px;
border-radius: 0 3px 3px 0;
Expand Down Expand Up @@ -768,6 +765,7 @@ p.tagcloud {
#directreports a {
padding-right: 1% !important;
padding-bottom: 1% !important;
display: inline-table;
}
#bbpress-forums ul li{
list-style: none !important;
Expand Down

0 comments on commit cc5a491

Please sign in to comment.