@@ 120-128 (lines=9) @@ | ||
117 | /** This filter is already documented in modules/infinite-scroll/infinity.php */ |
|
118 | $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] ); |
|
119 | ||
120 | if ( is_readable( $customization_file ) ) { |
|
121 | require_once( $customization_file ); |
|
122 | } |
|
123 | elseif ( ! empty( $theme['Template'] ) ) { |
|
124 | $customization_file = dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Template']}.php"; |
|
125 | ||
126 | if ( is_readable( $customization_file ) ) |
|
127 | require_once( $customization_file ); |
|
128 | } |
|
129 | } |
|
130 | ||
131 | /** |
@@ 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 | } |