Tag All,
ich will ein Pulgin(Slideshow) in die Theme direkt einbinden und den Ordner in die Themen-Ordner einbinden. Nun habe ich aber ein Problem mit dem PHP Code welches sagt das meine Dateien angeblich immer noch im "Plugin" Ordner liegen.
Hier die Falsche URL was er mir immer rausbringt:
PHP
http://mysite.de/start/wp-content/plugins/is/htdocs/wp10593078_L5GSUAX7S8/www/start/wp-content/themes/thisa/slideshow/images/icon.png
Hier sind 2 Codes die die Dateien falsch verlinken, habe schon vieles versucht komme aber leider alleine nicht auf die Lösung :D
PHP
function slideshow_dir( $str="" ) {
$path = WP_PLUGIN_DIR . "/" . plugin_basename( dirname( __FILE__ ) );
if ( isset( $str ) && !empty( $str ) ) {
$sep = "/" == substr( $str, 0, 1 ) ? "" : "/";
return $path . $sep . $str;
} else {
return $path;
}
}
PHP
function slideshow_url( $str="" ) {
global $slideshow_global_options;
$path = WP_PLUGIN_URL . "/" . plugin_basename( dirname( __FILE__ ) );
if( $slidedeck_global_options['enable_ssl_check'] == true ) {
if( isset( $_SERVER['HTTPS'] ) && (boolean) $_SERVER['HTTPS'] === true ) {
$path = str_replace( "http://", "https://", $path );
}
}
if ( isset( $str ) && !empty( $str ) ) {
$sep = "/" == substr( $str, 0, 1 ) ? "" : "/";
return $path . $sep . $str;
} else {
return $path;
}
}
Alles anzeigen
Für eure Hilfe wäre ich euch sehr dankbar.
Gruß reebo