コード例 #1
0
ファイル: Theme.php プロジェクト: xmasviex/gantry5
 public function add_to_context(array $context)
 {
     $context = parent::add_to_context($context);
     $this->url = $context['site']->theme->link;
     $context['menu'] = new \TimberMenu();
     $context['my'] = new \TimberUser();
     return $context;
 }
コード例 #2
0
ファイル: Theme.php プロジェクト: pensesmart/gantry5
 public function add_to_context(array $context)
 {
     if (!$this->user) {
         $this->user = new \TimberUser();
     }
     $context = parent::add_to_context($context);
     $this->url = $context['site']->theme->link;
     $context['my'] = $this->user;
     return $context;
 }
コード例 #3
0
ファイル: Theme.php プロジェクト: Acidburn0zzz/gantry5
 public function add_to_context(array $context)
 {
     $context = parent::add_to_context($context);
     $this->url = $context['site']->theme->link;
     return $context;
 }
コード例 #4
0
ファイル: Theme.php プロジェクト: BeastModeON/gantry5
 public function add_to_context(array $context)
 {
     $context = parent::add_to_context($context);
     $this->url = $context['site']->theme->link;
     if (!$this->user) {
         $this->user = new \TimberUser();
     }
     $context['current_user'] = $this->user;
     if (function_exists('is_rtl')) {
         $context['is_rtl'] = is_rtl();
     }
     return $context;
 }
コード例 #5
0
ファイル: Theme.php プロジェクト: nmsde/gantry5
 public function add_to_context(array $context)
 {
     $context = parent::add_to_context($context);
     return $context;
 }