예제 #1
0
 public function url($action = null)
 {
     if (empty($action)) {
         return parent::url();
     } else {
         if ($action == 'edit') {
             return panel()->urls()->index() . '/options';
         } else {
             if ($action == 'preview') {
                 return parent::url();
             } else {
                 if ($this->multilang() and in_array($action, $this->languages()->codes())) {
                     return parent::url($action);
                 } else {
                     return panel()->urls()->index() . '/' . $this->uri($action);
                 }
             }
         }
     }
 }