Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Payments', 'href' => Route::url('payment'))));
 }
Ejemplo n.º 3
0
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'User', 'href' => Route::url('user'))));
 }
Ejemplo n.º 4
0
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Shops', 'href' => Route::url('item.shops.index'))));
 }
Ejemplo n.º 5
0
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Inventory', 'href' => Route::url('item.inventory'))));
 }
Ejemplo n.º 6
0
 protected function get_breadcrumb()
 {
     return array_merge(parent::get_breadcrumb(), array(array('title' => 'Message', 'href' => Route::url('message.inbox'))));
 }
Ejemplo n.º 7
0
 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)))));
 }