Skip to content

Commit 107f3b2

Browse files
Merge pull request #53 from MITLibraries/pageroot
Remove isRoot / pageRoot calculations
2 parents b4754b4 + ef71a12 commit 107f3b2

8 files changed

Lines changed: 0 additions & 36 deletions

File tree

web/app/themes/mitlib-child/header-slim.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,3 @@
5656
</a><!-- End /barton-account -->
5757

5858
</header>
59-
60-
<?php
61-
62-
$pageRoot = getRoot( $post );
63-
$section = get_post( $pageRoot );
64-
65-
?>

web/app/themes/mitlib-child/inc/content-front.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88

99
namespace Mitlib\Child;
1010

11-
global $isRoot;
1211
?>
13-
14-
1512
<div class="main-content content-main">
1613

1714
<div class="entry-content">

web/app/themes/mitlib-child/inc/content-widgetized.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@
88

99
namespace Mitlib\Child;
1010

11-
global $isRoot;
1211
?>
13-
14-
<?php
15-
16-
$pageRoot = getRoot( $post );
17-
$section = get_post( $pageRoot );
18-
19-
?>
20-
21-
2212
<div class="main-content">
2313

2414
<div class="entry-content">

web/app/themes/mitlib-child/inc/exhibits-current.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
namespace Mitlib\Child;
1212

13-
global $isRoot;
14-
1513
?>
1614

1715
<?php

web/app/themes/mitlib-child/inc/exhibits-past.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
namespace Mitlib\Child;
1111

12-
global $isRoot;
13-
1412
?>
1513

1614
<?php

web/app/themes/mitlib-child/inc/exhibits-upcoming.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
namespace Mitlib\Child;
1111

12-
global $isRoot;
13-
1412
?>
1513

1614
<?php

web/app/themes/mitlib-child/templates/page-posts-feed.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Mitlib\Child;
1515

16-
$pageRoot = getRoot( $post );
17-
$section = get_post( $pageRoot );
18-
$isRoot = $section->ID === $post->ID;
19-
20-
2116
get_header( 'child' );
2217

2318
get_template_part( 'inc/breadcrumbs', 'child' ); ?>

web/app/themes/mitlib-child/templates/page-widgetized.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Mitlib\Child;
1515

16-
$pageRoot = getRoot( $post );
17-
$section = get_post( $pageRoot );
18-
$isRoot = $section->ID == $post->ID;
19-
20-
2116
get_header( 'child' );
2217

2318
get_template_part( 'inc/breadcrumbs', 'child' ); ?>

0 commit comments

Comments
 (0)