Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
1852e8b
Merge pull request #1 from zgreen/prod
Nov 12, 2014
6865636
Merge pull request #2 from zgreen/prod
Nov 13, 2014
b918236
Merge pull request #3 from zgreen/prod
Nov 13, 2014
e61252f
Merge pull request #4 from zgreen/prod
Nov 13, 2014
937e534
Merge pull request #5 from zgreen/prod
Nov 13, 2014
586dcdc
Merge pull request #6 from zgreen/prod
Nov 13, 2014
721f6c1
Removing node_modules tree
matt-bernhardt Dec 19, 2014
4023ee5
Merge pull request #7 from mitlibraries-ux/master
matt-bernhardt Dec 19, 2014
8e98117
recovering from messy history
matt-bernhardt Jan 12, 2015
32da35c
Merge pull request #9 from matt-bernhardt/temporary
matt-bernhardt Jan 12, 2015
c14295d
Formatting change, removing junk from news-home.js
matt-bernhardt Jan 15, 2015
d508d92
Merge pull request #11 from matt-bernhardt/prod
matt-bernhardt Jan 15, 2015
723dcf2
Launching complete hours system, including a new Grunt concat file
matt-bernhardt Jan 15, 2015
7d7d6db
Removing /node_modules from repository, should it inadvertently be co…
matt-bernhardt Jan 15, 2015
d51af30
Miscellaneous documentation changes
matt-bernhardt Jan 15, 2015
dfd94a4
Merge pull request #12 from matt-bernhardt/prod
matt-bernhardt Jan 15, 2015
ee87951
Switching hours harvester over to 1.1 code developed by Solh
matt-bernhardt Feb 3, 2015
22f243b
Merge pull request #13 from matt-bernhardt/prod
matt-bernhardt Feb 3, 2015
6845ccf
Adding debug page for all promoted/featured news articles
matt-bernhardt Feb 25, 2015
c482ba5
Adding test page template for direct loading of featured news articles
matt-bernhardt Feb 25, 2015
f7f8aef
Fleshing out debugging page that lists all featured articles of any type
matt-bernhardt Mar 3, 2015
6364cbf
Adding details to new front page template
matt-bernhardt Mar 3, 2015
603dde7
Adding sprite icons to news cards
matt-bernhardt Mar 4, 2015
15968b7
Reworking and cleaning the debug page of all featured content
matt-bernhardt Mar 4, 2015
c26d4f3
Rebuilding front page template with variable query logic
matt-bernhardt Mar 4, 2015
9f21d87
This is f'ugly - but trying to work out how to control post selection…
matt-bernhardt Mar 4, 2015
28ec611
Removing the old javascript-based news integration
matt-bernhardt Mar 5, 2015
af39d69
Further changes to the debugging page, looking for how custom URLs ar…
matt-bernhardt Mar 5, 2015
33dc153
Closes #21 - setting a default value for $clean
matt-bernhardt Mar 5, 2015
19d3307
Merge pull request #22 from matt-bernhardt/prod
matt-bernhardt Mar 5, 2015
10481e2
Renaming final front page template to page-home-direct
matt-bernhardt Mar 10, 2015
e0ddc84
Removing temporary page templates, no longer needed
matt-bernhardt Mar 10, 2015
633c56a
Merge branch 'home-news-direct' into prod
matt-bernhardt Mar 10, 2015
ec54fb1
Merge pull request #23 from matt-bernhardt/prod
matt-bernhardt Mar 10, 2015
bd36fc7
Changes news selection logic
matt-bernhardt Mar 16, 2015
3a051b9
Changes icon display on news cards
matt-bernhardt Mar 17, 2015
e48dd35
Adds event icon markup, debug list
matt-bernhardt Mar 17, 2015
ff0e06c
Implements news card debugging page
matt-bernhardt Mar 17, 2015
18ebd1f
Adds checks for featured images to prevent PHP warnings.
matt-bernhardt Mar 19, 2015
b099bdb
Adds check for featured image to news library
matt-bernhardt Mar 19, 2015
a494b66
Merge pull request #28 from mitlibraries-ux/27-front-page-news
matt-bernhardt Mar 19, 2015
fb55772
Adds weight to h3s except on home page
matt-bernhardt Apr 1, 2015
75c60d8
Decreases front page h3 to 300
matt-bernhardt Apr 1, 2015
5eccf9d
Merge pull request #31 from matt-bernhardt/prod
matt-bernhardt Apr 1, 2015
a227ff3
Removes Dreamweaver files
matt-bernhardt Apr 1, 2015
6be4d45
Decreases line heights on list items
matt-bernhardt Apr 1, 2015
3926e43
Merge pull request #32 from matt-bernhardt/prod
matt-bernhardt Apr 1, 2015
c32bb36
Adjusts column widths on location pages
matt-bernhardt Apr 2, 2015
fc34e65
Enlarges sidebar titles
matt-bernhardt Apr 2, 2015
40e1879
Adds spacing to heading pages
matt-bernhardt Apr 2, 2015
a1efa0e
Merge pull request #33 from matt-bernhardt/prod
matt-bernhardt Apr 2, 2015
4549b05
Removes OpenGraph tags
matt-bernhardt Apr 6, 2015
dfde998
Corrects link to course reserves
matt-bernhardt Apr 6, 2015
2990e07
Adds check for zero-spotlight condition for the front page news pull
matt-bernhardt Apr 30, 2015
50e85e1
Adds home-specific header
matt-bernhardt May 6, 2015
bbbbd9c
Merge pull request #34 from matt-bernhardt/prod
matt-bernhardt May 6, 2015
50e6009
Changes what gets used as h1 header
matt-bernhardt May 6, 2015
862f19d
Adds a pipe between phone number and room number
matt-bernhardt May 6, 2015
24c8e93
Hides redundant location links from screen readers
matt-bernhardt May 6, 2015
9dcbac2
Adds alt attribute to libraries logo
matt-bernhardt May 6, 2015
238e9ee
Alters homepage headers per accessibility review
matt-bernhardt May 6, 2015
2efb500
Adds label for search button
matt-bernhardt May 6, 2015
80a69fe
Adds visually-hidden styles
matt-bernhardt May 8, 2015
59e18c6
Adds hidden-text class
matt-bernhardt May 8, 2015
632dd67
Re-Reduces header weights to 300
matt-bernhardt May 8, 2015
fbea1f4
Adds last-minute styling changes from Friday afternoon
matt-bernhardt May 11, 2015
5a06e5f
Merge pull request #36 from matt-bernhardt/1.1.2-headers
matt-bernhardt May 11, 2015
e4ef537
Merge pull request #1 from matt-bernhardt/1.1.2-headers
matt-bernhardt May 11, 2015
9f62ff2
Removes DS_Store files from repository
matt-bernhardt May 19, 2015
e4e17ed
Centers headers on mobile
matt-bernhardt May 19, 2015
2999505
Reorders WorldCat search options
matt-bernhardt May 19, 2015
7053b69
Changes display of headers
matt-bernhardt May 19, 2015
a2fe9fd
Changes table styles around hours page
matt-bernhardt May 19, 2015
230b696
Adjusts table display rules
matt-bernhardt May 19, 2015
5beee1c
Renames header at bottom of hours grid
matt-bernhardt May 19, 2015
90cfc4c
Merge pull request #2 from matt-bernhardt/1.1.3-general
matt-bernhardt May 27, 2015
2453368
Merge pull request #37 from matt-bernhardt/prod
matt-bernhardt May 27, 2015
3131342
Allows chat to work over either http or https
JPrevost Jun 11, 2015
85722cd
Merge pull request #38 from JPrevost/patch-1
matt-bernhardt Jun 15, 2015
ef5ce2e
Upgrades libchat button in the meganav to libanswers v2
matt-bernhardt Jun 19, 2015
70ab327
Merge pull request #46 from mitlibraries-ux/45-libanswers-upgrade
matt-bernhardt Jul 15, 2015
6716ab0
Update accordion link font weight
PBruk May 29, 2015
1909c6c
Remove positioning
PBruk Jul 16, 2015
8fcc40d
Restyle element for screen-readers
PBruk Jul 16, 2015
88e1698
Change line-height
PBruk Jul 16, 2015
c5eb033
Remove margins from certain HX elements
PBruk Jul 16, 2015
bfb06b5
Change font-weight of HX links to 300
PBruk Jul 16, 2015
b75ca0c
Change font-weight of HX links to 300
PBruk Jul 16, 2015
b6da3b1
Change font-weight of HX links to 300
PBruk Jul 16, 2015
1f85477
Remove margins
PBruk Jul 16, 2015
becadd0
Remove margins
PBruk Jul 16, 2015
ed53157
Tighten margins
PBruk Jul 17, 2015
10c2a4f
Remove padding
PBruk Jul 17, 2015
9fed131
Clean up code
PBruk Jul 17, 2015
1178f3d
Uncomment margin values
PBruk Jul 17, 2015
2bd432d
Add padding
PBruk Jul 17, 2015
76240c4
Remove padding; change font-weight
PBruk Jul 17, 2015
da87a8a
Remove font-size
PBruk Jul 20, 2015
a816a93
Remove class
PBruk Jul 20, 2015
97d330a
Remove class and styling
PBruk Jul 20, 2015
dc86a30
Change padding
PBruk Jul 20, 2015
97a4888
Remove H2
PBruk Jul 20, 2015
dc2609d
Remove H2
PBruk Jul 20, 2015
f0d883a
Remove H2
PBruk Jul 20, 2015
1d8c782
Remove H2
PBruk Jul 20, 2015
22426ca
Remove H2
PBruk Jul 20, 2015
6471eca
Remove H2
PBruk Jul 20, 2015
9417455
Change HX to 300
PBruk Jul 20, 2015
7dac9e8
Added proper ALT for logos
PBruk Jul 22, 2015
c1cbc56
Added proper ALT for logos
PBruk Jul 22, 2015
2ccda02
Add class for H1
PBruk Jul 22, 2015
6b6a92a
Adjust font-weight
PBruk Jul 22, 2015
5498484
Add template for proper former selfTitle layout
PBruk Jul 22, 2015
f860838
Adjust code for former selfTitle positioning
PBruk Jul 22, 2015
f846902
Adjust code to allow parent links to work
PBruk Jul 22, 2015
e2827d5
Add padding
PBruk Jul 22, 2015
9357dd0
Add class for padding
PBruk Jul 22, 2015
44ef317
Add conditional to delink Stata
PBruk Jul 22, 2015
2789f74
Change font-family
PBruk Jul 22, 2015
2496a49
Adjust title styling
PBruk Jul 22, 2015
aefe653
Remove text-align
PBruk Jul 23, 2015
5503d3f
Change font-weight
PBruk Jul 23, 2015
fcb047c
Change line-height; add padding.
PBruk Jul 23, 2015
d2f95de
Merge pull request #52 from PBruk/1.1.7-general
matt-bernhardt Jul 27, 2015
127f757
New template to render 'self-title' pages
PBruk Aug 1, 2015
d476759
Add condition for new 'self-title' template
PBruk Aug 1, 2015
aca399d
Remove entry
PBruk Aug 1, 2015
fd6d610
Removed absolute link
PBruk Aug 2, 2015
00627d7
Removed absolute link
PBruk Aug 2, 2015
d648d3b
Adjust button font-size for mobile
PBruk Aug 2, 2015
812e2a0
Re-adds sticky-search improvements from 1.1.5-search
matt-bernhardt Aug 3, 2015
004d3df
Merge pull request #53 from mitlibraries-ux/1.1.8-search
matt-bernhardt Aug 5, 2015
5f888d2
make a:hover white on nav-menu
PBruk Aug 14, 2015
fedeae6
Change line-height
PBruk Aug 14, 2015
534e94e
Make a:hover white
PBruk Aug 14, 2015
58208ff
Make page work on mobile
PBruk Aug 14, 2015
dfeb70b
Change HX
PBruk Aug 14, 2015
ff7d413
Change line-height of HX; margins on 404 page
PBruk Aug 14, 2015
e5b853c
Merge branch '1.1.9-general' into prod
PBruk Aug 19, 2015
88ecde4
Merge pull request #54 from mitlibraries-ux/1.1.9-general
PBruk Aug 19, 2015
0ed3cde
Remove template name
PBruk Aug 20, 2015
40dc991
Remove deprecated template
PBruk Aug 20, 2015
eea9938
Reconfigured as new Default template
PBruk Aug 20, 2015
b7aed7e
Remove deprecated template
PBruk Aug 20, 2015
27cbc94
Add space to dash in between hours
PBruk Aug 24, 2015
00c63ca
adjust font-size and line-height
PBruk Aug 24, 2015
7bdb6d7
Adjust layout of hours on mobile screens
PBruk Aug 24, 2015
d73ceec
Merge pull request #56 from mitlibraries-ux/hours-page-fixes
PBruk Aug 24, 2015
6fa0aa7
Merge pull request #55 from mitlibraries-ux/template-removal-consolid…
PBruk Aug 24, 2015
f9a4eb7
Merge branch 'prod' into 1.1.10-general
PBruk Aug 24, 2015
1d3cfdd
Switches to new spreadsheet ID under Libraries' account
matt-bernhardt Aug 25, 2015
61a39bd
Merge pull request #58 from mitlibraries-ux/hours-spreadsheet-swap
matt-bernhardt Aug 25, 2015
2f155eb
Adjust styling for Hours page
PBruk Aug 26, 2015
ac9de21
Adjust HX font weight
PBruk Aug 26, 2015
a0dd901
Adjust margin for map
PBruk Aug 26, 2015
67186c3
Remove bottom border on mobile menu
PBruk Aug 26, 2015
e3085b0
Adjust link color
PBruk Aug 26, 2015
df8967f
Add more mobile specific styling
PBruk Aug 26, 2015
02df4ab
Adjust size + margins of HX
PBruk Aug 26, 2015
3f00262
Merge pull request #59 from mitlibraries-ux/1.1.10-general
PBruk Aug 27, 2015
b0a2d78
Version 1.1.11
PBruk Aug 27, 2015
2e9e630
Change font size for H3 on Android
PBruk Aug 27, 2015
27ca95d
Merge pull request #61 from mitlibraries-ux/1.1.11-general
PBruk Aug 27, 2015
1cc2554
Modify HTML for header spacing purposes
PBruk Aug 31, 2015
e600005
Update GRUNT
PBruk Aug 31, 2015
baee0f4
Call custom alert fields
PBruk Aug 31, 2015
bb210a2
Add spacing to header
PBruk Aug 31, 2015
2520e88
Add color to alert title
PBruk Aug 31, 2015
f5cc657
Remove .flex-item for spacing purposes
PBruk Aug 31, 2015
0d0cc5b
Adjust size/spacing of alert icon + alert text
PBruk Sep 1, 2015
7543da3
Merge pull request #62 from mitlibraries-ux/1.1.12-general
matt-bernhardt Sep 1, 2015
05cbd46
Changes hours table to calculate headings in ISO 8601 format.
matt-bernhardt Sep 15, 2015
205ce70
Provides two year values, one for ISO-8601 and the other for visual d…
matt-bernhardt Sep 15, 2015
bedb80c
add symbolset web fonts
PBruk Sep 16, 2015
8b85767
Merge branch '1.1.13-general' of https://github.com/mitlibraries-ux/M…
PBruk Sep 16, 2015
13399fb
Remove iconfonts
PBruk Sep 17, 2015
343e412
Add padding
PBruk Sep 17, 2015
75f5626
Add padding to icon
PBruk Sep 17, 2015
bb98ad8
Add icon
PBruk Sep 17, 2015
5320b62
Add padding and margins
PBruk Sep 17, 2015
01777e4
Add icon and move field within div
PBruk Sep 17, 2015
f1167cd
Merge pull request #64 from mitlibraries-ux/63_hours_heading
matt-bernhardt Sep 18, 2015
cefa77b
Manage metabox order
PBruk Sep 18, 2015
66979ad
Merge branch '1.1.13-general' of https://github.com/mitlibraries-ux/M…
PBruk Sep 18, 2015
e2694cf
Adjust meatball placement
PBruk Sep 21, 2015
03d092e
Merge pull request #65 from mitlibraries-ux/1.1.13-general
PBruk Sep 22, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ lib-cov
*.out
*.pid
*.gz
*.DS_Store

