コード例 #1
0
ファイル: Profile.php プロジェクト: modulargaming/pet
 protected function get_breadcrumb()
 {
     $array = array();
     if ($this->pet->user_id == $this->player()) {
         $array[] = array('title' => 'Your pets', 'href' => Route::url('pets'));
     } elseif ($this->pet->user_id) {
         $array[] = array('title' => $this->pet->user->username . "'" . ($this->pet->user->username[strlen($this->pet->user->username) - 1] == 's' ? '' : 's') . ' pets', 'href' => '#');
     } else {
         $array[] = array('title' => 'Abandoned pets', 'href' => Route::url('pets'));
     }
     $array[] = array('title' => $this->pet->name, 'href' => Route::url('pet', array('name' => strtolower($this->pet->name))));
     return array_merge(parent::get_breadcrumb(), $array);
 }
コード例 #2
0
ファイル: Payment.php プロジェクト: modulargaming/payment
 public function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Payments', 'href' => Route::url('payment'))));
 }
コード例 #3
0
ファイル: User.php プロジェクト: modulargaming/user
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'User', 'href' => Route::url('user'))));
 }
コード例 #4
0
ファイル: Index.php プロジェクト: modulargaming/item
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Shops', 'href' => Route::url('item.shops.index'))));
 }
コード例 #5
0
ファイル: Inventory.php プロジェクト: modulargaming/item
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Inventory', 'href' => Route::url('item.inventory'))));
 }
コード例 #6
0
ファイル: Message.php プロジェクト: modulargaming/message
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Message', 'href' => Route::url('message.inbox'))));
 }
コード例 #7
0
ファイル: View.php プロジェクト: modulargaming/item
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => $this->title, 'href' => Route::url('item.shops.index')), array('title' => $this->shop_title, 'href' => Route::url('item.shops.view', array('id' => $this->shop_id)))));
 }