original_string: public static function get_directory_for_current_subsite()
      {
          $subsite = Subsite::currentSubsite();
          if ($subsite) {
              if ((int) $subsite->AssetsFolderID > 0) {
                  $dirObj = $subsite->AssetsFolder();
  
                  $dirName = str_replace('assets/', '', $dirObj->Filename);
  
                  //make sure we've got no trailing slashes
                  $dirName = str_replace('/', '', $dirName);
  
                  return $dirName;
              }
          } else {
              return false;
          }
      }
code: public static function get_directory_for_current_subsite()
      {
          $subsite = Subsite::currentSubsite();
          if ($subsite) {
              if ((int) $subsite->AssetsFolderID > 0) {
                  $dirObj = $subsite->AssetsFolder();
  
                  $dirName = str_replace('assets/', '', $dirObj->Filename);
  
                  //make sure we've got no trailing slashes
                  $dirName = str_replace('/', '', $dirName);
  
                  return $dirName;
              }
          } else {
              return false;
          }
      }
code_tokens: public static function get_directory_for_current_subsite ( ) { $ subsite = Subsite :: currentSubsite ( ) ; if ( $ subsite ) { if ( ( int ) $ subsite -> AssetsFolderID > 0 ) { $ dirObj = $ subsite -> AssetsFolder ( ) ; $ dirName = str_replace ( 'assets/' , '' , $ dirObj -> Filename ) ; //make sure we've got no trailing slashes $ dirName = str_replace ( '/' , '' , $ dirName ) ; return $ dirName ; } } else { return false ; } }
docstring: Getting subsite directory based on it's assets folder.
  
  @return bool|mixed
docstring_tokens: Getting subsite directory based on it s assets folder .