roundcubemail/program/lib/Roundcube/rcube_plugin.php
public function local_skin_path()
    {
        $rcube = rcube::get_instance();
        $skins = array_keys((array)$rcube->output->skins);
        if (empty($skins)) {
            $skins = (array) $rcube->config->get('skin');
        }
        foreach ($skins as $skin) {
            $skin_path = 'skins/' . $skin;
            if (is_dir(realpath(slashify($this->home) . $skin_path))) {
                break;
            }
        }

        return $skin_path;
    }
public function local_skin_path()
    {
        $rcube = rcube::get_instance();
        $skins = array_keys((array)$rcube->output->skins);
        if (empty($skins)) {
            $skins = (array) $rcube->config->get('skin');
        }
        foreach ($skins as $skin) {
            $skin_path = 'skins/' . $skin;
            if (is_dir(realpath(slashify($this->home) . $skin_path))) {
                break;
            }
        }

        return $skin_path;
    }
public function local_skin_path ( ) { $ rcube = rcube :: get_instance ( ) ; $ skins = array_keys ( ( array ) $ rcube -> output -> skins ) ; if ( empty ( $ skins ) ) { $ skins = ( array ) $ rcube -> config -> get ( 'skin' ) ; } foreach ( $ skins as $ skin ) { $ skin_path = 'skins/' . $ skin ; if ( is_dir ( realpath ( slashify ( $ this -> home ) . $ skin_path ) ) ) { break ; } } return $ skin_path ; }
Provide path to the currently selected skin folder within the plugin directory
with a fallback to the default skin folder.

@return string Skin path relative to plugins directory
Provide path to the currently selected skin folder within the plugin directory with a fallback to the default skin folder .