framework/RedKiteCms/Tools/FilesystemTools.php
public static function slotDir($sourceDir, array $options)
    {
        $paths = array(
            sprintf(
                '%s/pages/pages/%s/%s_%s/%s',
                $sourceDir,
                $options['page'],
                $options['language'],
                $options['country'],
                $options['slot']
            ),
            sprintf('%s/slots/%s/%s_%s', $sourceDir, $options['slot'], $options['language'], $options['country']),
            sprintf('%s/slots/%s', $sourceDir, $options['slot']),
        );

        return self::cascade($paths);
    }
public static function slotDir($sourceDir, array $options)
    {
        $paths = array(
            sprintf(
                '%s/pages/pages/%s/%s_%s/%s',
                $sourceDir,
                $options['page'],
                $options['language'],
                $options['country'],
                $options['slot']
            ),
            sprintf('%s/slots/%s/%s_%s', $sourceDir, $options['slot'], $options['language'], $options['country']),
            sprintf('%s/slots/%s', $sourceDir, $options['slot']),
        );

        return self::cascade($paths);
    }
Looks for the current slots dir. Slots are sought in cascade in pages folders, languages repeated slots and site
repeated slots

@param $sourceDir
@param array $options

@return null|string