From c40e0da8cab31eea12c3d087d6907c3ed8bef9ec Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 6 Sep 2016 11:39:01 -0400 Subject: [PATCH] Update 9/6/16 - Full width metaslider - Additional row on home page - Sidebar on single posts page - Styling changes --- functions.php | 31 +- header.php | 266 +++++------ js/custom-slider.js | 5 + js/custom.js | 1117 ++++++++++++++++++++++--------------------- page-home.php | 196 ++++---- single.php | 175 ++++--- style.css | 523 ++++++++++++++++++-- 7 files changed, 1398 insertions(+), 915 deletions(-) create mode 100644 js/custom-slider.js diff --git a/functions.php b/functions.php index 84bed8c..487023a 100644 --- a/functions.php +++ b/functions.php @@ -247,46 +247,39 @@ if ( function_exists('register_sidebar') ) { 'after_title' => '', )); register_sidebar(array( - 'name' => 'Home3', - 'id' => 'home3', + 'name' => 'Home - 3rd Row - Left', + 'id' => 'home3-ll', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( - 'name' => 'Home4', - 'id' => 'home4', + 'name' => 'Home - 3rd Row - Center', + 'id' => 'home3-lc', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( - 'name' => 'Home5', - 'id' => 'home5', + 'name' => 'Home - 3rd Row - Right', + 'id' => 'home3-lr', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( - 'name' => 'Home6', - 'id' => 'home6', - 'before_widget' => '
', - 'after_widget' => '
', - 'before_title' => '

', - 'after_title' => '

', - )); - register_sidebar(array( - 'name' => 'Home7', - 'id' => 'home7', + 'name' => 'Single Story Sidebar', + 'id' => 'single-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); + } // If no Menu is created, displays a home link, and starts listing pages across the top. @@ -311,6 +304,12 @@ function hale_enqueue_scripts() { } add_action('wp_enqueue_scripts', 'hale_enqueue_scripts'); +function clas_slider_enqueue_scripts() { + wp_enqueue_script('uc-hale-custom-slider', get_bloginfo('template_url').'/js/custom-slider.js', array('jquery'), false, true); + +} +add_action('wp_enqueue_scripts', 'clas_slider_enqueue_scripts'); + add_action( 'wp_ajax_clas_post_content', 'ajax_clas_post_content' ); add_action('wp_ajax_nopriv_clas_post_content', 'ajax_clas_post_content'); function ajax_clas_post_content() { //Retrieves post info and content for ajax on News-Archive diff --git a/header.php b/header.php index 2bc957a..1191c9e 100644 --- a/header.php +++ b/header.php @@ -1,133 +1,133 @@ - - - - - - - - - - - - - - - - - -<?php the_title(); ?> -› -<?php bloginfo('name'); ?> -› UCONN - - - - - - - - - - - - - -
-
-
- 0 && strlen($secondarylink) > 0){ - if(substr($secondarylink,0,4) != 'http'){ - $secondarylink = 'http://'.$secondarylink; - } - echo '

'.$secondary.'

'; - } - ?> - - -
- - MENU - - -
- - - */?> - -
-
-
-
+ + + + + + + + + + + + + + + + + +<?php the_title(); ?> +› +<?php bloginfo('name'); ?> +› UCONN + + + + + + + + + + + + + +
+
+
+ 0 && strlen($secondarylink) > 0){ + if(substr($secondarylink,0,4) != 'http'){ + $secondarylink = 'http://'.$secondarylink; + } + echo '

'.$secondary.'

'; + } + ?> + + +
+ + MENU + + +
+ + + */?> + +
+
+
+
diff --git a/js/custom-slider.js b/js/custom-slider.js new file mode 100644 index 0000000..52b975e --- /dev/null +++ b/js/custom-slider.js @@ -0,0 +1,5 @@ +jQuery(document).ready(function($){ + + $( ".nivo-caption" ).wrap( $('
') ); + +}); \ No newline at end of file diff --git a/js/custom.js b/js/custom.js index 4291138..7e3f083 100644 --- a/js/custom.js +++ b/js/custom.js @@ -1,559 +1,560 @@ -jQuery(document).ready(function($) { - - // News Stories Pagination - function paginateNews(){ - $('#news-stories').css('visibility', 'hidden') - // change the perPage variable to the number of items you want per page. - var perPage = 10 - var stories = $('.news-archive-list li') - var numStories = stories.length - //console.log('numStories'+numStories) - var totalPages = Math.ceil(numStories/perPage) - - - // only run this function if we need to. - if (totalPages > 1) { - $('#news-pagination').show(); - var currentPage = 1 - function assignPageNums(){ - var pageCount = 1 - var storyCount = 1 - stories.each(function() { - $(this).addClass('page'+pageCount) - var x = storyCount / perPage - if(Math.floor(x) == x && $.isNumeric(x)) { - pageCount++ - } - storyCount++ - }) - } - function drawPage() { - // only display items from current page - stories.hide() - $('.news-archive-list li.page'+ currentPage).show() - // insert pagination numbered links - $('.page-link-item').remove() - for (i=1; i<=totalPages; i++){ - var li = $('
  • ') - li.addClass('page-link-item') - var a = $('') - a.attr('href', '#') - a.attr('page', i) - a.addClass('page-link') - a.append(i) - li.append(a) - if (i == currentPage){ - li.addClass('active') - } - $('#news-next').parent('li').before(li) - } - // disable back/next on first/last pages. - if (currentPage == 1){ - $('#news-back').parent('li').addClass('disabled') - } else if (currentPage > 1 && currentPage < totalPages) { - $('#news-next').parent('li').removeClass('disabled') - $('#news-back').parent('li').removeClass('disabled') - } else if (currentPage == totalPages){ - $('#news-next').parent('li').addClass('disabled') - } - // bind click event to new a tags. - $('.page-link').on('click', function(e){ - e.preventDefault() - var page = $(this).attr('page') - currentPage = page - drawPage() - }) - } - - assignPageNums() - drawPage() - - $('#news-next').on('click', function(e){ - e.preventDefault() - if (currentPage < totalPages){ - currentPage++ - drawPage() - } - }) - $('#news-back').on('click', function(e){ - e.preventDefault() - if (currentPage >= 2){ - currentPage-- - drawPage() - } - }) - } else { - // if we don't need pagination, hide the controls. - $('#news-pagination').hide() - } - $('#news-stories').css('visibility', 'visible') - - } - - if( $('.news-archive-list').length > 0 ){ - paginateNews(); - - var state = History.getState(); - History.options.initialTitle = 'News Archive'; - History.options.disableSuid = true; - - String.prototype.capitalize = function() { - return this.charAt(0).toUpperCase() + this.slice(1); - }; - - String.prototype.slugToClean = function(){ - var str = this.toString(); - str = str.toLowerCase().replace(/(-)/g, ' ').replace(/\b[a-z]/g, function(letter) { - return letter.toUpperCase(); - }); - return str; - }; - - String.prototype.decodeEntities = function(){ - var element = document.createElement('div'); //this prevents any overhead from creating the object each time - - var str = this.toString(); - if(str && typeof str === 'string') { - // strip script/html tags - str = str.replace(/]*>([\S\s]*?)<\/script>/gmi, ''); - str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, ''); - element.innerHTML = str; - str = element.textContent; - element.textContent = ''; - } - - return str; - }; - - function retrievePreviousIDs(startingElement){ - var postsArray = []; - var currentPost = startingElement; - postsArray.push( currentPost.data("id") ); - for( var i=0; i < 9; i++ ){ - var next = currentPost.prev(); - if( currentPost.data("id") == next.data("id") ){ - break; - } - postsArray.push( next.data("id") ); - currentPost = next; - } - return postsArray.reverse(); - } - - function retrievePostIDs(startingElement){ - var postsArray = []; - var currentPost = startingElement; - postsArray.push( currentPost.data("id") ); - for( var i=0; i < 9; i++ ){ - var next = currentPost.next(); - if( currentPost.data("id") == next.data("id") ){ - break; - } - postsArray.push( next.data("id") ); - currentPost = next; - } - return postsArray; - } - - function renderPosts(postsArray, taxonomyType, taxonomyName){ - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_posts', - postIDs: postsArray - }, - success: function(response){ - var responseLength = Object.keys(response).length - 1; - $(".span8.follow-hero").html(" "); - var firstID = response[0].id; - var lastID = response[responseLength].id; - if( taxonomyName != undefined && taxonomyType != undefined ){ - var spanTaxType = $('',{ - 'class': 'clas-taxonomy-type', - 'text': taxonomyType - }); - - var spanTaxName = $('',{ - 'class': 'clas-taxonomy-name', - 'text': taxonomyName - }); - $(".span8.follow-hero").append(spanTaxType).append(spanTaxName); - } - for(var post in response){ - var current = response[post]; - var id = current.id; - var title = (current.title).decodeEntities(); - var slug = current.slug; - var link = current.link; - var excerpt = current.excerpt; - var date = current.date; - var image = current.featuredImage; - - if( current.date != false ){ - var article = $('
    ',{ - 'data-id': id, - 'class': 'article-block clearfix' - }); - - var header = $('
    ',{ - 'class': 'entry-header' - }).appendTo(article); - - var h3 = $('

    ',{ - 'class': 'clas-entry-title' - }).appendTo(header); - - var divDate = $('
    ',{ - 'class': 'clas-post-date', - 'html': date - }).appendTo(header); - - if( image.length > 0 ) { - var divImage = $('
    ',{ - 'class': 'archive-thumbnail' - }).append(image); - header.append(divImage); - } - - var aTag = $('',{ - 'href': link, - 'text': title, - 'data-id': id - }).appendTo(h3); - - var divContent = $('
    ',{ - 'class': 'clas-entry-content' - }).appendTo(article); - - if( excerpt.length > 7 ){ // by default excerpt comes with

    , whose lenght is 7 - var readMore = '

    Read More »

    '; - excerpt += readMore; - divContent.html(excerpt); - } - - $(".span8.follow-hero").append(article); - } - } - var span = $('
    ',{ - 'class': 'story-navigation clearfix', - }).appendTo( $(".span8.follow-hero") ); - $('',{ - 'id': 'newerStories', - 'data-id': firstID, - 'text': 'Newer Stories »' - }).appendTo(span); - $('',{ - 'id': 'olderStories', - 'data-id': lastID, - 'text': '« Older Stories' - }).appendTo(span); - storyNavCheck(); - }, - dataType: "json" - }); - } - - function renderStoriesList(postObj, taxonomyType, taxonomyName){ - $(".news-archive-list").empty(); - var postIDs = []; - var i = 0; - for( var post in postObj ){ - var current = postObj[post]; - var id = current.id; - var slug = current.slug; - var link = current.link; - var title = current.title; - - if( i < 10 ){ - postIDs.push(id); - } - - var li = $('
  • ',{ - 'data-id': id, - 'data-slug': slug - }).appendTo($(".news-archive-list")); - - $('',{ - 'href': link, - 'text': title - }).appendTo(li); - i++; - } - renderPosts(postIDs, taxonomyType, taxonomyName); - paginateNews(); - - return postIDs; - } - - History.Adapter.onDomLoad(function(){ - var index; - if( (index = state.url.indexOf('?post/')) !== -1 ){ - var urlQuery = state.url.substring(index); - var postSlug = urlQuery.substring(6); // length of "?post/" is 6 - var postInList = $("ul.news-archive-list").find("[data-slug='" + postSlug + "']"); - - var postIDs = retrievePostIDs(postInList); - renderPosts(postIDs); - } else if( (index = state.url.indexOf('?division') !== -1 ) ){ - var urlQuery = state.url.substring(state.url.indexOf('?division')); - var divisionSlug = urlQuery.substring(10); //length of "?divison/" is 10 - - var divisionTitle = divisionSlug.slugToClean(); - - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_tag_posts', - tag: divisionSlug - }, - success: function(response){ - renderStoriesList(response, 'Division', divisionTitle); - }, - dataType: "json" - }); - } else if( (index = state.url.indexOf('?category/')) !== -1 || (index = state.url.indexOf('?tag/')) !== -1 ) { - var urlQuery = state.url.substring(index+1); - var taxonomyType = urlQuery.substring( 0,urlQuery.indexOf('/') ); - var taxonomyName = urlQuery.substring( urlQuery.indexOf('/')+1 ); - - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_taxid', - taxonomyType: taxonomyType, - taxonomyName: taxonomyName - }, - success: function(response){ - - var taxonomyID = response; - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_cat_posts', - taxonomy: taxonomyType, - value: taxonomyID - }, - success: function(response){ - var arr = taxonomyName.split('-'); - var taxonomyNameCapitalized = ""; - for (var i in arr){ - var current = arr[i].capitalize(); - if( !(i == 0) ){ - taxonomyNameCapitalized += " "; - } - taxonomyNameCapitalized += current; - } - renderStoriesList(response, taxonomyType.capitalize(), taxonomyNameCapitalized); - }, - dataType: "json" - }); - }, - dataType: "json" - }); - } - }); - - History.Adapter.bind(window, 'statechange', function(){ - var state = History.getState(); - if( state.url == clas_object.siteurl+'/news-archive/' ){ - window.location.href = clas_object.siteurl+'/news-archive'; - return false; - } - }); - - $(document.body).on('click', 'ul.news-archive-list li', function(event){ - event.preventDefault(); - - var postIDs = retrievePostIDs( $(this) ); - renderPosts(postIDs); - - var postSlug = $(this).data('slug'); - var postTitle = postSlug.slugToClean(); - var postLink = this.children[0].href; - History.pushState(postIDs, postTitle, "?post/"+postSlug); - }); - - $('div.news-tags a').click(function(event){ - event.preventDefault(); - if( this.className == "all-divisions" ){ - window.location.href = clas_object.siteurl+'/news-archive'; - return false; - } - var tagTitle = this.text.slugToClean(); - var tag = this.className; - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_tag_posts', - tag: tag - }, - success: function(response){ - renderStoriesList(response, 'Division', tagTitle); - }, - dataType: "json" - }); - History.pushState({}, tagTitle, '?division/'+tag); - }); - - $('select.category,select.tag').change(function(event){ - var taxonomyID = $(this).val(); - var taxonomy; - if( this.id == 'news-sort-cat' ){ - taxonomy = 'category'; - $('select.tag').find("option:eq(0)").prop("selected", true); - } else { - taxonomy = 'tag'; - $('select.category').find("option:eq(0)").prop("selected", true); - } - taxonomyName = this.options[this.selectedIndex].text; - var taxonomyTitle = taxonomyName.slugToClean(); - - var taxonomySlug = taxonomyName.toLowerCase().replace(/(\s)/g, '-'); - taxonomyCapitalized = taxonomy.capitalize(); - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_cat_posts', - taxonomy: taxonomy, - value: taxonomyID - }, - success: function(response){ - renderStoriesList(response, taxonomyCapitalized, taxonomyTitle); - }, - dataType: "json" - }); - History.pushState({}, taxonomyTitle, "?"+taxonomy+"/"+taxonomySlug); - }); - - $('div.date-sort-button a').click(function(event){ - event.preventDefault(); - var postIDs = []; - $('.news-archive-list li').each(function(index){ - var postID = $(this).data('id'); - postIDs.push(postID); - }); - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_orderby_posts', - info: {order: $(this).attr('class'), posts: postIDs} - }, - success: function(response){ - renderStoriesList(response); - }, - dataType: "json" - }); - }); - - $('#news-archive-search').keypress(function(event){ - if( this.value && event.keyCode == 13 ){ //If search field isn't empty & "Enter" was pressed, complete the search - $.ajax({ - type: "POST", - url: clas_object.ajaxurl, - data: { - action: 'clas_search_archive', - search: this.value - }, - success: function(response){ - renderStoriesList(response); - }, - dataType: "json" - }); - return false; - }//endif - }); - - function storyNavCheck(){ - var firstInList = $("ul.news-archive-list").children().first().data('id'); - var firstPost = $(".span8.follow-hero").children('article').first().data('id'); - - if( firstInList == firstPost ){ - $('a#newerStories').hide(); - } else { - $('a#newerStories').show(); - } - - var lastInList = $("ul.news-archive-list").children().last().data('id'); - var tenthPost = $(".span8.follow-hero").children('article').last().data('id'); - - if( lastInList == tenthPost ){ - $('a#olderStories').hide(); - } else { - $('a#olderStories').show(); - } - } - storyNavCheck(); - - $(document.body).on('click', 'div.story-navigation a', function(event){ - event.preventDefault(); - var element = $("ul.news-archive-list").find( "[data-id='" + $(this).data('id') + "']" ); - - var startingElement; - var postsArray; - if( this.id == 'olderStories' ){ - startingElement = element.next(); - postsArray = retrievePostIDs(startingElement); - $('#news-next').trigger('click'); - $('html, body').animate({ scrollTop: 0 }, 'fast'); - } else if( this.id == 'newerStories' ){ - startingElement = element.prev(); - postsArray = retrievePreviousIDs(startingElement); - $('#news-back').trigger('click'); - $('html, body').animate({ scrollTop: 0 }, 'fast'); - } - if( postsArray != null ){ - renderPosts( postsArray ); - } - }); - - }//end if( $('.news-archive-list').length > 0 ) - - //Fix the nav gradient rendering problem in Chrome - $('#uc-nav-mobile').click(function(){ - var className = 'uc-titlebar-gradient'; - $('#uc-titlebar').removeClass('uc-titlebar-gradient'); - var checkHeight = function(height){ - setTimeout(function(){ - var newHeight = $('.nav-collapse').css('height'); - if(newHeight == height){ - $('#uc-titlebar').addClass('uc-titlebar-gradient'); - return; - } - else{ - checkHeight(newHeight); - } - },10); - } - checkHeight(-1); - }); - - var cssua=function(i,l){var m=/\s*([\-\w ]+)[\s\/]([\d_]+\b(?:[\-\._\/]\w+)*)/,n=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,o=/rv[:](\d+(?:\.\w+)*).*?\bgecko[\/]\w+/,p=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,q=/\bsilk-accelerated=true\b/,r=/\bfluidapp\b/,s=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,t=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/, -u=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,d={parse:function(c){var a={},c=(""+c).toLowerCase();if(!c)return a;for(var b,g,e=c.split(/[()]/),f=0,d=e.length;f+a.ie?"7.0":10>+a.ie?"7.5":"8.0",delete a.windows_nt}else if(o.exec(c))a.gecko=RegExp.$1;a.version&&delete a.version;return a}, -format:function(c){var a="",b;for(b in c)if(b&&c.hasOwnProperty(b)){var g=b,e=c[b],g=g.split(".").join("-"),f=" ua-"+g;if("string"===typeof e){for(var e=e.split(" ").join("_").split(".").join("-"),d=e.indexOf("-");0 1) { + $('#news-pagination').show(); + var currentPage = 1 + function assignPageNums(){ + var pageCount = 1 + var storyCount = 1 + stories.each(function() { + $(this).addClass('page'+pageCount) + var x = storyCount / perPage + if(Math.floor(x) == x && $.isNumeric(x)) { + pageCount++ + } + storyCount++ + }) + } + function drawPage() { + // only display items from current page + stories.hide() + $('.news-archive-list li.page'+ currentPage).show() + // insert pagination numbered links + $('.page-link-item').remove() + for (i=1; i<=totalPages; i++){ + var li = $('
  • ') + li.addClass('page-link-item') + var a = $('') + a.attr('href', '#') + a.attr('page', i) + a.addClass('page-link') + a.append(i) + li.append(a) + if (i == currentPage){ + li.addClass('active') + } + $('#news-next').parent('li').before(li) + } + // disable back/next on first/last pages. + if (currentPage == 1){ + $('#news-back').parent('li').addClass('disabled') + } else if (currentPage > 1 && currentPage < totalPages) { + $('#news-next').parent('li').removeClass('disabled') + $('#news-back').parent('li').removeClass('disabled') + } else if (currentPage == totalPages){ + $('#news-next').parent('li').addClass('disabled') + } + // bind click event to new a tags. + $('.page-link').on('click', function(e){ + e.preventDefault() + var page = $(this).attr('page') + currentPage = page + drawPage() + }) + } + + assignPageNums() + drawPage() + + $('#news-next').on('click', function(e){ + e.preventDefault() + if (currentPage < totalPages){ + currentPage++ + drawPage() + } + }) + $('#news-back').on('click', function(e){ + e.preventDefault() + if (currentPage >= 2){ + currentPage-- + drawPage() + } + }) + } else { + // if we don't need pagination, hide the controls. + $('#news-pagination').hide() + } + $('#news-stories').css('visibility', 'visible') + + } + + if( $('.news-archive-list').length > 0 ){ + paginateNews(); + + var state = History.getState(); + History.options.initialTitle = 'News Archive'; + History.options.disableSuid = true; + + String.prototype.capitalize = function() { + return this.charAt(0).toUpperCase() + this.slice(1); + }; + + String.prototype.slugToClean = function(){ + var str = this.toString(); + str = str.toLowerCase().replace(/(-)/g, ' ').replace(/\b[a-z]/g, function(letter) { + return letter.toUpperCase(); + }); + return str; + }; + + String.prototype.decodeEntities = function(){ + var element = document.createElement('div'); //this prevents any overhead from creating the object each time + + var str = this.toString(); + if(str && typeof str === 'string') { + // strip script/html tags + str = str.replace(/]*>([\S\s]*?)<\/script>/gmi, ''); + str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, ''); + element.innerHTML = str; + str = element.textContent; + element.textContent = ''; + } + + return str; + }; + + function retrievePreviousIDs(startingElement){ + var postsArray = []; + var currentPost = startingElement; + postsArray.push( currentPost.data("id") ); + for( var i=0; i < 9; i++ ){ + var next = currentPost.prev(); + if( currentPost.data("id") == next.data("id") ){ + break; + } + postsArray.push( next.data("id") ); + currentPost = next; + } + return postsArray.reverse(); + } + + function retrievePostIDs(startingElement){ + var postsArray = []; + var currentPost = startingElement; + postsArray.push( currentPost.data("id") ); + for( var i=0; i < 9; i++ ){ + var next = currentPost.next(); + if( currentPost.data("id") == next.data("id") ){ + break; + } + postsArray.push( next.data("id") ); + currentPost = next; + } + return postsArray; + } + + function renderPosts(postsArray, taxonomyType, taxonomyName){ + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_posts', + postIDs: postsArray + }, + success: function(response){ + var responseLength = Object.keys(response).length - 1; + $(".span8.follow-hero").html(" "); + var firstID = response[0].id; + var lastID = response[responseLength].id; + if( taxonomyName != undefined && taxonomyType != undefined ){ + var spanTaxType = $('',{ + 'class': 'clas-taxonomy-type', + 'text': taxonomyType + }); + + var spanTaxName = $('',{ + 'class': 'clas-taxonomy-name', + 'text': taxonomyName + }); + $(".span8.follow-hero").append(spanTaxType).append(spanTaxName); + } + for(var post in response){ + var current = response[post]; + var id = current.id; + var title = (current.title).decodeEntities(); + var slug = current.slug; + var link = current.link; + var excerpt = current.excerpt; + var date = current.date; + var image = current.featuredImage; + + if( current.date != false ){ + var article = $('
    ',{ + 'data-id': id, + 'class': 'article-block clearfix' + }); + + var header = $('
    ',{ + 'class': 'entry-header' + }).appendTo(article); + + var h3 = $('

    ',{ + 'class': 'clas-entry-title' + }).appendTo(header); + + var divDate = $('
    ',{ + 'class': 'clas-post-date', + 'html': date + }).appendTo(header); + + if( image.length > 0 ) { + var divImage = $('
    ',{ + 'class': 'archive-thumbnail' + }).append(image); + header.append(divImage); + } + + var aTag = $('',{ + 'href': link, + 'text': title, + 'data-id': id + }).appendTo(h3); + + var divContent = $('
    ',{ + 'class': 'clas-entry-content' + }).appendTo(article); + + if( excerpt.length > 7 ){ // by default excerpt comes with

    , whose lenght is 7 + var readMore = '

    Read More »

    '; + excerpt += readMore; + divContent.html(excerpt); + } + + $(".span8.follow-hero").append(article); + } + } + var span = $('
    ',{ + 'class': 'story-navigation clearfix', + }).appendTo( $(".span8.follow-hero") ); + $('',{ + 'id': 'newerStories', + 'data-id': firstID, + 'text': 'Newer Stories »' + }).appendTo(span); + $('',{ + 'id': 'olderStories', + 'data-id': lastID, + 'text': '« Older Stories' + }).appendTo(span); + storyNavCheck(); + }, + dataType: "json" + }); + } + + function renderStoriesList(postObj, taxonomyType, taxonomyName){ + $(".news-archive-list").empty(); + var postIDs = []; + var i = 0; + for( var post in postObj ){ + var current = postObj[post]; + var id = current.id; + var slug = current.slug; + var link = current.link; + var title = current.title; + + if( i < 10 ){ + postIDs.push(id); + } + + var li = $('
  • ',{ + 'data-id': id, + 'data-slug': slug + }).appendTo($(".news-archive-list")); + + $('',{ + 'href': link, + 'text': title + }).appendTo(li); + i++; + } + renderPosts(postIDs, taxonomyType, taxonomyName); + paginateNews(); + + return postIDs; + } + + History.Adapter.onDomLoad(function(){ + var index; + if( (index = state.url.indexOf('?post/')) !== -1 ){ + var urlQuery = state.url.substring(index); + var postSlug = urlQuery.substring(6); // length of "?post/" is 6 + var postInList = $("ul.news-archive-list").find("[data-slug='" + postSlug + "']"); + + var postIDs = retrievePostIDs(postInList); + renderPosts(postIDs); + } else if( (index = state.url.indexOf('?division') !== -1 ) ){ + var urlQuery = state.url.substring(state.url.indexOf('?division')); + var divisionSlug = urlQuery.substring(10); //length of "?divison/" is 10 + + var divisionTitle = divisionSlug.slugToClean(); + + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_tag_posts', + tag: divisionSlug + }, + success: function(response){ + renderStoriesList(response, 'Division', divisionTitle); + }, + dataType: "json" + }); + } else if( (index = state.url.indexOf('?category/')) !== -1 || (index = state.url.indexOf('?tag/')) !== -1 ) { + var urlQuery = state.url.substring(index+1); + var taxonomyType = urlQuery.substring( 0,urlQuery.indexOf('/') ); + var taxonomyName = urlQuery.substring( urlQuery.indexOf('/')+1 ); + + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_taxid', + taxonomyType: taxonomyType, + taxonomyName: taxonomyName + }, + success: function(response){ + + var taxonomyID = response; + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_cat_posts', + taxonomy: taxonomyType, + value: taxonomyID + }, + success: function(response){ + var arr = taxonomyName.split('-'); + var taxonomyNameCapitalized = ""; + for (var i in arr){ + var current = arr[i].capitalize(); + if( !(i == 0) ){ + taxonomyNameCapitalized += " "; + } + taxonomyNameCapitalized += current; + } + renderStoriesList(response, taxonomyType.capitalize(), taxonomyNameCapitalized); + }, + dataType: "json" + }); + }, + dataType: "json" + }); + } + }); + + History.Adapter.bind(window, 'statechange', function(){ + var state = History.getState(); + if( state.url == clas_object.siteurl+'/news-archive/' ){ + window.location.href = clas_object.siteurl+'/news-archive'; + return false; + } + }); + + $(document.body).on('click', 'ul.news-archive-list li', function(event){ + event.preventDefault(); + + var postIDs = retrievePostIDs( $(this) ); + renderPosts(postIDs); + + var postSlug = $(this).data('slug'); + var postTitle = postSlug.slugToClean(); + var postLink = this.children[0].href; + History.pushState(postIDs, postTitle, "?post/"+postSlug); + }); + + $('div.news-tags a').click(function(event){ + event.preventDefault(); + if( this.className == "all-divisions" ){ + window.location.href = clas_object.siteurl+'/news-archive'; + return false; + } + var tagTitle = this.text.slugToClean(); + var tag = this.className; + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_tag_posts', + tag: tag + }, + success: function(response){ + renderStoriesList(response, 'Division', tagTitle); + }, + dataType: "json" + }); + History.pushState({}, tagTitle, '?division/'+tag); + }); + + $('select.category,select.tag').change(function(event){ + var taxonomyID = $(this).val(); + var taxonomy; + if( this.id == 'news-sort-cat' ){ + taxonomy = 'category'; + $('select.tag').find("option:eq(0)").prop("selected", true); + } else { + taxonomy = 'tag'; + $('select.category').find("option:eq(0)").prop("selected", true); + } + taxonomyName = this.options[this.selectedIndex].text; + var taxonomyTitle = taxonomyName.slugToClean(); + + var taxonomySlug = taxonomyName.toLowerCase().replace(/(\s)/g, '-'); + taxonomyCapitalized = taxonomy.capitalize(); + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_cat_posts', + taxonomy: taxonomy, + value: taxonomyID + }, + success: function(response){ + renderStoriesList(response, taxonomyCapitalized, taxonomyTitle); + }, + dataType: "json" + }); + History.pushState({}, taxonomyTitle, "?"+taxonomy+"/"+taxonomySlug); + }); + + $('div.date-sort-button a').click(function(event){ + event.preventDefault(); + var postIDs = []; + $('.news-archive-list li').each(function(index){ + var postID = $(this).data('id'); + postIDs.push(postID); + }); + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_orderby_posts', + info: {order: $(this).attr('class'), posts: postIDs} + }, + success: function(response){ + renderStoriesList(response); + }, + dataType: "json" + }); + }); + + $('#news-archive-search').keypress(function(event){ + if( this.value && event.keyCode == 13 ){ //If search field isn't empty & "Enter" was pressed, complete the search + $.ajax({ + type: "POST", + url: clas_object.ajaxurl, + data: { + action: 'clas_search_archive', + search: this.value + }, + success: function(response){ + renderStoriesList(response); + }, + dataType: "json" + }); + return false; + }//endif + }); + + function storyNavCheck(){ + var firstInList = $("ul.news-archive-list").children().first().data('id'); + var firstPost = $(".span8.follow-hero").children('article').first().data('id'); + + if( firstInList == firstPost ){ + $('a#newerStories').hide(); + } else { + $('a#newerStories').show(); + } + + var lastInList = $("ul.news-archive-list").children().last().data('id'); + var tenthPost = $(".span8.follow-hero").children('article').last().data('id'); + + if( lastInList == tenthPost ){ + $('a#olderStories').hide(); + } else { + $('a#olderStories').show(); + } + } + storyNavCheck(); + + $(document.body).on('click', 'div.story-navigation a', function(event){ + event.preventDefault(); + var element = $("ul.news-archive-list").find( "[data-id='" + $(this).data('id') + "']" ); + + var startingElement; + var postsArray; + if( this.id == 'olderStories' ){ + startingElement = element.next(); + postsArray = retrievePostIDs(startingElement); + $('#news-next').trigger('click'); + $('html, body').animate({ scrollTop: 0 }, 'fast'); + } else if( this.id == 'newerStories' ){ + startingElement = element.prev(); + postsArray = retrievePreviousIDs(startingElement); + $('#news-back').trigger('click'); + $('html, body').animate({ scrollTop: 0 }, 'fast'); + } + if( postsArray != null ){ + renderPosts( postsArray ); + } + }); + + }//end if( $('.news-archive-list').length > 0 ) + + //Fix the nav gradient rendering problem in Chrome + $('#uc-nav-mobile').click(function(){ + var className = 'uc-titlebar-gradient'; + $('#uc-titlebar').removeClass('uc-titlebar-gradient'); + var checkHeight = function(height){ + setTimeout(function(){ + var newHeight = $('.nav-collapse').css('height'); + if(newHeight == height){ + $('#uc-titlebar').addClass('uc-titlebar-gradient'); + return; + } + else{ + checkHeight(newHeight); + } + },10); + } + checkHeight(-1); + }); + + var cssua=function(i,l){var m=/\s*([\-\w ]+)[\s\/]([\d_]+\b(?:[\-\._\/]\w+)*)/,n=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,o=/rv[:](\d+(?:\.\w+)*).*?\bgecko[\/]\w+/,p=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,q=/\bsilk-accelerated=true\b/,r=/\bfluidapp\b/,s=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,t=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/, +u=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,d={parse:function(c){var a={},c=(""+c).toLowerCase();if(!c)return a;for(var b,g,e=c.split(/[()]/),f=0,d=e.length;f+a.ie?"7.0":10>+a.ie?"7.5":"8.0",delete a.windows_nt}else if(o.exec(c))a.gecko=RegExp.$1;a.version&&delete a.version;return a}, +format:function(c){var a="",b;for(b in c)if(b&&c.hasOwnProperty(b)){var g=b,e=c[b],g=g.split(".").join("-"),f=" ua-"+g;if("string"===typeof e){for(var e=e.split(" ").join("_").split(".").join("-"),d=e.indexOf("-");0
    - - -
    - -
    - - - -
    -
    - - - -
    -

    CLAS

    -
    - -
    - - + +
    + + + +
    +
    diff --git a/style.css b/style.css index cc6ad65..ed3d7c3 100644 --- a/style.css +++ b/style.css @@ -84,7 +84,7 @@ body { margin:0px; padding:0px; background-color:#e8eced; - font-size:13px; + font-size:14px; } .twelve-px { font-size:12px; @@ -128,7 +128,8 @@ a { } p { - color:#494949; + color:#333; + line-height:1.5em } @@ -206,8 +207,11 @@ vertical-align: top; #uc-site-title a:hover { color:#ffbc39; } - - + @media (max-width:767px) { + #uc-titlebar .container:nth-child(1) { + margin-right:21px; + } + } #uc-site-header { } @@ -236,7 +240,7 @@ vertical-align: top; } } - @media (max-width: 420px) { + @media (max-width: 490px) { #uc-site-title { width:50%; line-height:1.1em; @@ -264,6 +268,7 @@ vertical-align: top; border-radius: 0; font-size:11px; color:#999; + border: 1px solid #2c83b2; } @@ -282,7 +287,7 @@ vertical-align: top; } #home-interior { - background-color:#F9F9F9; + background-color:white; padding:10px 30px; } @@ -480,6 +485,12 @@ padding-left:10px; .btn-navbar { margin-right:10px; }} + + @media (max-width: 490px) { + .btn-navbar { + margin-top:-86px + } + } @media (min-width: 979px) { .btn-navbar { display:none; @@ -551,11 +562,86 @@ padding-left:10px; padding:0 !important; } +#home .theme-light .nivoSlider { + overflow:hidden; + margin-bottom:0px; +} + + +#home #row1.row { + margin-left:0px; + background-color:white; +} + .ie8 .nivoSlider { height:auto !important; } -.nivo-caption { + +.caption-wrapper { + left: 0; + margin-left: auto; + margin-right: auto; + position: absolute; + right: 0; + top: 24px; + width: 1200px; + z-index: 999; +} + + @media (max-width:1200px) { + .caption-wrapper { + width:991px; + } + } + + @media (max-width:991px) { + .caption-wrapper { + width:767px; + } + } + @media (max-width:767px) { + .caption-wrapper { + width:660px; + } + } + + @media (max-width:660px) { + .caption-wrapper { + width:100%; + top:auto; + bottom:0; + } + } + + .nivo-caption { + padding:10px 10px 10px 20px !important; + position:relative !important; + float:left; + width:40% !important; + margin-left:27px; + } + @media (max-width:660px) { + .nivo-caption { + float:none; + width:100% !important; + margin-left:0px; + } + } + + + .nivo-caption.caption-right { + float:right; + margin-right:15px; + } + @media (max-width:660px) { + .nivo-caption.caption-right { + margin-right:0px; + } + } + + +/*.nivo-caption { top:24px !important; bottom:auto !important; width:30% !important; @@ -577,6 +663,7 @@ padding-left:10px; line-height:1.5em; }} + .nivo-caption.caption-right { top:24px !important; @@ -596,6 +683,8 @@ padding-left:10px; line-height:1.5em; }} + +*/ .theme-light .nivo-directionNav a { background:none!important; @@ -705,35 +794,62 @@ padding-left:10px; margin-right:-20px; } */ - -.footer-left h1 { - font-size:14px; - color:white; - font-weight:500; - margin-bottom:0px; +.footer-left { + margin-left:49px; } - .footer-left p { - color:#cfcfcf; - font-size:11px; - line-height:1.6em; - } + @media (max-width:1200px) { + .footer-left { + margin-left:29px; + } + } + @media (max-width:767px) { + .footer-left { + margin-left:0px; + } + } + .footer-left h1 { + font-size:14px; + color:white; + font-weight:500; + margin-bottom:0px; + } + .footer-left p { + color:#cfcfcf; + font-size:11px; + line-height:1.6em; + } -.footer-center ul { - margin-top:17px; - margin-left:0px; +.footer-center { + width:340px; } - .ie7 .footer-center { - padding-top:17px; + @media (max-width:1200px) { + .footer-center { + width:290px; + } + } + @media (max-width:991px) { + .footer-center { + width:216px; + } + } + + .footer-center ul { + margin-top:17px; + margin-left:0px; } - .footer-center li, .footer-center li a { - color:#cfcfcf; - font-size:11px; - line-height:1.6em; - padding-bottom:14px; - } + .ie7 .footer-center { + padding-top:17px; + } + + .footer-center li, .footer-center li a { + color:#cfcfcf; + font-size:11px; + line-height:1.6em; + padding-bottom:14px; + } .footer-right ul { margin-top:17px; @@ -808,7 +924,9 @@ a:hover.yellow-link { } /* =============================== HOME - NEWS SECTION =============================== */ - +#row3 { + margin-bottom:10px; +} #row3 #home3 { margin-left:20px; @@ -821,27 +939,26 @@ a:hover.yellow-link { } } @media (max-width: 767px) { - #row3 #home3 { - margin-left:0px + #row3 #home3 { + margin-left:0px + } } -} + .home-news { margin-top:10px; - background-color:red; margin-left:0; padding-left:6.5px; padding-right:6.5px; - background: #f1f3f2; /* Old browsers */ - /* IE9 SVG, needs conditional override of 'filter' to 'none' */ + /*background: #f1f3f2; background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YxZjNmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlOGVjZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); - background: -moz-linear-gradient(left, #f1f3f2 0%, #e8eced 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, right top, color-stop(0%,#f1f3f2), color-stop(100%,#e8eced)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(left, #f1f3f2 0%,#e8eced 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(left, #f1f3f2 0%,#e8eced 100%); /* Opera 11.10+ */ - background: -ms-linear-gradient(left, #f1f3f2 0%,#e8eced 100%); /* IE10+ */ - background: linear-gradient(to right, #f1f3f2 0%,#e8eced 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f3f2', endColorstr='#e8eced',GradientType=1 ); /* IE6-8 */ + background: -moz-linear-gradient(left, #f1f3f2 0%, #e8eced 100%); + background: -webkit-gradient(linear, left top, right top, color-stop(0%,#f1f3f2), color-stop(100%,#e8eced)); + background: -webkit-linear-gradient(left, #f1f3f2 0%,#e8eced 100%); + background: -o-linear-gradient(left, #f1f3f2 0%,#e8eced 100%); + background: -ms-linear-gradient(left, #f1f3f2 0%,#e8eced 100%); + background: linear-gradient(to right, #f1f3f2 0%,#e8eced 100%) + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f3f2', endColorstr='#e8eced',GradientType=1 ); */ margin-bottom:-1000px; padding-bottom:1000px; @@ -880,7 +997,7 @@ a:hover.yellow-link { .post-title-home { margin-top:10px; margin-bottom:12px; - margin-left:10px; + /* margin-left:10px; */ } .post-title-home a { font-size:17px; @@ -892,22 +1009,26 @@ a:hover.yellow-link { font-size:11px; font-style:italic; color:#5a5a5a; - margin-left:10px; + /*margin-left:10px;*/ } .post-content-home { - margin-left:10px; + /*margin-left:10px;*/ padding-right:10px; } .post-tags-home { margin-top:10px; - margin-left:10px; + /*margin-left:10px;*/ margin-right:-10px; text-transform: capitalize; } - + @media (max-width:767px) { + .post-title-home, .post-date-home, .post-content-home, .post-tags-home { + margin-left:10px; + } + } @@ -1013,10 +1134,15 @@ a:hover.yellow-link { /* =============================== MAIN BODY CONTENT =============================== */ #row2 { - background-color:#f9f9f9; margin-left:0; + margin-top:8px; + margin-bottom:0px; } + #row2 #home2 { + margin-left:11px; + } + #row2 h4 { color:#4791CC } @@ -1032,7 +1158,7 @@ a:hover.yellow-link { } #row2 .span3 h6 { float:right; - margin-right:20px; + margin-right:0px; } @media (max-width: 767px) { #row2 .span3 h6 { @@ -1046,7 +1172,95 @@ a:hover.yellow-link { #row2 .span3 h6 a:hover { color: #555; } - + +#home { + margin-bottom:-20px; +} + +.row4-wrap { + background-color:white; + padding-top:20px; + padding-bottom:20px; + border-top: 1px solid #e5e5e5; +} + @media (max-width:767px) { + .row4-wrap { + padding-left:15px; + padding-right:15px; + } + } + +#row4 { + margin-left:0px; + padding:15px; +} + @media (max-width:1200px) { + #row4 { + margin-left:-10px; + } + } + @media (max-width:767px) { + #row4 { + padding-left:15px; + padding-right:15px; + } + } + #row4 .span8{ + margin-left:0px; + width:740px; + } + @media (max-width:1200px) { + #row4 .span8{ + width: 610px; + } + } + @media (max-width:991px) { + #row4 .span8{ + width: 100%; + } + } + + #row4 .span4 { + width:330px; + margin-left: 0; + margin-right: 60px; + + } + + #row4 .span4 ul.dpe-flexible-posts { + margin-left:0px; + } + #row4 .span4 ul.dpe-flexible-posts li { + margin-bottom:8px; + } + + + #row4 .span4:nth-child(3) { + margin-right:0px; + } + @media (max-width:1200px) { + #row4 .span4{ + width: 284px; + margin-right: 30px; + } + } + @media (max-width:991px) { + #row4 .span4{ + width: 100%; + margin-left:0px; + margin-bottom:30px; + } + } + + #row4 h1, #row4 h2, #row4 h3, #row4 h4 { + margin-top:0px; + } + + #row4 .widget-title { + font-size:22px; + line-height:1em; + margin-bottom:20px; + } .rcpt_items { width:33%; @@ -2063,3 +2277,210 @@ ul.deans-blog-list li { } +/* ============ Home Page Additions 082616 ================ */ +#home .event-wrap { + margin-bottom:15px; +} + + #home .date-wrap { + background-color: #E8ECED; + border:1px solid #DBDBDB; + display: inline-block; + position:absolute; + text-align: center; + padding:9px 11px; + min-width:36px; + } + #home .month { + font-weight:bold; + margin-bottom:2px; + font-size:13px; + font-weight:normal; + color:#387C9F; + letter-spacing: 0.5px; + } + #home .day { + font-size:23px; + color:#777; + } + + #home .details-wrap { + padding-left:74px; + } + + #home .event-name { + font-size:14px; + font-weight:bold; + + } + + #home .event-name a { + color:#387C9F; + text-decoration:none; + } + #home .event-name a:hover { + text-decoration:underline; + } + + #home .time { + font-size:12px; + } + #home .location { + font-size:12px; + } + + +.single-story .header-line-height { + font-size:36px; + line-height:1.2em; + margin-bottom:25px; +} + +/* ---------- SINGLE SIDEBAR BACKUP - WHITE BG --------------------- +.single-story #single-sidebar { + margin-top:-25px; +} + @media (max-width:767px) { + .single-story #single-sidebar { + margin-top:20px; + } + } + .single-story #single-sidebar h2 { + font-size:20px; + margin-bottom:0; + } + + .single-story #single-sidebar ul { + margin-left:0px; + margin-bottom:20px; + } + + .single-story #single-sidebar .sidebar-story { + margin-bottom:8px; + } + .single-story #single-sidebar .sidebar-story .date { + font-size:11.5px; + } + .single-story #single-sidebar .dpe-flexible-posts li { + margin-bottom:8px; + } + + @media (min-width:767px) { + .single-story #single-sidebar hr { + display:none; + } + } + + ---------- SINGLE SIDEBAR BACKUP - END --------------------- */ +@media (max-width:991px) { + .single-story .span8 { + width:98%; + } +} + + +.single-story #single-sidebar { + margin-top:-50px; + background-color:#EAEAEA; + margin-bottom:20px; +} + @media (max-width:767px) { + .single-story #single-sidebar { + margin-top:20px; + } + } + .single-story #single-sidebar h2 { + font-size:20px; + margin-bottom:14px; + line-height:1.4em; + color:#555; + } + + .single-story #single-sidebar ul { + margin-left:0px; + margin-bottom:20px; + } + + .single-story #single-sidebar .sidebar-story { + margin-bottom:8px; + } + .single-story #single-sidebar .sidebar-story .date { + font-size:11.5px; + } + .single-story #single-sidebar .dpe-flexible-posts li { + margin-bottom:8px; + } + + @media (min-width:767px) { + .single-story #single-sidebar hr { + display:none; + } + } + + .single-story #single-sidebar.span4 { + padding: 32px 20px 10px; + width: 270px; + } + @media (max-width:1200px) { + .single-story #single-sidebar.span4 { + width: 200px; + } + } + @media (max-width:991px) { + .single-story #single-sidebar.span4 { + width: 97%; + margin-left:0px; + } + } + + @media (max-width:991px) { + .single-story #single-sidebar.span4 { + width: 100%; + } + } + + + + +.single-story { + padding-top: 30px !important; +} + +.uc-cal { + padding:0px 0px 0px 3px !important; +} + + .uc-listcal .uc-cal-event-date { + top:3px !important; + } + + .uc-listcal .uc-cal-event-title { + line-height:1.5em; + } + +blockquote { + background-color: #eee; + border: 1px solid #dedede; + float: right; + font-family: helvetica,arial,sans-serif; + font-size: 20px; + font-weight: normal; + line-height: 1.5em; + margin-bottom: 15px; + margin-left: 15px; + margin-top: 15px; + padding: 25px; + width: 38%; + +} + blockquote p { + font-size: inherit; + font-weight: inherit; + line-height: inherit; + margin-bottom: inherit; + } + blockquote p:nth-child(1) { + margin-bottom: 0; + } + + \ No newline at end of file