diff --git a/views/site/index.php b/views/site/index.php index 3b130ee..a21a5bc 100644 --- a/views/site/index.php +++ b/views/site/index.php @@ -2,11 +2,14 @@ /** @var yii\web\View $this */ +/** @var array $latestAnnouncements */ + use app\assets\TSParticlesAsset; use yii\helpers\Url; $this->title = '首页'; TSParticlesAsset::register($this); +//$latestAnnouncements = []; emulating empty data ?>
@@ -16,86 +19,99 @@ TSParticlesAsset::register($this);

你需要登录或注册账户才能访问更多内容

注册账户

登录账户

- user->can('user')): ?> -

系统公告

+ user->can('user') || Yii::$app->user->can('admin')): ?> +

系统公告

+
-
-
-

Heading

- -

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut - labore - et - dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris - nisi - ut - aliquip - ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum - dolore eu - fugiat nulla pariatur.

- -

Yii - Documentation - »

-
-
-

Heading

- -

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut - labore - et - dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris - nisi - ut - aliquip - ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum - dolore eu - fugiat nulla pariatur.

- -

Yii Forum - » -

-
-
-

Heading

- -

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor - incididunt ut - labore - et - dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris - nisi - ut - aliquip - ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum - dolore eu - fugiat nulla pariatur.

- -

Yii - Extensions - »

+ +
+

暂无公告

+
+ + +
+

title, 0, 30, "...", "UTF-8") ?>

+

content, 0, 240, "...", "UTF-8") ?>

+

+ 查看详情 » +

+
+ + +
+
+ - -

你已经登录,欢迎回来

console.log("Particles loaded")); JS;