version() public static method

public static version ( )
コード例 #1
0
ファイル: CreateConfig.php プロジェクト: fluxbb/installer
 protected function run()
 {
     $config = ['o_cur_version' => Core::version(), 'o_board_title' => '', 'o_board_desc' => '', 'o_time_format' => 'H:i:s', 'o_date_format' => 'Y-m-d', 'o_show_version' => 0, 'o_default_user_group' => 4];
     foreach ($config as $name => $value) {
         $this->database->table('config')->insert(['conf_name' => $name, 'conf_value' => $value]);
     }
 }
コード例 #2
0
ファイル: composers.php プロジェクト: imihael/fluxbb-core
<?php

use FluxBB\Models\Config;
use FluxBB\Core;
View::composer('fluxbb::layout.main', function ($view) {
    $view->with('language', trans('fluxbb::common.lang_identifier'))->with('direction', trans('fluxbb::common.lang_direction'))->with('charset', \Config::get('fluxbb.database.charset'))->with('head', '')->with('page', 'index')->with('board_title', Config::get('o_board_title'))->with('board_description', Config::get('o_board_desc'))->with('navlinks', '<ul><li><a href="#">Home</a></li></ul>')->with('status', 'You are not logged in.')->with('announcement', '');
});
View::composer('fluxbb::user.profile.menu', function ($view) {
    $items = array('essentials' => trans('fluxbb::profile.section_essentials'), 'personal' => trans('fluxbb::profile.section_personal'), 'personality' => trans('fluxbb::profile.section_personality'), 'display' => trans('fluxbb::profile.section_display'), 'privacy' => trans('fluxbb::profile.section_privacy'));
    if (Auth::check() && Auth::user()->isAdmin()) {
        $items['admin'] = trans('fluxbb::profile.section_admin');
    }
    // TODO: Determine current action
    $view->with('action', 'profile')->with('items', $items);
});
View::composer('fluxbb::admin.layout.main', function ($view) {
    $view->with('language', trans('fluxbb::common.lang_identifier'))->with('direction', trans('fluxbb::common.lang_direction'))->with('charset', \Config::get('fluxbb.database.charset'))->with('board_title', Config::get('o_board_title'))->with('board_description', Config::get('o_board_desc'))->with('version', Core::version());
});
コード例 #3
0
ファイル: GlobalsComposer.php プロジェクト: fluxbb/core
 public function compose(ViewContract $view)
 {
     $view->with('language', trans('fluxbb::common.lang_identifier'))->with('direction', trans('fluxbb::common.lang_direction'))->with('charset', $this->appConfig->get('fluxbb.database.charset'))->with('head', '')->with('page', 'index')->with('board_title', $this->fluxbbConfig->get('o_board_title'))->with('board_description', $this->fluxbbConfig->get('o_board_desc'))->with('version', Core::version())->with('navlinks', '<ul><li><a href="#">Home</a></li></ul>')->with('status', 'You are not logged in.')->with('announcement', '');
 }