public function versions()
    {
        $Plugin = new BasePlugin;

        $plugins['me_cms'] = trim(file_get_contents($Plugin->path('MeCms', 'version')));

        foreach ($Plugin->all(['exclude' => 'MeCms']) as $plugin) {
            $file = $Plugin->path($plugin, 'version', true);
            $plugins['others'][$plugin] = __d('me_cms', 'n.a.');

            if ($file) {
                $plugins['others'][$plugin] = trim(file_get_contents($file));
            }
        }

        return $plugins;
    }
public function versions()
    {
        $Plugin = new BasePlugin;

        $plugins['me_cms'] = trim(file_get_contents($Plugin->path('MeCms', 'version')));

        foreach ($Plugin->all(['exclude' => 'MeCms']) as $plugin) {
            $file = $Plugin->path($plugin, 'version', true);
            $plugins['others'][$plugin] = __d('me_cms', 'n.a.');

            if ($file) {
                $plugins['others'][$plugin] = trim(file_get_contents($file));
            }
        }

        return $plugins;
    }
public function versions ( ) { $ Plugin = new BasePlugin ; $ plugins [ 'me_cms' ] = trim ( file_get_contents ( $ Plugin -> path ( 'MeCms' , 'version' ) ) ) ; foreach ( $ Plugin -> all ( [ 'exclude' => 'MeCms' ] ) as $ plugin ) { $ file = $ Plugin -> path ( $ plugin , 'version' , true ) ; $ plugins [ 'others' ] [ $ plugin ] = __d ( 'me_cms' , 'n.a.' ) ; if ( $ file ) { $ plugins [ 'others' ] [ $ plugin ] = trim ( file_get_contents ( $ file ) ) ; } } return $ plugins ; }
Returns the version number for each plugin
@return array
@uses MeCms\Core\Plugin::all()
@uses MeCms\Core\Plugin::path()
Returns the version number for each plugin