pids
logs
results
_notes

npm-debug.log

.sass-cache
node_modules/

css/build/**
js/build/**
6 changes: 3 additions & 3 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
<p><?php _e('You can also check out these commonly-used resources:', 'twentytwelve'); ?></p>

<ul>
<li><?php _e('<a href="http://libraries.mit.edu/bartonplus">BartonPlus</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="http://libguides.mit.edu/directory">Staff directory</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="//libraries.mit.edu/bartonplus">BartonPlus</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="//libguides.mit.edu/directory">Staff directory</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="/research-guides">Research guides - databases by subject</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="/about/shortcuts/">Shortcuts to frequently used pages</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="http://web.mit.edu/search.html">MIT web site search</a>', 'twentytwelve'); ?></li>
<li><?php _e('<a href="//web.mit.edu/search.html">MIT web site search</a>', 'twentytwelve'); ?></li>
</ul>

<p><?php _e('<a href="/ask">Need more help? Ask us!</a>', 'twentytwelve'); ?></p>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[MIT Libraries](http://libraries.mit.edu) WordPress Theme
[MIT Libraries](http://libraries.mit.edu) Wordpress Theme
========

This is main WordPress theme for the MIT Libraries.
This is the main Wordpress theme for the MIT Libraries.

__Note:__ Primary CSS and JS (including `css/build/minified/global.css`, `js/build/hours.min.js` and `js/build/production.min.js`, as registered in `functions.php`) are not checked in. These build files are complied and/or concatenated and/or minified automatically (using [Grunt](http://gruntjs.com/), for example).
__Note:__ Primary CSS and JS (including `css/build/minified/global.css`, `js/build/hours.min.js` and `js/build/production.min.js`, as registered in `functions.php`) are not checked in. These build files are complied and/or concatenated and/or minified automatically (using [Grunt](http://gruntjs.com/), for example).
1 change: 0 additions & 1 deletion TEST.txt

This file was deleted.

2 changes: 1 addition & 1 deletion content-full-no.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div class="entry-content">
<?php if (!$isRoot): ?>
<h2><?php the_title(); ?></h2>
<h1><?php the_title(); ?></h1>
<?php endif; ?>
<?php the_content(); ?>

Expand Down
154 changes: 81 additions & 73 deletions content-location.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?php
global $gStudy24Url;

$mapPage = "/locations/#!";

$locationId = get_the_ID();
$slug = $post->post_name;

$subject = cf("subject");
$phone = cf("phone");
$email = cf("email");
$building = cf("building");
$spaces = cf("group_spaces");
//$equipment = cf("equipment");
$arexpert = get_field("expert");

$title1 = cf("tab_1_title");
$subtitle1 = cf("tab_1_subtitle");
$content1left = get_field("tab_1_content_left");
Expand All @@ -22,40 +23,40 @@
$subtitle2 = cf("tab_2_subtitle");
$content2left = get_field("tab_2_content_left");
$content2 = get_field("tab_2_content");

$content2wide = 0;
if ($content2 == "") $content2wide = 1;

$content1wide = 0;
if ($content1 == "") $content1wide = 1;

$study24 = get_field("study_24");

$temp = $post;
$post = $temp;


$reserveText = get_field("reserve_text");
if ($reserveText == "") {
$reserveText = "Reserve Group Study Space";
}
$reserveUrl = get_field("reserve_url");



$expertAskUrl = get_field("expert_ask_url");
if ($expertAskUrl == "") $expertAskUrl = "http://libraries.mit.edu/ask";


$numMain = 6;
$arMain = array();

for($i=1;$i<=$numMain;$i++) {
$img = get_field("main_image".$i, $locationId);
if ($img != "")
$arMain[] = $img;
}

$numSub = 8;
$arSub = array();
$subs = 0;
Expand All @@ -66,71 +67,78 @@
$arSub[] = $img;
}
}

$strLocation = "";
if ($subs <= 0) {
$strLocation = "noThumbs";
}


$alert = trim(get_field("alert"));


$alertTitle = cf("alert_title");
$alertContent = cf("alert_content");
?>

<div id="stage" class="inner row group" role="main">

<div class="title-page libraryTitle flex-container">
<div class="flex-item">
<div class="libraryContent">
<h1>
<span class="libraryName"><?php the_title(); ?></span>
<span class="subject-library"><?php echo $subject ?></span>
</h1>
<div class="info-more">
<a href="tel:<?php echo $phone; ?>" class="phone"><?php echo $phone ?></a>
<a href="<?php echo $mapPage.$slug; ?>">Room: <?php echo $building ?> <i class="icon-arrow-right"></i></a>
</div>
</div><!-- end div.libraryContent -->

<div class="hours-today">
<span>Today's hours: <strong data-location-hours="<?php the_title(); ?>"></strong></span>
<?php if ($study24 == 1): ?>
<a class="study-24-7" href="<?php echo $gStudy24Url; ?>" alt="This location contains one or more study spaces available 24 hours a day, seven days a week. Click the link for more info." title="Study 24/7">Study 24/7</a>
<?php endif; ?>
<a href="/hours" class="link-hours-all">See all hours <i class="icon-arrow-right"></i></a>
</div>

</div><!-- end div.flex-item -->
<div class="flex-item">
<?php
include(locate_template('inc/alert.php'));
if ($showAlert == 0 && $alert != "") {
echo '<div class="libraryAlert">'.$alert.'</div>';
}
?>
<div class="librarySlideshow">
<div class="slideshow">
<?php
$val = $arMain[array_rand($arMain)];
?>
<?php if ($val != ""): ?>
<img src="<?php echo $val; ?>" data-thumb="<?php echo $val; ?>" alt="<?php the_title(); ?>" />
<!-- <div class="flex-item"> -->
<div class="topLeft">
<div class="libraryContent">
<h1>
<span class="libraryName"><?php the_title(); ?></span>
<span class="subject-library"><?php echo $subject ?></span>
</h1>
<div class="info-more">
<a href="tel:<?php echo $phone; ?>" class="phone"><?php echo $phone ?></a> |
<?php if($email): ?>
<a href="mailto:<?php echo $email; ?>" class="email"><?php echo $email ?></a> |
<?php endif; ?>
<a href="<?php echo $mapPage.$slug; ?>">Room: <?php echo $building ?> <i class="icon-arrow-right"></i></a>
</div>
</div><!-- end div.libraryContent -->

<div class="hours-today">
<span>Today's hours: <strong data-location-hours="<?php the_title(); ?>"></strong></span>
<?php if ($study24 == 1): ?>
| <a class="study-24-7" href="<?php echo $gStudy24Url; ?>" alt="This location contains one or more study spaces available 24 hours a day, seven days a week. Click the link for more info." title="Study 24/7">Study 24/7</a>
<?php endif; ?>
</div>
</div><!-- end div.librarySlideshow -->
</div><!-- end div.flex-item -->
<a href="/hours" class="link-hours-all">See all hours <i class="icon-arrow-right"></i></a>
</div><!-- end div.hours-today -->
</div><!-- end div.topLeft -->
<!-- </div> end div.flex-item -->
<!-- <div class="flex-item"> -->
<div class="topRight">
<?php
include(locate_template('inc/alert.php'));
if ($showAlert == 0 && $alertTitle != "") {
echo '<div class="libraryAlert">'.'<div class="location--alerts flex-container"><svg class="icon-exclamation-circle width="2048" height="2048" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1024 256q209 0 385.5 103t279.5 279.5 103 385.5-103 385.5-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103zm128 1247v-190q0-14-9-23.5t-22-9.5h-192q-13 0-23 10t-10 23v190q0 13 10 23t23 10h192q13 0 22-9.5t9-23.5zm-2-344l18-621q0-12-10-18-10-8-24-8h-220q-14 0-24 8-10 6-10 18l17 621q0 10 10 17.5t24 7.5h185q14 0 23.5-7.5t10.5-17.5z"/></svg>'.'<div class="alertText">'.'<h3>'.$alertTitle.'</h3>'.'<p>'.$alertContent.'</p>'.'</div>'.'</div>'.'</div>';
}
?>
<div class="librarySlideshow">
<div class="slideshow">
<?php
$val = $arMain[array_rand($arMain)];
?>
<?php if ($val != ""): ?>
<img src="<?php echo $val; ?>" data-thumb="<?php echo $val; ?>" alt="<?php the_title(); ?>" />
<?php endif; ?>
</div>
</div><!-- end div.librarySlideshow -->
</div><!-- end div.topRight -->
<!-- </div> end div.flex-item -->
</div><!-- end div.libraryTitle -->

<div class="content-main flex-container group <?php echo $strLocation; ?>">
<div class="col-1 content-page">

<?php if ($title1 != "" || $title2 != ""): ?>
<?php $noTab = ""; ?>
<ul class="tabnav">
<?php if ($title1 != ""): ?>
<li class="active"><h2 class="title-tab"><a href="#tab1"><?php echo $title1 ?><div><?php echo $subtitle1 ?></div></a></h2></li>
<li class="active tab1st"><h2 class="title-tab"><a href="#tab1"><?php echo $title1 ?><span class="title-sub hidden-mobile"><?php echo $subtitle1 ?></span class="title-sub"></a></h2></li>
<?php endif; ?>
<?php if ($title2 != ""): ?>
<li><h2 class="title-tab"><a href="#tab2"><?php echo $title2 ?><span class="title-sub"><?php echo $subtitle2 ?></span class="title-sub"></a></h2></li>
<li class="tab2nd"><h2 class="title-tab"><a href="#tab2"><?php echo $title2 ?><span class="title-sub hidden-mobile"><?php echo $subtitle2 ?></span class="title-sub"></a></h2></li>
<?php endif; ?>
</ul>
<?php else: ?>
Expand All @@ -139,30 +147,30 @@

<div class="tabcontent group <?php echo $noTab ?>">

<div class="tab active flex-container group" id="tab1">
<div class="tab tab1 active flex-container group" id="tab1">

<div class="flex-item first group <?php if($content1wide): ?>span7 wideColumn<?php else: ?>span4<?php endif; ?>">

<?php
if ($arexpert) {
$expertIndex = array_rand($arexpert);
$expert = $arexpert[$expertIndex];


$name = $expert->post_title;
$bio = $expert->post_excerpt;
//$url = $expert->guid;
$url = get_post_meta($expert->ID, "expert_url", 1);

if (has_post_thumbnail($expert->ID)) {
$thumb = get_the_post_thumbnail($expert->ID, array(108,108));
} else {
$thumb = "";
}

?>
<div class="profile flex-container group">
<?php if ($thumb != ""):
<?php if ($thumb != ""):
echo $thumb;
endif; ?>
<div class="profileContent">
Expand All @@ -183,16 +191,16 @@

</div>

<div class="flexItem second span3">
<div class="flex-item second span3">
<?php echo $content1 ?>
</div>

</div>
<?php if ($title2 != ""): ?>

<div class="tab tab2 flexContainer group" id="tab2">
<div class="tab tab2 flex-container group" id="tab2">

<div class="flexItem first <?php if($content2wide): ?>span8 wideColumn<?php else: ?>span2<?php endif; ?>">
<div class="flex-item first <?php if($content2wide): ?>span8 wideColumn<?php else: ?>span2<?php endif; ?>">
<?php echo $content2left ?>

<?php if ($reserveUrl != ""): ?>
Expand All @@ -202,7 +210,7 @@

</div>

<div class="flexItem second span6">
<div class="flex-item second span6">
<?php echo $content2 ?>
</div>

Expand Down
52 changes: 22 additions & 30 deletions content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,38 @@
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/



global $isRoot;



?>
<div class="nav-page">
<ul>
<?php

$pageRoot = getRoot($post);
$section = get_post($pageRoot);

$args = array(
"child_of" => $pageRoot,
"title_li" => "",
);

$menuName = $section->post_name;

$menu = wp_get_nav_menu_items($menuName);

if ($menu) {
wp_nav_menu( array( 'menu' => $menuName, 'menu_class' => 'nav-menu' ) );
} else {
wp_list_pages( $args );
}
?>
</ul>
</div><!-- end div.pagenav -->
<div class="content-page flex-container">
<div class="col-1">

<?php if (in_category('has-menu')) { ?>
<?php get_template_part('inc/content', 'secmenu'); ?>
<?php } ?>

<div class="content-main flex-container">
<div class="col-1 content-page">
<div class="entry-content">
<div class="entry-page-title">
<?php if (!$isRoot): ?>
<h2><?php the_title(); ?></h2>
<h1><?php the_title(); ?></h1>
<?php endif; ?>
</div>
<?php the_content(); ?>

</div>
<footer class="entry-meta">
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</div>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
<div class="col-2">
<?php get_sidebar(); ?>
<?php get_sidebar( 'sidebar-1' ); ?>
<?php } ?>
</div>
</div>
</div>


Loading