| @@ 27-34 (lines=8) @@ | ||
| 24 | /** This filter is already documented in modules/infinite-scroll/infinity.php */ |
|
| 25 | $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] ); |
|
| 26 | ||
| 27 | if ( is_readable( $customization_file ) ) { |
|
| 28 | require_once $customization_file; |
|
| 29 | } elseif ( ! empty( $theme['Template'] ) ) { |
|
| 30 | $customization_file = dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Template']}.php"; |
|
| 31 | ||
| 32 | if ( is_readable( $customization_file ) ) { |
|
| 33 | require_once $customization_file; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | } |
|
| 37 | } |
|
| @@ 143-151 (lines=9) @@ | ||
| 140 | /** This filter is already documented in modules/infinite-scroll/infinity.php */ |
|
| 141 | $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] ); |
|
| 142 | ||
| 143 | if ( is_readable( $customization_file ) ) { |
|
| 144 | require_once( $customization_file ); |
|
| 145 | } |
|
| 146 | elseif ( ! empty( $theme['Template'] ) ) { |
|
| 147 | $customization_file = dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Template']}.php"; |
|
| 148 | ||
| 149 | if ( is_readable( $customization_file ) ) |
|
| 150 | require_once( $customization_file ); |
|
| 151 | } |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|