![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 7.02.2017 Ostrzeżenie: (0%) ![]() ![]() |
Cześć,
szablon WP mi wypluwa ten błąd i zaznacza linię 330 a ja nic tam nie widzę i nie umiem wyklikać żeby pojawiać się przestał. Załączam fragment kodu z zaznaczoną linią. Kod /** * Check if in theme mode. * * If OT_THEME_MODE and OT_CHILD_THEME_MODE is false, set the * directory path & URL like any other plugin. Otherwise, use * the parent or child themes root directory. * * @since 2.0 */ if ( false == OT_THEME_MODE && false == OT_CHILD_THEME_MODE ) { >>> define( 'OT_DIR', plugin_dir_path( __FILE__ ) ); define( 'OT_URL', plugin_dir_url( __FILE__ ) ); } else { if ( true == OT_CHILD_THEME_MODE ) { $path = ltrim( end( @explode( get_stylesheet(), str_replace( '\\', '/', dirname( __FILE__ ) ) ) ), '/' ); define( 'OT_DIR', trailingslashit( trailingslashit( get_stylesheet_directory() ) . $path ) ); define( 'OT_URL', trailingslashit( trailingslashit( get_stylesheet_directory_uri() ) . $path ) ); } else { $path = ltrim( end( @explode( get_template(), str_replace( '\\', '/', dirname( __FILE__ ) ) ) ), '/' ); define( 'OT_DIR', trailingslashit( trailingslashit( get_template_directory() ) . $path ) ); define( 'OT_URL', trailingslashit( trailingslashit( get_template_directory_uri() ) . $path ) ); } } Z góry dzięki za pomoc. Ten post edytował drdro 7.02.2017, 13:36:21 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 279 Pomógł: 42 Dołączył: 10.10.2011 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 22:49 |