| @@ 72-90 (lines=19) @@ | ||
| 69 | * |
|
| 70 | * @return mixed |
|
| 71 | */ |
|
| 72 | function twentyeleven_amp_infinite_footers( $footers, $buffer ) { |
|
| 73 | // Collect the sidebar wrapper. |
|
| 74 | preg_match( |
|
| 75 | '/<div id="secondary".*<!-- #secondary .widget-area -->/s', |
|
| 76 | $buffer, |
|
| 77 | $footer |
|
| 78 | ); |
|
| 79 | $footers[] = reset( $footer ); |
|
| 80 | ||
| 81 | // Collect the footer wrapper. |
|
| 82 | preg_match( |
|
| 83 | '/<footer id="colophon".*<!-- #colophon -->/s', |
|
| 84 | $buffer, |
|
| 85 | $footer |
|
| 86 | ); |
|
| 87 | $footers[] = reset( $footer ); |
|
| 88 | ||
| 89 | return $footers; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * Hide and remove various elements from next page load. |
|
| @@ 76-94 (lines=19) @@ | ||
| 73 | * |
|
| 74 | * @return mixed |
|
| 75 | */ |
|
| 76 | function twentyfourteen_amp_infinite_footers( $footers, $buffer ) { |
|
| 77 | // Collect the sidebar wrapper. |
|
| 78 | preg_match( |
|
| 79 | '/<div id="secondary".*<!-- #secondary -->/s', |
|
| 80 | $buffer, |
|
| 81 | $footer |
|
| 82 | ); |
|
| 83 | $footers[] = reset( $footer ); |
|
| 84 | ||
| 85 | // Collect the footer wrapper. |
|
| 86 | preg_match( |
|
| 87 | '/<footer id="colophon".*<!-- #colophon -->/s', |
|
| 88 | $buffer, |
|
| 89 | $footer |
|
| 90 | ); |
|
| 91 | $footers[] = reset( $footer ); |
|
| 92 | ||
| 93 | return $footers; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Hide and remove various elements from next page load. |
|
| @@ 80-98 (lines=19) @@ | ||
| 77 | * |
|
| 78 | * @return mixed |
|
| 79 | */ |
|
| 80 | function twentyseventeen_amp_infinite_footers( $footers, $buffer ) { |
|
| 81 | // Collect the sidebar wrapper. |
|
| 82 | preg_match( |
|
| 83 | '/<aside id="secondary".*<!-- #secondary -->/s', |
|
| 84 | $buffer, |
|
| 85 | $footer |
|
| 86 | ); |
|
| 87 | $footers[] = reset( $footer ); |
|
| 88 | ||
| 89 | // Collect the footer wrapper. |
|
| 90 | preg_match( |
|
| 91 | '/<footer id="colophon".*<!-- #colophon -->/s', |
|
| 92 | $buffer, |
|
| 93 | $footer |
|
| 94 | ); |
|
| 95 | $footers[] = reset( $footer ); |
|
| 96 | ||
| 97 | return $footers; |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * Hide and remove various elements from next page load. |
|
| @@ 65-83 (lines=19) @@ | ||
| 62 | * |
|
| 63 | * @return mixed |
|
| 64 | */ |
|
| 65 | function twentysixteen_amp_infinite_footers( $footers, $buffer ) { |
|
| 66 | // Collect the sidebar wrapper. |
|
| 67 | preg_match( |
|
| 68 | '/<aside id="secondary".*<!-- .sidebar .widget-area -->/s', |
|
| 69 | $buffer, |
|
| 70 | $footer |
|
| 71 | ); |
|
| 72 | $footers[] = reset( $footer ); |
|
| 73 | ||
| 74 | // Collect the footer wrapper. |
|
| 75 | preg_match( |
|
| 76 | '/<footer id="colophon".*<!-- .site-footer -->/s', |
|
| 77 | $buffer, |
|
| 78 | $footer |
|
| 79 | ); |
|
| 80 | $footers[] = reset( $footer ); |
|
| 81 | ||
| 82 | return $footers; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Hide and remove various elements from next page load. |
|
| @@ 71-89 (lines=19) @@ | ||
| 68 | * |
|
| 69 | * @return mixed |
|
| 70 | */ |
|
| 71 | function twentytwelve_amp_infinite_footers( $footers, $buffer ) { |
|
| 72 | // Collect the sidebar wrapper. |
|
| 73 | preg_match( |
|
| 74 | '/<div id="secondary".*<!-- #secondary -->/s', |
|
| 75 | $buffer, |
|
| 76 | $footer |
|
| 77 | ); |
|
| 78 | $footers[] = reset( $footer ); |
|
| 79 | ||
| 80 | // Collect the footer wrapper. |
|
| 81 | preg_match( |
|
| 82 | '/<footer id="colophon".*<!-- #colophon -->/s', |
|
| 83 | $buffer, |
|
| 84 | $footer |
|
| 85 | ); |
|
| 86 | $footers[] = reset( $footer ); |
|
| 87 | ||
| 88 | return $footers; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * Hide and remove various elements from next page load. |
|
| @@ 184-202 (lines=19) @@ | ||
| 181 | * |
|
| 182 | * @return mixed |
|
| 183 | */ |
|
| 184 | function twentytwenty_amp_infinite_footers( $footers, $buffer ) { |
|
| 185 | // Collect the footer wrapper. |
|
| 186 | preg_match( |
|
| 187 | '/<div class="footer-nav-widgets-wrapper.*<!-- .footer-nav-widgets-wrapper -->/s', |
|
| 188 | $buffer, |
|
| 189 | $footer |
|
| 190 | ); |
|
| 191 | $footers[] = reset( $footer ); |
|
| 192 | ||
| 193 | // Collect the footer wrapper. |
|
| 194 | preg_match( |
|
| 195 | '/<footer id="site-footer".*<!-- #site-footer -->/s', |
|
| 196 | $buffer, |
|
| 197 | $footer |
|
| 198 | ); |
|
| 199 | $footers[] = reset( $footer ); |
|
| 200 | ||
| 201 | return $footers; |
|
| 202 | } |
|
| 203 | ||
| 204 | /** |
|
| 205 | * Hide and remove various elements from next page load. |
|